-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
38 lines (33 loc) · 943 Bytes
/
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
# NOTE:
# This project is expected to be built under a Nix environment.
# No guarantees are made about the standalone capabilities of this
# build under non-Nix environments.
project(
'weepin', 'cpp',
version : files('./VERSION'),
meson_version : '>= 0.63.0',
license: 'GPL3',
default_options: [
'cpp_std=c++23'
]
)
if(get_option('debug') and meson.get_compiler('cpp').get_id() == 'clang')
add_project_arguments(
'-DLIBCXX_ENABLE_DEBUG_MODE=1',
'-D_LIBCPP_DEBUG=1',
'-D_LIBCPP_ABI_BOUNDED_ITERATORS=1',
'-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG',
language: 'cpp'
)
endif
if(get_option('debug') and meson.get_compiler('cpp').get_id() == 'gcc')
add_project_arguments(
'-D_GLIBCXX_DEBUG_PICKY',
'-D_GLIBCXX_DEBUG_BACKTRACE',
language: 'cpp'
)
endif
if(get_option('build_tests'))
add_project_arguments('-DWEEPIN_BUILD_WITH_TESTS=1', language: 'cpp')
endif
subdir('src')