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