From e7b1a5315bd21077eed5003bb8f5cfc75f6e3e33 Mon Sep 17 00:00:00 2001 From: Sergio Martin Date: Thu, 8 Feb 2024 19:53:29 +0100 Subject: [PATCH] Added options not to compile the quickNES core --- meson.build | 6 +++++- meson_options.txt | 14 ++++++++++++++ source/meson.build | 3 +++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 2b9a9d6..80fcf60 100644 --- a/meson.build +++ b/meson.build @@ -56,6 +56,7 @@ if meson.is_subproject() == false # Building tester tool for the original QuickNES + if get_option('buildQuickNES') == true quickNESTester = executable('quickNESTester', 'source/tester.cpp', cpp_args : [ commonCompileArgs, '-w', '-DDISABLE_AUTO_FILE', '-D__LIBRETRO__', '-DNDEBUG', '-DBLARGG_NONPORTABLE' ], @@ -63,8 +64,11 @@ if meson.is_subproject() == false sources : [ commonSources ], include_directories : [ commonIncludes ] ) + endif # Building tests + if get_option('buildQuickNES') == true subdir('tests') - + endif + endif # If not subproject \ No newline at end of file diff --git a/meson_options.txt b/meson_options.txt index 45b6382..7226cf1 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -5,6 +5,20 @@ option('buildPlayer', yield: true ) +option('buildQuickNES', + type : 'boolean', + value : true, + description : 'Build quickNES core', + yield: true +) + +option('buildTests', + type : 'boolean', + value : true, + description : 'Build tests', + yield: true +) + option('onlyOpenSource', type : 'boolean', value : false, diff --git a/source/meson.build b/source/meson.build index d4ff46e..cf5591d 100644 --- a/source/meson.build +++ b/source/meson.build @@ -1,5 +1,8 @@ # Getting core configurations +if get_option('buildQuickNES') == true subdir('quickNES') +endif + subdir('quickerNES') # Tool Configuration