mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-22 23:29:16 +02:00
Merge branch 'optional_tests' into 'master'
Only build tests if certain conditions are met. See merge request GNOME/glib!774
This commit is contained in:
commit
e6f1b364cc
@ -994,4 +994,8 @@ if enable_systemtap
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('fam')
|
subdir('fam')
|
||||||
subdir('tests')
|
# Don’t build the tests unless we can run them (either natively or in an exe wrapper)
|
||||||
|
build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper())
|
||||||
|
if build_tests
|
||||||
|
subdir('tests')
|
||||||
|
endif
|
@ -459,4 +459,8 @@ if enable_systemtap
|
|||||||
install : true)
|
install : true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('tests')
|
# Don’t build the tests unless we can run them (either natively or in an exe wrapper)
|
||||||
|
build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper())
|
||||||
|
if build_tests
|
||||||
|
subdir('tests')
|
||||||
|
endif
|
@ -166,4 +166,8 @@ if enable_systemtap
|
|||||||
install : true)
|
install : true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('tests')
|
# Don’t build the tests unless we can run them (either natively or in an exe wrapper)
|
||||||
|
build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper())
|
||||||
|
if build_tests
|
||||||
|
subdir('tests')
|
||||||
|
endif
|
@ -2045,7 +2045,11 @@ subdir('gthread')
|
|||||||
subdir('gmodule')
|
subdir('gmodule')
|
||||||
subdir('gio')
|
subdir('gio')
|
||||||
subdir('fuzzing')
|
subdir('fuzzing')
|
||||||
subdir('tests')
|
# Don’t build the tests unless we can run them (either natively or in an exe wrapper)
|
||||||
|
build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper())
|
||||||
|
if build_tests
|
||||||
|
subdir('tests')
|
||||||
|
endif
|
||||||
|
|
||||||
# xgettext is optional (on Windows for instance)
|
# xgettext is optional (on Windows for instance)
|
||||||
if find_program('xgettext', required : get_option('nls')).found()
|
if find_program('xgettext', required : get_option('nls')).found()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user