summaryrefslogtreecommitdiff
path: root/json-glib
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-09-02 12:07:38 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-09-05 11:56:23 +0100
commitbc4748ec89ef04fe9de7024185d1e78609d13c15 (patch)
tree8043da274c206e1cd4b178493ee3f720963885b3 /json-glib
parentec2525b4aad70379387a95142ad09b396c660f0b (diff)
downloadjson-glib-bc4748ec89ef04fe9de7024185d1e78609d13c15.tar.gz
build: Rework the introspection option
Instead of using `disable_introspection=false`, flip the condition around, and use `enable-introspection=true`. This avoids the double negative. Additionally, we should drop the cross-compilation check; it's entirely possible to cross-compile introspection data for different platforms and architectures; this allows the Yocto project to drop a patch for JSON-GLib.
Diffstat (limited to 'json-glib')
-rw-r--r--json-glib/meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/json-glib/meson.build b/json-glib/meson.build
index 45c3247..b229ad8 100644
--- a/json-glib/meson.build
+++ b/json-glib/meson.build
@@ -84,6 +84,8 @@ pkgg.generate(libraries: [ json_lib ],
description: 'JSON Parser for GLib.',
requires: 'gio-2.0')
+gir = find_program('g-ir-scanner', required: false)
+build_gir = gir.found() and get_option('enable-introspection')
if build_gir
gir_args = [
'--quiet',