mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
build: Add option for disabling tests
This commit is contained in:
parent
01b77666bc
commit
04b168846f
@ -94,7 +94,7 @@ installed_tests_template = files('template.test.in')
|
|||||||
installed_tests_template_tap = files('template-tap.test.in')
|
installed_tests_template_tap = files('template-tap.test.in')
|
||||||
|
|
||||||
# Don’t build the tests unless we can run them (either natively, in an exe wrapper, or by installing them for later use)
|
# Don’t build the tests unless we can run them (either natively, in an exe wrapper, or by installing them for later use)
|
||||||
build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper()) or installed_tests_enabled
|
build_tests = get_option('tests') and (not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper()) or installed_tests_enabled)
|
||||||
|
|
||||||
add_project_arguments('-D_GNU_SOURCE', language: 'c')
|
add_project_arguments('-D_GNU_SOURCE', language: 'c')
|
||||||
|
|
||||||
|
@ -84,6 +84,11 @@ option('fam',
|
|||||||
value : false,
|
value : false,
|
||||||
description : 'Use fam for file system monitoring')
|
description : 'Use fam for file system monitoring')
|
||||||
|
|
||||||
|
option('tests',
|
||||||
|
type : 'boolean',
|
||||||
|
value : true,
|
||||||
|
description : 'build tests')
|
||||||
|
|
||||||
option('installed_tests',
|
option('installed_tests',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
value : false,
|
value : false,
|
||||||
|
Loading…
Reference in New Issue
Block a user