meson: make gir search on cross pkg-config
This commit is contained in:
parent
5f3e8b25ec
commit
575b2712f8
2 changed files with 15 additions and 1 deletions
|
@ -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'
|
||||
pkgname=meson
|
||||
version=0.49.1
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
build_style=python3-module
|
||||
pycompile_module="mesonbuild"
|
||||
|
|
Loading…
Reference in a new issue