-
Notifications
You must be signed in to change notification settings - Fork 29
/
conanfile.py
46 lines (38 loc) · 1.39 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
from conan import ConanFile
class RppConan(ConanFile):
name = "rpp"
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain"
extension_properties = {"compatibility_cppstd": False}
options = {
"with_grpc" : [False, True],
"with_sfml" : [False, True],
"with_tests" : [False, True],
"with_cmake" : [False, True],
"with_benchmarks" : [False, True],
"with_asio" : [False, True]
}
default_options = {
"with_grpc" : False,
"with_sfml" : False,
"with_tests": False,
"with_cmake": False,
"with_benchmarks" : False,
"with_asio" : False
}
def requirements(self):
if self.options.with_tests:
self.requires("trompeloeil/48")
self.requires("doctest/2.4.11")
if self.options.with_benchmarks:
self.requires("nanobench/4.3.11")
if self.options.with_sfml:
self.requires("sfml/2.6.1", options={"audio": False})
if self.options.with_grpc:
self.requires("grpc/1.54.3", transitive_libs=True, transitive_headers=True)
self.requires("protobuf/3.21.12")
self.requires("libmount/2.39", override=True)
if self.options.with_asio:
self.requires("asio/1.30.2")
if self.options.with_cmake:
self.tool_requires("cmake/3.29.3")