Allow disabling introspection from toplevel gst-build

https://bugzilla.gnome.org/show_bug.cgi?id=781148
This commit is contained in:
Thibault Saunier 2017-04-10 17:36:30 -03:00
parent af5ee95a5b
commit c071855c48
2 changed files with 8 additions and 1 deletions

View 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

View 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')