Add an option to not build tests
Seems to have no impact and saves the compilation of 1000 files.
This commit is contained in:
parent
2d54a4e637
commit
a26f16f2ef
11
meson.build
11
meson.build
@ -3518,8 +3518,10 @@ subdir('bsd-user')
|
|||||||
subdir('linux-user')
|
subdir('linux-user')
|
||||||
|
|
||||||
# needed for fuzzing binaries
|
# needed for fuzzing binaries
|
||||||
subdir('tests/qtest/libqos')
|
if get_option('tests')
|
||||||
subdir('tests/qtest/fuzz')
|
subdir('tests/qtest/libqos')
|
||||||
|
subdir('tests/qtest/fuzz')
|
||||||
|
endif
|
||||||
|
|
||||||
# accel modules
|
# accel modules
|
||||||
tcg_real_module_ss = ss.source_set()
|
tcg_real_module_ss = ss.source_set()
|
||||||
@ -4045,7 +4047,9 @@ subdir('scripts')
|
|||||||
subdir('tools')
|
subdir('tools')
|
||||||
subdir('pc-bios')
|
subdir('pc-bios')
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
subdir('tests')
|
if get_option('tests')
|
||||||
|
subdir('tests')
|
||||||
|
endif
|
||||||
if gtk.found()
|
if gtk.found()
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
@ -4141,6 +4145,7 @@ if enable_modules
|
|||||||
summary_info += {'alternative module path': get_option('module_upgrades')}
|
summary_info += {'alternative module path': get_option('module_upgrades')}
|
||||||
endif
|
endif
|
||||||
summary_info += {'fuzzing support': get_option('fuzzing')}
|
summary_info += {'fuzzing support': get_option('fuzzing')}
|
||||||
|
summary_info += {'tests support': get_option('tests')}
|
||||||
if have_system
|
if have_system
|
||||||
summary_info += {'Audio drivers': ' '.join(audio_drivers_selected)}
|
summary_info += {'Audio drivers': ' '.join(audio_drivers_selected)}
|
||||||
endif
|
endif
|
||||||
|
@ -43,6 +43,8 @@ option('docs', type : 'feature', value : 'auto',
|
|||||||
description: 'Documentations build support')
|
description: 'Documentations build support')
|
||||||
option('fuzzing', type : 'boolean', value: false,
|
option('fuzzing', type : 'boolean', value: false,
|
||||||
description: 'build fuzzing targets')
|
description: 'build fuzzing targets')
|
||||||
|
option('tests', type : 'boolean', value: true,
|
||||||
|
description: 'build tests')
|
||||||
option('gettext', type : 'feature', value : 'auto',
|
option('gettext', type : 'feature', value : 'auto',
|
||||||
description: 'Localization of the GTK+ user interface')
|
description: 'Localization of the GTK+ user interface')
|
||||||
option('modules', type : 'feature', value : 'disabled',
|
option('modules', type : 'feature', value : 'disabled',
|
||||||
|
@ -315,6 +315,8 @@ _meson_option_parse() {
|
|||||||
--disable-fuse-lseek) printf "%s" -Dfuse_lseek=disabled ;;
|
--disable-fuse-lseek) printf "%s" -Dfuse_lseek=disabled ;;
|
||||||
--enable-fuzzing) printf "%s" -Dfuzzing=true ;;
|
--enable-fuzzing) printf "%s" -Dfuzzing=true ;;
|
||||||
--disable-fuzzing) printf "%s" -Dfuzzing=false ;;
|
--disable-fuzzing) printf "%s" -Dfuzzing=false ;;
|
||||||
|
--enable-tests) printf "%s" -Dtests=true ;;
|
||||||
|
--disable-tests) printf "%s" -Dtests=false ;;
|
||||||
--enable-gcrypt) printf "%s" -Dgcrypt=enabled ;;
|
--enable-gcrypt) printf "%s" -Dgcrypt=enabled ;;
|
||||||
--disable-gcrypt) printf "%s" -Dgcrypt=disabled ;;
|
--disable-gcrypt) printf "%s" -Dgcrypt=disabled ;;
|
||||||
--enable-gettext) printf "%s" -Dgettext=enabled ;;
|
--enable-gettext) printf "%s" -Dgettext=enabled ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user