Allow disabling introspection from toplevel gst-build
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 10 Apr 2017 20:36:30 +0000 (17:36 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Tue, 11 Apr 2017 15:05:20 +0000 (12:05 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=781148

meson.build
meson_options.txt

index 6193f9b..351bdc6 100644 (file)
@@ -99,7 +99,11 @@ foreach custom_subproj: get_option('custom_subprojects').split(',')
 endforeach
 
 foreach subproj: subprojects
-    subproject(subproj, version: gst_version)
+    default_options = []
+    if get_option('disable_introspection')
+        default_options += ['disable_introspection=true']
+    endif
+    subproject(subproj, version: gst_version, default_options: default_options)
 
     cmdres = run_command(python3, '-c', symlink.format(subproj, meson.current_source_dir()))
     if cmdres.returncode() == 0
index fc73eb8..65ebe13 100644 (file)
@@ -7,4 +7,7 @@ option('disable_gst_editing_services', type : 'boolean', value : false)
 option('disable_rtsp_server', type : 'boolean', value : false)
 option('disable_gst_omx', type : 'boolean', value : true)
 option('disable_gstreamer_vaapi', type : 'boolean', value : false)
+option('disable_introspection',
+        type : 'boolean', value : false,
+        description : 'Whether to disable the introspection generation')
 option('custom_subprojects', type : 'string', value : '', description : 'Comma-separated project names')