aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-08-31 14:38:20 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-09-07 10:55:43 +0000
commit2bb699fc96e80bc2f98d88369718d2b768a53c8f (patch)
tree7cb21ef8fa6687606b03a24905e47f4671e577c3
parent77d1c243614d385027ca11f75aa5d688b01c2969 (diff)
meson: introspection support enabled by default
-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')