diff --git a/meson.build b/meson.build index 940929a5ca..6438761c87 100644 --- a/meson.build +++ b/meson.build @@ -91,12 +91,17 @@ if building_full building_full_options = ['gstreamer-full=enabled'] endif +libnice_options = [] +if get_option('webrtc').enabled() + libnice_options += ['gstreamer=enabled'] +endif + # Ordered list of subprojects (dict has no ordering guarantees) subprojects = [ ['gstreamer', {'build-hotdoc': true, 'subproject_options': building_full_options}], ['gst-plugins-base', {'option': get_option('base'), 'build-hotdoc': true}], ['gst-plugins-good', {'option': get_option('good'), 'build-hotdoc': true}], - ['libnice', { 'option': get_option('libnice'), 'match_gst_version': false}], + ['libnice', { 'option': get_option('libnice'), 'match_gst_version': false, 'subproject_options': libnice_options}], ['gst-plugins-bad', { 'option': get_option('bad'), 'build-hotdoc': true}], ['gst-plugins-ugly', { 'option': get_option('ugly'), 'build-hotdoc': true}], ['gst-libav', { 'option': get_option('libav'), 'build-hotdoc': true}],