Skip to content

Commit

Permalink
build: Add a conanfile to package artifacts (microsoft#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
chri7325 authored Nov 5, 2020
1 parent 5f25e6c commit 8883fd6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions conanfile_rtc.py
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)

0 comments on commit 8883fd6

Please sign in to comment.