-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
67 lines (51 loc) · 1.94 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
56
57
58
59
60
61
62
63
64
65
66
67
project('quickerArkBot','c','cpp',
version: '1.0.0',
license: 'GPL-3.0-only',
default_options : ['cpp_std=c++17', 'default_library=shared', 'buildtype=release'],
subproject_dir : 'extern'
)
# Loading dependencies
subdir('source')
# Do not build any targets if this is a subproject
if meson.is_subproject() == false
# Common application flags
commonCompileArgs = [ '-Wall', '-Wfatal-errors' ]
# Grabbing jaffarCommon dependency
jaffarCommonSubproject = subproject('jaffarCommon')
jaffarCommonDependency = jaffarCommonSubproject.get_variable('jaffarCommonDependency')
# Building playback tool
if get_option('buildPlayer') == true
quickerArkBotPlayer = executable('quickerArkBotPlayer',
'source/player.cpp',
cpp_args : [ commonCompileArgs, '-DNCURSES', '-D_JAFFAR_PLAYER' ],
dependencies : [ quickerArkBotDependency,
jaffarCommonDependency
],
include_directories : include_directories(['source']),
link_args : [ '-lncurses' ],
)
baseArkBotPlayer = executable('baseArkBotPlayer',
'source/player.cpp',
cpp_args : [ commonCompileArgs, '-DNCURSES' ],
dependencies : [ baseArkBotDependency,
jaffarCommonDependency,
],
include_directories : include_directories(['source']),
link_args : [ '-lncurses' ],
)
endif
# Building tester tool for QuickerArkBot
quickerArkBotTester = executable('quickerArkBotTester',
'source/tester.cpp',
cpp_args : [ commonCompileArgs ],
dependencies : [ quickerArkBotDependency, jaffarCommonDependency ],
)
# Building tester tool for the original ArkBot
baseArkBotTester = executable('baseArkBotTester',
'source/tester.cpp',
cpp_args : [ commonCompileArgs ],
dependencies : [ baseArkBotDependency, jaffarCommonDependency ],
)
# Building tests
subdir('tests')
endif # If not subproject