mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 23:58:54 +02:00
gio/tests/meson: Add resource plugin as test dependency
This commit is contained in:
@@ -699,6 +699,7 @@ endif
|
|||||||
|
|
||||||
if meson.can_run_host_binaries()
|
if meson.can_run_host_binaries()
|
||||||
|
|
||||||
|
resource_plugin = []
|
||||||
compiler_type = '--compiler=@0@'.format(cc.get_id())
|
compiler_type = '--compiler=@0@'.format(cc.get_id())
|
||||||
|
|
||||||
if glib_build_shared
|
if glib_build_shared
|
||||||
@@ -714,7 +715,8 @@ if meson.can_run_host_binaries()
|
|||||||
'--c-name', '_g_plugin',
|
'--c-name', '_g_plugin',
|
||||||
'@INPUT@'])
|
'@INPUT@'])
|
||||||
|
|
||||||
shared_module('resourceplugin', 'resourceplugin.c', plugin_resources_c,
|
resource_plugin += shared_module('resourceplugin',
|
||||||
|
sources: ['resourceplugin.c', plugin_resources_c],
|
||||||
link_args : export_dynamic_ldflags,
|
link_args : export_dynamic_ldflags,
|
||||||
dependencies : common_gio_tests_deps,
|
dependencies : common_gio_tests_deps,
|
||||||
install_dir : installed_tests_execdir,
|
install_dir : installed_tests_execdir,
|
||||||
@@ -907,6 +909,7 @@ if meson.can_run_host_binaries()
|
|||||||
gio_tests += {
|
gio_tests += {
|
||||||
'resources' : {
|
'resources' : {
|
||||||
'extra_sources' : resources_extra_sources,
|
'extra_sources' : resources_extra_sources,
|
||||||
|
'depends' : resource_plugin,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user