build: Add option to turn off tests
St's theme test now requires the libmutter-test library, which is only built when tests are enabled. Instead of mandating a particular build configuration in mutter, add a corresponding option in gnome-shell as well. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1975>
This commit is contained in:

committed by
Marge Bot

parent
2e8fdcd8f1
commit
0eff22ebcd
@ -191,17 +191,20 @@ libst_dep = declare_dependency(link_with: libst,
|
||||
sources: st_enums[1]
|
||||
)
|
||||
|
||||
test_theme = executable('test-theme',
|
||||
sources: 'test-theme.c',
|
||||
c_args: st_cflags,
|
||||
dependencies: [mutter_test_dep, gtk_dep, libxml_dep],
|
||||
build_rpath: mutter_typelibdir,
|
||||
link_with: libst
|
||||
)
|
||||
if get_option('tests')
|
||||
mutter_test_dep = dependency(libmutter_test_pc, version: mutter_req)
|
||||
test_theme = executable('test-theme',
|
||||
sources: 'test-theme.c',
|
||||
c_args: st_cflags,
|
||||
dependencies: [mutter_test_dep, gtk_dep, libxml_dep],
|
||||
build_rpath: mutter_typelibdir,
|
||||
link_with: libst
|
||||
)
|
||||
|
||||
test('CSS styling support', test_theme,
|
||||
workdir: meson.current_source_dir()
|
||||
)
|
||||
test('CSS styling support', test_theme,
|
||||
workdir: meson.current_source_dir()
|
||||
)
|
||||
endif
|
||||
|
||||
libst_gir = gnome.generate_gir(libst,
|
||||
sources: st_gir_sources,
|
||||
|
Reference in New Issue
Block a user