forked from microsoft/cpprestsdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add a conanfile to package artifacts (microsoft#8)
Issue-number: https://devtopia.esri.com/runtime/devops/issues/693
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from conans import ConanFile | ||
|
||
|
||
class CpprestConan(ConanFile): | ||
name = "cpprest" | ||
version = "2.10.13" | ||
url = "https://github.com/Esri/cpprestsdk/tree/runtimecore" | ||
license = "https://github.com/Esri/cpprestsdk/blob/runtimecore/license.txt" | ||
description = "The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services." | ||
|
||
# RTC specific triple | ||
settings = "platform_architecture_target" | ||
|
||
def package(self): | ||
base = self.source_folder + "/" | ||
relative = "3rdparty/cpprestsdk/" | ||
|
||
# headers | ||
self.copy("*.h*", src=base + "Release/include/cpprest", dst=relative + "Release/include/cpprest") | ||
self.copy("*.dat", src=base + "Release/include/cpprest", dst=relative + "Release/include/cpprest") | ||
self.copy("*.h*", src=base + "Release/include/pplx", dst=relative + "Release/include/pplx") | ||
|
||
# libraries | ||
output = "output/" + str(self.settings.platform_architecture_target) + "/staticlib" | ||
self.copy("*" + self.name + "*", src=base + "../../" + output, dst=output) |