mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 08:22:16 +01:00 
			
		
		
		
	Merge branch 'backport-4058-gir-test-deps-glib-2-80' into 'glib-2-80'
Backport !4058 “Tests: Build fixes when running `meson test` without previous builds“ to glib-2-80 See merge request GNOME/glib!4061
This commit is contained in:
		| @@ -12,32 +12,54 @@ girepository_tests = { | |||||||
|  |  | ||||||
| # Some tests require GIR files to have been generated | # Some tests require GIR files to have been generated | ||||||
| if enable_gir | if enable_gir | ||||||
|  |   glib_gir_testing_dep = glib_gir | ||||||
|  |   gobject_gir_testing_dep = [ | ||||||
|  |     glib_gir_testing_dep, | ||||||
|  |     gobject_gir, | ||||||
|  |   ] | ||||||
|  |  | ||||||
|  |   gmodule_gir_testing_dep = [ | ||||||
|  |     glib_gir_testing_dep, | ||||||
|  |     gmodule_gir, | ||||||
|  |   ] | ||||||
|  |  | ||||||
|  |   gio_gir_testing_dep = [ | ||||||
|  |     gobject_gir_testing_dep, | ||||||
|  |     gmodule_gir_testing_dep, | ||||||
|  |     gio_gir, | ||||||
|  |   ] | ||||||
|  |  | ||||||
|  |   girepository_gir_testing_dep = [ | ||||||
|  |     gio_gir_testing_dep, | ||||||
|  |     girepository_gir, | ||||||
|  |   ] | ||||||
|  |  | ||||||
|   girepository_tests += { |   girepository_tests += { | ||||||
|     'function-info' : { |     'function-info' : { | ||||||
|       'dependencies': [libffi_dep], |       'dependencies': [libffi_dep], | ||||||
|       'depends': [glib_gir], |       'depends': glib_gir_testing_dep, | ||||||
|     }, |     }, | ||||||
|     'object-info' : { |     'object-info' : { | ||||||
|       'depends': [gio_gir], |       'depends': gio_gir_testing_dep, | ||||||
|     }, |     }, | ||||||
|     'registered-type-info' : { |     'registered-type-info' : { | ||||||
|       'depends': [gobject_gir], |       'depends': gobject_gir_testing_dep, | ||||||
|     }, |     }, | ||||||
|     'repository' : { |     'repository' : { | ||||||
|       'depends': [glib_gir, gio_gir, gobject_gir], |       'depends': gio_gir_testing_dep, | ||||||
|     }, |     }, | ||||||
|     'repository-search-paths' : { |     'repository-search-paths' : { | ||||||
|       'c_args': '-DGOBJECT_INTROSPECTION_LIBDIR="@0@"'.format(glib_libdir), |       'c_args': '-DGOBJECT_INTROSPECTION_LIBDIR="@0@"'.format(glib_libdir), | ||||||
|       'depends': [glib_gir], |       'depends': glib_gir_testing_dep, | ||||||
|     }, |     }, | ||||||
|     'struct-info' : { |     'struct-info' : { | ||||||
|       'depends': [gobject_gir], |       'depends': gobject_gir_testing_dep, | ||||||
|     }, |     }, | ||||||
|     'throws' : { |     'throws' : { | ||||||
|       'depends': [glib_gir, gio_gir], |       'depends': gio_gir_testing_dep, | ||||||
|     }, |     }, | ||||||
|     'union-info' : { |     'union-info' : { | ||||||
|       'depends': [glib_gir], |       'depends': glib_gir_testing_dep, | ||||||
|     }, |     }, | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @@ -45,7 +67,7 @@ if enable_gir | |||||||
|     girepository_tests += { |     girepository_tests += { | ||||||
|       'autoptr-girepository' : { |       'autoptr-girepository' : { | ||||||
|         'source' : 'autoptr.c', |         'source' : 'autoptr.c', | ||||||
|         'depends': [glib_gir, gio_gir], |         'depends': gio_gir_testing_dep, | ||||||
|       }, |       }, | ||||||
|     } |     } | ||||||
|   endif |   endif | ||||||
|   | |||||||
| @@ -350,6 +350,7 @@ if host_machine.system() == 'windows' or have_dlopen_dlsym | |||||||
|                  '-DBUILD_TEST_EXECUTABLE', |                  '-DBUILD_TEST_EXECUTABLE', | ||||||
|                  '-DPREFIX=app'], |                  '-DPREFIX=app'], | ||||||
|       'dependencies' : libdl_dep, |       'dependencies' : libdl_dep, | ||||||
|  |       'depends': constructor_lib, | ||||||
|       'link_with': [constructor_helper] |       'link_with': [constructor_helper] | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user