mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
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:
parent
674f2a030c
commit
dc37ca70fe
@ -138,6 +138,12 @@ else
|
|||||||
glib_runstatedir = '/run'
|
glib_runstatedir = '/run'
|
||||||
endif
|
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_metadir = join_paths(glib_datadir, 'installed-tests', meson.project_name())
|
||||||
installed_tests_execdir = join_paths(glib_libexecdir, 'installed-tests', meson.project_name())
|
installed_tests_execdir = join_paths(glib_libexecdir, 'installed-tests', meson.project_name())
|
||||||
installed_tests_enabled = get_option('installed_tests')
|
installed_tests_enabled = get_option('installed_tests')
|
||||||
|
Loading…
Reference in New Issue
Block a user