forked from SergioMartin86/quickerNES
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
60 lines (46 loc) · 1.84 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
project('quickerNES','c','cpp',
version: '1.0.0',
license: 'GPL-3.0-only',
default_options : ['cpp_std=c++20', 'default_library=shared', 'buildtype=release'],
subproject_dir : 'extern'
)
# Loading dependencies
subdir('source')
# Grabbing hqn dependency
hqnSubproject = subproject('hqn')
hqnDependency = hqnSubproject.get_variable('hqnDependency')
# Do not build any targets if this is a subproject
if meson.is_subproject() == false
# Common application flags
commonCompileArgs = [ '-Wfatal-errors', '-Wall']
# Grabbing jaffarCommon dependency
jaffarCommonSubproject = subproject('jaffarCommon')
jaffarCommonDependency = jaffarCommonSubproject.get_variable('jaffarCommonDependency')
# Building playback tool
if get_option('buildPlayer') == true
executable('player',
'source/player.cpp',
cpp_args : [ commonCompileArgs, '-DNCURSES' ],
dependencies : [ jaffarCommonDependency, quickerNESDependency, toolDependency, dependency('sdl2'), dependency('SDL2_image'), hqnDependency ],
link_args : [ '-lncurses' ]
)
endif
# Building tester tool for QuickerNES
quickerNESTester = executable('quickerNESTester',
'source/tester.cpp',
cpp_args : [ commonCompileArgs, '-Werror' ],
dependencies : [ jaffarCommonDependency, quickerNESDependency, toolDependency ]
)
# Building tester tool for the original QuickNES
if get_option('buildQuickNES') == true
quickNESTester = executable('quickNESTester',
'source/tester.cpp',
cpp_args : [ commonCompileArgs, '-w', '-DDISABLE_AUTO_FILE', '-D__LIBRETRO__', '-DNDEBUG', '-DBLARGG_NONPORTABLE' ],
dependencies : [ jaffarCommonDependency, quickNESDependency, toolDependency ]
)
endif
# Building tests
if get_option('buildQuickNES') == true
subdir('tests')
endif
endif # If not subproject