forked from eclipse-uprotocol/up-zenoh-example-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
32 lines (26 loc) · 1.01 KB
/
conanfile.py
File metadata and controls
32 lines (26 loc) · 1.01 KB
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
from conan import ConanFile
class HelloWorldRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain", "PkgConfigDeps", "VirtualRunEnv", "VirtualBuildEnv"
options = {
"shared": [True, False],
"fPIC": [True, False],
"build_testing": [True, False],
"build_unbundled": [True, False],
"build_cross_compiling": [True, False],
}
default_options = {
"shared": False,
"fPIC": False,
"build_testing": False,
"build_unbundled": True,
"build_cross_compiling": False,
}
# def configure(self):
# self.options["spdlog"].shared = self.options.shared
def requirements(self):
self.requires("up-client-zenoh-cpp/0.1.0-dev")
self.requires("protobuf/3.21.12" + ("@cross/cross" if self.options.build_cross_compiling else ""))
def imports(self):
if self.options.build_testing:
self.copy("*.so*", dst="lib", keep_path=False)