-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
66 lines (50 loc) · 1.92 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
project('quickerSnes9x','c','cpp',
version: '1.0.0',
default_options : ['cpp_std=c++20', '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
quickerSnes9xPlayer = executable('quickerSnes9xPlayer',
'source/player.cpp',
cpp_args : [ commonCompileArgs, '-DNCURSES' ],
dependencies : [ quickerSnes9xDependency,
jaffarCommonDependency
],
include_directories : include_directories(['source']),
link_args : [ '-lncurses' ],
)
snes9xPlayer = executable('snes9xPlayer',
'source/player.cpp',
cpp_args : [ commonCompileArgs, '-DNCURSES' ],
dependencies : [ snes9xDependency,
jaffarCommonDependency,
],
include_directories : include_directories(['source']),
link_args : [ '-lncurses' ],
)
endif
# Building tester tool for QuickerSnes9x
quickerSnes9xTester = executable('quickerSnes9xTester',
'source/tester.cpp',
cpp_args : [ commonCompileArgs, '-DPREVENT_RENDERING' ],
dependencies : [ quickerSnes9xDependency, jaffarCommonDependency ],
)
# Building tester tool for the original snes9x
snes9xTester = executable('snes9xTester',
'source/tester.cpp',
cpp_args : [ commonCompileArgs, '-DPREVENT_RENDERING' ],
dependencies : [ snes9xDependency, jaffarCommonDependency ],
)
# Building tests
subdir('tests')
endif # If not subproject