meson: help gobject-introspection locate source and build dirs

gobject-introspection is currently assuming glib subproject
is in unversioned, but gstreamer uses a versioned directory, eg:
subprojects/glib-2.74.1 instead of subprojects/glib
This commit is contained in:
Andoni Morales Alastruey 2023-07-19 15:14:14 +02:00
parent 674f2a030c
commit dc37ca70fe

View File

@ -138,6 +138,12 @@ else
glib_runstatedir = '/run'
endif
# When building glib and gobject-introspection with subprojects, gobject-introspection
# requires to know the path of the sources and the build directory for the subproject.
# We provide it here with a variable.
glib_source_dir = meson.current_source_dir()
glib_build_dir = meson.current_build_dir()
installed_tests_metadir = join_paths(glib_datadir, 'installed-tests', meson.project_name())
installed_tests_execdir = join_paths(glib_libexecdir, 'installed-tests', meson.project_name())
installed_tests_enabled = get_option('installed_tests')