build,meson: Make use of feature option for introspection

This commit is contained in:
Iñigo Martínez
2021-09-10 08:39:37 +00:00
committed by Aleksander Morgado
parent 190bf5b351
commit fe53de8bdd
+1 -4
View File
@@ -254,10 +254,7 @@ endif
util_dep = cc.find_library('util')
# introspection support
enable_gir = get_option('introspection')
if enable_gir
dependency('gobject-introspection-1.0', version: '>= 0.9.6')
endif
enable_gir = dependency('gobject-introspection-1.0', version: '>= 0.9.6', required: get_option('introspection')).found()
# vala support
enable_vapi = get_option('vapi')