meson: make gir search on cross pkg-config
This commit is contained in:
parent
5f3e8b25ec
commit
575b2712f8
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
|
||||||
|
index bf49770..42473cb 100644
|
||||||
|
--- mesonbuild/modules/gnome.py
|
||||||
|
+++ mesonbuild/modules/gnome.py
|
||||||
|
@@ -429,7 +429,7 @@ class GnomeModule(ExtensionModule):
|
||||||
|
try:
|
||||||
|
gir_dep = self.gir_dep or PkgConfigDependency('gobject-introspection-1.0',
|
||||||
|
state.environment,
|
||||||
|
- {'native': True})
|
||||||
|
+ {'native': False})
|
||||||
|
pkgargs = gir_dep.get_compile_args()
|
||||||
|
except Exception:
|
||||||
|
raise MesonException('gobject-introspection dependency was not found, gir cannot be generated.')
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'meson'
|
# Template file for 'meson'
|
||||||
pkgname=meson
|
pkgname=meson
|
||||||
version=0.49.1
|
version=0.49.1
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
pycompile_module="mesonbuild"
|
pycompile_module="mesonbuild"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user