-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconanfile.py
38 lines (27 loc) · 1.11 KB
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from conans import ConanFile, CMake
import sys, os, subprocess
sys.path.append(os.path.abspath(os.path.join(os.environ['CONAN_USER_HOME'], 'lib')))
from polysync_conan_utils import *
conanfile_dir = os.path.dirname(os.path.realpath(__file__))
class Recipe(ConanFile):
name = "polysync-transcoder"
version = get_version(conanfile_dir)
author = "PolySync"
license = "MIT"
url = "https://github.com/PolySync/polysync-transcoder"
settings = "os", "compiler", "build_type", "arch", "target_platform"
exports = ( "polysync-transcode", "share", "plugin" )
generators = "cmake"
def build(self):
cmake = CMake(self.settings)
self.run( "CXX=clang++ cmake \"%s\"" % self.conanfile_directory )
self.run( "cmake --build . %s" % cmake.build_config )
def requirements(self):
self.requires( "boost/1.63.0@polysync/boost" )
self.options["boost"].shared = True
self.requires( "mettle/1.2.12@polysync/mettle" )
parse_reqs(self)
def package(self):
self.copy( "polysync-transcode",
dst="bin",
src="bin" )