-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
79 lines (75 loc) · 2.98 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
from conans import ConanFile, tools
from conan.tools.cmake import CMake, cmake_layout
class TicketDecoderConan(ConanFile):
name = 'vrd-extractor'
version = 'v0.1'
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeToolchain", "CMakeDeps"
options = {}
requires = [
# https://conan.io/center/recipes/boost
("boost/1.86.0"),
# https://conan.io/center/recipes/gtest
("gtest/1.15.0"),
# https://conan.io/center/recipes/exiv2
("exiv2/0.28.2"),
# https://conan.io/center/recipes/log4cxx
("log4cxx/1.2.0")
]
default_options = {
# global
"*:shared": False,
# exiv2
"exiv2:with_png": False,
"exiv2:with_curl": False,
# log4cxx
"log4cxx:with_qt": False,
"log4cxx:with_wchar_t": False,
"log4cxx:with_fmt_layout": False,
"log4cxx:with_networking": False,
"log4cxx:with_odbc_appender": False,
"log4cxx:with_smtp_appender": False,
"log4cxx:with_multiprocess_rolling_file_appender": False,
# boost
"boost:pch": False,
"boost:header_only": False,
"boost:without_atomic": True,
"boost:without_chrono": 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_filesystem": 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_system": 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,
}
# def configure(self):
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def layout(self):
cmake_layout(self)