aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build5
-rw-r--r--meson_options.txt2
2 files changed, 5 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index e4bf93b3..4d09cfe7 100644
--- a/meson.build
+++ b/meson.build
@@ -254,7 +254,10 @@ endif
util_dep = cc.find_library('util')
# introspection support
-enable_gir = dependency('gobject-introspection-1.0', version: '>= 0.9.6', required: get_option('introspection')).found()
+enable_gir = get_option('introspection')
+if enable_gir
+ dependency('gobject-introspection-1.0', version: '>= 0.9.6')
+endif
# vala support
enable_vapi = get_option('vapi')
diff --git a/meson_options.txt b/meson_options.txt
index 9f84fadc..5f3ee0c2 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -90,7 +90,7 @@ option('plugin_zte', type: 'boolean', value: true, description: 'enable zte plug
option('qcdm_standalone', type: 'boolean', value: true, description: 'enable standalone qdcm')
-option('introspection', type: 'feature', value: 'auto', description: 'build introspection support')
+option('introspection', type: 'boolean', value: true, description: 'build introspection support')
option('vapi', type: 'boolean', value: false, description: 'build vala bindings')
option('man', type: 'boolean', value: true, description: 'build manual pages')