meson: Pass gstreamer=enabled to libnice when webrtc is enabled

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5505>
This commit is contained in:
Nirbheek Chauhan 2023-10-19 03:24:44 +05:30 committed by GStreamer Marge Bot
parent 9f5703c366
commit b0d3d7644d

View file

@ -91,12 +91,17 @@ if building_full
building_full_options = ['gstreamer-full=enabled'] building_full_options = ['gstreamer-full=enabled']
endif endif
libnice_options = []
if get_option('webrtc').enabled()
libnice_options += ['gstreamer=enabled']
endif
# Ordered list of subprojects (dict has no ordering guarantees) # Ordered list of subprojects (dict has no ordering guarantees)
subprojects = [ subprojects = [
['gstreamer', {'build-hotdoc': true, 'subproject_options': building_full_options}], ['gstreamer', {'build-hotdoc': true, 'subproject_options': building_full_options}],
['gst-plugins-base', {'option': get_option('base'), 'build-hotdoc': true}], ['gst-plugins-base', {'option': get_option('base'), 'build-hotdoc': true}],
['gst-plugins-good', {'option': get_option('good'), '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-bad', { 'option': get_option('bad'), 'build-hotdoc': true}],
['gst-plugins-ugly', { 'option': get_option('ugly'), 'build-hotdoc': true}], ['gst-plugins-ugly', { 'option': get_option('ugly'), 'build-hotdoc': true}],
['gst-libav', { 'option': get_option('libav'), 'build-hotdoc': true}], ['gst-libav', { 'option': get_option('libav'), 'build-hotdoc': true}],