-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmeson.build
43 lines (36 loc) · 1.22 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
project('ZeGrapher', 'cpp',
version : '4.0.0',
default_options : [
'cpp_std=c++20',
'buildtype=release',
'optimization=3',
'default_library=static',
'prefer_static=true',
'b_ndebug=if-release',
'c_args=-pipe',
'cpp_args=-pipe',
'warning_level=3',
],
meson_version: '>=1.7'
)
if get_option('debug')
add_project_arguments('-D QT_QML_DEBUG', language: 'cpp')
endif
if get_option('loglevel') != 'debug'
add_project_arguments('-D QT_NO_DEBUG_OUTPUT', language : 'cpp')
endif
if not ['debug', 'info'].contains(get_option('loglevel'))
add_project_arguments('-D QT_NO_INFO_OUTPUT', language : 'cpp')
endif
if get_option('loglevel') == 'off'
add_project_arguments('-D QT_NO_WARNING_OUTPUT', language : 'cpp')
endif
if (get_option('b_ndebug') == 'if-release' and get_option('buildtype') == 'release') or get_option('b_ndebug') == 'true'
add_project_arguments('-D QT_NO_DEBUG', language : 'cpp')
endif
qt6_dep = dependency('qt6', modules: ['Core', 'Gui', 'Widgets', 'Network', 'Svg', 'Quick', 'Qml', 'QuickWidgets'])
boost_dep = dependency('boost')
zecalculator_dep = dependency('zecalculator')
subdir('src')
subdir('appdata')
subdir('test')