meson: introspection support enabled by default

This commit is contained in:
Aleksander Morgado
2021-08-31 14:38:20 +02:00
parent 77d1c24361
commit 2bb699fc96
2 changed files with 5 additions and 2 deletions

View File

@@ -254,7 +254,10 @@ endif
util_dep = cc.find_library('util') util_dep = cc.find_library('util')
# introspection support # 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 # vala support
enable_vapi = get_option('vapi') enable_vapi = get_option('vapi')

View File

@@ -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('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('vapi', type: 'boolean', value: false, description: 'build vala bindings')
option('man', type: 'boolean', value: true, description: 'build manual pages') option('man', type: 'boolean', value: true, description: 'build manual pages')