-
Notifications
You must be signed in to change notification settings - Fork 43
/
conanfile.py
83 lines (69 loc) · 2.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import os
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
class EpanetRtx(ConanFile):
name = "epanetrtx"
version = "1.1"
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False], "fPIC": [True, False]}
default_options = {"shared": False, "fPIC": True}
generators = "CMakeToolchain", "CMakeDeps", "XcodeDeps", "XcodeToolchain"
exports_sources = "CMakeLists.txt", "src/*", "test/*"
default_options = {
"shared": False,
"fPIC": True,
"boost*:without_container": True,
"boost*:without_context": True,
"boost*:without_contract": True,
"boost*:without_coroutine": True,
"boost*:without_date_time": True,
"boost*:without_exception": False,
"boost*:without_fiber": True,
"boost*:without_filesystem": False,
"boost*:without_graph": False,
"boost*:without_json": True,
"boost*:without_locale": True,
"boost*:without_log": True,
"boost*:without_math": False,
"boost*:without_nowide": True,
"boost*:without_program_options": False,
"boost*:without_python": True,
"boost*:without_random": False,
"boost*:without_regex": False,
"boost*:without_serialization": False,
"boost*:without_stacktrace": True,
"boost*:without_system": False,
"boost*:without_test": False,
"boost*:without_thread": True,
"boost*:without_timer": False,
"boost*:without_type_erasure": True,
"boost*:without_url": True,
"boost*:without_wave": True
}
def requirements(self):
self.requires("zlib/1.2.13")
self.requires("openssl/3.1.2")
self.requires("oatpp/1.3.0")
self.requires("oatpp-openssl/1.3.0")
self.requires("boost/1.83.0")
self.requires("nlohmann_json/3.10.5")
self.requires("libcurl/7.80.0")
self.requires("sqlite3/3.43.2")
self.requires("sqlite_modern_cpp/3.2")
self.requires("epanet/2.3")
def build_requirements(self):
pass
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
def layout(self):
cmake_layout(self)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def package_info(self):
self.cpp_info.libs = ["epanetrtx"]