-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
55 lines (49 loc) · 1.14 KB
/
meson.build
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
project('xturtle', 'cpp',
version: '0.1.0',
license: 'GPL-3.0',
default_options: [
'cpp_std=c++17',
'cpp_args=-Wextra -Wpedantic -Wconversion',
])
deps = [
dependency('xcb'),
dependency('xcb-util'),
dependency('xcb-icccm'),
dependency('xcb-keysyms'),
dependency('cairo'),
dependency('guile-3.0'),
]
spdlog_dep = dependency('spdlog', version: '>=1.5.0', required: false)
if not spdlog_dep.found()
spdlog_proj = subproject('spdlog', default_options: [
'enable_tests=false',
'enable_examples=false',
])
deps += spdlog_proj.get_variable('spdlog_dep')
else
deps += spdlog_dep
endif
cli11_dep = dependency('CLI11', required: false)
if not cli11_dep.found()
cli11_proj = subproject('CLI11')
deps += cli11_proj.get_variable('CLI11_dep')
else
deps += cli11_dep
endif
conf_data = configuration_data({
'version': meson.project_version(),
'XTURTLE_DEBUG_ENABLED': get_option('debug'),
})
configure_file(
input: 'include/config.hh.in',
output: 'config.hh',
configuration: conf_data
)
subdir('include')
subdir('src')
executable('xturtle',
srcs,
include_directories: include,
dependencies: deps,
install: true
)