Making player optional, tests obligatory

This commit is contained in:
Sergio Martin 2024-01-16 22:43:03 +01:00
parent ae2709fe70
commit 473aa03f20
2 changed files with 13 additions and 13 deletions

View File

@ -23,14 +23,16 @@ quickerNESPlayerSrc = [
'extern/hqn/options.cpp',
]
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
)
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')

View File

@ -1,7 +1,7 @@
option('buildTests',
option('buildPlayer',
type : 'boolean',
value : false,
description : 'Build test suite',
description : 'Build playback tool',
yield: true
)