From 8883fd6213e53d55aa2bf20b58fe6fcd9375f51f Mon Sep 17 00:00:00 2001 From: Christian Venegas Date: Thu, 5 Nov 2020 13:48:29 -0800 Subject: [PATCH] build: Add a conanfile to package artifacts (#8) Issue-number: https://devtopia.esri.com/runtime/devops/issues/693 --- conanfile_rtc.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 conanfile_rtc.py diff --git a/conanfile_rtc.py b/conanfile_rtc.py new file mode 100644 index 0000000000..d9400a95f3 --- /dev/null +++ b/conanfile_rtc.py @@ -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)