-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathconanfile.py
More file actions
139 lines (131 loc) · 5.5 KB
/
Copy pathconanfile.py
File metadata and controls
139 lines (131 loc) · 5.5 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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMakeDeps
required_conan_version = ">=2.3.0"
class Engine(ConanFile):
settings = "os", "compiler", "build_type", "arch"
build_policy = "missing"
name = "engine"
version = "1.5.0"
description = "getml engine"
license = "Elastic License 2.0 (ELv2)"
homepage = "https://www.getml.com"
url = "https://github.com/getml/getml-community/"
def requirements(self):
self.requires(
"boost/1.85.0",
override=True,
)
self.requires(
"arrow/17.0.0",
options={
"parquet": True,
"with_boost": True,
"with_thrift": True,
"boost/*:without_cobalt": True,
"boost/*:without_locale": True,
"boost/*:without_atomic": True,
"boost/*:without_charconv": True,
"boost/*:without_chrono": True,
"boost/*:without_cobalt": 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": True,
"boost/*:without_fiber": True,
"boost/*:without_graph": True,
"boost/*:without_graph_parallel": True,
"boost/*:without_iostreams": True,
"boost/*:without_json": True,
"boost/*:without_locale": True,
"boost/*:without_log": True,
"boost/*:without_math": True,
"boost/*:without_mpi": True,
"boost/*:without_nowide": True,
"boost/*:without_program_options": False,
"boost/*:without_python": True,
"boost/*:without_random": True,
"boost/*:without_regex": True,
"boost/*:without_serialization": True,
"boost/*:without_stacktrace": True,
"boost/*:without_test": True,
"boost/*:without_thread": True,
"boost/*:without_timer": True,
"boost/*:without_type_erasure": True,
"boost/*:without_url": True,
"boost/*:without_wave": True,
"boost/*:without_filesystem": True,
"boost/*:without_system": True,
"boost/*:header_only": False,
# "boost/*:asio_no_deprecated": True,
"boost/*:diagnostic_definitions": False,
"boost/*:error_code_header_only": True,
# "boost/*:filesystem_no_deprecated": True,
# "boost/*:filesystem_use_std_fs": True,
"boost/*:header_only": False,
"boost/*:i18n_backend_icu": False,
"boost/*:magic_autolink": False,
"boost/*:multithreading": True,
"boost/*:namespace_alias": False,
"boost/*:segmented_stacks": False,
"boost/*:shared": True,
# "boost/*:system_no_deprecated": True,
# "boost/*:system_use_utf8": False,
"boost/*:with_stacktrace_backtrace": False,
},
)
# TODO Downgrade Poco to 1.12.5 because of slow DateTimeFormat::isValid https://github.com/pocoproject/poco/issues/4592
self.requires(
"poco/1.12.5p2",
options={
"enable_activerecord": False,
"enable_activerecord_compiler": False,
"enable_apacheconnector": False,
"enable_cppparser": False,
"enable_crypto": False,
"enable_data": False,
"enable_data_mysql": False,
"enable_data_odbc": False,
"enable_data_postgresql": False,
"enable_data_sqlite": False,
"enable_encodings": False,
"enable_fork": False,
"enable_json": True,
"enable_jwt": False,
"enable_mongodb": False,
"enable_net": True,
"enable_netssl": False,
"enable_pagecompiler": False,
"enable_pagecompiler_file2page": False,
"enable_pdf": False,
"enable_pocodoc": False,
"enable_prometheus": False,
"enable_redis": False,
"enable_sevenzip": False,
"enable_util": False,
"enable_xml": False,
"enable_zip": False,
},
)
self.requires("mariadb-connector-c/3.3.8", options={"shared": True})
self.requires("libpq/15.4")
self.requires("eigen/3.4.0")
self.requires("sqlite3/3.45.0")
if self.settings.os == "Linux":
self.requires("gperftools/2.15")
self.requires("libunwind/1.8.1")
self.requires("reflect-cpp/0.16.0")
# TODO Downgrade xgboost to 1.7.6 because of changes in 2.0.0
self.requires("xgboost/1.7.6")
self.requires("range-v3/0.12.0")
self.requires("gtest/1.15.0")
def generate(self):
toolchain = CMakeToolchain(self, generator="Ninja")
toolchain.user_presets_path = False
toolchain.generate()
deps = CMakeDeps(self)
deps.generate()
def build_requirements(self):
self.build_requires("cmake/[>=3.25.0]")
self.build_requires("ninja/[>=1.11.0]")