aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-12-06 23:43:36 +0200
committerGitHub <noreply@github.com>2016-12-06 23:43:36 +0200
commitd1501e39d5b66510c53576f9a415e11b9eea6c54 (patch)
tree21ba1fcf8361e7e8fd881855b605b2f793f8fd4d /mesonbuild/modules/gnome.py
parentc58da4ee52496bd6d7d42d0f3bdb573673465d65 (diff)
parente43dda13633c86411f38383a2261ea40195eef33 (diff)
downloadmeson-d1501e39d5b66510c53576f9a415e11b9eea6c54.zip
meson-d1501e39d5b66510c53576f9a415e11b9eea6c54.tar.gz
meson-d1501e39d5b66510c53576f9a415e11b9eea6c54.tar.bz2
Merge pull request #1086 from Keruspe/master
Allow specifying some toolchain executables using env
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index e32037a..b915e96 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -371,14 +371,15 @@ can not be used with the current version of glib-compiled-resources, due to
if not isinstance(girtarget, (build.Executable, build.SharedLibrary)):
raise MesonException('Gir target must be an executable or shared library')
try:
- pkgstr = subprocess.check_output(['pkg-config', '--cflags', 'gobject-introspection-1.0'])
+ gir_dep = dependencies.PkgConfigDependency(
+ 'gobject-introspection-1.0', state.environment, {'native': True})
+ pkgargs = gir_dep.get_compile_args()
except Exception:
global girwarning_printed
if not girwarning_printed:
mlog.warning('gobject-introspection dependency was not found, disabling gir generation.')
girwarning_printed = True
return []
- pkgargs = pkgstr.decode().strip().split()
ns = kwargs.pop('namespace')
nsversion = kwargs.pop('nsversion')
libsources = kwargs.pop('sources')