/
conanfile.py
54 lines (40 loc) · 1.48 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from conans import ConanFile, CMake, tools
class UbitrackCoreConan(ConanFile):
name = "ubitrack_device_tracker_vicon"
version = "1.3.0"
description = "Ubitrack Device Tracker vicon"
url = "https://github.com/Ubitrack/device_tracker_vicon.git"
license = "GPL"
short_paths = True
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
options = {
"workspaceBuild" : [True, False],
}
default_options = {
"ubitrack_core:shared" : True,
"ubitrack_dataflow:shared" : True,
"workspaceBuild" : False,
}
def requirements(self):
userChannel = "ubitrack/stable"
if self.options.workspaceBuild:
userChannel = "local/dev"
self.requires("ubitrack_core/%s@%s" % (self.version, userChannel))
self.requires("ubitrack_dataflow/%s@%s" % (self.version, userChannel) )
self.requires("vicon-datastream-sdk/1.8.0@vendor/stable")
# all sources are deployed with the package
exports_sources = "doc/*", "src/*", "CMakeLists.txt"
# def imports(self):
# self.copy(pattern="*.dll", dst="bin", src="bin") # From bin to bin
# self.copy(pattern="*.dylib*", dst="lib", src="lib")
# self.copy(pattern="*.so*", dst="lib", src="lib")
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
cmake.install()
def package(self):
pass
def package_info(self):
pass