- change build option to auto/true/false
- auto=false if cross build true otherwise
install: true,
)
-if get_option('enable-gir')
+if build_gir
# identity filter, so GIR doesn't choke on the Babl type
# (since it has the same name as the Babl namespace)
identfilter_py = join_paths(meson.current_source_dir(), 'identfilter.py')
build_docs = false
endif
+# Introspection - don't build by default on cross-build environments
+if get_option('enable-gir') == 'auto'
+ build_gir = meson.is_cross_build() ? false : true
+else
+ build_gir = get_option('enable-gir') == 'true' ? true : false
+endif
################################################################################
# Configuration files
description: 'build documentation'
)
option('enable-gir',
- type: 'boolean',
- value: 'true',
+ type: 'combo',
+ choices: ['auto', 'true', 'false'],
description: 'gobject introspection .gir generation'
)
option('enable-vapi',