# HG changeset patch # User Gary Kramlich # Date 1526280147 0 # Node ID 680c52289da2ace433a3850796a24273ca9773e9 # Parent 01818291b4500204e0d7d1c58fa40ee9843ad676# Parent 068fd7f93fda85a73eda04598765e2836013febd Merged in CMaiku/pidgin (pull request #343) meson: Add introspection option for disabling GObject Introspection Approved-by: Gary Kramlich diff -r 01818291b450 -r 680c52289da2 meson.build --- a/meson.build Sat May 12 18:42:52 2018 +0000 +++ b/meson.build Mon May 14 06:42:27 2018 +0000 @@ -905,16 +905,23 @@ gplugin = dependency('gplugin', version : '>= 0.0.17') # GPLUGIN_REQ sets pkg-config requirements in the .pc file GPLUGIN_REQ = ['gplugin'] - enable_introspection = dependency('gobject-introspection-1.0', - version : '>= 1.30.0', required : false).found() else gplugin = [] GPLUGIN_REQ = [] - enable_introspection = false endif +####################################################################### +# Check for GObject Introspection +####################################################################### + +enable_introspection = get_option('introspection') if enable_introspection - conf.set('ENABLE_INTROSPECTION', true) + if dependency('gobject-introspection-1.0', version : '>= 1.30.0', + required : force_deps).found() + conf.set('ENABLE_INTROSPECTION', true) + else + enable_introspection = false + endif endif ####################################################################### diff -r 01818291b450 -r 680c52289da2 meson_options.txt --- a/meson_options.txt Sat May 12 18:42:52 2018 +0000 +++ b/meson_options.txt Mon May 14 06:42:27 2018 +0000 @@ -71,6 +71,9 @@ option('plugins', type : 'boolean', value : true, description : 'compile with plugin support') +option('introspection', type : 'boolean', value : true, + description : 'build introspection data') + option('krb4', type : 'boolean', value : false, description : 'compile Zephyr plugin with Kerberos 4 support')