mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
build: Rework path construction to reliably add prefix
There were a couple of custom paths which could end up being relative, rather than absolute, due to not properly prefixing them with `get_option('prefix')`. The use of `join_paths()` here correctly drops all path components before the final absolute path in the list of arguments. So if someone configures GLib with an absolute path for `gio_module_dir`, that will be used unprefixed; but if someone configures with a relative path, it will be prefixed by `get_option('prefix)`. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1919
This commit is contained in:
@@ -24,7 +24,7 @@ gdbus_codegen = configure_file(input : 'gdbus-codegen.in',
|
||||
# Provide tools for others when we're a subproject and they use the Meson GNOME module
|
||||
meson.override_find_program('gdbus-codegen', gdbus_codegen)
|
||||
|
||||
codegen_dir = join_paths(get_option('datadir'), 'glib-2.0/codegen')
|
||||
codegen_dir = join_paths(glib_datadir, 'glib-2.0', 'codegen')
|
||||
|
||||
gdbus_codegen_built_files = []
|
||||
gdbus_codegen_built_files += configure_file(input : 'config.py.in',
|
||||
|
Reference in New Issue
Block a user