mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
tests: Fix dependency of test.gresource on test-generated.txt
`test-generated.txt` is listed in `test.gresource.xml`, so it needs to be specified as a dependency in the `custom_target()` which uses `test.gresource.xml`. Fixes intermittent build failures like: ``` FAILED: gio/tests/test.gresource /builds/GNOME/glib/_build/gio/glib-compile-resources --compiler=gcc --target=gio/tests/test.gresource --sourcedir=/builds/GNOME/glib/gio/tests --sourcedir=/builds/GNOME/glib/_build/gio/tests --internal ../gio/tests/test.gresource.xml ../gio/tests/test.gresource.xml: Failed to locate test-generated.txt in any source directory. ``` See !3671 and #3163. Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
This commit is contained in:
parent
9695ddfc70
commit
a61888bceb
@ -810,8 +810,12 @@ if not meson.is_cross_build()
|
||||
output : ['gresource-big-test.txt'],
|
||||
command : [python, '@INPUT0@', '@OUTPUT@'])
|
||||
|
||||
# referenced by test.gresource.xml
|
||||
test_generated_txt = fs.copyfile('test1.txt', 'test-generated.txt')
|
||||
|
||||
test_gresource = custom_target('test.gresource',
|
||||
input : 'test.gresource.xml',
|
||||
depends : test_generated_txt,
|
||||
output : 'test.gresource',
|
||||
command : [glib_compile_resources,
|
||||
compiler_type,
|
||||
@ -889,9 +893,6 @@ if not meson.is_cross_build()
|
||||
'--manual-register',
|
||||
'@INPUT@'])
|
||||
|
||||
# referenced by test.gresource.xml
|
||||
test_generated_txt = fs.copyfile('test1.txt', 'test-generated.txt')
|
||||
|
||||
resources_extra_sources = [
|
||||
test_gresource,
|
||||
test_resources_c,
|
||||
|
Loading…
Reference in New Issue
Block a user