Making player optional, tests obligatory
This commit is contained in:
parent
ae2709fe70
commit
473aa03f20
22
meson.build
22
meson.build
|
@ -23,14 +23,16 @@ quickerNESPlayerSrc = [
|
||||||
'extern/hqn/options.cpp',
|
'extern/hqn/options.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
executable('player',
|
if get_option('buildPlayer') == true
|
||||||
'source/player.cpp',
|
executable('player',
|
||||||
cpp_args : [ commonCompileArgs, '-DNCURSES' ],
|
'source/player.cpp',
|
||||||
dependencies : [ quickerNESDependency, toolDependency, dependency('sdl2'), dependency('SDL2_image') ],
|
cpp_args : [ commonCompileArgs, '-DNCURSES' ],
|
||||||
include_directories : include_directories(['source']),
|
dependencies : [ quickerNESDependency, toolDependency, dependency('sdl2'), dependency('SDL2_image') ],
|
||||||
link_args : [ '-lncurses' ],
|
include_directories : include_directories(['source']),
|
||||||
sources : quickerNESPlayerSrc
|
link_args : [ '-lncurses' ],
|
||||||
)
|
sources : quickerNESPlayerSrc
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
# Building tester tool for QuickerNES
|
# Building tester tool for QuickerNES
|
||||||
|
|
||||||
|
@ -51,6 +53,4 @@ quickNESTester = executable('qTester',
|
||||||
)
|
)
|
||||||
|
|
||||||
# Building tests
|
# Building tests
|
||||||
if get_option('buildTests') == true
|
subdir('tests')
|
||||||
subdir('tests')
|
|
||||||
endif
|
|
|
@ -1,7 +1,7 @@
|
||||||
option('buildTests',
|
option('buildPlayer',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
value : false,
|
value : false,
|
||||||
description : 'Build test suite',
|
description : 'Build playback tool',
|
||||||
yield: true
|
yield: true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue