mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
Merge branch 'gio-test-dependencies' into 'main'
tests: Fix dependency of test.gresource on test-generated.txt See merge request GNOME/glib!3682
This commit is contained in:
commit
d1fcb4f253
@ -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,
|
||||
@ -982,7 +983,7 @@ if not meson.is_cross_build()
|
||||
gio_tests += {
|
||||
'resources' : {
|
||||
'extra_sources' : resources_extra_sources,
|
||||
'depends' : [resource_plugin, test_generated_txt],
|
||||
'depends' : resource_plugin,
|
||||
},
|
||||
}
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user