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', 'extern/hqn/options.cpp',
] ]
executable('player', if get_option('buildPlayer') == true
executable('player',
'source/player.cpp', 'source/player.cpp',
cpp_args : [ commonCompileArgs, '-DNCURSES' ], cpp_args : [ commonCompileArgs, '-DNCURSES' ],
dependencies : [ quickerNESDependency, toolDependency, dependency('sdl2'), dependency('SDL2_image') ], dependencies : [ quickerNESDependency, toolDependency, dependency('sdl2'), dependency('SDL2_image') ],
include_directories : include_directories(['source']), include_directories : include_directories(['source']),
link_args : [ '-lncurses' ], link_args : [ '-lncurses' ],
sources : quickerNESPlayerSrc 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

View File

@ -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
) )