[glib: 1/2] meson: Set GIO_EXTRA_MODULES in devenv
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] meson: Set GIO_EXTRA_MODULES in devenv
- Date: Tue, 22 Feb 2022 13:38:59 +0000 (UTC)
commit 0071abc18760d52170a377dd2ed49cd867b17ac1
Author: Xavier Claessens <xavier claessens collabora com>
Date: Mon Feb 21 13:22:54 2022 -0500
meson: Set GIO_EXTRA_MODULES in devenv
This makes GIO find the fam module within "meson devenv" without having
to install it on the system.
gio/fam/meson.build | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gio/fam/meson.build b/gio/fam/meson.build
index 8019fe5c4..e3f57037c 100644
--- a/gio/fam/meson.build
+++ b/gio/fam/meson.build
@@ -34,3 +34,9 @@ module = shared_module('giofam', 'gfamfilemonitor.c',
if not meson.is_cross_build()
meson.add_install_script('../gio-querymodules-wrapper.py', gio_querymodules.full_path(),
glib_giomodulesdir)
endif
+
+if meson.version().version_compare('>=0.58')
+ env = environment()
+ env.prepend('GIO_EXTRA_MODULES', meson.current_build_dir())
+ meson.add_devenv(env)
+endif
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]