From b0d3d7644d75e6a7101511f71a5df760dfad39b4 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 19 Oct 2023 03:24:44 +0530 Subject: [PATCH] meson: Pass gstreamer=enabled to libnice when webrtc is enabled Part-of: --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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}],