Meson: Avoid using add_global_arguments() when gst-build is a subproject

Meson only allows the main project to use it. We already set that flag
in all GStreamer modules just like warning flags.

Fixes: #152
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/236>
This commit is contained in:
Xavier Claessens 2021-03-26 08:22:13 -04:00 committed by GStreamer Marge Bot
parent c24958c781
commit ebcca1e5ea

View file

@ -59,13 +59,6 @@ if not meson.is_subproject() and cc.get_id() == 'msvc'
endif endif
endif endif
# Ensure that MSVC interprets all source code as UTF-8
if cc.get_id() == 'msvc'
add_global_arguments(
cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
language: ['c', 'cpp'])
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}], ['gstreamer', {'build-hotdoc': true}],