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

This reverts commit ebcca1e5ea.

/utf-8 is needed to deal with subprojects that we do not control.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/259>
This commit is contained in:
Nirbheek Chauhan 2021-08-30 17:21:44 +05:30
parent a31e9dcf43
commit 06869815fd

View file

@ -59,6 +59,13 @@ 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}],