Disabling all compilation if this is a subproject

This commit is contained in:
SergioMartin86 2024-03-06 18:22:51 +01:00
parent 8bdfd4fa2a
commit 52cd570ac0
1 changed files with 3 additions and 4 deletions

View File

@ -8,6 +8,9 @@ project('quickerNES','c','cpp',
# Loading dependencies
subdir('source')
# Do not build any targets if this is a subproject
if meson.is_subproject() == false
# Common application flags
commonCompileArgs = [ '-Wfatal-errors', '-Wall']
@ -22,10 +25,6 @@ hqnSubproject = subproject('hqn')
hqnDependency = hqnSubproject.get_variable('hqnDependency')
# Building playback tool
# Do not build any targets if this is a subproject
if meson.is_subproject() == false
if get_option('buildPlayer') == true
executable('player',
'source/player.cpp',