diff options
Diffstat (limited to 'mail/thunderbird')
7 files changed, 14627 insertions, 6339 deletions
diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile index a8a5a59b9f30..787857977aa9 100644 --- a/mail/thunderbird/Makefile +++ b/mail/thunderbird/Makefile @@ -1,5 +1,5 @@ PORTNAME= thunderbird -DISTVERSION= 144.0.1 +DISTVERSION= 146.0 CATEGORIES= mail news net-im wayland MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}${DISTVERSIONSUFFIX}/source \ MOZILLA/${PORTNAME}/candidates/${DISTVERSION}${DISTVERSIONSUFFIX}-candidates/build1/source @@ -10,7 +10,7 @@ COMMENT= Mozilla Thunderbird is standalone mail and news that stands above WWW= https://www.thunderbird.net/ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ - nss>=3.116:security/nss \ + nss>=3.118:security/nss \ libevent>=2.1.8:devel/libevent \ harfbuzz>=10.1.0:print/harfbuzz \ graphite2>=1.3.14:graphics/graphite2 \ diff --git a/mail/thunderbird/distinfo b/mail/thunderbird/distinfo index 00bcef6b28be..f92b7201b100 100644 --- a/mail/thunderbird/distinfo +++ b/mail/thunderbird/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1760631198 -SHA256 (thunderbird-144.0.1.source.tar.xz) = 62dd606308ee0c3298e052c05a8fce321df3a1012628511c7aacdf7ef6b7e965 -SIZE (thunderbird-144.0.1.source.tar.xz) = 774861288 +TIMESTAMP = 1764876162 +SHA256 (thunderbird-146.0.source.tar.xz) = bd28bba1a10a709709eeaff40d605d523f58daf9f7c0d46798107129c1190c08 +SIZE (thunderbird-146.0.source.tar.xz) = 775218464 diff --git a/mail/thunderbird/files/patch-dom_media_webrtc_libwebrtc__overrides_moz.build b/mail/thunderbird/files/patch-dom_media_webrtc_libwebrtc__overrides_moz.build index d9dde78484f2..ac01cff0e211 100644 --- a/mail/thunderbird/files/patch-dom_media_webrtc_libwebrtc__overrides_moz.build +++ b/mail/thunderbird/files/patch-dom_media_webrtc_libwebrtc__overrides_moz.build @@ -7,7 +7,7 @@ diff --git dom/media/webrtc/libwebrtc_overrides/moz.build dom/media/webrtc/libwe index ed9c450e5649..1ac213e48b28 100644 --- dom/media/webrtc/libwebrtc_overrides/moz.build +++ dom/media/webrtc/libwebrtc_overrides/moz.build -@@ -34,7 +34,7 @@ UNIFIED_SOURCES += [ +@@ -49,13 +49,13 @@ "call/call_basic_stats.cc", ] @@ -16,3 +16,10 @@ index ed9c450e5649..1ac213e48b28 100644 CXXFLAGS += CONFIG["MOZ_X11_CFLAGS"] UNIFIED_SOURCES += [ "modules/desktop_capture/linux/x11/x_error_trap.cc", + ] + +-if CONFIG["TARGET_CPU"] in ("loongarch64", "ppc64"): ++if CONFIG["TARGET_CPU"] in ("loongarch64"): + UNIFIED_SOURCES += [ + "modules/desktop_capture/linux/x11/x_error_trap.cc", + ] diff --git a/mail/thunderbird/files/patch-libwebrtc-generated b/mail/thunderbird/files/patch-libwebrtc-generated index 36653d2767b8..870dbd0fc349 100644 --- a/mail/thunderbird/files/patch-libwebrtc-generated +++ b/mail/thunderbird/files/patch-libwebrtc-generated @@ -1,19 +1,27 @@ -commit 0eb76f55073b3e60ff23c617561d9ec3fe7d3587 +commit 91d5feee32ac273c405d11b7533478e125ba1b28 Author: Christoph Moench-Tegeder <cmt@FreeBSD.org> +Date: Tue Nov 25 22:46:47 2025 +0000 - regenerate FreeBSD libwebrtc patch for gecko 144 + regenerate FreeBSD libwebrtc patch for gecko 146 diff --git third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build -index 536af3b634ce..8dd2dcdb638b 100644 +index aee79e4f8762..53fb767b2713 100644 --- third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build +++ third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -30,13 +38,17 @@ index 536af3b634ce..8dd2dcdb638b 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -55,6 +67,10 @@ index 536af3b634ce..8dd2dcdb638b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -62,6 +78,10 @@ index 536af3b634ce..8dd2dcdb638b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -77,6 +97,10 @@ index 536af3b634ce..8dd2dcdb638b 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -89,6 +113,10 @@ index 536af3b634ce..8dd2dcdb638b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -119,7 +147,7 @@ index 536af3b634ce..8dd2dcdb638b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -206,16 +234,15 @@ index 536af3b634ce..8dd2dcdb638b 100644 Library("resource_adaptation_api_gn") diff --git third_party/libwebrtc/api/array_view_gn/moz.build third_party/libwebrtc/api/array_view_gn/moz.build -index aba4df15e70d..940c0813b07b 100644 +index bd1db8d43c59..b9b8f890ae52 100644 --- third_party/libwebrtc/api/array_view_gn/moz.build +++ third_party/libwebrtc/api/array_view_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -232,7 +259,7 @@ index aba4df15e70d..940c0813b07b 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -321,7 +348,7 @@ index aba4df15e70d..940c0813b07b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -347,7 +374,7 @@ index aba4df15e70d..940c0813b07b 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -389,16 +416,15 @@ index aba4df15e70d..940c0813b07b 100644 - Library("array_view_gn") diff --git third_party/libwebrtc/api/async_dns_resolver_gn/moz.build third_party/libwebrtc/api/async_dns_resolver_gn/moz.build -index 7071eaa2c55c..d06057bdb4c7 100644 +index 02d940bac470..eaca805506ef 100644 --- third_party/libwebrtc/api/async_dns_resolver_gn/moz.build +++ third_party/libwebrtc/api/async_dns_resolver_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -415,7 +441,7 @@ index 7071eaa2c55c..d06057bdb4c7 100644 FINAL_LIBRARY = "xul" -@@ -43,95 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -512,7 +538,7 @@ index 7071eaa2c55c..d06057bdb4c7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -139,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -538,7 +564,7 @@ index 7071eaa2c55c..d06057bdb4c7 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -167,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -580,16 +606,23 @@ index 7071eaa2c55c..d06057bdb4c7 100644 - Library("async_dns_resolver_gn") diff --git third_party/libwebrtc/api/audio/aec3_config_gn/moz.build third_party/libwebrtc/api/audio/aec3_config_gn/moz.build -index f45b24581d13..8d009c9065e7 100644 +index 9281d07ae0fd..6b5d596ace4a 100644 --- third_party/libwebrtc/api/audio/aec3_config_gn/moz.build +++ third_party/libwebrtc/api/audio/aec3_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -606,13 +639,17 @@ index f45b24581d13..8d009c9065e7 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -631,6 +668,10 @@ index f45b24581d13..8d009c9065e7 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -638,6 +679,10 @@ index f45b24581d13..8d009c9065e7 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -653,6 +698,10 @@ index f45b24581d13..8d009c9065e7 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -665,6 +714,10 @@ index f45b24581d13..8d009c9065e7 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -695,7 +748,7 @@ index f45b24581d13..8d009c9065e7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -782,16 +835,23 @@ index f45b24581d13..8d009c9065e7 100644 Library("aec3_config_gn") diff --git third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build -index 876aa9af22a9..af845805eb4a 100644 +index 21a38089fa53..9edfe25c428b 100644 --- third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build +++ third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -809,13 +869,17 @@ index 876aa9af22a9..af845805eb4a 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -834,6 +898,10 @@ index 876aa9af22a9..af845805eb4a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -841,6 +909,10 @@ index 876aa9af22a9..af845805eb4a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -854,12 +926,12 @@ index 876aa9af22a9..af845805eb4a 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -872,6 +944,10 @@ index 876aa9af22a9..af845805eb4a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -909,7 +985,7 @@ index 876aa9af22a9..af845805eb4a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -967,10 +1043,10 @@ index 876aa9af22a9..af845805eb4a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -981,10 +1057,10 @@ index 876aa9af22a9..af845805eb4a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -996,16 +1072,15 @@ index 876aa9af22a9..af845805eb4a 100644 Library("aec3_factory_gn") diff --git third_party/libwebrtc/api/audio/audio_device_gn/moz.build third_party/libwebrtc/api/audio/audio_device_gn/moz.build -index 4adeb31f19ea..dcaf6e34ca7f 100644 +index ec9e287800f9..8406c1f27370 100644 --- third_party/libwebrtc/api/audio/audio_device_gn/moz.build +++ third_party/libwebrtc/api/audio/audio_device_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -1022,7 +1097,7 @@ index 4adeb31f19ea..dcaf6e34ca7f 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -1111,7 +1186,7 @@ index 4adeb31f19ea..dcaf6e34ca7f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -1137,7 +1212,7 @@ index 4adeb31f19ea..dcaf6e34ca7f 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -1179,16 +1254,23 @@ index 4adeb31f19ea..dcaf6e34ca7f 100644 - Library("audio_device_gn") diff --git third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build -index b48e1554ff0c..4a0992b45863 100644 +index 48004d56d26c..eead287814ee 100644 --- third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build +++ third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -1205,13 +1287,17 @@ index b48e1554ff0c..4a0992b45863 100644 FINAL_LIBRARY = "xul" -@@ -48,94 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -1230,6 +1316,10 @@ index b48e1554ff0c..4a0992b45863 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -1237,6 +1327,10 @@ index b48e1554ff0c..4a0992b45863 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -1252,6 +1346,10 @@ index b48e1554ff0c..4a0992b45863 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -1264,6 +1362,10 @@ index b48e1554ff0c..4a0992b45863 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -1301,7 +1403,7 @@ index b48e1554ff0c..4a0992b45863 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -1359,10 +1461,10 @@ index b48e1554ff0c..4a0992b45863 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -1373,10 +1475,10 @@ index b48e1554ff0c..4a0992b45863 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -1388,16 +1490,15 @@ index b48e1554ff0c..4a0992b45863 100644 Library("audio_frame_api_gn") diff --git third_party/libwebrtc/api/audio/audio_frame_processor_gn/moz.build third_party/libwebrtc/api/audio/audio_frame_processor_gn/moz.build -index 4ade24b607cf..a862046a5e03 100644 +index e24b887aca02..afe5ea321104 100644 --- third_party/libwebrtc/api/audio/audio_frame_processor_gn/moz.build +++ third_party/libwebrtc/api/audio/audio_frame_processor_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -1414,7 +1515,7 @@ index 4ade24b607cf..a862046a5e03 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -1499,7 +1600,7 @@ index 4ade24b607cf..a862046a5e03 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -1525,7 +1626,7 @@ index 4ade24b607cf..a862046a5e03 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -1567,16 +1668,15 @@ index 4ade24b607cf..a862046a5e03 100644 - Library("audio_frame_processor_gn") diff --git third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build -index e09b103e5937..e4f8ac284c15 100644 +index c71e4aefc473..d5094f32fe87 100644 --- third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build +++ third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -1593,7 +1693,7 @@ index e09b103e5937..e4f8ac284c15 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -1689,7 +1789,7 @@ index e09b103e5937..e4f8ac284c15 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -1715,7 +1815,7 @@ index e09b103e5937..e4f8ac284c15 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -1757,16 +1857,23 @@ index e09b103e5937..e4f8ac284c15 100644 - Library("audio_mixer_api_gn") diff --git third_party/libwebrtc/api/audio/audio_processing_gn/moz.build third_party/libwebrtc/api/audio/audio_processing_gn/moz.build -index f4aae5e715d8..d7a94ce58f8f 100644 +index d978579b2abd..8ca9f207ec62 100644 --- third_party/libwebrtc/api/audio/audio_processing_gn/moz.build +++ third_party/libwebrtc/api/audio/audio_processing_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -1783,13 +1890,17 @@ index f4aae5e715d8..d7a94ce58f8f 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -1808,6 +1919,10 @@ index f4aae5e715d8..d7a94ce58f8f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -1815,6 +1930,10 @@ index f4aae5e715d8..d7a94ce58f8f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -1828,12 +1947,12 @@ index f4aae5e715d8..d7a94ce58f8f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -1846,6 +1965,10 @@ index f4aae5e715d8..d7a94ce58f8f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -1883,7 +2006,7 @@ index f4aae5e715d8..d7a94ce58f8f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -1941,10 +2064,10 @@ index f4aae5e715d8..d7a94ce58f8f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -1955,10 +2078,10 @@ index f4aae5e715d8..d7a94ce58f8f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -1970,16 +2093,23 @@ index f4aae5e715d8..d7a94ce58f8f 100644 Library("audio_processing_gn") diff --git third_party/libwebrtc/api/audio/audio_processing_statistics_gn/moz.build third_party/libwebrtc/api/audio/audio_processing_statistics_gn/moz.build -index 7e5b71d14cb2..28ea7419731a 100644 +index bcbad6855330..fc175bc15db7 100644 --- third_party/libwebrtc/api/audio/audio_processing_statistics_gn/moz.build +++ third_party/libwebrtc/api/audio/audio_processing_statistics_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -1996,13 +2126,17 @@ index 7e5b71d14cb2..28ea7419731a 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -2017,6 +2151,10 @@ index 7e5b71d14cb2..28ea7419731a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -2024,6 +2162,10 @@ index 7e5b71d14cb2..28ea7419731a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -2039,6 +2181,10 @@ index 7e5b71d14cb2..28ea7419731a 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -2051,6 +2197,10 @@ index 7e5b71d14cb2..28ea7419731a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -2081,7 +2231,7 @@ index 7e5b71d14cb2..28ea7419731a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -2139,10 +2289,10 @@ index 7e5b71d14cb2..28ea7419731a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -2153,10 +2303,10 @@ index 7e5b71d14cb2..28ea7419731a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -2168,16 +2318,23 @@ index 7e5b71d14cb2..28ea7419731a 100644 Library("audio_processing_statistics_gn") diff --git third_party/libwebrtc/api/audio/builtin_audio_processing_builder_gn/moz.build third_party/libwebrtc/api/audio/builtin_audio_processing_builder_gn/moz.build -index dd674794a7ea..5cc994ae13d3 100644 +index 91819267ea18..190da4597629 100644 --- third_party/libwebrtc/api/audio/builtin_audio_processing_builder_gn/moz.build +++ third_party/libwebrtc/api/audio/builtin_audio_processing_builder_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -2195,13 +2352,17 @@ index dd674794a7ea..5cc994ae13d3 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -2220,6 +2381,10 @@ index dd674794a7ea..5cc994ae13d3 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -2227,6 +2392,10 @@ index dd674794a7ea..5cc994ae13d3 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -2240,12 +2409,12 @@ index dd674794a7ea..5cc994ae13d3 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -2258,6 +2427,10 @@ index dd674794a7ea..5cc994ae13d3 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -2295,7 +2468,7 @@ index dd674794a7ea..5cc994ae13d3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -2353,10 +2526,10 @@ index dd674794a7ea..5cc994ae13d3 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -2367,10 +2540,10 @@ index dd674794a7ea..5cc994ae13d3 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -2382,16 +2555,15 @@ index dd674794a7ea..5cc994ae13d3 100644 Library("builtin_audio_processing_builder_gn") diff --git third_party/libwebrtc/api/audio/echo_control_gn/moz.build third_party/libwebrtc/api/audio/echo_control_gn/moz.build -index 106400ba7d20..d6be6247afbe 100644 +index 0447b43cda76..e63333ff3a68 100644 --- third_party/libwebrtc/api/audio/echo_control_gn/moz.build +++ third_party/libwebrtc/api/audio/echo_control_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -2408,7 +2580,7 @@ index 106400ba7d20..d6be6247afbe 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -2453,10 +2625,6 @@ index 106400ba7d20..d6be6247afbe 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -2508,7 +2676,7 @@ index 106400ba7d20..d6be6247afbe 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -2534,7 +2702,7 @@ index 106400ba7d20..d6be6247afbe 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -2576,16 +2744,23 @@ index 106400ba7d20..d6be6247afbe 100644 - Library("echo_control_gn") diff --git third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build -index 3b39cbbb06a1..56d960820e9a 100644 +index ddc08b43582a..3474430e39d6 100644 --- third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -2602,13 +2777,17 @@ index 3b39cbbb06a1..56d960820e9a 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -2627,6 +2806,10 @@ index 3b39cbbb06a1..56d960820e9a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -2634,6 +2817,10 @@ index 3b39cbbb06a1..56d960820e9a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -2647,12 +2834,12 @@ index 3b39cbbb06a1..56d960820e9a 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -2665,6 +2852,10 @@ index 3b39cbbb06a1..56d960820e9a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -2702,7 +2893,7 @@ index 3b39cbbb06a1..56d960820e9a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -2760,10 +2951,10 @@ index 3b39cbbb06a1..56d960820e9a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -2774,10 +2965,10 @@ index 3b39cbbb06a1..56d960820e9a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -2789,16 +2980,23 @@ index 3b39cbbb06a1..56d960820e9a 100644 Library("audio_decoder_L16_gn") diff --git third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build -index 7617d7f5292b..16437f45293b 100644 +index 4f20b35f175a..c897f5d972c6 100644 --- third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -2815,13 +3013,17 @@ index 7617d7f5292b..16437f45293b 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -2840,6 +3042,10 @@ index 7617d7f5292b..16437f45293b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -2847,6 +3053,10 @@ index 7617d7f5292b..16437f45293b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -2860,12 +3070,12 @@ index 7617d7f5292b..16437f45293b 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -2878,6 +3088,10 @@ index 7617d7f5292b..16437f45293b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -2915,7 +3129,7 @@ index 7617d7f5292b..16437f45293b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -2973,10 +3187,10 @@ index 7617d7f5292b..16437f45293b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -2987,10 +3201,10 @@ index 7617d7f5292b..16437f45293b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -3002,16 +3216,23 @@ index 7617d7f5292b..16437f45293b 100644 Library("audio_encoder_L16_gn") diff --git third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build -index 33ba61c29758..5d8a792fe980 100644 +index 34219b497edb..f92b57a92fad 100644 --- third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -3028,13 +3249,17 @@ index 33ba61c29758..5d8a792fe980 100644 FINAL_LIBRARY = "xul" -@@ -50,98 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -3053,6 +3278,10 @@ index 33ba61c29758..5d8a792fe980 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -3060,6 +3289,10 @@ index 33ba61c29758..5d8a792fe980 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -3073,12 +3306,12 @@ index 33ba61c29758..5d8a792fe980 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -3091,6 +3324,10 @@ index 33ba61c29758..5d8a792fe980 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -3128,7 +3365,7 @@ index 33ba61c29758..5d8a792fe980 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -3186,10 +3423,10 @@ index 33ba61c29758..5d8a792fe980 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -3200,10 +3437,10 @@ index 33ba61c29758..5d8a792fe980 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -3215,16 +3452,23 @@ index 33ba61c29758..5d8a792fe980 100644 Library("audio_codecs_api_gn") diff --git third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build -index 2b6ee1be7a06..ba988ddb42a8 100644 +index dd1fb2ab90f9..9ca2d1b9cc08 100644 --- third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -3242,13 +3486,17 @@ index 2b6ee1be7a06..ba988ddb42a8 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -3267,6 +3515,10 @@ index 2b6ee1be7a06..ba988ddb42a8 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -3274,6 +3526,10 @@ index 2b6ee1be7a06..ba988ddb42a8 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -3287,12 +3543,12 @@ index 2b6ee1be7a06..ba988ddb42a8 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -3305,6 +3561,10 @@ index 2b6ee1be7a06..ba988ddb42a8 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -3342,7 +3602,7 @@ index 2b6ee1be7a06..ba988ddb42a8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -3400,10 +3660,10 @@ index 2b6ee1be7a06..ba988ddb42a8 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -3414,10 +3674,10 @@ index 2b6ee1be7a06..ba988ddb42a8 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -3429,16 +3689,23 @@ index 2b6ee1be7a06..ba988ddb42a8 100644 Library("builtin_audio_decoder_factory_gn") diff --git third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build -index 628c8fa7fdf8..5ca23f309ccd 100644 +index 5c50f1d023a5..f4d3b969a2d8 100644 --- third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -3456,13 +3723,17 @@ index 628c8fa7fdf8..5ca23f309ccd 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -3481,6 +3752,10 @@ index 628c8fa7fdf8..5ca23f309ccd 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -3488,6 +3763,10 @@ index 628c8fa7fdf8..5ca23f309ccd 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -3501,12 +3780,12 @@ index 628c8fa7fdf8..5ca23f309ccd 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -3519,6 +3798,10 @@ index 628c8fa7fdf8..5ca23f309ccd 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -3556,7 +3839,7 @@ index 628c8fa7fdf8..5ca23f309ccd 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -3614,10 +3897,10 @@ index 628c8fa7fdf8..5ca23f309ccd 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -3628,10 +3911,10 @@ index 628c8fa7fdf8..5ca23f309ccd 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -3643,16 +3926,23 @@ index 628c8fa7fdf8..5ca23f309ccd 100644 Library("builtin_audio_encoder_factory_gn") diff --git third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build -index d043d987206f..a444480062b2 100644 +index ff5f3ef6bb92..4ad68a39c2ef 100644 --- third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -3669,13 +3959,17 @@ index d043d987206f..a444480062b2 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -3694,6 +3988,10 @@ index d043d987206f..a444480062b2 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -3701,6 +3999,10 @@ index d043d987206f..a444480062b2 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -3714,12 +4016,12 @@ index d043d987206f..a444480062b2 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -3732,6 +4034,10 @@ index d043d987206f..a444480062b2 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -3769,7 +4075,7 @@ index d043d987206f..a444480062b2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -3827,10 +4133,10 @@ index d043d987206f..a444480062b2 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -3841,10 +4147,10 @@ index d043d987206f..a444480062b2 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -3856,16 +4162,23 @@ index d043d987206f..a444480062b2 100644 Library("audio_decoder_g711_gn") diff --git third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build -index 7f2378a655e9..d566e9583f66 100644 +index e06f9a48fb40..29c1063fe54f 100644 --- third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -3882,13 +4195,17 @@ index 7f2378a655e9..d566e9583f66 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -3907,6 +4224,10 @@ index 7f2378a655e9..d566e9583f66 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -3914,6 +4235,10 @@ index 7f2378a655e9..d566e9583f66 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -3927,12 +4252,12 @@ index 7f2378a655e9..d566e9583f66 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -3945,6 +4270,10 @@ index 7f2378a655e9..d566e9583f66 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -3982,7 +4311,7 @@ index 7f2378a655e9..d566e9583f66 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -4040,10 +4369,10 @@ index 7f2378a655e9..d566e9583f66 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -4054,10 +4383,10 @@ index 7f2378a655e9..d566e9583f66 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -4069,16 +4398,23 @@ index 7f2378a655e9..d566e9583f66 100644 Library("audio_encoder_g711_gn") diff --git third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build -index 5896f29065e1..76234946c946 100644 +index 3bf3cbe2d4c3..57d954de06c2 100644 --- third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -4095,13 +4431,17 @@ index 5896f29065e1..76234946c946 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -4120,6 +4460,10 @@ index 5896f29065e1..76234946c946 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -4127,6 +4471,10 @@ index 5896f29065e1..76234946c946 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -4140,12 +4488,12 @@ index 5896f29065e1..76234946c946 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -4158,6 +4506,10 @@ index 5896f29065e1..76234946c946 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -4195,7 +4547,7 @@ index 5896f29065e1..76234946c946 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -4253,10 +4605,10 @@ index 5896f29065e1..76234946c946 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -4267,10 +4619,10 @@ index 5896f29065e1..76234946c946 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -4282,16 +4634,15 @@ index 5896f29065e1..76234946c946 100644 Library("audio_decoder_g722_gn") diff --git third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_config_gn/moz.build third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_config_gn/moz.build -index a1c6b85d2319..d6c5f698a095 100644 +index 69b390a8d78d..da241ca25304 100644 --- third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_config_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -4308,7 +4659,7 @@ index a1c6b85d2319..d6c5f698a095 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -4353,10 +4704,6 @@ index a1c6b85d2319..d6c5f698a095 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -4408,7 +4755,7 @@ index a1c6b85d2319..d6c5f698a095 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -4434,7 +4781,7 @@ index a1c6b85d2319..d6c5f698a095 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -4476,16 +4823,23 @@ index a1c6b85d2319..d6c5f698a095 100644 - Library("audio_encoder_g722_config_gn") diff --git third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build -index 462adb64213a..d0e14032612c 100644 +index 4a214578903a..b263dc5c5671 100644 --- third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -4502,13 +4856,17 @@ index 462adb64213a..d0e14032612c 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -4527,6 +4885,10 @@ index 462adb64213a..d0e14032612c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -4534,6 +4896,10 @@ index 462adb64213a..d0e14032612c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -4547,12 +4913,12 @@ index 462adb64213a..d0e14032612c 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -4565,6 +4931,10 @@ index 462adb64213a..d0e14032612c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -4602,7 +4972,7 @@ index 462adb64213a..d0e14032612c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -4660,10 +5030,10 @@ index 462adb64213a..d0e14032612c 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -4674,10 +5044,10 @@ index 462adb64213a..d0e14032612c 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -4689,16 +5059,23 @@ index 462adb64213a..d0e14032612c 100644 Library("audio_encoder_g722_gn") diff --git third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build -index 4e00beaa4415..f2d3cd506e8f 100644 +index 7cdb268dfead..516dbbf91567 100644 --- third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -4715,13 +5092,17 @@ index 4e00beaa4415..f2d3cd506e8f 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -4740,6 +5121,10 @@ index 4e00beaa4415..f2d3cd506e8f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -4747,6 +5132,10 @@ index 4e00beaa4415..f2d3cd506e8f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -4760,12 +5149,12 @@ index 4e00beaa4415..f2d3cd506e8f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -4778,6 +5167,10 @@ index 4e00beaa4415..f2d3cd506e8f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -4815,7 +5208,7 @@ index 4e00beaa4415..f2d3cd506e8f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -4873,10 +5266,10 @@ index 4e00beaa4415..f2d3cd506e8f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -4887,10 +5280,10 @@ index 4e00beaa4415..f2d3cd506e8f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -4902,16 +5295,15 @@ index 4e00beaa4415..f2d3cd506e8f 100644 Library("audio_decoder_multiopus_gn") diff --git third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_config_gn/moz.build third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_config_gn/moz.build -index 27ee924f238e..8d6c5a275846 100644 +index 0de46076d269..7f2da454fead 100644 --- third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_config_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -4928,7 +5320,7 @@ index 27ee924f238e..8d6c5a275846 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -4973,10 +5365,6 @@ index 27ee924f238e..8d6c5a275846 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -5028,7 +5416,7 @@ index 27ee924f238e..8d6c5a275846 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -5054,7 +5442,7 @@ index 27ee924f238e..8d6c5a275846 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -5096,16 +5484,23 @@ index 27ee924f238e..8d6c5a275846 100644 - Library("audio_decoder_opus_config_gn") diff --git third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build -index 53bc3478a40b..308709799635 100644 +index ff8d5a8a045d..4eb2e353971f 100644 --- third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -5122,13 +5517,17 @@ index 53bc3478a40b..308709799635 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -5147,6 +5546,10 @@ index 53bc3478a40b..308709799635 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -5154,6 +5557,10 @@ index 53bc3478a40b..308709799635 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -5167,12 +5574,12 @@ index 53bc3478a40b..308709799635 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -5185,6 +5592,10 @@ index 53bc3478a40b..308709799635 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -5222,7 +5633,7 @@ index 53bc3478a40b..308709799635 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -5280,10 +5691,10 @@ index 53bc3478a40b..308709799635 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -5294,10 +5705,10 @@ index 53bc3478a40b..308709799635 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -5309,16 +5720,23 @@ index 53bc3478a40b..308709799635 100644 Library("audio_decoder_opus_gn") diff --git third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build -index 2925c9a25583..0dc3b552177f 100644 +index d8667c0e683b..1c7456f0533e 100644 --- third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -5335,13 +5753,17 @@ index 2925c9a25583..0dc3b552177f 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -5360,6 +5782,10 @@ index 2925c9a25583..0dc3b552177f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -5367,6 +5793,10 @@ index 2925c9a25583..0dc3b552177f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -5380,12 +5810,12 @@ index 2925c9a25583..0dc3b552177f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -5398,6 +5828,10 @@ index 2925c9a25583..0dc3b552177f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -5435,7 +5869,7 @@ index 2925c9a25583..0dc3b552177f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -5493,10 +5927,10 @@ index 2925c9a25583..0dc3b552177f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -5507,10 +5941,10 @@ index 2925c9a25583..0dc3b552177f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -5522,16 +5956,23 @@ index 2925c9a25583..0dc3b552177f 100644 Library("audio_encoder_multiopus_gn") diff --git third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build -index 9c1242829070..ccf44f091517 100644 +index 228087036228..9cbb90f8404c 100644 --- third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -5549,13 +5990,17 @@ index 9c1242829070..ccf44f091517 100644 FINAL_LIBRARY = "xul" -@@ -52,98 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -51,114 +64,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -5574,6 +6019,10 @@ index 9c1242829070..ccf44f091517 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -5581,6 +6030,10 @@ index 9c1242829070..ccf44f091517 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -5594,12 +6047,12 @@ index 9c1242829070..ccf44f091517 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -5612,6 +6065,10 @@ index 9c1242829070..ccf44f091517 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -5649,7 +6106,7 @@ index 9c1242829070..ccf44f091517 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -151,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -166,82 +72,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -5707,10 +6164,10 @@ index 9c1242829070..ccf44f091517 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -5721,10 +6178,10 @@ index 9c1242829070..ccf44f091517 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -5736,16 +6193,23 @@ index 9c1242829070..ccf44f091517 100644 Library("audio_encoder_opus_config_gn") diff --git third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build -index 05030b6b5a9d..bbe9861edb7b 100644 +index 768f143888a3..82aae85d04c3 100644 --- third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -5762,13 +6226,17 @@ index 05030b6b5a9d..bbe9861edb7b 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -5787,6 +6255,10 @@ index 05030b6b5a9d..bbe9861edb7b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -5794,6 +6266,10 @@ index 05030b6b5a9d..bbe9861edb7b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -5807,12 +6283,12 @@ index 05030b6b5a9d..bbe9861edb7b 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -5825,6 +6301,10 @@ index 05030b6b5a9d..bbe9861edb7b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -5862,7 +6342,7 @@ index 05030b6b5a9d..bbe9861edb7b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -5920,10 +6400,10 @@ index 05030b6b5a9d..bbe9861edb7b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -5934,10 +6414,10 @@ index 05030b6b5a9d..bbe9861edb7b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -5949,16 +6429,23 @@ index 05030b6b5a9d..bbe9861edb7b 100644 Library("audio_encoder_opus_gn") diff --git third_party/libwebrtc/api/audio_codecs/opus_audio_decoder_factory_gn/moz.build third_party/libwebrtc/api/audio_codecs/opus_audio_decoder_factory_gn/moz.build -index 1f23f978e95d..b1540a52dfae 100644 +index 29253b42c50c..093987e65a08 100644 --- third_party/libwebrtc/api/audio_codecs/opus_audio_decoder_factory_gn/moz.build +++ third_party/libwebrtc/api/audio_codecs/opus_audio_decoder_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -5975,13 +6462,17 @@ index 1f23f978e95d..b1540a52dfae 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -6000,6 +6491,10 @@ index 1f23f978e95d..b1540a52dfae 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -6007,6 +6502,10 @@ index 1f23f978e95d..b1540a52dfae 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -6020,12 +6519,12 @@ index 1f23f978e95d..b1540a52dfae 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -6038,6 +6537,10 @@ index 1f23f978e95d..b1540a52dfae 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -6075,7 +6578,7 @@ index 1f23f978e95d..b1540a52dfae 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -6133,10 +6636,10 @@ index 1f23f978e95d..b1540a52dfae 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -6147,10 +6650,10 @@ index 1f23f978e95d..b1540a52dfae 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -6162,16 +6665,23 @@ index 1f23f978e95d..b1540a52dfae 100644 Library("opus_audio_decoder_factory_gn") diff --git third_party/libwebrtc/api/audio_options_api_gn/moz.build third_party/libwebrtc/api/audio_options_api_gn/moz.build -index d5f2fbaa23c2..576652c339f6 100644 +index 13401fe31fc3..335c9e764a18 100644 --- third_party/libwebrtc/api/audio_options_api_gn/moz.build +++ third_party/libwebrtc/api/audio_options_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -6188,13 +6698,17 @@ index d5f2fbaa23c2..576652c339f6 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -6213,6 +6727,10 @@ index d5f2fbaa23c2..576652c339f6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -6220,6 +6738,10 @@ index d5f2fbaa23c2..576652c339f6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -6235,6 +6757,10 @@ index d5f2fbaa23c2..576652c339f6 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -6247,6 +6773,10 @@ index d5f2fbaa23c2..576652c339f6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -6277,7 +6807,7 @@ index d5f2fbaa23c2..576652c339f6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -6364,16 +6894,15 @@ index d5f2fbaa23c2..576652c339f6 100644 Library("audio_options_api_gn") diff --git third_party/libwebrtc/api/bitrate_allocation_gn/moz.build third_party/libwebrtc/api/bitrate_allocation_gn/moz.build -index d77ac1a3c024..067cf0a3566b 100644 +index d82b6d36d152..0534696d9a46 100644 --- third_party/libwebrtc/api/bitrate_allocation_gn/moz.build +++ third_party/libwebrtc/api/bitrate_allocation_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -6390,7 +6919,7 @@ index d77ac1a3c024..067cf0a3566b 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -6479,7 +7008,7 @@ index d77ac1a3c024..067cf0a3566b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -6505,7 +7034,7 @@ index d77ac1a3c024..067cf0a3566b 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -6547,16 +7076,15 @@ index d77ac1a3c024..067cf0a3566b 100644 - Library("bitrate_allocation_gn") diff --git third_party/libwebrtc/api/call_api_gn/moz.build third_party/libwebrtc/api/call_api_gn/moz.build -index e3860a2d5cb0..01913d2a42d6 100644 +index 705bf2e04244..52ae9a5aaa46 100644 --- third_party/libwebrtc/api/call_api_gn/moz.build +++ third_party/libwebrtc/api/call_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -6573,7 +7101,7 @@ index e3860a2d5cb0..01913d2a42d6 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -6658,7 +7186,7 @@ index e3860a2d5cb0..01913d2a42d6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -6684,7 +7212,7 @@ index e3860a2d5cb0..01913d2a42d6 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -6726,16 +7254,15 @@ index e3860a2d5cb0..01913d2a42d6 100644 - Library("call_api_gn") diff --git third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build -index 03536897a3e5..7d4e36cffba6 100644 +index 2c37fab92885..eb610c5ae493 100644 --- third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build +++ third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -6752,7 +7279,7 @@ index 03536897a3e5..7d4e36cffba6 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -6841,7 +7368,7 @@ index 03536897a3e5..7d4e36cffba6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -6867,7 +7394,7 @@ index 03536897a3e5..7d4e36cffba6 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -6909,16 +7436,15 @@ index 03536897a3e5..7d4e36cffba6 100644 - Library("frame_decryptor_interface_gn") diff --git third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build -index ce2ccba3ddd9..3424ea2600f3 100644 +index 1e581de158e2..f470e1833365 100644 --- third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build +++ third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -6935,7 +7461,7 @@ index ce2ccba3ddd9..3424ea2600f3 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -7024,7 +7550,7 @@ index ce2ccba3ddd9..3424ea2600f3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -7050,7 +7576,7 @@ index ce2ccba3ddd9..3424ea2600f3 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -7092,16 +7618,23 @@ index ce2ccba3ddd9..3424ea2600f3 100644 - Library("frame_encryptor_interface_gn") diff --git third_party/libwebrtc/api/crypto/options_gn/moz.build third_party/libwebrtc/api/crypto/options_gn/moz.build -index f4884cef3781..087517688a6e 100644 +index c5a963140c3b..eb08976e0155 100644 --- third_party/libwebrtc/api/crypto/options_gn/moz.build +++ third_party/libwebrtc/api/crypto/options_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -7118,13 +7651,17 @@ index f4884cef3781..087517688a6e 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -7143,6 +7680,10 @@ index f4884cef3781..087517688a6e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -7150,6 +7691,10 @@ index f4884cef3781..087517688a6e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -7165,6 +7710,10 @@ index f4884cef3781..087517688a6e 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -7177,6 +7726,10 @@ index f4884cef3781..087517688a6e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -7207,7 +7760,7 @@ index f4884cef3781..087517688a6e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -7294,16 +7847,23 @@ index f4884cef3781..087517688a6e 100644 Library("options_gn") diff --git third_party/libwebrtc/api/environment/environment_factory_gn/moz.build third_party/libwebrtc/api/environment/environment_factory_gn/moz.build -index 7e6c65433342..84ed2cb20f4b 100644 +index bfe66c238792..fa0977f74725 100644 --- third_party/libwebrtc/api/environment/environment_factory_gn/moz.build +++ third_party/libwebrtc/api/environment/environment_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -7320,13 +7880,17 @@ index 7e6c65433342..84ed2cb20f4b 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -7345,6 +7909,10 @@ index 7e6c65433342..84ed2cb20f4b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -7352,6 +7920,10 @@ index 7e6c65433342..84ed2cb20f4b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -7365,12 +7937,12 @@ index 7e6c65433342..84ed2cb20f4b 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -7383,6 +7955,10 @@ index 7e6c65433342..84ed2cb20f4b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -7420,7 +7996,7 @@ index 7e6c65433342..84ed2cb20f4b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -7478,10 +8054,10 @@ index 7e6c65433342..84ed2cb20f4b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -7492,10 +8068,10 @@ index 7e6c65433342..84ed2cb20f4b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -7507,16 +8083,15 @@ index 7e6c65433342..84ed2cb20f4b 100644 Library("environment_factory_gn") diff --git third_party/libwebrtc/api/environment/environment_gn/moz.build third_party/libwebrtc/api/environment/environment_gn/moz.build -index 218ae3ae9afa..8476399ec931 100644 +index 07ce4e1dbb2a..beaf734ba830 100644 --- third_party/libwebrtc/api/environment/environment_gn/moz.build +++ third_party/libwebrtc/api/environment/environment_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -7533,7 +8108,7 @@ index 218ae3ae9afa..8476399ec931 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -7578,10 +8153,6 @@ index 218ae3ae9afa..8476399ec931 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -7633,7 +8204,7 @@ index 218ae3ae9afa..8476399ec931 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -7659,7 +8230,7 @@ index 218ae3ae9afa..8476399ec931 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -7701,16 +8272,15 @@ index 218ae3ae9afa..8476399ec931 100644 - Library("environment_gn") diff --git third_party/libwebrtc/api/fec_controller_api_gn/moz.build third_party/libwebrtc/api/fec_controller_api_gn/moz.build -index d5887f3d6587..4c1fa1a08737 100644 +index 5313c0045ec2..aab46b963082 100644 --- third_party/libwebrtc/api/fec_controller_api_gn/moz.build +++ third_party/libwebrtc/api/fec_controller_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -7727,7 +8297,7 @@ index d5887f3d6587..4c1fa1a08737 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -7772,10 +8342,6 @@ index d5887f3d6587..4c1fa1a08737 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -7827,7 +8393,7 @@ index d5887f3d6587..4c1fa1a08737 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -7853,7 +8419,7 @@ index d5887f3d6587..4c1fa1a08737 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -7895,16 +8461,23 @@ index d5887f3d6587..4c1fa1a08737 100644 - Library("fec_controller_api_gn") diff --git third_party/libwebrtc/api/field_trials_registry_gn/moz.build third_party/libwebrtc/api/field_trials_registry_gn/moz.build -index ad9c82b1bb7b..9fe42408ce7d 100644 +index 37de6d110f27..86f276f7dee2 100644 --- third_party/libwebrtc/api/field_trials_registry_gn/moz.build +++ third_party/libwebrtc/api/field_trials_registry_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -7921,13 +8494,17 @@ index ad9c82b1bb7b..9fe42408ce7d 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -7946,6 +8523,10 @@ index ad9c82b1bb7b..9fe42408ce7d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -7953,6 +8534,10 @@ index ad9c82b1bb7b..9fe42408ce7d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -7968,6 +8553,10 @@ index ad9c82b1bb7b..9fe42408ce7d 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -7980,6 +8569,10 @@ index ad9c82b1bb7b..9fe42408ce7d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -8017,7 +8610,7 @@ index ad9c82b1bb7b..9fe42408ce7d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -8075,10 +8668,10 @@ index ad9c82b1bb7b..9fe42408ce7d 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -8089,10 +8682,10 @@ index ad9c82b1bb7b..9fe42408ce7d 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -8104,16 +8697,15 @@ index ad9c82b1bb7b..9fe42408ce7d 100644 Library("field_trials_registry_gn") diff --git third_party/libwebrtc/api/field_trials_view_gn/moz.build third_party/libwebrtc/api/field_trials_view_gn/moz.build -index 1e9a1e7a666a..3fa9f12b8585 100644 +index d229ad4b07f7..7f3c05488404 100644 --- third_party/libwebrtc/api/field_trials_view_gn/moz.build +++ third_party/libwebrtc/api/field_trials_view_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -8130,7 +8722,7 @@ index 1e9a1e7a666a..3fa9f12b8585 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -8215,7 +8807,7 @@ index 1e9a1e7a666a..3fa9f12b8585 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -8241,7 +8833,7 @@ index 1e9a1e7a666a..3fa9f12b8585 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -8282,17 +8874,24 @@ index 1e9a1e7a666a..3fa9f12b8585 100644 - DEFINES["_GNU_SOURCE"] = True - Library("field_trials_view_gn") -diff --git third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build -index d472124f0a40..ac2df5b26adf 100644 ---- third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build -+++ third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +diff --git third_party/libwebrtc/api/frame_transformer_factory_gn/moz.build third_party/libwebrtc/api/frame_transformer_factory_gn/moz.build +index 98cf27b280d5..169cbd285741 100644 +--- third_party/libwebrtc/api/frame_transformer_factory_gn/moz.build ++++ third_party/libwebrtc/api/frame_transformer_factory_gn/moz.build +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -8309,13 +8908,17 @@ index d472124f0a40..ac2df5b26adf 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -8329,11 +8932,16 @@ index d472124f0a40..ac2df5b26adf 100644 - DEFINES["__STDC_FORMAT_MACROS"] = True - - OS_LIBS += [ +- "GLESv2", - "log" - ] - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -8341,6 +8949,10 @@ index d472124f0a40..ac2df5b26adf 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -8354,12 +8966,12 @@ index d472124f0a40..ac2df5b26adf 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -8372,6 +8984,10 @@ index d472124f0a40..ac2df5b26adf 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -8409,7 +9025,7 @@ index d472124f0a40..ac2df5b26adf 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -8467,24 +9083,260 @@ index d472124f0a40..ac2df5b26adf 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - +- CXXFLAGS += [ +- "-msse2" +- ] +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +- CXXFLAGS += [ "-msse2" ] --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": +- DEFINES["_GNU_SOURCE"] = True ++ DEFINES["WEBRTC_ENABLE_AVX2"] = True + +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": ++if CONFIG["TARGET_CPU"] == "x86_64": + +- DEFINES["_GNU_SOURCE"] = True ++ DEFINES["WEBRTC_ENABLE_AVX2"] = True + + Library("frame_transformer_factory_gn") +diff --git third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build +index 6b6749937d6a..fb36a9f6a884 100644 +--- third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build ++++ third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" + DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" + DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True + DEFINES["RTC_ENABLE_VP9"] = True ++DEFINES["USE_GLIB"] = "1" ++DEFINES["USE_OZONE"] = "1" ++DEFINES["WEBRTC_BSD"] = True + DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" + DEFINES["WEBRTC_LIBRARY_IMPL"] = True + DEFINES["WEBRTC_MOZILLA_BUILD"] = True + DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" ++DEFINES["WEBRTC_POSIX"] = True + DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" ++DEFINES["_FILE_OFFSET_BITS"] = "64" ++DEFINES["_LARGEFILE64_SOURCE"] = True ++DEFINES["_LARGEFILE_SOURCE"] = True + DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE" ++DEFINES["__STDC_CONSTANT_MACROS"] = True ++DEFINES["__STDC_FORMAT_MACROS"] = True + + FINAL_LIBRARY = "xul" + +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: + if CONFIG["MOZ_DEBUG"] == "1": + + DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" +- +-if CONFIG["OS_TARGET"] == "Android": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] - +- DEFINES["ANDROID"] = True +- DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" +- DEFINES["HAVE_SYS_UIO_H"] = True +- DEFINES["WEBRTC_ANDROID"] = True +- DEFINES["WEBRTC_ANDROID_OPENSLES"] = True +- DEFINES["WEBRTC_LINUX"] = True +- DEFINES["WEBRTC_POSIX"] = True - DEFINES["_GNU_SOURCE"] = True +- DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": +- OS_LIBS += [ +- "log" +- ] +- +-if CONFIG["OS_TARGET"] == "Darwin": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["WEBRTC_MAC"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True +- +-if CONFIG["OS_TARGET"] == "Linux": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["USE_AURA"] = "1" +- DEFINES["USE_GLIB"] = "1" +- DEFINES["USE_OZONE"] = "1" +- DEFINES["USE_UDEV"] = True +- DEFINES["WEBRTC_LINUX"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["_FILE_OFFSET_BITS"] = "64" +- DEFINES["_GLIBCXX_ASSERTIONS"] = "1" +- DEFINES["_LARGEFILE64_SOURCE"] = True +- DEFINES["_LARGEFILE_SOURCE"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True +- +-if CONFIG["OS_TARGET"] == "OpenBSD": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["USE_GLIB"] = "1" +- DEFINES["USE_OZONE"] = "1" +- DEFINES["WEBRTC_BSD"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["_FILE_OFFSET_BITS"] = "64" +- DEFINES["_LARGEFILE64_SOURCE"] = True +- DEFINES["_LARGEFILE_SOURCE"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True +- +-if CONFIG["OS_TARGET"] == "WINNT": +- +- CXXFLAGS += [ +- "-std:c++20" +- ] +- +- DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True +- DEFINES["NOMINMAX"] = True +- DEFINES["NTDDI_VERSION"] = "0x0A000000" +- DEFINES["PSAPI_VERSION"] = "2" +- DEFINES["RTC_ENABLE_WIN_WGC"] = True +- DEFINES["UNICODE"] = True +- DEFINES["USE_AURA"] = "1" +- DEFINES["WEBRTC_WIN"] = True +- DEFINES["WIN32"] = True +- DEFINES["WIN32_LEAN_AND_MEAN"] = True +- DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" +- DEFINES["WINVER"] = "0x0A00" +- DEFINES["_ATL_NO_OPENGL"] = True +- DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True +- DEFINES["_CRT_RAND_S"] = True +- DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True +- DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True +- DEFINES["_HAS_EXCEPTIONS"] = "0" +- DEFINES["_HAS_NODISCARD"] = True +- DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True +- DEFINES["_SECURE_ATL"] = True +- DEFINES["_UNICODE"] = True +- DEFINES["_WIN32_WINNT"] = "0x0A00" +- DEFINES["_WINDOWS"] = True +- DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True +- DEFINES["__STD_C"] = True +- +- OS_LIBS += [ +- "crypt32", +- "iphlpapi", +- "secur32", +- "winmm" +- ] ++ DEFINES["_DEBUG"] = True + + if CONFIG["TARGET_CPU"] == "aarch64": + +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": + DEFINES["WEBRTC_HAS_NEON"] = True + DEFINES["__ARM_NEON__"] = "1" + +-if CONFIG["TARGET_CPU"] == "arm": +- +- CXXFLAGS += [ +- "-mfpu=neon" +- ] +- +- DEFINES["WEBRTC_ARCH_ARM"] = True +- DEFINES["WEBRTC_ARCH_ARM_V7"] = True +- DEFINES["WEBRTC_HAS_NEON"] = True +- +-if CONFIG["TARGET_CPU"] == "loongarch64": - - DEFINES["_GNU_SOURCE"] = True - --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": + if CONFIG["TARGET_CPU"] == "mips32": + + DEFINES["MIPS32_LE"] = True + DEFINES["MIPS_FPU_LE"] = True +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["TARGET_CPU"] == "mips64": +- +- DEFINES["_GNU_SOURCE"] = True + + if CONFIG["TARGET_CPU"] == "x86": + +- DEFINES["WEBRTC_ENABLE_AVX2"] = True +- +-if CONFIG["TARGET_CPU"] == "x86_64": +- +- DEFINES["WEBRTC_ENABLE_AVX2"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": +- +- DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" +- +-if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -8496,16 +9348,15 @@ index d472124f0a40..ac2df5b26adf 100644 Library("frame_transformer_interface_gn") diff --git third_party/libwebrtc/api/function_view_gn/moz.build third_party/libwebrtc/api/function_view_gn/moz.build -index dc26789ded68..de73bc9c5c6a 100644 +index d4c22b97a672..942e98bfe0e2 100644 --- third_party/libwebrtc/api/function_view_gn/moz.build +++ third_party/libwebrtc/api/function_view_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -8522,7 +9373,7 @@ index dc26789ded68..de73bc9c5c6a 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -8611,7 +9462,7 @@ index dc26789ded68..de73bc9c5c6a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -8637,7 +9488,7 @@ index dc26789ded68..de73bc9c5c6a 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -8679,16 +9530,15 @@ index dc26789ded68..de73bc9c5c6a 100644 - Library("function_view_gn") diff --git third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build -index 379cf8c822da..44b19737a655 100644 +index fa18e171a29e..81e962a72646 100644 --- third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build +++ third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -8705,7 +9555,7 @@ index 379cf8c822da..44b19737a655 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -8790,7 +9640,7 @@ index 379cf8c822da..44b19737a655 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -8816,7 +9666,7 @@ index 379cf8c822da..44b19737a655 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -8858,16 +9708,15 @@ index 379cf8c822da..44b19737a655 100644 - Library("jingle_logging_api_gn") diff --git third_party/libwebrtc/api/libjingle_peerconnection_api_gn/moz.build third_party/libwebrtc/api/libjingle_peerconnection_api_gn/moz.build -index bafbd895ae23..85d46ef795ba 100644 +index 40b640eebadc..2134f306b45f 100644 --- third_party/libwebrtc/api/libjingle_peerconnection_api_gn/moz.build +++ third_party/libwebrtc/api/libjingle_peerconnection_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -8884,7 +9733,7 @@ index bafbd895ae23..85d46ef795ba 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -8969,7 +9818,7 @@ index bafbd895ae23..85d46ef795ba 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -8995,7 +9844,7 @@ index bafbd895ae23..85d46ef795ba 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -9037,16 +9886,15 @@ index bafbd895ae23..85d46ef795ba 100644 - Library("jingle_peerconnection_api_gn") diff --git third_party/libwebrtc/api/location_gn/moz.build third_party/libwebrtc/api/location_gn/moz.build -index 1384cb4c2c9a..27432b87cd60 100644 +index 71e2e1f0bc05..903e6070a8d3 100644 --- third_party/libwebrtc/api/location_gn/moz.build +++ third_party/libwebrtc/api/location_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -9063,7 +9911,7 @@ index 1384cb4c2c9a..27432b87cd60 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -9148,7 +9996,7 @@ index 1384cb4c2c9a..27432b87cd60 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -9174,7 +10022,7 @@ index 1384cb4c2c9a..27432b87cd60 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -9216,16 +10064,15 @@ index 1384cb4c2c9a..27432b87cd60 100644 - Library("location_gn") diff --git third_party/libwebrtc/api/make_ref_counted_gn/moz.build third_party/libwebrtc/api/make_ref_counted_gn/moz.build -index 5260714563c4..88e1ecb122bb 100644 +index 734e2ff2ee3c..a92aaf7d3960 100644 --- third_party/libwebrtc/api/make_ref_counted_gn/moz.build +++ third_party/libwebrtc/api/make_ref_counted_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -9242,7 +10089,7 @@ index 5260714563c4..88e1ecb122bb 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -9327,7 +10174,7 @@ index 5260714563c4..88e1ecb122bb 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -9353,7 +10200,7 @@ index 5260714563c4..88e1ecb122bb 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -9395,16 +10242,23 @@ index 5260714563c4..88e1ecb122bb 100644 - Library("make_ref_counted_gn") diff --git third_party/libwebrtc/api/media_stream_interface_gn/moz.build third_party/libwebrtc/api/media_stream_interface_gn/moz.build -index 8b22cc529d93..d4c009dfb08b 100644 +index 9bda91f8387f..e2e583f0e715 100644 --- third_party/libwebrtc/api/media_stream_interface_gn/moz.build +++ third_party/libwebrtc/api/media_stream_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -9421,13 +10275,17 @@ index 8b22cc529d93..d4c009dfb08b 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -9446,6 +10304,10 @@ index 8b22cc529d93..d4c009dfb08b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -9453,6 +10315,10 @@ index 8b22cc529d93..d4c009dfb08b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -9468,6 +10334,10 @@ index 8b22cc529d93..d4c009dfb08b 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -9480,6 +10350,10 @@ index 8b22cc529d93..d4c009dfb08b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -9517,7 +10391,7 @@ index 8b22cc529d93..d4c009dfb08b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -9575,10 +10449,10 @@ index 8b22cc529d93..d4c009dfb08b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -9589,10 +10463,10 @@ index 8b22cc529d93..d4c009dfb08b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -9604,16 +10478,15 @@ index 8b22cc529d93..d4c009dfb08b 100644 Library("media_stream_interface_gn") diff --git third_party/libwebrtc/api/metronome/metronome_gn/moz.build third_party/libwebrtc/api/metronome/metronome_gn/moz.build -index ac0f4065814a..975fd554189e 100644 +index 175a179e516d..e3bc694d44e5 100644 --- third_party/libwebrtc/api/metronome/metronome_gn/moz.build +++ third_party/libwebrtc/api/metronome/metronome_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -9630,7 +10503,7 @@ index ac0f4065814a..975fd554189e 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -9719,7 +10592,7 @@ index ac0f4065814a..975fd554189e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -9745,7 +10618,7 @@ index ac0f4065814a..975fd554189e 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -9787,16 +10660,23 @@ index ac0f4065814a..975fd554189e 100644 - Library("metronome_gn") diff --git third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build -index 0b8670a958f1..e6e6261c6f1d 100644 +index e881fd3e0895..9f788008e593 100644 --- third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build +++ third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -9813,13 +10693,17 @@ index 0b8670a958f1..e6e6261c6f1d 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -9838,6 +10722,10 @@ index 0b8670a958f1..e6e6261c6f1d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -9845,6 +10733,10 @@ index 0b8670a958f1..e6e6261c6f1d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -9858,12 +10750,12 @@ index 0b8670a958f1..e6e6261c6f1d 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -9876,6 +10768,10 @@ index 0b8670a958f1..e6e6261c6f1d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -9913,7 +10809,7 @@ index 0b8670a958f1..e6e6261c6f1d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -9971,10 +10867,10 @@ index 0b8670a958f1..e6e6261c6f1d 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -9985,10 +10881,10 @@ index 0b8670a958f1..e6e6261c6f1d 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -10000,16 +10896,23 @@ index 0b8670a958f1..e6e6261c6f1d 100644 Library("default_neteq_controller_factory_gn") diff --git third_party/libwebrtc/api/neteq/default_neteq_factory_gn/moz.build third_party/libwebrtc/api/neteq/default_neteq_factory_gn/moz.build -index 402f2a044163..bfeadc19c1f4 100644 +index 6c0ac3eacaa6..af150d2ad9c2 100644 --- third_party/libwebrtc/api/neteq/default_neteq_factory_gn/moz.build +++ third_party/libwebrtc/api/neteq/default_neteq_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -10026,13 +10929,17 @@ index 402f2a044163..bfeadc19c1f4 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -10051,6 +10958,10 @@ index 402f2a044163..bfeadc19c1f4 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -10058,6 +10969,10 @@ index 402f2a044163..bfeadc19c1f4 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -10071,12 +10986,12 @@ index 402f2a044163..bfeadc19c1f4 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -10089,6 +11004,10 @@ index 402f2a044163..bfeadc19c1f4 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -10126,7 +11045,7 @@ index 402f2a044163..bfeadc19c1f4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -10184,10 +11103,10 @@ index 402f2a044163..bfeadc19c1f4 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -10198,10 +11117,10 @@ index 402f2a044163..bfeadc19c1f4 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -10212,17 +11131,16 @@ index 402f2a044163..bfeadc19c1f4 100644 + DEFINES["WEBRTC_ENABLE_AVX2"] = True Library("default_neteq_factory_gn") -diff --git third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build -index 3cffcf1fee68..634fe34c356b 100644 ---- third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build -+++ third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +diff --git third_party/libwebrtc/api/neteq/delay_manager_api_gn/moz.build third_party/libwebrtc/api/neteq/delay_manager_api_gn/moz.build +index 7b391f843b1a..e878c22c5811 100644 +--- third_party/libwebrtc/api/neteq/delay_manager_api_gn/moz.build ++++ third_party/libwebrtc/api/neteq/delay_manager_api_gn/moz.build +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -10239,7 +11157,7 @@ index 3cffcf1fee68..634fe34c356b 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -10284,12 +11202,221 @@ index 3cffcf1fee68..634fe34c356b 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - +-if CONFIG["OS_TARGET"] == "OpenBSD": +- +- DEFINES["USE_GLIB"] = "1" +- DEFINES["USE_OZONE"] = "1" +- DEFINES["WEBRTC_BSD"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["_FILE_OFFSET_BITS"] = "64" +- DEFINES["_LARGEFILE64_SOURCE"] = True +- DEFINES["_LARGEFILE_SOURCE"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True +- +-if CONFIG["OS_TARGET"] == "WINNT": +- +- DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True +- DEFINES["NOMINMAX"] = True +- DEFINES["NTDDI_VERSION"] = "0x0A000000" +- DEFINES["PSAPI_VERSION"] = "2" +- DEFINES["RTC_ENABLE_WIN_WGC"] = True +- DEFINES["UNICODE"] = True +- DEFINES["USE_AURA"] = "1" +- DEFINES["WEBRTC_WIN"] = True +- DEFINES["WIN32"] = True +- DEFINES["WIN32_LEAN_AND_MEAN"] = True +- DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" +- DEFINES["WINVER"] = "0x0A00" +- DEFINES["_ATL_NO_OPENGL"] = True +- DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True +- DEFINES["_CRT_RAND_S"] = True +- DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True +- DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True +- DEFINES["_HAS_EXCEPTIONS"] = "0" +- DEFINES["_HAS_NODISCARD"] = True +- DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True +- DEFINES["_SECURE_ATL"] = True +- DEFINES["_UNICODE"] = True +- DEFINES["_WIN32_WINNT"] = "0x0A00" +- DEFINES["_WINDOWS"] = True +- DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True +- DEFINES["__STD_C"] = True +- - OS_LIBS += [ -- "rt" +- "crypt32", +- "iphlpapi", +- "secur32", +- "winmm" - ] ++ DEFINES["_DEBUG"] = True + + if CONFIG["TARGET_CPU"] == "aarch64": + +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": + DEFINES["WEBRTC_HAS_NEON"] = True + DEFINES["__ARM_NEON__"] = "1" + +-if CONFIG["TARGET_CPU"] == "arm": +- +- DEFINES["WEBRTC_ARCH_ARM"] = True +- DEFINES["WEBRTC_ARCH_ARM_V7"] = True +- DEFINES["WEBRTC_HAS_NEON"] = True +- +-if CONFIG["TARGET_CPU"] == "loongarch64": +- +- DEFINES["_GNU_SOURCE"] = True +- + if CONFIG["TARGET_CPU"] == "mips32": + + DEFINES["MIPS32_LE"] = True + DEFINES["MIPS_FPU_LE"] = True +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["TARGET_CPU"] == "mips64": +- +- DEFINES["_GNU_SOURCE"] = True + + if CONFIG["TARGET_CPU"] == "x86": + +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": + + DEFINES["WEBRTC_ENABLE_AVX2"] = True + +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": +- +- DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": +- +- DEFINES["_GNU_SOURCE"] = True +- + Library("delay_manager_api_gn") +diff --git third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build +index 5870536292fb..5ca950628495 100644 +--- third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build ++++ third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" + DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" + DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True + DEFINES["RTC_ENABLE_VP9"] = True ++DEFINES["USE_GLIB"] = "1" ++DEFINES["USE_OZONE"] = "1" ++DEFINES["WEBRTC_BSD"] = True + DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" + DEFINES["WEBRTC_LIBRARY_IMPL"] = True + DEFINES["WEBRTC_MOZILLA_BUILD"] = True + DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" ++DEFINES["WEBRTC_POSIX"] = True + DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" ++DEFINES["_FILE_OFFSET_BITS"] = "64" ++DEFINES["_LARGEFILE64_SOURCE"] = True ++DEFINES["_LARGEFILE_SOURCE"] = True + DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE" ++DEFINES["__STDC_CONSTANT_MACROS"] = True ++DEFINES["__STDC_FORMAT_MACROS"] = True + + FINAL_LIBRARY = "xul" + +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: + if CONFIG["MOZ_DEBUG"] == "1": + + DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" +- +-if CONFIG["OS_TARGET"] == "Android": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["ANDROID"] = True +- DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" +- DEFINES["HAVE_SYS_UIO_H"] = True +- DEFINES["WEBRTC_ANDROID"] = True +- DEFINES["WEBRTC_ANDROID_OPENSLES"] = True +- DEFINES["WEBRTC_LINUX"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["_GNU_SOURCE"] = True +- DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True +- +- OS_LIBS += [ +- "log" +- ] +- +-if CONFIG["OS_TARGET"] == "Darwin": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["WEBRTC_MAC"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True +- +-if CONFIG["OS_TARGET"] == "Linux": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["USE_AURA"] = "1" +- DEFINES["USE_GLIB"] = "1" +- DEFINES["USE_OZONE"] = "1" +- DEFINES["USE_UDEV"] = True +- DEFINES["WEBRTC_LINUX"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["_FILE_OFFSET_BITS"] = "64" +- DEFINES["_GLIBCXX_ASSERTIONS"] = "1" +- DEFINES["_LARGEFILE64_SOURCE"] = True +- DEFINES["_LARGEFILE_SOURCE"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -10302,6 +11429,10 @@ index 3cffcf1fee68..634fe34c356b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -10339,7 +11470,7 @@ index 3cffcf1fee68..634fe34c356b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -10397,10 +11528,10 @@ index 3cffcf1fee68..634fe34c356b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -10411,10 +11542,10 @@ index 3cffcf1fee68..634fe34c356b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -10426,16 +11557,15 @@ index 3cffcf1fee68..634fe34c356b 100644 Library("neteq_api_gn") diff --git third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build -index 0c8c73eaf64e..0d9110cf2533 100644 +index aaca246c346a..faadd8470d90 100644 --- third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build +++ third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -10452,7 +11582,7 @@ index 0c8c73eaf64e..0d9110cf2533 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -10497,10 +11627,6 @@ index 0c8c73eaf64e..0d9110cf2533 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -10552,7 +11678,7 @@ index 0c8c73eaf64e..0d9110cf2533 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -10578,7 +11704,7 @@ index 0c8c73eaf64e..0d9110cf2533 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -10620,16 +11746,23 @@ index 0c8c73eaf64e..0d9110cf2533 100644 - Library("neteq_controller_api_gn") diff --git third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build -index 6e62d4704907..5af2b7269dfa 100644 +index a35e00f8603e..627fb0d77b44 100644 --- third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build +++ third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -10646,13 +11779,17 @@ index 6e62d4704907..5af2b7269dfa 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -10671,6 +11808,10 @@ index 6e62d4704907..5af2b7269dfa 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -10678,6 +11819,10 @@ index 6e62d4704907..5af2b7269dfa 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -10693,6 +11838,10 @@ index 6e62d4704907..5af2b7269dfa 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -10705,6 +11854,10 @@ index 6e62d4704907..5af2b7269dfa 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -10735,7 +11888,7 @@ index 6e62d4704907..5af2b7269dfa 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -10822,16 +11975,15 @@ index 6e62d4704907..5af2b7269dfa 100644 Library("tick_timer_gn") diff --git third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build -index 6d6d33ace75b..01573acc86d3 100644 +index 89c7b2f1bbee..e19cb0366383 100644 --- third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build +++ third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -10848,7 +12000,7 @@ index 6d6d33ace75b..01573acc86d3 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -10933,7 +12085,7 @@ index 6d6d33ace75b..01573acc86d3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -10959,7 +12111,7 @@ index 6d6d33ace75b..01573acc86d3 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -11001,16 +12153,23 @@ index 6d6d33ace75b..01573acc86d3 100644 - Library("network_state_predictor_api_gn") diff --git third_party/libwebrtc/api/priority_gn/moz.build third_party/libwebrtc/api/priority_gn/moz.build -index d219a201e21e..e294583198c9 100644 +index 2ae9d6e256bf..9506fe3d8523 100644 --- third_party/libwebrtc/api/priority_gn/moz.build +++ third_party/libwebrtc/api/priority_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -11027,13 +12186,17 @@ index d219a201e21e..e294583198c9 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -11052,6 +12215,10 @@ index d219a201e21e..e294583198c9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -11059,6 +12226,10 @@ index d219a201e21e..e294583198c9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -11074,6 +12245,10 @@ index d219a201e21e..e294583198c9 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -11086,6 +12261,10 @@ index d219a201e21e..e294583198c9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -11116,7 +12295,7 @@ index d219a201e21e..e294583198c9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -11203,16 +12382,15 @@ index d219a201e21e..e294583198c9 100644 Library("priority_gn") diff --git third_party/libwebrtc/api/ref_count_gn/moz.build third_party/libwebrtc/api/ref_count_gn/moz.build -index 4d11702ac95b..098a60790f04 100644 +index 6e708d91c28e..8e5737e376cb 100644 --- third_party/libwebrtc/api/ref_count_gn/moz.build +++ third_party/libwebrtc/api/ref_count_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -11229,7 +12407,7 @@ index 4d11702ac95b..098a60790f04 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -11314,7 +12492,7 @@ index 4d11702ac95b..098a60790f04 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -11340,7 +12518,7 @@ index 4d11702ac95b..098a60790f04 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -11382,16 +12560,15 @@ index 4d11702ac95b..098a60790f04 100644 - Library("ref_count_gn") diff --git third_party/libwebrtc/api/refcountedbase_gn/moz.build third_party/libwebrtc/api/refcountedbase_gn/moz.build -index c2d93fe7f690..4cd1a1af8562 100644 +index 5cc39bebe881..d7236ced3bac 100644 --- third_party/libwebrtc/api/refcountedbase_gn/moz.build +++ third_party/libwebrtc/api/refcountedbase_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -11408,7 +12585,7 @@ index c2d93fe7f690..4cd1a1af8562 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -11493,7 +12670,7 @@ index c2d93fe7f690..4cd1a1af8562 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -11519,7 +12696,7 @@ index c2d93fe7f690..4cd1a1af8562 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -11561,16 +12738,23 @@ index c2d93fe7f690..4cd1a1af8562 100644 - Library("refcountedbase_gn") diff --git third_party/libwebrtc/api/rtc_error_gn/moz.build third_party/libwebrtc/api/rtc_error_gn/moz.build -index 931ad8f10770..c86ad5eeb18f 100644 +index 22af15c986d7..b08e37ef6637 100644 --- third_party/libwebrtc/api/rtc_error_gn/moz.build +++ third_party/libwebrtc/api/rtc_error_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -11587,13 +12771,17 @@ index 931ad8f10770..c86ad5eeb18f 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -11612,6 +12800,10 @@ index 931ad8f10770..c86ad5eeb18f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -11619,6 +12811,10 @@ index 931ad8f10770..c86ad5eeb18f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -11634,6 +12830,10 @@ index 931ad8f10770..c86ad5eeb18f 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -11646,6 +12846,10 @@ index 931ad8f10770..c86ad5eeb18f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -11683,7 +12887,7 @@ index 931ad8f10770..c86ad5eeb18f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -11741,10 +12945,10 @@ index 931ad8f10770..c86ad5eeb18f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -11755,10 +12959,10 @@ index 931ad8f10770..c86ad5eeb18f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -11770,16 +12974,23 @@ index 931ad8f10770..c86ad5eeb18f 100644 Library("rtc_error_gn") diff --git third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build -index 062fcf1c7e98..56ca85ac637d 100644 +index ef7443badabe..1ebd539654ba 100644 --- third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build +++ third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -11796,13 +13007,17 @@ index 062fcf1c7e98..56ca85ac637d 100644 FINAL_LIBRARY = "xul" -@@ -48,94 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -11821,6 +13036,10 @@ index 062fcf1c7e98..56ca85ac637d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -11828,6 +13047,10 @@ index 062fcf1c7e98..56ca85ac637d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -11843,6 +13066,10 @@ index 062fcf1c7e98..56ca85ac637d 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -11855,6 +13082,10 @@ index 062fcf1c7e98..56ca85ac637d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -11892,7 +13123,7 @@ index 062fcf1c7e98..56ca85ac637d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -11950,10 +13181,10 @@ index 062fcf1c7e98..56ca85ac637d 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -11964,10 +13195,10 @@ index 062fcf1c7e98..56ca85ac637d 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -11979,16 +13210,23 @@ index 062fcf1c7e98..56ca85ac637d 100644 Library("rtc_event_log_gn") diff --git third_party/libwebrtc/api/rtp_headers_gn/moz.build third_party/libwebrtc/api/rtp_headers_gn/moz.build -index a3962549d71a..f3230db2f74c 100644 +index 6b8fa70f917e..ccb5b524512b 100644 --- third_party/libwebrtc/api/rtp_headers_gn/moz.build +++ third_party/libwebrtc/api/rtp_headers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -12005,13 +13243,17 @@ index a3962549d71a..f3230db2f74c 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -12030,6 +13272,10 @@ index a3962549d71a..f3230db2f74c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -12037,6 +13283,10 @@ index a3962549d71a..f3230db2f74c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -12052,6 +13302,10 @@ index a3962549d71a..f3230db2f74c 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -12064,6 +13318,10 @@ index a3962549d71a..f3230db2f74c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -12101,7 +13359,7 @@ index a3962549d71a..f3230db2f74c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -12159,10 +13417,10 @@ index a3962549d71a..f3230db2f74c 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -12173,10 +13431,10 @@ index a3962549d71a..f3230db2f74c 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -12188,16 +13446,23 @@ index a3962549d71a..f3230db2f74c 100644 Library("rtp_headers_gn") diff --git third_party/libwebrtc/api/rtp_packet_info_gn/moz.build third_party/libwebrtc/api/rtp_packet_info_gn/moz.build -index 52124e93c6e0..cf27ecf0ff64 100644 +index 60ac57fdb088..e6d8ea47cb13 100644 --- third_party/libwebrtc/api/rtp_packet_info_gn/moz.build +++ third_party/libwebrtc/api/rtp_packet_info_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -12214,13 +13479,17 @@ index 52124e93c6e0..cf27ecf0ff64 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -12239,6 +13508,10 @@ index 52124e93c6e0..cf27ecf0ff64 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -12246,6 +13519,10 @@ index 52124e93c6e0..cf27ecf0ff64 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -12261,6 +13538,10 @@ index 52124e93c6e0..cf27ecf0ff64 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -12273,6 +13554,10 @@ index 52124e93c6e0..cf27ecf0ff64 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -12310,7 +13595,7 @@ index 52124e93c6e0..cf27ecf0ff64 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -12368,10 +13653,10 @@ index 52124e93c6e0..cf27ecf0ff64 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -12382,10 +13667,10 @@ index 52124e93c6e0..cf27ecf0ff64 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -12397,16 +13682,15 @@ index 52124e93c6e0..cf27ecf0ff64 100644 Library("rtp_packet_info_gn") diff --git third_party/libwebrtc/api/rtp_packet_sender_gn/moz.build third_party/libwebrtc/api/rtp_packet_sender_gn/moz.build -index 4e690f286985..48513d98fdc2 100644 +index f5380aa782ca..ada14ba1b2f8 100644 --- third_party/libwebrtc/api/rtp_packet_sender_gn/moz.build +++ third_party/libwebrtc/api/rtp_packet_sender_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -12423,7 +13707,7 @@ index 4e690f286985..48513d98fdc2 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -12508,7 +13792,7 @@ index 4e690f286985..48513d98fdc2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -12534,7 +13818,7 @@ index 4e690f286985..48513d98fdc2 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -12576,16 +13860,23 @@ index 4e690f286985..48513d98fdc2 100644 - Library("rtp_packet_sender_gn") diff --git third_party/libwebrtc/api/rtp_parameters_gn/moz.build third_party/libwebrtc/api/rtp_parameters_gn/moz.build -index 48d4257f8009..57f881d7cba9 100644 +index ca88debead18..ad44a44dbe44 100644 --- third_party/libwebrtc/api/rtp_parameters_gn/moz.build +++ third_party/libwebrtc/api/rtp_parameters_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -12602,13 +13893,17 @@ index 48d4257f8009..57f881d7cba9 100644 FINAL_LIBRARY = "xul" -@@ -48,87 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,107 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -12627,6 +13922,10 @@ index 48d4257f8009..57f881d7cba9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -12634,6 +13933,10 @@ index 48d4257f8009..57f881d7cba9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -12649,6 +13952,10 @@ index 48d4257f8009..57f881d7cba9 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -12661,6 +13968,10 @@ index 48d4257f8009..57f881d7cba9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -12691,7 +14002,7 @@ index 48d4257f8009..57f881d7cba9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -136,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -155,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -12778,16 +14089,15 @@ index 48d4257f8009..57f881d7cba9 100644 Library("rtp_parameters_gn") diff --git third_party/libwebrtc/api/rtp_sender_interface_gn/moz.build third_party/libwebrtc/api/rtp_sender_interface_gn/moz.build -index 58b6b9d4eced..b946ded20f7c 100644 +index 4d234f8b55b0..0ad2a4fbf32b 100644 --- third_party/libwebrtc/api/rtp_sender_interface_gn/moz.build +++ third_party/libwebrtc/api/rtp_sender_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -12804,7 +14114,7 @@ index 58b6b9d4eced..b946ded20f7c 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -12889,7 +14199,7 @@ index 58b6b9d4eced..b946ded20f7c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -12915,7 +14225,7 @@ index 58b6b9d4eced..b946ded20f7c 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -12957,16 +14267,23 @@ index 58b6b9d4eced..b946ded20f7c 100644 - Library("rtp_sender_interface_gn") diff --git third_party/libwebrtc/api/rtp_sender_setparameters_callback_gn/moz.build third_party/libwebrtc/api/rtp_sender_setparameters_callback_gn/moz.build -index 19bd810c46cf..99ae632b35f5 100644 +index a4805ffc1c99..bff6bf560c8a 100644 --- third_party/libwebrtc/api/rtp_sender_setparameters_callback_gn/moz.build +++ third_party/libwebrtc/api/rtp_sender_setparameters_callback_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -12983,13 +14300,17 @@ index 19bd810c46cf..99ae632b35f5 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -13008,6 +14329,10 @@ index 19bd810c46cf..99ae632b35f5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -13015,6 +14340,10 @@ index 19bd810c46cf..99ae632b35f5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -13030,6 +14359,10 @@ index 19bd810c46cf..99ae632b35f5 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -13042,6 +14375,10 @@ index 19bd810c46cf..99ae632b35f5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -13079,7 +14416,7 @@ index 19bd810c46cf..99ae632b35f5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -13137,10 +14474,10 @@ index 19bd810c46cf..99ae632b35f5 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -13151,10 +14488,10 @@ index 19bd810c46cf..99ae632b35f5 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -13166,16 +14503,15 @@ index 19bd810c46cf..99ae632b35f5 100644 Library("rtp_sender_setparameters_callback_gn") diff --git third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build -index 0898e296f690..50e8741a1e5c 100644 +index 3200010d7be9..a7f3de771f21 100644 --- third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build +++ third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -13192,7 +14528,7 @@ index 0898e296f690..50e8741a1e5c 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -13277,7 +14613,7 @@ index 0898e296f690..50e8741a1e5c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -13303,7 +14639,7 @@ index 0898e296f690..50e8741a1e5c 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -13345,16 +14681,15 @@ index 0898e296f690..50e8741a1e5c 100644 - Library("rtp_transceiver_direction_gn") diff --git third_party/libwebrtc/api/scoped_refptr_gn/moz.build third_party/libwebrtc/api/scoped_refptr_gn/moz.build -index 91059bcfdf24..95c749ab05f5 100644 +index 05d52fc67a4c..0cc6993ab717 100644 --- third_party/libwebrtc/api/scoped_refptr_gn/moz.build +++ third_party/libwebrtc/api/scoped_refptr_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -13371,7 +14706,7 @@ index 91059bcfdf24..95c749ab05f5 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -13456,7 +14791,7 @@ index 91059bcfdf24..95c749ab05f5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -13482,7 +14817,7 @@ index 91059bcfdf24..95c749ab05f5 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -13524,16 +14859,15 @@ index 91059bcfdf24..95c749ab05f5 100644 - Library("scoped_refptr_gn") diff --git third_party/libwebrtc/api/sequence_checker_gn/moz.build third_party/libwebrtc/api/sequence_checker_gn/moz.build -index 2e05c3b8bd13..1536e71c6bad 100644 +index 94361b85f4a3..1d99c403a99d 100644 --- third_party/libwebrtc/api/sequence_checker_gn/moz.build +++ third_party/libwebrtc/api/sequence_checker_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -13550,7 +14884,7 @@ index 2e05c3b8bd13..1536e71c6bad 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -13639,7 +14973,7 @@ index 2e05c3b8bd13..1536e71c6bad 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -13665,7 +14999,7 @@ index 2e05c3b8bd13..1536e71c6bad 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -13707,16 +15041,15 @@ index 2e05c3b8bd13..1536e71c6bad 100644 - Library("sequence_checker_gn") diff --git third_party/libwebrtc/api/task_queue/default_task_queue_factory_gn/moz.build third_party/libwebrtc/api/task_queue/default_task_queue_factory_gn/moz.build -index caccfa576579..12b3b4429d9b 100644 +index 3efdfa726191..f049abc3ddf5 100644 --- third_party/libwebrtc/api/task_queue/default_task_queue_factory_gn/moz.build +++ third_party/libwebrtc/api/task_queue/default_task_queue_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -13733,7 +15066,7 @@ index caccfa576579..12b3b4429d9b 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -13818,7 +15151,7 @@ index caccfa576579..12b3b4429d9b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -13844,7 +15177,7 @@ index caccfa576579..12b3b4429d9b 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -13886,16 +15219,23 @@ index caccfa576579..12b3b4429d9b 100644 - Library("default_task_queue_factory_gn") diff --git third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build -index f5bd2abd8edd..588ab9d37637 100644 +index 714eb9e748de..9359661039d6 100644 --- third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build +++ third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -13912,13 +15252,17 @@ index f5bd2abd8edd..588ab9d37637 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -13937,6 +15281,10 @@ index f5bd2abd8edd..588ab9d37637 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -13944,6 +15292,10 @@ index f5bd2abd8edd..588ab9d37637 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -13959,6 +15311,10 @@ index f5bd2abd8edd..588ab9d37637 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -13971,6 +15327,10 @@ index f5bd2abd8edd..588ab9d37637 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -14001,7 +15361,7 @@ index f5bd2abd8edd..588ab9d37637 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -14088,16 +15448,23 @@ index f5bd2abd8edd..588ab9d37637 100644 Library("pending_task_safety_flag_gn") diff --git third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build -index 7802d514733e..b5069b664e65 100644 +index 67bbd643dcf2..f1a5bc97fc2c 100644 --- third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build +++ third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -14114,13 +15481,17 @@ index 7802d514733e..b5069b664e65 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -14139,6 +15510,10 @@ index 7802d514733e..b5069b664e65 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -14146,6 +15521,10 @@ index 7802d514733e..b5069b664e65 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -14161,6 +15540,10 @@ index 7802d514733e..b5069b664e65 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -14173,6 +15556,10 @@ index 7802d514733e..b5069b664e65 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -14203,7 +15590,7 @@ index 7802d514733e..b5069b664e65 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -14290,16 +15677,15 @@ index 7802d514733e..b5069b664e65 100644 Library("task_queue_gn") diff --git third_party/libwebrtc/api/transport/bandwidth_estimation_settings_gn/moz.build third_party/libwebrtc/api/transport/bandwidth_estimation_settings_gn/moz.build -index 37fa27def74f..b4ad056226a0 100644 +index 161cde130304..8e0139eafbb4 100644 --- third_party/libwebrtc/api/transport/bandwidth_estimation_settings_gn/moz.build +++ third_party/libwebrtc/api/transport/bandwidth_estimation_settings_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -14316,7 +15702,7 @@ index 37fa27def74f..b4ad056226a0 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -14401,7 +15787,7 @@ index 37fa27def74f..b4ad056226a0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -14427,7 +15813,7 @@ index 37fa27def74f..b4ad056226a0 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -14469,16 +15855,15 @@ index 37fa27def74f..b4ad056226a0 100644 - Library("bandwidth_estimation_settings_gn") diff --git third_party/libwebrtc/api/transport/bandwidth_usage_gn/moz.build third_party/libwebrtc/api/transport/bandwidth_usage_gn/moz.build -index b4ffa83b92cd..26f1bb8546e7 100644 +index f8ad511f0820..5b490cc8b03c 100644 --- third_party/libwebrtc/api/transport/bandwidth_usage_gn/moz.build +++ third_party/libwebrtc/api/transport/bandwidth_usage_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -14495,7 +15880,7 @@ index b4ffa83b92cd..26f1bb8546e7 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -14580,7 +15965,7 @@ index b4ffa83b92cd..26f1bb8546e7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -14606,7 +15991,7 @@ index b4ffa83b92cd..26f1bb8546e7 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -14648,16 +16033,23 @@ index b4ffa83b92cd..26f1bb8546e7 100644 - Library("bandwidth_usage_gn") diff --git third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build -index 16a388656353..1149e653efad 100644 +index 15a02a15ec22..47b4ba15b41c 100644 --- third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build +++ third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -14674,13 +16066,17 @@ index 16a388656353..1149e653efad 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -14695,6 +16091,10 @@ index 16a388656353..1149e653efad 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -14702,6 +16102,10 @@ index 16a388656353..1149e653efad 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -14717,6 +16121,10 @@ index 16a388656353..1149e653efad 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -14729,6 +16137,10 @@ index 16a388656353..1149e653efad 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -14759,7 +16171,7 @@ index 16a388656353..1149e653efad 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -14817,10 +16229,10 @@ index 16a388656353..1149e653efad 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -14831,10 +16243,10 @@ index 16a388656353..1149e653efad 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -14846,16 +16258,15 @@ index 16a388656353..1149e653efad 100644 Library("bitrate_settings_gn") diff --git third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build -index 0868af0077a4..d1a4f7b5dd54 100644 +index 86faea91265a..d33ba400e8de 100644 --- third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build +++ third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -14872,7 +16283,7 @@ index 0868af0077a4..d1a4f7b5dd54 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -14968,7 +16379,7 @@ index 0868af0077a4..d1a4f7b5dd54 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -14994,7 +16405,7 @@ index 0868af0077a4..d1a4f7b5dd54 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -15036,16 +16447,15 @@ index 0868af0077a4..d1a4f7b5dd54 100644 - Library("datagram_transport_interface_gn") diff --git third_party/libwebrtc/api/transport/ecn_marking_gn/moz.build third_party/libwebrtc/api/transport/ecn_marking_gn/moz.build -index 8ab0d1a1c443..00fbb2407fdc 100644 +index 208ee8847f83..208719b03b57 100644 --- third_party/libwebrtc/api/transport/ecn_marking_gn/moz.build +++ third_party/libwebrtc/api/transport/ecn_marking_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -15062,7 +16472,7 @@ index 8ab0d1a1c443..00fbb2407fdc 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -15147,7 +16557,7 @@ index 8ab0d1a1c443..00fbb2407fdc 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -15173,7 +16583,7 @@ index 8ab0d1a1c443..00fbb2407fdc 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -15215,16 +16625,23 @@ index 8ab0d1a1c443..00fbb2407fdc 100644 - Library("ecn_marking_gn") diff --git third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build -index 7cf2e942a98f..09723da7e690 100644 +index 2e54542f5291..a73c2a391505 100644 --- third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build +++ third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -15241,13 +16658,17 @@ index 7cf2e942a98f..09723da7e690 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -15266,6 +16687,10 @@ index 7cf2e942a98f..09723da7e690 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -15273,6 +16698,10 @@ index 7cf2e942a98f..09723da7e690 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -15288,6 +16717,10 @@ index 7cf2e942a98f..09723da7e690 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -15300,6 +16733,10 @@ index 7cf2e942a98f..09723da7e690 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -15337,7 +16774,7 @@ index 7cf2e942a98f..09723da7e690 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -15395,10 +16832,10 @@ index 7cf2e942a98f..09723da7e690 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -15409,10 +16846,10 @@ index 7cf2e942a98f..09723da7e690 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -15424,16 +16861,23 @@ index 7cf2e942a98f..09723da7e690 100644 Library("field_trial_based_config_gn") diff --git third_party/libwebrtc/api/transport/goog_cc_gn/moz.build third_party/libwebrtc/api/transport/goog_cc_gn/moz.build -index c30034a66355..c1e9773750c3 100644 +index 7a66e70ca013..3f3045103dce 100644 --- third_party/libwebrtc/api/transport/goog_cc_gn/moz.build +++ third_party/libwebrtc/api/transport/goog_cc_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -15450,13 +16894,17 @@ index c30034a66355..c1e9773750c3 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -15476,6 +16924,10 @@ index c30034a66355..c1e9773750c3 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -15483,6 +16935,10 @@ index c30034a66355..c1e9773750c3 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -15496,12 +16952,12 @@ index c30034a66355..c1e9773750c3 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -15514,6 +16970,10 @@ index c30034a66355..c1e9773750c3 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -15551,7 +17011,7 @@ index c30034a66355..c1e9773750c3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -15609,10 +17069,10 @@ index c30034a66355..c1e9773750c3 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -15623,10 +17083,10 @@ index c30034a66355..c1e9773750c3 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -15638,16 +17098,23 @@ index c30034a66355..c1e9773750c3 100644 Library("goog_cc_gn") diff --git third_party/libwebrtc/api/transport/network_control_gn/moz.build third_party/libwebrtc/api/transport/network_control_gn/moz.build -index 1058102cc4a6..488cceb3baa9 100644 +index c901772b804b..f439f12a64a0 100644 --- third_party/libwebrtc/api/transport/network_control_gn/moz.build +++ third_party/libwebrtc/api/transport/network_control_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -15664,13 +17131,17 @@ index 1058102cc4a6..488cceb3baa9 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -15689,6 +17160,10 @@ index 1058102cc4a6..488cceb3baa9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -15696,6 +17171,10 @@ index 1058102cc4a6..488cceb3baa9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -15709,12 +17188,12 @@ index 1058102cc4a6..488cceb3baa9 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -15727,6 +17206,10 @@ index 1058102cc4a6..488cceb3baa9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -15764,7 +17247,7 @@ index 1058102cc4a6..488cceb3baa9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -15822,10 +17305,10 @@ index 1058102cc4a6..488cceb3baa9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -15836,10 +17319,10 @@ index 1058102cc4a6..488cceb3baa9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -15851,16 +17334,15 @@ index 1058102cc4a6..488cceb3baa9 100644 Library("network_control_gn") diff --git third_party/libwebrtc/api/transport/rtp/corruption_detection_message_gn/moz.build third_party/libwebrtc/api/transport/rtp/corruption_detection_message_gn/moz.build -index 9b403b9d6955..376f7571e166 100644 +index b6e01a151f48..858f49e8ebc3 100644 --- third_party/libwebrtc/api/transport/rtp/corruption_detection_message_gn/moz.build +++ third_party/libwebrtc/api/transport/rtp/corruption_detection_message_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -15877,7 +17359,7 @@ index 9b403b9d6955..376f7571e166 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -15966,7 +17448,7 @@ index 9b403b9d6955..376f7571e166 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -15992,7 +17474,7 @@ index 9b403b9d6955..376f7571e166 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -16034,16 +17516,23 @@ index 9b403b9d6955..376f7571e166 100644 - Library("corruption_detection_message_gn") diff --git third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build -index 8da7a80d3f94..319bffba5cd4 100644 +index d90f5c1fff26..aa6d3855421a 100644 --- third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build +++ third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -16060,13 +17549,17 @@ index 8da7a80d3f94..319bffba5cd4 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -16085,6 +17578,10 @@ index 8da7a80d3f94..319bffba5cd4 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -16092,6 +17589,10 @@ index 8da7a80d3f94..319bffba5cd4 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -16107,6 +17608,10 @@ index 8da7a80d3f94..319bffba5cd4 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -16119,6 +17624,10 @@ index 8da7a80d3f94..319bffba5cd4 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -16149,7 +17658,7 @@ index 8da7a80d3f94..319bffba5cd4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -16236,16 +17745,15 @@ index 8da7a80d3f94..319bffba5cd4 100644 Library("dependency_descriptor_gn") diff --git third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build -index f2651257f028..5bf21623b84a 100644 +index 04dea7a88a95..4a75f1179c77 100644 --- third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build +++ third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -16262,7 +17770,7 @@ index f2651257f028..5bf21623b84a 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -16358,7 +17866,7 @@ index f2651257f028..5bf21623b84a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -16384,7 +17892,7 @@ index f2651257f028..5bf21623b84a 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -16426,16 +17934,15 @@ index f2651257f028..5bf21623b84a 100644 - Library("rtp_source_gn") diff --git third_party/libwebrtc/api/transport/stun_types_gn/moz.build third_party/libwebrtc/api/transport/stun_types_gn/moz.build -index eccfcb9643bc..9cfc97dac8c0 100644 +index 1df2fbf24564..19472d624dec 100644 --- third_party/libwebrtc/api/transport/stun_types_gn/moz.build +++ third_party/libwebrtc/api/transport/stun_types_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -16452,7 +17959,7 @@ index eccfcb9643bc..9cfc97dac8c0 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -16537,7 +18044,7 @@ index eccfcb9643bc..9cfc97dac8c0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -16563,7 +18070,7 @@ index eccfcb9643bc..9cfc97dac8c0 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -16605,16 +18112,23 @@ index eccfcb9643bc..9cfc97dac8c0 100644 - Library("stun_types_gn") diff --git third_party/libwebrtc/api/transport_api_gn/moz.build third_party/libwebrtc/api/transport_api_gn/moz.build -index 04d169646b6f..52abb46c3100 100644 +index ae593f92c78f..6d7690536e17 100644 --- third_party/libwebrtc/api/transport_api_gn/moz.build +++ third_party/libwebrtc/api/transport_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -16631,13 +18145,17 @@ index 04d169646b6f..52abb46c3100 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -16656,6 +18174,10 @@ index 04d169646b6f..52abb46c3100 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -16663,6 +18185,10 @@ index 04d169646b6f..52abb46c3100 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -16678,6 +18204,10 @@ index 04d169646b6f..52abb46c3100 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -16690,6 +18220,10 @@ index 04d169646b6f..52abb46c3100 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -16720,7 +18254,7 @@ index 04d169646b6f..52abb46c3100 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -16807,16 +18341,23 @@ index 04d169646b6f..52abb46c3100 100644 Library("transport_api_gn") diff --git third_party/libwebrtc/api/units/data_rate_gn/moz.build third_party/libwebrtc/api/units/data_rate_gn/moz.build -index 29d3499e786d..eba0514e966b 100644 +index 5cd3be22e3be..d24a6c085e9e 100644 --- third_party/libwebrtc/api/units/data_rate_gn/moz.build +++ third_party/libwebrtc/api/units/data_rate_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -16833,13 +18374,17 @@ index 29d3499e786d..eba0514e966b 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -16858,6 +18403,10 @@ index 29d3499e786d..eba0514e966b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -16865,6 +18414,10 @@ index 29d3499e786d..eba0514e966b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -16880,6 +18433,10 @@ index 29d3499e786d..eba0514e966b 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -16892,6 +18449,10 @@ index 29d3499e786d..eba0514e966b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -16922,7 +18483,7 @@ index 29d3499e786d..eba0514e966b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -17009,16 +18570,23 @@ index 29d3499e786d..eba0514e966b 100644 Library("data_rate_gn") diff --git third_party/libwebrtc/api/units/data_size_gn/moz.build third_party/libwebrtc/api/units/data_size_gn/moz.build -index 5c81ffd37b01..5fe81a997719 100644 +index d7ed81461302..f3c3b04ba2dc 100644 --- third_party/libwebrtc/api/units/data_size_gn/moz.build +++ third_party/libwebrtc/api/units/data_size_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -17035,13 +18603,17 @@ index 5c81ffd37b01..5fe81a997719 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -17060,6 +18632,10 @@ index 5c81ffd37b01..5fe81a997719 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -17067,6 +18643,10 @@ index 5c81ffd37b01..5fe81a997719 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -17082,6 +18662,10 @@ index 5c81ffd37b01..5fe81a997719 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -17094,6 +18678,10 @@ index 5c81ffd37b01..5fe81a997719 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -17124,7 +18712,7 @@ index 5c81ffd37b01..5fe81a997719 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -17211,16 +18799,23 @@ index 5c81ffd37b01..5fe81a997719 100644 Library("data_size_gn") diff --git third_party/libwebrtc/api/units/frequency_gn/moz.build third_party/libwebrtc/api/units/frequency_gn/moz.build -index 23861ba5e0b4..36b556f5aa98 100644 +index 7a0251439e48..fcaf081a5be8 100644 --- third_party/libwebrtc/api/units/frequency_gn/moz.build +++ third_party/libwebrtc/api/units/frequency_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -17237,13 +18832,17 @@ index 23861ba5e0b4..36b556f5aa98 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -17262,6 +18861,10 @@ index 23861ba5e0b4..36b556f5aa98 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -17269,6 +18872,10 @@ index 23861ba5e0b4..36b556f5aa98 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -17284,6 +18891,10 @@ index 23861ba5e0b4..36b556f5aa98 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -17296,6 +18907,10 @@ index 23861ba5e0b4..36b556f5aa98 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -17326,7 +18941,7 @@ index 23861ba5e0b4..36b556f5aa98 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -17413,16 +19028,23 @@ index 23861ba5e0b4..36b556f5aa98 100644 Library("frequency_gn") diff --git third_party/libwebrtc/api/units/time_delta_gn/moz.build third_party/libwebrtc/api/units/time_delta_gn/moz.build -index c142c31f0050..108a8825095e 100644 +index 33d1ff96cc22..b7676710e4e7 100644 --- third_party/libwebrtc/api/units/time_delta_gn/moz.build +++ third_party/libwebrtc/api/units/time_delta_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -17439,13 +19061,17 @@ index c142c31f0050..108a8825095e 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -17464,6 +19090,10 @@ index c142c31f0050..108a8825095e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -17471,6 +19101,10 @@ index c142c31f0050..108a8825095e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -17486,6 +19120,10 @@ index c142c31f0050..108a8825095e 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -17498,6 +19136,10 @@ index c142c31f0050..108a8825095e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -17528,7 +19170,7 @@ index c142c31f0050..108a8825095e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -17615,16 +19257,23 @@ index c142c31f0050..108a8825095e 100644 Library("time_delta_gn") diff --git third_party/libwebrtc/api/units/timestamp_gn/moz.build third_party/libwebrtc/api/units/timestamp_gn/moz.build -index ec37917c0abf..bff6fda3a995 100644 +index 1c78d311f808..d839dbd4c05f 100644 --- third_party/libwebrtc/api/units/timestamp_gn/moz.build +++ third_party/libwebrtc/api/units/timestamp_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -17641,13 +19290,17 @@ index ec37917c0abf..bff6fda3a995 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -17666,6 +19319,10 @@ index ec37917c0abf..bff6fda3a995 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -17673,6 +19330,10 @@ index ec37917c0abf..bff6fda3a995 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -17688,6 +19349,10 @@ index ec37917c0abf..bff6fda3a995 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -17700,6 +19365,10 @@ index ec37917c0abf..bff6fda3a995 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -17730,7 +19399,7 @@ index ec37917c0abf..bff6fda3a995 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -17817,16 +19486,23 @@ index ec37917c0abf..bff6fda3a995 100644 Library("timestamp_gn") diff --git third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build -index 042c4cb0322f..6cac447b0305 100644 +index 21396f2532b3..515f9ef7ce12 100644 --- third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build +++ third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -17843,13 +19519,17 @@ index 042c4cb0322f..6cac447b0305 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -17869,6 +19549,10 @@ index 042c4cb0322f..6cac447b0305 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -17876,6 +19560,10 @@ index 042c4cb0322f..6cac447b0305 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -17889,12 +19577,12 @@ index 042c4cb0322f..6cac447b0305 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -17907,6 +19595,10 @@ index 042c4cb0322f..6cac447b0305 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -17944,7 +19636,7 @@ index 042c4cb0322f..6cac447b0305 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -18002,10 +19694,10 @@ index 042c4cb0322f..6cac447b0305 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -18016,10 +19708,10 @@ index 042c4cb0322f..6cac447b0305 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -18031,16 +19723,15 @@ index 042c4cb0322f..6cac447b0305 100644 Library("builtin_video_bitrate_allocator_factory_gn") diff --git third_party/libwebrtc/api/video/corruption_detection_filter_settings_gn/moz.build third_party/libwebrtc/api/video/corruption_detection_filter_settings_gn/moz.build -index 3fea2f9197be..843f8dafb50c 100644 +index 007b03f40df4..f35f563d51d6 100644 --- third_party/libwebrtc/api/video/corruption_detection_filter_settings_gn/moz.build +++ third_party/libwebrtc/api/video/corruption_detection_filter_settings_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -18057,7 +19748,7 @@ index 3fea2f9197be..843f8dafb50c 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -18142,7 +19833,7 @@ index 3fea2f9197be..843f8dafb50c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -18168,7 +19859,7 @@ index 3fea2f9197be..843f8dafb50c 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -18210,16 +19901,23 @@ index 3fea2f9197be..843f8dafb50c 100644 - Library("corruption_detection_filter_settings_gn") diff --git third_party/libwebrtc/api/video/encoded_frame_gn/moz.build third_party/libwebrtc/api/video/encoded_frame_gn/moz.build -index a47a175fd8f6..f3464dc03728 100644 +index ce7e805a6e46..80b0a7e36c3e 100644 --- third_party/libwebrtc/api/video/encoded_frame_gn/moz.build +++ third_party/libwebrtc/api/video/encoded_frame_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -18236,13 +19934,17 @@ index a47a175fd8f6..f3464dc03728 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -18261,6 +19963,10 @@ index a47a175fd8f6..f3464dc03728 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -18268,6 +19974,10 @@ index a47a175fd8f6..f3464dc03728 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -18281,12 +19991,12 @@ index a47a175fd8f6..f3464dc03728 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -18299,6 +20009,10 @@ index a47a175fd8f6..f3464dc03728 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -18336,7 +20050,7 @@ index a47a175fd8f6..f3464dc03728 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -18394,10 +20108,10 @@ index a47a175fd8f6..f3464dc03728 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -18408,10 +20122,10 @@ index a47a175fd8f6..f3464dc03728 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -18423,16 +20137,23 @@ index a47a175fd8f6..f3464dc03728 100644 Library("encoded_frame_gn") diff --git third_party/libwebrtc/api/video/encoded_image_gn/moz.build third_party/libwebrtc/api/video/encoded_image_gn/moz.build -index 884b76c4471c..436455709c49 100644 +index ef3923f3f0a1..ab2df18f8879 100644 --- third_party/libwebrtc/api/video/encoded_image_gn/moz.build +++ third_party/libwebrtc/api/video/encoded_image_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -18449,13 +20170,17 @@ index 884b76c4471c..436455709c49 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -18474,6 +20199,10 @@ index 884b76c4471c..436455709c49 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -18481,6 +20210,10 @@ index 884b76c4471c..436455709c49 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -18496,6 +20229,10 @@ index 884b76c4471c..436455709c49 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -18508,6 +20245,10 @@ index 884b76c4471c..436455709c49 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -18545,7 +20286,7 @@ index 884b76c4471c..436455709c49 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -18603,10 +20344,10 @@ index 884b76c4471c..436455709c49 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -18617,10 +20358,10 @@ index 884b76c4471c..436455709c49 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -18632,16 +20373,23 @@ index 884b76c4471c..436455709c49 100644 Library("encoded_image_gn") diff --git third_party/libwebrtc/api/video/frame_buffer_gn/moz.build third_party/libwebrtc/api/video/frame_buffer_gn/moz.build -index c5f5d34a4e61..4af72222343b 100644 +index 976a6ff25651..01221e0c95b7 100644 --- third_party/libwebrtc/api/video/frame_buffer_gn/moz.build +++ third_party/libwebrtc/api/video/frame_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -18658,13 +20406,17 @@ index c5f5d34a4e61..4af72222343b 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -18684,6 +20436,10 @@ index c5f5d34a4e61..4af72222343b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -18691,6 +20447,10 @@ index c5f5d34a4e61..4af72222343b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -18704,12 +20464,12 @@ index c5f5d34a4e61..4af72222343b 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -18722,6 +20482,10 @@ index c5f5d34a4e61..4af72222343b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -18759,7 +20523,7 @@ index c5f5d34a4e61..4af72222343b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -18817,10 +20581,10 @@ index c5f5d34a4e61..4af72222343b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -18831,10 +20595,10 @@ index c5f5d34a4e61..4af72222343b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -18846,16 +20610,15 @@ index c5f5d34a4e61..4af72222343b 100644 Library("frame_buffer_gn") diff --git third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build -index 955432300e05..0d61ca33884f 100644 +index 90c39627ea9c..315daacff346 100644 --- third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build +++ third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -18872,7 +20635,7 @@ index 955432300e05..0d61ca33884f 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -18968,7 +20731,7 @@ index 955432300e05..0d61ca33884f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -18994,7 +20757,7 @@ index 955432300e05..0d61ca33884f 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -19036,16 +20799,15 @@ index 955432300e05..0d61ca33884f 100644 - Library("recordable_encoded_frame_gn") diff --git third_party/libwebrtc/api/video/render_resolution_gn/moz.build third_party/libwebrtc/api/video/render_resolution_gn/moz.build -index 6b8d5d0ce97f..c1248e15a3c5 100644 +index 6b314536b258..9961eaa7d49b 100644 --- third_party/libwebrtc/api/video/render_resolution_gn/moz.build +++ third_party/libwebrtc/api/video/render_resolution_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -19062,7 +20824,7 @@ index 6b8d5d0ce97f..c1248e15a3c5 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -19147,7 +20909,7 @@ index 6b8d5d0ce97f..c1248e15a3c5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -19173,7 +20935,7 @@ index 6b8d5d0ce97f..c1248e15a3c5 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -19215,16 +20977,15 @@ index 6b8d5d0ce97f..c1248e15a3c5 100644 - Library("render_resolution_gn") diff --git third_party/libwebrtc/api/video/resolution_gn/moz.build third_party/libwebrtc/api/video/resolution_gn/moz.build -index 2bdc20cfef27..bab75c04d836 100644 +index 04e2b1922e32..e6dbc2d6f88c 100644 --- third_party/libwebrtc/api/video/resolution_gn/moz.build +++ third_party/libwebrtc/api/video/resolution_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -19241,7 +21002,7 @@ index 2bdc20cfef27..bab75c04d836 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -19326,7 +21087,7 @@ index 2bdc20cfef27..bab75c04d836 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -19352,7 +21113,7 @@ index 2bdc20cfef27..bab75c04d836 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -19394,16 +21155,23 @@ index 2bdc20cfef27..bab75c04d836 100644 - Library("resolution_gn") diff --git third_party/libwebrtc/api/video/video_adaptation_gn/moz.build third_party/libwebrtc/api/video/video_adaptation_gn/moz.build -index 67f8e53f06df..56d3d234e6e3 100644 +index d142cec6811b..5b0a157dee57 100644 --- third_party/libwebrtc/api/video/video_adaptation_gn/moz.build +++ third_party/libwebrtc/api/video/video_adaptation_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -19420,13 +21188,17 @@ index 67f8e53f06df..56d3d234e6e3 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -19445,6 +21217,10 @@ index 67f8e53f06df..56d3d234e6e3 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -19452,6 +21228,10 @@ index 67f8e53f06df..56d3d234e6e3 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -19467,6 +21247,10 @@ index 67f8e53f06df..56d3d234e6e3 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -19479,6 +21263,10 @@ index 67f8e53f06df..56d3d234e6e3 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -19509,7 +21297,7 @@ index 67f8e53f06df..56d3d234e6e3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -19596,16 +21384,23 @@ index 67f8e53f06df..56d3d234e6e3 100644 Library("video_adaptation_gn") diff --git third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build -index ed2d2852f7c8..d695a8170d44 100644 +index 8d1cc02953c4..1139199f56de 100644 --- third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build +++ third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -19622,13 +21417,17 @@ index ed2d2852f7c8..d695a8170d44 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -19647,6 +21446,10 @@ index ed2d2852f7c8..d695a8170d44 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -19654,6 +21457,10 @@ index ed2d2852f7c8..d695a8170d44 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -19669,6 +21476,10 @@ index ed2d2852f7c8..d695a8170d44 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -19681,6 +21492,10 @@ index ed2d2852f7c8..d695a8170d44 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -19711,7 +21526,7 @@ index ed2d2852f7c8..d695a8170d44 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -19798,16 +21613,15 @@ index ed2d2852f7c8..d695a8170d44 100644 Library("video_bitrate_allocation_gn") diff --git third_party/libwebrtc/api/video/video_bitrate_allocator_factory_gn/moz.build third_party/libwebrtc/api/video/video_bitrate_allocator_factory_gn/moz.build -index d89179c9d034..94bff6a3ed16 100644 +index d2bf0c7403d6..6be377872652 100644 --- third_party/libwebrtc/api/video/video_bitrate_allocator_factory_gn/moz.build +++ third_party/libwebrtc/api/video/video_bitrate_allocator_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -19824,7 +21638,7 @@ index d89179c9d034..94bff6a3ed16 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -19869,10 +21683,6 @@ index d89179c9d034..94bff6a3ed16 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -19924,7 +21734,7 @@ index d89179c9d034..94bff6a3ed16 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -19950,7 +21760,7 @@ index d89179c9d034..94bff6a3ed16 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -19992,16 +21802,23 @@ index d89179c9d034..94bff6a3ed16 100644 - Library("video_bitrate_allocator_factory_gn") diff --git third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build -index f647df98e87a..5fee26a31e98 100644 +index 53ac7e089c7a..c36c59f06b72 100644 --- third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build +++ third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -20018,13 +21835,17 @@ index f647df98e87a..5fee26a31e98 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -20043,6 +21864,10 @@ index f647df98e87a..5fee26a31e98 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -20050,6 +21875,10 @@ index f647df98e87a..5fee26a31e98 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -20065,6 +21894,10 @@ index f647df98e87a..5fee26a31e98 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -20077,6 +21910,10 @@ index f647df98e87a..5fee26a31e98 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -20107,7 +21944,7 @@ index f647df98e87a..5fee26a31e98 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -20194,16 +22031,15 @@ index f647df98e87a..5fee26a31e98 100644 Library("video_bitrate_allocator_gn") diff --git third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build -index 2c7b69b25447..d9d3757994c1 100644 +index 12364de002c7..3dcb2f1fa8a7 100644 --- third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build +++ third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -20220,7 +22056,7 @@ index 2c7b69b25447..d9d3757994c1 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -20305,7 +22141,7 @@ index 2c7b69b25447..d9d3757994c1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -20331,7 +22167,7 @@ index 2c7b69b25447..d9d3757994c1 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -20373,16 +22209,23 @@ index 2c7b69b25447..d9d3757994c1 100644 - Library("video_codec_constants_gn") diff --git third_party/libwebrtc/api/video/video_frame_gn/moz.build third_party/libwebrtc/api/video/video_frame_gn/moz.build -index 696ff9193103..add3d8c1eae9 100644 +index 0563038a395c..ea93de3e6bbf 100644 --- third_party/libwebrtc/api/video/video_frame_gn/moz.build +++ third_party/libwebrtc/api/video/video_frame_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -20399,13 +22242,17 @@ index 696ff9193103..add3d8c1eae9 100644 FINAL_LIBRARY = "xul" -@@ -58,94 +67,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -57,114 +70,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -20424,6 +22271,10 @@ index 696ff9193103..add3d8c1eae9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -20431,6 +22282,10 @@ index 696ff9193103..add3d8c1eae9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -20446,6 +22301,10 @@ index 696ff9193103..add3d8c1eae9 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -20458,6 +22317,10 @@ index 696ff9193103..add3d8c1eae9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -20495,7 +22358,7 @@ index 696ff9193103..add3d8c1eae9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -153,82 +75,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -172,82 +78,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -20553,10 +22416,10 @@ index 696ff9193103..add3d8c1eae9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -20567,10 +22430,10 @@ index 696ff9193103..add3d8c1eae9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -20582,16 +22445,23 @@ index 696ff9193103..add3d8c1eae9 100644 Library("video_frame_gn") diff --git third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build -index 701f704041d9..170207de4607 100644 +index bfbd610a528b..3b78a97299cb 100644 --- third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build +++ third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -20608,13 +22478,17 @@ index 701f704041d9..170207de4607 100644 FINAL_LIBRARY = "xul" -@@ -54,94 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -53,114 +66,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -20633,6 +22507,10 @@ index 701f704041d9..170207de4607 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -20640,6 +22518,10 @@ index 701f704041d9..170207de4607 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -20655,6 +22537,10 @@ index 701f704041d9..170207de4607 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -20667,6 +22553,10 @@ index 701f704041d9..170207de4607 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -20704,7 +22594,7 @@ index 701f704041d9..170207de4607 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -168,82 +74,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -20762,10 +22652,10 @@ index 701f704041d9..170207de4607 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -20776,10 +22666,10 @@ index 701f704041d9..170207de4607 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -20791,16 +22681,23 @@ index 701f704041d9..170207de4607 100644 Library("video_frame_i010_gn") diff --git third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build -index 1385708188f8..e6d75386164a 100644 +index 75b269e2048f..732982ea8f93 100644 --- third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build +++ third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -20817,13 +22714,17 @@ index 1385708188f8..e6d75386164a 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -20842,6 +22743,10 @@ index 1385708188f8..e6d75386164a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -20849,6 +22754,10 @@ index 1385708188f8..e6d75386164a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -20864,6 +22773,10 @@ index 1385708188f8..e6d75386164a 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -20876,6 +22789,10 @@ index 1385708188f8..e6d75386164a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -20913,7 +22830,7 @@ index 1385708188f8..e6d75386164a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -20971,10 +22888,10 @@ index 1385708188f8..e6d75386164a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -20985,10 +22902,10 @@ index 1385708188f8..e6d75386164a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -21000,16 +22917,15 @@ index 1385708188f8..e6d75386164a 100644 Library("video_frame_metadata_gn") diff --git third_party/libwebrtc/api/video/video_frame_type_gn/moz.build third_party/libwebrtc/api/video/video_frame_type_gn/moz.build -index 41926d168f2e..c45d7d819761 100644 +index 5935a6c894c2..095217577bc0 100644 --- third_party/libwebrtc/api/video/video_frame_type_gn/moz.build +++ third_party/libwebrtc/api/video/video_frame_type_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -21026,7 +22942,7 @@ index 41926d168f2e..c45d7d819761 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -21115,7 +23031,7 @@ index 41926d168f2e..c45d7d819761 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -21141,7 +23057,7 @@ index 41926d168f2e..c45d7d819761 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -21183,16 +23099,15 @@ index 41926d168f2e..c45d7d819761 100644 - Library("video_frame_type_gn") diff --git third_party/libwebrtc/api/video/video_layers_allocation_gn/moz.build third_party/libwebrtc/api/video/video_layers_allocation_gn/moz.build -index 453b22c40132..75d7ee7ebad3 100644 +index af9ad6ff4c34..ad3d57b292f1 100644 --- third_party/libwebrtc/api/video/video_layers_allocation_gn/moz.build +++ third_party/libwebrtc/api/video/video_layers_allocation_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -21209,7 +23124,7 @@ index 453b22c40132..75d7ee7ebad3 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -21298,7 +23213,7 @@ index 453b22c40132..75d7ee7ebad3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -21324,7 +23239,7 @@ index 453b22c40132..75d7ee7ebad3 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -21366,16 +23281,23 @@ index 453b22c40132..75d7ee7ebad3 100644 - Library("video_layers_allocation_gn") diff --git third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build -index 79a3143de82e..9985be046df8 100644 +index 7c66b583afd8..ff59a9c613f9 100644 --- third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build +++ third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -21392,13 +23314,17 @@ index 79a3143de82e..9985be046df8 100644 FINAL_LIBRARY = "xul" -@@ -50,94 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -21417,6 +23343,10 @@ index 79a3143de82e..9985be046df8 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -21424,6 +23354,10 @@ index 79a3143de82e..9985be046df8 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -21439,6 +23373,10 @@ index 79a3143de82e..9985be046df8 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -21451,6 +23389,10 @@ index 79a3143de82e..9985be046df8 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -21488,7 +23430,7 @@ index 79a3143de82e..9985be046df8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -145,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -21546,10 +23488,10 @@ index 79a3143de82e..9985be046df8 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -21560,10 +23502,10 @@ index 79a3143de82e..9985be046df8 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -21575,16 +23517,15 @@ index 79a3143de82e..9985be046df8 100644 Library("video_rtp_headers_gn") diff --git third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build -index d12a2d2af66c..c64b22b66cd4 100644 +index a006d12053d8..21688646efab 100644 --- third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build +++ third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -21601,7 +23542,7 @@ index d12a2d2af66c..c64b22b66cd4 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -21646,10 +23587,6 @@ index d12a2d2af66c..c64b22b66cd4 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -21701,7 +23638,7 @@ index d12a2d2af66c..c64b22b66cd4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -21727,7 +23664,7 @@ index d12a2d2af66c..c64b22b66cd4 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -21769,16 +23706,15 @@ index d12a2d2af66c..c64b22b66cd4 100644 - Library("video_stream_encoder_gn") diff --git third_party/libwebrtc/api/video_codecs/bitstream_parser_api_gn/moz.build third_party/libwebrtc/api/video_codecs/bitstream_parser_api_gn/moz.build -index fffc859f7e91..85c4a75b1d5e 100644 +index 07c2bb5faf09..ab4917f08c5b 100644 --- third_party/libwebrtc/api/video_codecs/bitstream_parser_api_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/bitstream_parser_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -21795,7 +23731,7 @@ index fffc859f7e91..85c4a75b1d5e 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -21884,7 +23820,7 @@ index fffc859f7e91..85c4a75b1d5e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -21910,7 +23846,7 @@ index fffc859f7e91..85c4a75b1d5e 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -21952,16 +23888,23 @@ index fffc859f7e91..85c4a75b1d5e 100644 - Library("bitstream_parser_api_gn") diff --git third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build -index 093dee7324ce..f6ebd363cae6 100644 +index 8395acf5481d..5b5ee908771a 100644 --- third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -21978,13 +23921,17 @@ index 093dee7324ce..f6ebd363cae6 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -22004,6 +23951,10 @@ index 093dee7324ce..f6ebd363cae6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -22011,6 +23962,10 @@ index 093dee7324ce..f6ebd363cae6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -22024,12 +23979,12 @@ index 093dee7324ce..f6ebd363cae6 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -22042,6 +23997,10 @@ index 093dee7324ce..f6ebd363cae6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -22079,7 +24038,7 @@ index 093dee7324ce..f6ebd363cae6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -22137,10 +24096,10 @@ index 093dee7324ce..f6ebd363cae6 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -22151,10 +24110,10 @@ index 093dee7324ce..f6ebd363cae6 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -22166,16 +24125,23 @@ index 093dee7324ce..f6ebd363cae6 100644 Library("builtin_video_decoder_factory_gn") diff --git third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build -index 010aa6536cc7..f006fa8fd340 100644 +index 83b3e5382450..56d24eb49b3a 100644 --- third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -22192,13 +24158,17 @@ index 010aa6536cc7..f006fa8fd340 100644 FINAL_LIBRARY = "xul" -@@ -48,99 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,115 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -22218,6 +24188,10 @@ index 010aa6536cc7..f006fa8fd340 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -22225,6 +24199,10 @@ index 010aa6536cc7..f006fa8fd340 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -22238,12 +24216,12 @@ index 010aa6536cc7..f006fa8fd340 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -22256,6 +24234,10 @@ index 010aa6536cc7..f006fa8fd340 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -22293,7 +24275,7 @@ index 010aa6536cc7..f006fa8fd340 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -22351,10 +24333,10 @@ index 010aa6536cc7..f006fa8fd340 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -22365,10 +24347,10 @@ index 010aa6536cc7..f006fa8fd340 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -22380,16 +24362,23 @@ index 010aa6536cc7..f006fa8fd340 100644 Library("rtc_software_fallback_wrappers_gn") diff --git third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build -index a4109078ad18..7d91ac4ebccb 100644 +index 661ac13346af..289cbee55009 100644 --- third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -22406,13 +24395,17 @@ index a4109078ad18..7d91ac4ebccb 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -22431,6 +24424,10 @@ index a4109078ad18..7d91ac4ebccb 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -22438,6 +24435,10 @@ index a4109078ad18..7d91ac4ebccb 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -22453,6 +24454,10 @@ index a4109078ad18..7d91ac4ebccb 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -22465,6 +24470,10 @@ index a4109078ad18..7d91ac4ebccb 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -22495,7 +24504,7 @@ index a4109078ad18..7d91ac4ebccb 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -22582,16 +24591,23 @@ index a4109078ad18..7d91ac4ebccb 100644 Library("scalability_mode_gn") diff --git third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build -index 413d7c625981..ec54403372c6 100644 +index da45996c83c0..055e6ae6e83b 100644 --- third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -22608,13 +24624,17 @@ index 413d7c625981..ec54403372c6 100644 FINAL_LIBRARY = "xul" -@@ -57,98 +66,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -56,114 +69,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -22633,6 +24653,10 @@ index 413d7c625981..ec54403372c6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -22640,6 +24664,10 @@ index 413d7c625981..ec54403372c6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -22653,12 +24681,12 @@ index 413d7c625981..ec54403372c6 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -22671,6 +24699,10 @@ index 413d7c625981..ec54403372c6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -22708,7 +24740,7 @@ index 413d7c625981..ec54403372c6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -156,82 +74,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -171,82 +77,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -22766,10 +24798,10 @@ index 413d7c625981..ec54403372c6 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -22780,10 +24812,10 @@ index 413d7c625981..ec54403372c6 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -22795,16 +24827,15 @@ index 413d7c625981..ec54403372c6 100644 Library("video_codecs_api_gn") diff --git third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_gn/moz.build third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_gn/moz.build -index 4afbd15a2ede..4b1b30a2d0f6 100644 +index 1a9164e7e41c..c76c9a3552d7 100644 --- third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -22821,7 +24852,7 @@ index 4afbd15a2ede..4b1b30a2d0f6 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -22866,10 +24897,6 @@ index 4afbd15a2ede..4b1b30a2d0f6 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -22921,7 +24948,7 @@ index 4afbd15a2ede..4b1b30a2d0f6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -22947,7 +24974,7 @@ index 4afbd15a2ede..4b1b30a2d0f6 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -22989,16 +25016,15 @@ index 4afbd15a2ede..4b1b30a2d0f6 100644 - Library("video_encoder_factory_template_gn") diff --git third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libaom_av1_adapter_gn/moz.build third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libaom_av1_adapter_gn/moz.build -index 8c0ce390c137..78cced434a30 100644 +index a8b930a85b6b..b22b0a732179 100644 --- third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libaom_av1_adapter_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libaom_av1_adapter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -23015,7 +25041,7 @@ index 8c0ce390c137..78cced434a30 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -23060,10 +25086,6 @@ index 8c0ce390c137..78cced434a30 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -23115,7 +25137,7 @@ index 8c0ce390c137..78cced434a30 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -23141,7 +25163,7 @@ index 8c0ce390c137..78cced434a30 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -23183,16 +25205,15 @@ index 8c0ce390c137..78cced434a30 100644 - Library("video_encoder_factory_template_libaom_av1_adapter_gn") diff --git third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter_gn/moz.build third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter_gn/moz.build -index ce8123fb6451..a664d72af4fd 100644 +index 9dac3c93b2a3..db12a5af1e46 100644 --- third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -23209,7 +25230,7 @@ index ce8123fb6451..a664d72af4fd 100644 FINAL_LIBRARY = "xul" -@@ -43,99 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -23255,10 +25276,6 @@ index ce8123fb6451..a664d72af4fd 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -23310,7 +25327,7 @@ index ce8123fb6451..a664d72af4fd 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -23336,7 +25353,7 @@ index ce8123fb6451..a664d72af4fd 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -171,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -23378,16 +25395,15 @@ index ce8123fb6451..a664d72af4fd 100644 - Library("video_encoder_factory_template_libvpx_vp8_adapter_gn") diff --git third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp9_adapter_gn/moz.build third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp9_adapter_gn/moz.build -index 49a98cd715ca..e25c605b56cf 100644 +index 0eef288f971c..1bb0b123d76f 100644 --- third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp9_adapter_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp9_adapter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -23404,7 +25420,7 @@ index 49a98cd715ca..e25c605b56cf 100644 FINAL_LIBRARY = "xul" -@@ -43,99 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -23450,10 +25466,6 @@ index 49a98cd715ca..e25c605b56cf 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -23505,7 +25517,7 @@ index 49a98cd715ca..e25c605b56cf 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -23531,7 +25543,7 @@ index 49a98cd715ca..e25c605b56cf 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -171,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -23573,16 +25585,15 @@ index 49a98cd715ca..e25c605b56cf 100644 - Library("video_encoder_factory_template_libvpx_vp9_adapter_gn") diff --git third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_open_h264_adapter_gn/moz.build third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_open_h264_adapter_gn/moz.build -index eae3f9817f18..f079fa84bb50 100644 +index 62b95f84fd54..c3611901cec2 100644 --- third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_open_h264_adapter_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_open_h264_adapter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -23599,7 +25610,7 @@ index eae3f9817f18..f079fa84bb50 100644 FINAL_LIBRARY = "xul" -@@ -43,99 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -23645,10 +25656,6 @@ index eae3f9817f18..f079fa84bb50 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -23700,7 +25707,7 @@ index eae3f9817f18..f079fa84bb50 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -23726,7 +25733,7 @@ index eae3f9817f18..f079fa84bb50 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -171,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -23768,16 +25775,23 @@ index eae3f9817f18..f079fa84bb50 100644 - Library("video_encoder_factory_template_open_h264_adapter_gn") diff --git third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build -index bb5a5b56e8fd..907dd961dc79 100644 +index 287b47573441..8987834c3404 100644 --- third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build +++ third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -23794,13 +25808,17 @@ index bb5a5b56e8fd..907dd961dc79 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -23820,6 +25838,10 @@ index bb5a5b56e8fd..907dd961dc79 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -23827,6 +25849,10 @@ index bb5a5b56e8fd..907dd961dc79 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -23840,12 +25866,12 @@ index bb5a5b56e8fd..907dd961dc79 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -23858,6 +25884,10 @@ index bb5a5b56e8fd..907dd961dc79 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -23895,7 +25925,7 @@ index bb5a5b56e8fd..907dd961dc79 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -23953,10 +25983,10 @@ index bb5a5b56e8fd..907dd961dc79 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -23967,10 +25997,10 @@ index bb5a5b56e8fd..907dd961dc79 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -23982,16 +26012,15 @@ index bb5a5b56e8fd..907dd961dc79 100644 Library("vp8_temporal_layers_factory_gn") diff --git third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build -index e09e7bbfe6a7..04e07ea7827b 100644 +index 2ea47a17004e..60fc36572eb3 100644 --- third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build +++ third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -24008,7 +26037,7 @@ index e09e7bbfe6a7..04e07ea7827b 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -24093,7 +26122,7 @@ index e09e7bbfe6a7..04e07ea7827b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -24119,7 +26148,7 @@ index e09e7bbfe6a7..04e07ea7827b 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -24161,16 +26190,23 @@ index e09e7bbfe6a7..04e07ea7827b 100644 - Library("video_track_source_constraints_gn") diff --git third_party/libwebrtc/audio/audio_gn/moz.build third_party/libwebrtc/audio/audio_gn/moz.build -index 1cbb2c1a06d7..739344689e8f 100644 +index 0f6558106fa3..8713480a7a16 100644 --- third_party/libwebrtc/audio/audio_gn/moz.build +++ third_party/libwebrtc/audio/audio_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -24187,13 +26223,17 @@ index 1cbb2c1a06d7..739344689e8f 100644 FINAL_LIBRARY = "xul" -@@ -59,99 +68,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -58,115 +71,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -24213,6 +26253,10 @@ index 1cbb2c1a06d7..739344689e8f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -24220,6 +26264,10 @@ index 1cbb2c1a06d7..739344689e8f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -24233,12 +26281,12 @@ index 1cbb2c1a06d7..739344689e8f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -24251,6 +26299,10 @@ index 1cbb2c1a06d7..739344689e8f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -24288,7 +26340,7 @@ index 1cbb2c1a06d7..739344689e8f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -159,82 +76,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -174,82 +79,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -24346,10 +26398,10 @@ index 1cbb2c1a06d7..739344689e8f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -24360,10 +26412,10 @@ index 1cbb2c1a06d7..739344689e8f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -24375,16 +26427,23 @@ index 1cbb2c1a06d7..739344689e8f 100644 Library("audio_gn") diff --git third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build -index 92fbf1e0dede..74cd0b3926b2 100644 +index c9e14552b453..266fce02a468 100644 --- third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build +++ third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -24401,13 +26460,17 @@ index 92fbf1e0dede..74cd0b3926b2 100644 FINAL_LIBRARY = "xul" -@@ -49,98 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,114 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -24426,6 +26489,10 @@ index 92fbf1e0dede..74cd0b3926b2 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -24433,6 +26500,10 @@ index 92fbf1e0dede..74cd0b3926b2 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -24446,12 +26517,12 @@ index 92fbf1e0dede..74cd0b3926b2 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -24464,6 +26535,10 @@ index 92fbf1e0dede..74cd0b3926b2 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -24501,7 +26576,7 @@ index 92fbf1e0dede..74cd0b3926b2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -24559,10 +26634,10 @@ index 92fbf1e0dede..74cd0b3926b2 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -24573,10 +26648,10 @@ index 92fbf1e0dede..74cd0b3926b2 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -24588,16 +26663,23 @@ index 92fbf1e0dede..74cd0b3926b2 100644 Library("audio_frame_operations_gn") diff --git third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build -index c7a0b64d117e..d73d7f34b9c0 100644 +index 78921cc941f9..e8a3cb15337b 100644 --- third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build +++ third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -24614,13 +26696,17 @@ index c7a0b64d117e..d73d7f34b9c0 100644 FINAL_LIBRARY = "xul" -@@ -56,98 +65,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -55,114 +68,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -24639,6 +26725,10 @@ index c7a0b64d117e..d73d7f34b9c0 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -24646,6 +26736,10 @@ index c7a0b64d117e..d73d7f34b9c0 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -24659,12 +26753,12 @@ index c7a0b64d117e..d73d7f34b9c0 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -24677,6 +26771,10 @@ index c7a0b64d117e..d73d7f34b9c0 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -24714,7 +26812,7 @@ index c7a0b64d117e..d73d7f34b9c0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -155,82 +73,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -170,82 +76,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -24772,10 +26870,10 @@ index c7a0b64d117e..d73d7f34b9c0 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -24786,10 +26884,10 @@ index c7a0b64d117e..d73d7f34b9c0 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -24801,16 +26899,15 @@ index c7a0b64d117e..d73d7f34b9c0 100644 Library("resource_adaptation_gn") diff --git third_party/libwebrtc/call/audio_sender_interface_gn/moz.build third_party/libwebrtc/call/audio_sender_interface_gn/moz.build -index 996e17f52c62..cb998aabc5b0 100644 +index d585bb6edff0..b4a643771882 100644 --- third_party/libwebrtc/call/audio_sender_interface_gn/moz.build +++ third_party/libwebrtc/call/audio_sender_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -24827,7 +26924,7 @@ index 996e17f52c62..cb998aabc5b0 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -24923,7 +27020,7 @@ index 996e17f52c62..cb998aabc5b0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -24949,7 +27046,7 @@ index 996e17f52c62..cb998aabc5b0 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -24991,16 +27088,23 @@ index 996e17f52c62..cb998aabc5b0 100644 - Library("audio_sender_interface_gn") diff --git third_party/libwebrtc/call/bitrate_allocator_gn/moz.build third_party/libwebrtc/call/bitrate_allocator_gn/moz.build -index 94a7d297858f..e6aa6ea71441 100644 +index 3ed5924b069f..c233d4789a84 100644 --- third_party/libwebrtc/call/bitrate_allocator_gn/moz.build +++ third_party/libwebrtc/call/bitrate_allocator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -25017,13 +27121,17 @@ index 94a7d297858f..e6aa6ea71441 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -25042,6 +27150,10 @@ index 94a7d297858f..e6aa6ea71441 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -25049,6 +27161,10 @@ index 94a7d297858f..e6aa6ea71441 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -25062,12 +27178,12 @@ index 94a7d297858f..e6aa6ea71441 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -25080,6 +27196,10 @@ index 94a7d297858f..e6aa6ea71441 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -25117,7 +27237,7 @@ index 94a7d297858f..e6aa6ea71441 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -25175,10 +27295,10 @@ index 94a7d297858f..e6aa6ea71441 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -25189,10 +27309,10 @@ index 94a7d297858f..e6aa6ea71441 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -25204,16 +27324,23 @@ index 94a7d297858f..e6aa6ea71441 100644 Library("bitrate_allocator_gn") diff --git third_party/libwebrtc/call/bitrate_configurator_gn/moz.build third_party/libwebrtc/call/bitrate_configurator_gn/moz.build -index 698c10c5dfca..ee2b3f2991b7 100644 +index c58befd49ca2..698f00ffa213 100644 --- third_party/libwebrtc/call/bitrate_configurator_gn/moz.build +++ third_party/libwebrtc/call/bitrate_configurator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -25230,13 +27357,17 @@ index 698c10c5dfca..ee2b3f2991b7 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -25255,6 +27386,10 @@ index 698c10c5dfca..ee2b3f2991b7 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -25262,6 +27397,10 @@ index 698c10c5dfca..ee2b3f2991b7 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -25277,6 +27416,10 @@ index 698c10c5dfca..ee2b3f2991b7 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -25289,6 +27432,10 @@ index 698c10c5dfca..ee2b3f2991b7 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -25319,7 +27466,7 @@ index 698c10c5dfca..ee2b3f2991b7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -25406,16 +27553,23 @@ index 698c10c5dfca..ee2b3f2991b7 100644 Library("bitrate_configurator_gn") diff --git third_party/libwebrtc/call/call_gn/moz.build third_party/libwebrtc/call/call_gn/moz.build -index e9153eb454ce..d9f72a02b60c 100644 +index f9aec69b9481..0b6233af7cf4 100644 --- third_party/libwebrtc/call/call_gn/moz.build +++ third_party/libwebrtc/call/call_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -25432,13 +27586,17 @@ index e9153eb454ce..d9f72a02b60c 100644 FINAL_LIBRARY = "xul" -@@ -49,99 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,115 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -25458,6 +27616,10 @@ index e9153eb454ce..d9f72a02b60c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -25465,6 +27627,10 @@ index e9153eb454ce..d9f72a02b60c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -25478,12 +27644,12 @@ index e9153eb454ce..d9f72a02b60c 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -25496,6 +27662,10 @@ index e9153eb454ce..d9f72a02b60c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -25533,7 +27703,7 @@ index e9153eb454ce..d9f72a02b60c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -25591,10 +27761,10 @@ index e9153eb454ce..d9f72a02b60c 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -25605,10 +27775,10 @@ index e9153eb454ce..d9f72a02b60c 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -25620,16 +27790,23 @@ index e9153eb454ce..d9f72a02b60c 100644 Library("call_gn") diff --git third_party/libwebrtc/call/call_interfaces_gn/moz.build third_party/libwebrtc/call/call_interfaces_gn/moz.build -index f1f1bb303843..d0ef9d525d5a 100644 +index 1f23b1b27a12..1ea225bc89ec 100644 --- third_party/libwebrtc/call/call_interfaces_gn/moz.build +++ third_party/libwebrtc/call/call_interfaces_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -25646,13 +27823,17 @@ index f1f1bb303843..d0ef9d525d5a 100644 FINAL_LIBRARY = "xul" -@@ -52,99 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -51,115 +64,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -25672,6 +27853,10 @@ index f1f1bb303843..d0ef9d525d5a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -25679,6 +27864,10 @@ index f1f1bb303843..d0ef9d525d5a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -25692,12 +27881,12 @@ index f1f1bb303843..d0ef9d525d5a 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -25710,6 +27899,10 @@ index f1f1bb303843..d0ef9d525d5a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -25747,7 +27940,7 @@ index f1f1bb303843..d0ef9d525d5a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -152,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -167,82 +72,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -25805,10 +27998,10 @@ index f1f1bb303843..d0ef9d525d5a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -25819,10 +28012,10 @@ index f1f1bb303843..d0ef9d525d5a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -25834,16 +28027,15 @@ index f1f1bb303843..d0ef9d525d5a 100644 Library("call_interfaces_gn") diff --git third_party/libwebrtc/call/payload_type_gn/moz.build third_party/libwebrtc/call/payload_type_gn/moz.build -index 85e28f429c7c..ca28e79f0b66 100644 +index cdfdd3213e1c..f4ab9557672a 100644 --- third_party/libwebrtc/call/payload_type_gn/moz.build +++ third_party/libwebrtc/call/payload_type_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -25860,7 +28052,7 @@ index 85e28f429c7c..ca28e79f0b66 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -25905,10 +28097,6 @@ index 85e28f429c7c..ca28e79f0b66 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -25960,7 +28148,7 @@ index 85e28f429c7c..ca28e79f0b66 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -25986,7 +28174,7 @@ index 85e28f429c7c..ca28e79f0b66 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -26028,16 +28216,23 @@ index 85e28f429c7c..ca28e79f0b66 100644 - Library("payload_type_gn") diff --git third_party/libwebrtc/call/payload_type_picker_gn/moz.build third_party/libwebrtc/call/payload_type_picker_gn/moz.build -index 650d536de7d3..020555402df4 100644 +index ec169391df3f..9ba0c035a513 100644 --- third_party/libwebrtc/call/payload_type_picker_gn/moz.build +++ third_party/libwebrtc/call/payload_type_picker_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -26054,13 +28249,17 @@ index 650d536de7d3..020555402df4 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -26079,6 +28278,10 @@ index 650d536de7d3..020555402df4 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -26086,6 +28289,10 @@ index 650d536de7d3..020555402df4 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -26099,12 +28306,12 @@ index 650d536de7d3..020555402df4 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -26117,6 +28324,10 @@ index 650d536de7d3..020555402df4 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -26154,7 +28365,7 @@ index 650d536de7d3..020555402df4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -26212,10 +28423,10 @@ index 650d536de7d3..020555402df4 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -26226,10 +28437,10 @@ index 650d536de7d3..020555402df4 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -26241,16 +28452,15 @@ index 650d536de7d3..020555402df4 100644 Library("payload_type_picker_gn") diff --git third_party/libwebrtc/call/receive_stream_interface_gn/moz.build third_party/libwebrtc/call/receive_stream_interface_gn/moz.build -index a6c6001f74e2..8d549a7ab50f 100644 +index 64966940592a..63ee63d8fd44 100644 --- third_party/libwebrtc/call/receive_stream_interface_gn/moz.build +++ third_party/libwebrtc/call/receive_stream_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -26267,7 +28477,7 @@ index a6c6001f74e2..8d549a7ab50f 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -26312,10 +28522,6 @@ index a6c6001f74e2..8d549a7ab50f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -26367,7 +28573,7 @@ index a6c6001f74e2..8d549a7ab50f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -26393,7 +28599,7 @@ index a6c6001f74e2..8d549a7ab50f 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -26435,16 +28641,23 @@ index a6c6001f74e2..8d549a7ab50f 100644 - Library("receive_stream_interface_gn") diff --git third_party/libwebrtc/call/rtp_interfaces_gn/moz.build third_party/libwebrtc/call/rtp_interfaces_gn/moz.build -index 85873e674c14..24f88b79244a 100644 +index a28b8e1a3ffb..bf8bfc4afa1a 100644 --- third_party/libwebrtc/call/rtp_interfaces_gn/moz.build +++ third_party/libwebrtc/call/rtp_interfaces_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -26461,13 +28674,17 @@ index 85873e674c14..24f88b79244a 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -26486,6 +28703,10 @@ index 85873e674c14..24f88b79244a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -26493,6 +28714,10 @@ index 85873e674c14..24f88b79244a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -26506,12 +28731,12 @@ index 85873e674c14..24f88b79244a 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -26524,6 +28749,10 @@ index 85873e674c14..24f88b79244a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -26561,7 +28790,7 @@ index 85873e674c14..24f88b79244a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -26619,10 +28848,10 @@ index 85873e674c14..24f88b79244a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -26633,10 +28862,10 @@ index 85873e674c14..24f88b79244a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -26648,16 +28877,23 @@ index 85873e674c14..24f88b79244a 100644 Library("rtp_interfaces_gn") diff --git third_party/libwebrtc/call/rtp_receiver_gn/moz.build third_party/libwebrtc/call/rtp_receiver_gn/moz.build -index 680b4c6faf4b..52c74494d5fe 100644 +index 2270482f3cec..411cfe288875 100644 --- third_party/libwebrtc/call/rtp_receiver_gn/moz.build +++ third_party/libwebrtc/call/rtp_receiver_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -26674,13 +28910,17 @@ index 680b4c6faf4b..52c74494d5fe 100644 FINAL_LIBRARY = "xul" -@@ -49,99 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,115 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -26700,6 +28940,10 @@ index 680b4c6faf4b..52c74494d5fe 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -26707,6 +28951,10 @@ index 680b4c6faf4b..52c74494d5fe 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -26720,12 +28968,12 @@ index 680b4c6faf4b..52c74494d5fe 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -26738,6 +28986,10 @@ index 680b4c6faf4b..52c74494d5fe 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -26775,7 +29027,7 @@ index 680b4c6faf4b..52c74494d5fe 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -26833,10 +29085,10 @@ index 680b4c6faf4b..52c74494d5fe 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -26847,10 +29099,10 @@ index 680b4c6faf4b..52c74494d5fe 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -26862,16 +29114,23 @@ index 680b4c6faf4b..52c74494d5fe 100644 Library("rtp_receiver_gn") diff --git third_party/libwebrtc/call/rtp_sender_gn/moz.build third_party/libwebrtc/call/rtp_sender_gn/moz.build -index c54282e5cead..483a0d764e21 100644 +index a700eea303e1..214f2fa96582 100644 --- third_party/libwebrtc/call/rtp_sender_gn/moz.build +++ third_party/libwebrtc/call/rtp_sender_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -26888,13 +29147,17 @@ index c54282e5cead..483a0d764e21 100644 FINAL_LIBRARY = "xul" -@@ -49,99 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,115 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -26914,6 +29177,10 @@ index c54282e5cead..483a0d764e21 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -26921,6 +29188,10 @@ index c54282e5cead..483a0d764e21 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -26934,12 +29205,12 @@ index c54282e5cead..483a0d764e21 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -26952,6 +29223,10 @@ index c54282e5cead..483a0d764e21 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -26989,7 +29264,7 @@ index c54282e5cead..483a0d764e21 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -27047,10 +29322,10 @@ index c54282e5cead..483a0d764e21 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -27061,10 +29336,10 @@ index c54282e5cead..483a0d764e21 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -27076,16 +29351,23 @@ index c54282e5cead..483a0d764e21 100644 Library("rtp_sender_gn") diff --git third_party/libwebrtc/call/version_gn/moz.build third_party/libwebrtc/call/version_gn/moz.build -index 68e67fa3d88a..a2f2266e7dda 100644 +index 6df784f98d03..7ce9a2c33b2a 100644 --- third_party/libwebrtc/call/version_gn/moz.build +++ third_party/libwebrtc/call/version_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -27102,13 +29384,17 @@ index 68e67fa3d88a..a2f2266e7dda 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -27123,6 +29409,10 @@ index 68e67fa3d88a..a2f2266e7dda 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -27130,6 +29420,10 @@ index 68e67fa3d88a..a2f2266e7dda 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -27145,6 +29439,10 @@ index 68e67fa3d88a..a2f2266e7dda 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -27157,6 +29455,10 @@ index 68e67fa3d88a..a2f2266e7dda 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -27187,7 +29489,7 @@ index 68e67fa3d88a..a2f2266e7dda 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -27245,10 +29547,10 @@ index 68e67fa3d88a..a2f2266e7dda 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -27259,10 +29561,10 @@ index 68e67fa3d88a..a2f2266e7dda 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -27274,16 +29576,23 @@ index 68e67fa3d88a..a2f2266e7dda 100644 Library("version_gn") diff --git third_party/libwebrtc/call/video_receive_stream_api_gn/moz.build third_party/libwebrtc/call/video_receive_stream_api_gn/moz.build -index 42919d9750d6..5c78f2ae7501 100644 +index 3f79e8283204..193d1cf61255 100644 --- third_party/libwebrtc/call/video_receive_stream_api_gn/moz.build +++ third_party/libwebrtc/call/video_receive_stream_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -27300,13 +29609,17 @@ index 42919d9750d6..5c78f2ae7501 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -27325,6 +29638,10 @@ index 42919d9750d6..5c78f2ae7501 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -27332,6 +29649,10 @@ index 42919d9750d6..5c78f2ae7501 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -27345,12 +29666,12 @@ index 42919d9750d6..5c78f2ae7501 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -27363,6 +29684,10 @@ index 42919d9750d6..5c78f2ae7501 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -27400,7 +29725,7 @@ index 42919d9750d6..5c78f2ae7501 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -27458,10 +29783,10 @@ index 42919d9750d6..5c78f2ae7501 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -27472,10 +29797,10 @@ index 42919d9750d6..5c78f2ae7501 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -27487,16 +29812,23 @@ index 42919d9750d6..5c78f2ae7501 100644 Library("video_receive_stream_api_gn") diff --git third_party/libwebrtc/call/video_send_stream_api_gn/moz.build third_party/libwebrtc/call/video_send_stream_api_gn/moz.build -index 313ac5a18542..9c2133892487 100644 +index b2b129fde9a1..3fb37cb3423d 100644 --- third_party/libwebrtc/call/video_send_stream_api_gn/moz.build +++ third_party/libwebrtc/call/video_send_stream_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -27513,13 +29845,17 @@ index 313ac5a18542..9c2133892487 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -27538,6 +29874,10 @@ index 313ac5a18542..9c2133892487 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -27545,6 +29885,10 @@ index 313ac5a18542..9c2133892487 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -27558,12 +29902,12 @@ index 313ac5a18542..9c2133892487 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -27576,6 +29920,10 @@ index 313ac5a18542..9c2133892487 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -27613,7 +29961,7 @@ index 313ac5a18542..9c2133892487 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -27671,10 +30019,10 @@ index 313ac5a18542..9c2133892487 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -27685,10 +30033,10 @@ index 313ac5a18542..9c2133892487 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -27700,16 +30048,24 @@ index 313ac5a18542..9c2133892487 100644 Library("video_send_stream_api_gn") diff --git third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build -index 9dc7f0d05cd6..f4c90763c1cf 100644 +index 5ffb201a4212..99fbd769e4f3 100644 --- third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build +++ third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build -@@ -18,14 +18,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -11,20 +11,30 @@ AllowCompilerWarnings() + + CXXFLAGS += [ + "-mavx2", +- "-mfma" ++ "-mfma", ++ "-std=gnu++20" + ] + + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -27727,13 +30083,17 @@ index 9dc7f0d05cd6..f4c90763c1cf 100644 FINAL_LIBRARY = "xul" -@@ -54,127 +63,9 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -53,143 +63,9 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -27752,6 +30112,10 @@ index 9dc7f0d05cd6..f4c90763c1cf 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -27759,6 +30123,10 @@ index 9dc7f0d05cd6..f4c90763c1cf 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -27773,12 +30141,12 @@ index 9dc7f0d05cd6..f4c90763c1cf 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -27791,6 +30159,10 @@ index 9dc7f0d05cd6..f4c90763c1cf 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -27857,16 +30229,15 @@ index 9dc7f0d05cd6..f4c90763c1cf 100644 CXXFLAGS += [ "-msse2" diff --git third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build -index 2adc30b60cc3..7ffb62cc89f2 100644 +index 5d96fe0893a9..0bb8ba5e4738 100644 --- third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build +++ third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -27883,7 +30254,7 @@ index 2adc30b60cc3..7ffb62cc89f2 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -27968,7 +30339,7 @@ index 2adc30b60cc3..7ffb62cc89f2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,30 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,30 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -27999,7 +30370,7 @@ index 2adc30b60cc3..7ffb62cc89f2 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -160,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -159,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -28041,16 +30412,15 @@ index 2adc30b60cc3..7ffb62cc89f2 100644 - Library("common_audio_c_arm_asm_gn") diff --git third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build -index 92ead1350503..499e855a6429 100644 +index aedc5ef7c816..8381d9637936 100644 --- third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build +++ third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -28067,7 +30437,7 @@ index 92ead1350503..499e855a6429 100644 FINAL_LIBRARY = "xul" -@@ -84,120 +93,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -83,109 +92,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -28122,10 +30492,6 @@ index 92ead1350503..499e855a6429 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -28173,13 +30539,6 @@ index 92ead1350503..499e855a6429 100644 - DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True - DEFINES["__STD_C"] = True - -- OS_LIBS += [ -- "crypt32", -- "iphlpapi", -- "secur32", -- "winmm" -- ] -- - UNIFIED_SOURCES += [ - "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c", - "/third_party/libwebrtc/common_audio/signal_processing/complex_fft.c", @@ -28189,7 +30548,7 @@ index 92ead1350503..499e855a6429 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -205,20 +101,14 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -193,20 +100,14 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -28214,7 +30573,7 @@ index 92ead1350503..499e855a6429 100644 UNIFIED_SOURCES += [ "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c", "/third_party/libwebrtc/common_audio/signal_processing/complex_fft.c", -@@ -229,7 +119,6 @@ if CONFIG["TARGET_CPU"] == "mips32": +@@ -217,7 +118,6 @@ if CONFIG["TARGET_CPU"] == "mips32": DEFINES["MIPS32_LE"] = True DEFINES["MIPS_FPU_LE"] = True @@ -28222,7 +30581,7 @@ index 92ead1350503..499e855a6429 100644 SOURCES += [ "/third_party/libwebrtc/common_audio/signal_processing/resample_by_2_mips.c" -@@ -246,8 +135,6 @@ if CONFIG["TARGET_CPU"] == "mips32": +@@ -234,8 +134,6 @@ if CONFIG["TARGET_CPU"] == "mips32": if CONFIG["TARGET_CPU"] == "mips64": @@ -28231,7 +30590,7 @@ index 92ead1350503..499e855a6429 100644 UNIFIED_SOURCES += [ "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c", "/third_party/libwebrtc/common_audio/signal_processing/complex_fft.c", -@@ -262,62 +149,7 @@ if CONFIG["TARGET_CPU"] == "ppc64": +@@ -250,78 +148,7 @@ if CONFIG["TARGET_CPU"] == "ppc64": "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" ] @@ -28291,14 +30650,13 @@ index 92ead1350503..499e855a6429 100644 -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True -+if CONFIG["TARGET_CPU"] == "riscv64": - - UNIFIED_SOURCES += [ - "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c", -@@ -325,29 +157,13 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" - ] - +- +- UNIFIED_SOURCES += [ +- "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c", +- "/third_party/libwebrtc/common_audio/signal_processing/complex_fft.c", +- "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": - - DEFINES["_GNU_SOURCE"] = True @@ -28308,13 +30666,14 @@ index 92ead1350503..499e855a6429 100644 - ] - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "riscv64": -- -- UNIFIED_SOURCES += [ -- "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c", -- "/third_party/libwebrtc/common_audio/signal_processing/complex_fft.c", -- "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" -- ] -- ++if CONFIG["TARGET_CPU"] == "riscv64": + + UNIFIED_SOURCES += [ + "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c", +@@ -329,13 +156,13 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "riscv64": + "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +if CONFIG["TARGET_CPU"] == "x86": @@ -28327,7 +30686,7 @@ index 92ead1350503..499e855a6429 100644 UNIFIED_SOURCES += [ "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c", -@@ -355,9 +171,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +@@ -343,9 +170,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" ] @@ -28340,16 +30699,23 @@ index 92ead1350503..499e855a6429 100644 UNIFIED_SOURCES += [ "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c", diff --git third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build -index 1560a14f085d..6e45b9b381b6 100644 +index 0164db65a36b..b19a8495d919 100644 --- third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build +++ third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -28366,13 +30732,17 @@ index 1560a14f085d..6e45b9b381b6 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -28391,6 +30761,10 @@ index 1560a14f085d..6e45b9b381b6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -28398,6 +30772,10 @@ index 1560a14f085d..6e45b9b381b6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -28411,12 +30789,12 @@ index 1560a14f085d..6e45b9b381b6 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -28429,6 +30807,10 @@ index 1560a14f085d..6e45b9b381b6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -28455,18 +30837,11 @@ index 1560a14f085d..6e45b9b381b6 100644 - DEFINES["_WINDOWS"] = True - DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True - DEFINES["__STD_C"] = True -- -- OS_LIBS += [ -- "crypt32", -- "iphlpapi", -- "secur32", -- "winmm" -- ] + DEFINES["_DEBUG"] = True if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -28553,16 +30928,23 @@ index 1560a14f085d..6e45b9b381b6 100644 Library("common_audio_cc_gn") diff --git third_party/libwebrtc/common_audio/common_audio_gn/moz.build third_party/libwebrtc/common_audio/common_audio_gn/moz.build -index 7ae87f142c97..898caf8d8737 100644 +index 13dbab50bc9a..46d820a5f097 100644 --- third_party/libwebrtc/common_audio/common_audio_gn/moz.build +++ third_party/libwebrtc/common_audio/common_audio_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -28579,13 +30961,17 @@ index 7ae87f142c97..898caf8d8737 100644 FINAL_LIBRARY = "xul" -@@ -60,98 +69,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -59,114 +72,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -28604,6 +30990,10 @@ index 7ae87f142c97..898caf8d8737 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -28611,6 +31001,10 @@ index 7ae87f142c97..898caf8d8737 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -28624,12 +31018,12 @@ index 7ae87f142c97..898caf8d8737 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -28642,6 +31036,10 @@ index 7ae87f142c97..898caf8d8737 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -28679,7 +31077,7 @@ index 7ae87f142c97..898caf8d8737 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -159,82 +77,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -174,82 +80,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -28737,10 +31135,10 @@ index 7ae87f142c97..898caf8d8737 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -28751,10 +31149,10 @@ index 7ae87f142c97..898caf8d8737 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -28766,16 +31164,15 @@ index 7ae87f142c97..898caf8d8737 100644 Library("common_audio_gn") diff --git third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build -index b25cc26758a9..aa3c85edd842 100644 +index e259acd562b7..ae82c184e9c5 100644 --- third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build +++ third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build -@@ -13,14 +13,25 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,13 +13,24 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_ARCH_ARM64"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -28795,7 +31192,7 @@ index b25cc26758a9..aa3c85edd842 100644 FINAL_LIBRARY = "xul" -@@ -50,143 +61,6 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,132 +60,6 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -28843,10 +31240,6 @@ index b25cc26758a9..aa3c85edd842 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -28892,13 +31285,6 @@ index b25cc26758a9..aa3c85edd842 100644 - DEFINES["__ARM_NEON__"] = "1" - DEFINES["__STD_C"] = True - -- OS_LIBS += [ -- "crypt32", -- "iphlpapi", -- "secur32", -- "winmm" -- ] -- -if CONFIG["TARGET_CPU"] == "arm": - - CFLAGS += [ @@ -28910,8 +31296,8 @@ index b25cc26758a9..aa3c85edd842 100644 - -if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": - -- DEFINES["_DEBUG"] = True -- + DEFINES["_DEBUG"] = True + -if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": - - DEFINES["_DEBUG"] = True @@ -28922,8 +31308,8 @@ index b25cc26758a9..aa3c85edd842 100644 - -if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["_DEBUG"] = True - +- DEFINES["_DEBUG"] = True +- -if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": - - DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" @@ -28940,16 +31326,23 @@ index b25cc26758a9..aa3c85edd842 100644 - Library("common_audio_neon_c_gn") diff --git third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build -index 68c741dd1e4e..82e3c5baa6fa 100644 +index 410a9b6c9e1e..fcf864a3511b 100644 --- third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build +++ third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build -@@ -13,14 +13,25 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,32 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_ARCH_ARM64"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -28969,13 +31362,17 @@ index 68c741dd1e4e..82e3c5baa6fa 100644 FINAL_LIBRARY = "xul" -@@ -49,143 +60,6 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,159 +63,6 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -28994,6 +31391,10 @@ index 68c741dd1e4e..82e3c5baa6fa 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_ARCH_ARM64"] = True - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True @@ -29003,6 +31404,10 @@ index 68c741dd1e4e..82e3c5baa6fa 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -29017,12 +31422,12 @@ index 68c741dd1e4e..82e3c5baa6fa 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ARCH_ARM64"] = True @@ -29037,6 +31442,10 @@ index 68c741dd1e4e..82e3c5baa6fa 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -29092,12 +31501,12 @@ index 68c741dd1e4e..82e3c5baa6fa 100644 - -if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": - -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": -- DEFINES["_DEBUG"] = True +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": +- +- DEFINES["_DEBUG"] = True +- -if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": - - DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" @@ -29114,16 +31523,23 @@ index 68c741dd1e4e..82e3c5baa6fa 100644 - Library("common_audio_neon_gn") diff --git third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build -index 5b461feec23b..29c9377cb4f9 100644 +index 95fa6e2c26ca..b53526107ee5 100644 --- third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build +++ third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -29141,13 +31557,17 @@ index 5b461feec23b..29c9377cb4f9 100644 FINAL_LIBRARY = "xul" -@@ -49,149 +58,16 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,159 +61,16 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -29167,7 +31587,8 @@ index 5b461feec23b..29c9377cb4f9 100644 -if CONFIG["OS_TARGET"] == "Darwin": - - CXXFLAGS += [ -- "-msse2" +- "-msse2", +- "-std=gnu++20" - ] - - DEFINES["WEBRTC_MAC"] = True @@ -29177,6 +31598,10 @@ index 5b461feec23b..29c9377cb4f9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -29191,14 +31616,11 @@ index 5b461feec23b..29c9377cb4f9 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - CXXFLAGS += [ -- "-msse2" +- "-msse2", +- "-std=gnu++20" - ] - - DEFINES["USE_GLIB"] = "1" @@ -29213,6 +31635,10 @@ index 5b461feec23b..29c9377cb4f9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -29294,16 +31720,23 @@ index 5b461feec23b..29c9377cb4f9 100644 CXXFLAGS += [ "-msse2" diff --git third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build -index 7f03b4b2e53f..bc11ece1d4d7 100644 +index 722bf527c9ba..b3573a266567 100644 --- third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build +++ third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -29320,13 +31753,17 @@ index 7f03b4b2e53f..bc11ece1d4d7 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -29345,6 +31782,10 @@ index 7f03b4b2e53f..bc11ece1d4d7 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -29352,6 +31793,10 @@ index 7f03b4b2e53f..bc11ece1d4d7 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -29365,12 +31810,12 @@ index 7f03b4b2e53f..bc11ece1d4d7 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -29383,6 +31828,10 @@ index 7f03b4b2e53f..bc11ece1d4d7 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -29420,7 +31869,7 @@ index 7f03b4b2e53f..bc11ece1d4d7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -29478,10 +31927,10 @@ index 7f03b4b2e53f..bc11ece1d4d7 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -29492,10 +31941,10 @@ index 7f03b4b2e53f..bc11ece1d4d7 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -29507,16 +31956,15 @@ index 7f03b4b2e53f..bc11ece1d4d7 100644 Library("fir_filter_factory_gn") diff --git third_party/libwebrtc/common_audio/fir_filter_gn/moz.build third_party/libwebrtc/common_audio/fir_filter_gn/moz.build -index eb3c6df45839..0fcc226c6d9a 100644 +index 577a3319bc5e..97bfb46c2b34 100644 --- third_party/libwebrtc/common_audio/fir_filter_gn/moz.build +++ third_party/libwebrtc/common_audio/fir_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -29533,7 +31981,7 @@ index eb3c6df45839..0fcc226c6d9a 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -29618,7 +32066,7 @@ index eb3c6df45839..0fcc226c6d9a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -29644,7 +32092,7 @@ index eb3c6df45839..0fcc226c6d9a 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -29686,16 +32134,15 @@ index eb3c6df45839..0fcc226c6d9a 100644 - Library("fir_filter_gn") diff --git third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build -index 22da9aa64e1f..8a65508b1542 100644 +index 5169bab0cd78..66ce24f0c8a8 100644 --- third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build +++ third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -29712,7 +32159,7 @@ index 22da9aa64e1f..8a65508b1542 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -29757,10 +32204,6 @@ index 22da9aa64e1f..8a65508b1542 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -29812,7 +32255,7 @@ index 22da9aa64e1f..8a65508b1542 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -29838,7 +32281,7 @@ index 22da9aa64e1f..8a65508b1542 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -29880,16 +32323,23 @@ index 22da9aa64e1f..8a65508b1542 100644 - Library("sinc_resampler_gn") diff --git third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build -index 8b9bb4c81cad..3440d15b9e1c 100644 +index 9b470d2c3df3..35ff0b9cb1ca 100644 --- third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build +++ third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -29906,13 +32356,17 @@ index 8b9bb4c81cad..3440d15b9e1c 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -29931,6 +32385,10 @@ index 8b9bb4c81cad..3440d15b9e1c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -29938,6 +32396,10 @@ index 8b9bb4c81cad..3440d15b9e1c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -29951,12 +32413,12 @@ index 8b9bb4c81cad..3440d15b9e1c 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -29969,6 +32431,10 @@ index 8b9bb4c81cad..3440d15b9e1c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -30006,7 +32472,7 @@ index 8b9bb4c81cad..3440d15b9e1c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -150,122 +68,38 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -165,122 +71,38 @@ if CONFIG["TARGET_CPU"] == "aarch64": "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_neon.cc" ] @@ -30137,16 +32603,23 @@ index 8b9bb4c81cad..3440d15b9e1c 100644 Library("fft_size_128_gn") diff --git third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build -index 3e62c5c7f5d2..7541b01f163e 100644 +index a97e1340a1c4..2bdbd579a813 100644 --- third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build +++ third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -30163,13 +32636,17 @@ index 3e62c5c7f5d2..7541b01f163e 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -30184,6 +32661,10 @@ index 3e62c5c7f5d2..7541b01f163e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -30191,6 +32672,10 @@ index 3e62c5c7f5d2..7541b01f163e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -30206,6 +32691,10 @@ index 3e62c5c7f5d2..7541b01f163e 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -30218,6 +32707,10 @@ index 3e62c5c7f5d2..7541b01f163e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -30248,7 +32741,7 @@ index 3e62c5c7f5d2..7541b01f163e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -30306,10 +32799,10 @@ index 3e62c5c7f5d2..7541b01f163e 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -30320,10 +32813,10 @@ index 3e62c5c7f5d2..7541b01f163e 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -30335,16 +32828,15 @@ index 3e62c5c7f5d2..7541b01f163e 100644 Library("fft_size_256_gn") diff --git third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build -index 3fbf9e4e2fee..d14b47d5e338 100644 +index 0d7a0bd85cf2..202e317ddd5c 100644 --- third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build +++ third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -30361,7 +32853,7 @@ index 3fbf9e4e2fee..d14b47d5e338 100644 FINAL_LIBRARY = "xul" -@@ -43,95 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -30458,7 +32950,7 @@ index 3fbf9e4e2fee..d14b47d5e338 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -139,20 +60,12 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,20 +59,12 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -30481,7 +32973,7 @@ index 3fbf9e4e2fee..d14b47d5e338 100644 UNIFIED_SOURCES += [ "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c" ] -@@ -161,7 +74,6 @@ if CONFIG["TARGET_CPU"] == "mips32": +@@ -160,7 +73,6 @@ if CONFIG["TARGET_CPU"] == "mips32": DEFINES["MIPS32_LE"] = True DEFINES["MIPS_FPU_LE"] = True @@ -30489,7 +32981,7 @@ index 3fbf9e4e2fee..d14b47d5e338 100644 UNIFIED_SOURCES += [ "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_mips.c" -@@ -169,8 +81,6 @@ if CONFIG["TARGET_CPU"] == "mips32": +@@ -168,8 +80,6 @@ if CONFIG["TARGET_CPU"] == "mips32": if CONFIG["TARGET_CPU"] == "mips64": @@ -30498,7 +32990,7 @@ index 3fbf9e4e2fee..d14b47d5e338 100644 UNIFIED_SOURCES += [ "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c" ] -@@ -181,89 +91,27 @@ if CONFIG["TARGET_CPU"] == "ppc64": +@@ -180,89 +90,27 @@ if CONFIG["TARGET_CPU"] == "ppc64": "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c" ] @@ -30594,16 +33086,23 @@ index 3fbf9e4e2fee..d14b47d5e338 100644 UNIFIED_SOURCES += [ "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c" diff --git third_party/libwebrtc/common_video/common_video_gn/moz.build third_party/libwebrtc/common_video/common_video_gn/moz.build -index 4594217ae7ea..ecade4065db8 100644 +index 5d190a1d8e58..8b7c8f83b3e9 100644 --- third_party/libwebrtc/common_video/common_video_gn/moz.build +++ third_party/libwebrtc/common_video/common_video_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -30620,13 +33119,17 @@ index 4594217ae7ea..ecade4065db8 100644 FINAL_LIBRARY = "xul" -@@ -59,98 +68,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -58,114 +71,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -30645,6 +33148,10 @@ index 4594217ae7ea..ecade4065db8 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -30652,6 +33159,10 @@ index 4594217ae7ea..ecade4065db8 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -30665,12 +33176,12 @@ index 4594217ae7ea..ecade4065db8 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -30683,6 +33194,10 @@ index 4594217ae7ea..ecade4065db8 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -30720,7 +33235,7 @@ index 4594217ae7ea..ecade4065db8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -158,82 +76,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -173,82 +79,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -30778,10 +33293,10 @@ index 4594217ae7ea..ecade4065db8 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -30792,10 +33307,10 @@ index 4594217ae7ea..ecade4065db8 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -30807,16 +33322,23 @@ index 4594217ae7ea..ecade4065db8 100644 Library("common_video_gn") diff --git third_party/libwebrtc/common_video/corruption_detection_converters_gn/moz.build third_party/libwebrtc/common_video/corruption_detection_converters_gn/moz.build -index 7a12e1f80532..67975fb257fe 100644 +index c0ab4b4e89a7..bbcf737b8ba9 100644 --- third_party/libwebrtc/common_video/corruption_detection_converters_gn/moz.build +++ third_party/libwebrtc/common_video/corruption_detection_converters_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -30833,13 +33355,17 @@ index 7a12e1f80532..67975fb257fe 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -30858,6 +33384,10 @@ index 7a12e1f80532..67975fb257fe 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -30865,6 +33395,10 @@ index 7a12e1f80532..67975fb257fe 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -30880,6 +33414,10 @@ index 7a12e1f80532..67975fb257fe 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -30892,6 +33430,10 @@ index 7a12e1f80532..67975fb257fe 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -30922,7 +33464,7 @@ index 7a12e1f80532..67975fb257fe 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -31009,16 +33551,15 @@ index 7a12e1f80532..67975fb257fe 100644 Library("corruption_detection_converters_gn") diff --git third_party/libwebrtc/common_video/corruption_score_calculator_gn/moz.build third_party/libwebrtc/common_video/corruption_score_calculator_gn/moz.build -index 8923f3ddf002..937a7c082f7c 100644 +index 8a58185d4906..cd4f1b658226 100644 --- third_party/libwebrtc/common_video/corruption_score_calculator_gn/moz.build +++ third_party/libwebrtc/common_video/corruption_score_calculator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -31035,7 +33576,7 @@ index 8923f3ddf002..937a7c082f7c 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -31131,7 +33672,7 @@ index 8923f3ddf002..937a7c082f7c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -31157,7 +33698,7 @@ index 8923f3ddf002..937a7c082f7c 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -31199,16 +33740,15 @@ index 8923f3ddf002..937a7c082f7c 100644 - Library("corruption_score_calculator_gn") diff --git third_party/libwebrtc/common_video/frame_counts_gn/moz.build third_party/libwebrtc/common_video/frame_counts_gn/moz.build -index 8a2276e31b03..17eb2a61992d 100644 +index ae398195f804..5606ed4ca120 100644 --- third_party/libwebrtc/common_video/frame_counts_gn/moz.build +++ third_party/libwebrtc/common_video/frame_counts_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -31225,7 +33765,7 @@ index 8a2276e31b03..17eb2a61992d 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -31310,7 +33850,7 @@ index 8a2276e31b03..17eb2a61992d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -31336,7 +33876,7 @@ index 8a2276e31b03..17eb2a61992d 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -31378,16 +33918,15 @@ index 8a2276e31b03..17eb2a61992d 100644 - Library("frame_counts_gn") diff --git third_party/libwebrtc/common_video/frame_instrumentation_data_gn/moz.build third_party/libwebrtc/common_video/frame_instrumentation_data_gn/moz.build -index 704b8b08b41c..6a39ea1a1db6 100644 +index 5f35af97085c..ab2507d63de5 100644 --- third_party/libwebrtc/common_video/frame_instrumentation_data_gn/moz.build +++ third_party/libwebrtc/common_video/frame_instrumentation_data_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -31404,7 +33943,7 @@ index 704b8b08b41c..6a39ea1a1db6 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -31489,7 +34028,7 @@ index 704b8b08b41c..6a39ea1a1db6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -31515,7 +34054,7 @@ index 704b8b08b41c..6a39ea1a1db6 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -31557,16 +34096,23 @@ index 704b8b08b41c..6a39ea1a1db6 100644 - Library("frame_instrumentation_data_gn") diff --git third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build -index f6be73a2ee74..c2e2eb3a24e4 100644 +index 622a838eca2a..ad084e2194ad 100644 --- third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build +++ third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -31583,13 +34129,17 @@ index f6be73a2ee74..c2e2eb3a24e4 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -31608,6 +34158,10 @@ index f6be73a2ee74..c2e2eb3a24e4 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -31615,6 +34169,10 @@ index f6be73a2ee74..c2e2eb3a24e4 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -31630,6 +34188,10 @@ index f6be73a2ee74..c2e2eb3a24e4 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -31642,6 +34204,10 @@ index f6be73a2ee74..c2e2eb3a24e4 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -31672,7 +34238,7 @@ index f6be73a2ee74..c2e2eb3a24e4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -31759,16 +34325,15 @@ index f6be73a2ee74..c2e2eb3a24e4 100644 Library("generic_frame_descriptor_gn") diff --git third_party/libwebrtc/dcsctp_gn/moz.build third_party/libwebrtc/dcsctp_gn/moz.build -index 9dce2c0157e9..f452910e84ab 100644 +index 44f583c80d8a..f4469da2599d 100644 --- third_party/libwebrtc/dcsctp_gn/moz.build +++ third_party/libwebrtc/dcsctp_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -31785,7 +34350,7 @@ index 9dce2c0157e9..f452910e84ab 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -31881,7 +34446,7 @@ index 9dce2c0157e9..f452910e84ab 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -31907,7 +34472,7 @@ index 9dce2c0157e9..f452910e84ab 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -31949,16 +34514,15 @@ index 9dce2c0157e9..f452910e84ab 100644 - Library("dcsctp_gn") diff --git third_party/libwebrtc/experiments/registered_field_trials_gn/moz.build third_party/libwebrtc/experiments/registered_field_trials_gn/moz.build -index 70925379fe41..9ae47f123445 100644 +index 352ec8e82f14..0ae34bbf3159 100644 --- third_party/libwebrtc/experiments/registered_field_trials_gn/moz.build +++ third_party/libwebrtc/experiments/registered_field_trials_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -31975,7 +34539,7 @@ index 70925379fe41..9ae47f123445 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -32060,7 +34624,7 @@ index 70925379fe41..9ae47f123445 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -32086,7 +34650,7 @@ index 70925379fe41..9ae47f123445 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -32142,16 +34706,23 @@ index edb8e084a33a..e2236e78c4a0 100644 - Library("registered_field_trials_header_gn") diff --git third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build -index b1b3582e1608..7eb186a72b60 100644 +index 92e42333271c..fc88fc12b670 100644 --- third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build +++ third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -32168,13 +34739,17 @@ index b1b3582e1608..7eb186a72b60 100644 FINAL_LIBRARY = "xul" -@@ -51,94 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -50,114 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -32193,6 +34768,10 @@ index b1b3582e1608..7eb186a72b60 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -32200,6 +34779,10 @@ index b1b3582e1608..7eb186a72b60 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -32215,6 +34798,10 @@ index b1b3582e1608..7eb186a72b60 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -32227,6 +34814,10 @@ index b1b3582e1608..7eb186a72b60 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -32264,7 +34855,7 @@ index b1b3582e1608..7eb186a72b60 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -165,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -32322,10 +34913,10 @@ index b1b3582e1608..7eb186a72b60 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -32336,10 +34927,10 @@ index b1b3582e1608..7eb186a72b60 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -32351,16 +34942,23 @@ index b1b3582e1608..7eb186a72b60 100644 Library("rtc_event_audio_gn") diff --git third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build -index cf4cfcc07e11..423e1504c239 100644 +index cf656cb19359..d1d7b99a002a 100644 --- third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build +++ third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -32377,13 +34975,17 @@ index cf4cfcc07e11..423e1504c239 100644 FINAL_LIBRARY = "xul" -@@ -52,94 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -51,114 +64,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -32402,6 +35004,10 @@ index cf4cfcc07e11..423e1504c239 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -32409,6 +35015,10 @@ index cf4cfcc07e11..423e1504c239 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -32424,6 +35034,10 @@ index cf4cfcc07e11..423e1504c239 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -32436,6 +35050,10 @@ index cf4cfcc07e11..423e1504c239 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -32473,7 +35091,7 @@ index cf4cfcc07e11..423e1504c239 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -166,82 +72,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -32531,10 +35149,10 @@ index cf4cfcc07e11..423e1504c239 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -32545,10 +35163,10 @@ index cf4cfcc07e11..423e1504c239 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -32560,16 +35178,23 @@ index cf4cfcc07e11..423e1504c239 100644 Library("rtc_event_bwe_gn") diff --git third_party/libwebrtc/logging/rtc_event_field_gn/moz.build third_party/libwebrtc/logging/rtc_event_field_gn/moz.build -index 1237d6915038..a1db7c7cf147 100644 +index b01bd2a19d2a..ff4a8f56a922 100644 --- third_party/libwebrtc/logging/rtc_event_field_gn/moz.build +++ third_party/libwebrtc/logging/rtc_event_field_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -32586,13 +35211,17 @@ index 1237d6915038..a1db7c7cf147 100644 FINAL_LIBRARY = "xul" -@@ -50,94 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -32611,6 +35240,10 @@ index 1237d6915038..a1db7c7cf147 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -32618,6 +35251,10 @@ index 1237d6915038..a1db7c7cf147 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -32633,6 +35270,10 @@ index 1237d6915038..a1db7c7cf147 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -32645,6 +35286,10 @@ index 1237d6915038..a1db7c7cf147 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -32682,7 +35327,7 @@ index 1237d6915038..a1db7c7cf147 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -145,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -32740,10 +35385,10 @@ index 1237d6915038..a1db7c7cf147 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -32754,10 +35399,10 @@ index 1237d6915038..a1db7c7cf147 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -32769,16 +35414,15 @@ index 1237d6915038..a1db7c7cf147 100644 Library("rtc_event_field_gn") diff --git third_party/libwebrtc/logging/rtc_event_log_parse_status_gn/moz.build third_party/libwebrtc/logging/rtc_event_log_parse_status_gn/moz.build -index a0b53a3dcf6b..23328c26c561 100644 +index 42336df5fa6b..2f1eb4312e6a 100644 --- third_party/libwebrtc/logging/rtc_event_log_parse_status_gn/moz.build +++ third_party/libwebrtc/logging/rtc_event_log_parse_status_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -32795,7 +35439,7 @@ index a0b53a3dcf6b..23328c26c561 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -32884,7 +35528,7 @@ index a0b53a3dcf6b..23328c26c561 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -32910,7 +35554,7 @@ index a0b53a3dcf6b..23328c26c561 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -32952,16 +35596,23 @@ index a0b53a3dcf6b..23328c26c561 100644 - Library("rtc_event_log_parse_status_gn") diff --git third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build -index b81ffc31f513..51d2fcb05f21 100644 +index 48f605b67536..28e02820b18e 100644 --- third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build +++ third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -32978,13 +35629,17 @@ index b81ffc31f513..51d2fcb05f21 100644 FINAL_LIBRARY = "xul" -@@ -49,87 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,107 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -33003,6 +35658,10 @@ index b81ffc31f513..51d2fcb05f21 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -33010,6 +35669,10 @@ index b81ffc31f513..51d2fcb05f21 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -33025,6 +35688,10 @@ index b81ffc31f513..51d2fcb05f21 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -33037,6 +35704,10 @@ index b81ffc31f513..51d2fcb05f21 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -33067,7 +35738,7 @@ index b81ffc31f513..51d2fcb05f21 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -137,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -156,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -33154,16 +35825,23 @@ index b81ffc31f513..51d2fcb05f21 100644 Library("rtc_event_number_encodings_gn") diff --git third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build -index 2d80e868d5e2..d80df18762aa 100644 +index 769426790d5e..2c19edcb9ef3 100644 --- third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build +++ third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -33180,13 +35858,17 @@ index 2d80e868d5e2..d80df18762aa 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -33205,6 +35887,10 @@ index 2d80e868d5e2..d80df18762aa 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -33212,6 +35898,10 @@ index 2d80e868d5e2..d80df18762aa 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -33227,6 +35917,10 @@ index 2d80e868d5e2..d80df18762aa 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -33239,6 +35933,10 @@ index 2d80e868d5e2..d80df18762aa 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -33276,7 +35974,7 @@ index 2d80e868d5e2..d80df18762aa 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -33334,10 +36032,10 @@ index 2d80e868d5e2..d80df18762aa 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -33348,10 +36046,10 @@ index 2d80e868d5e2..d80df18762aa 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -33363,16 +36061,23 @@ index 2d80e868d5e2..d80df18762aa 100644 Library("rtc_event_pacing_gn") diff --git third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build -index 2673075055fb..3a5ac9ee85d6 100644 +index 3667d09360a2..2a003ff5236b 100644 --- third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build +++ third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -33389,13 +36094,17 @@ index 2673075055fb..3a5ac9ee85d6 100644 FINAL_LIBRARY = "xul" -@@ -50,98 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -33414,6 +36123,10 @@ index 2673075055fb..3a5ac9ee85d6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -33421,6 +36134,10 @@ index 2673075055fb..3a5ac9ee85d6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -33434,12 +36151,12 @@ index 2673075055fb..3a5ac9ee85d6 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -33452,6 +36169,10 @@ index 2673075055fb..3a5ac9ee85d6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -33489,7 +36210,7 @@ index 2673075055fb..3a5ac9ee85d6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -33547,10 +36268,10 @@ index 2673075055fb..3a5ac9ee85d6 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -33561,10 +36282,10 @@ index 2673075055fb..3a5ac9ee85d6 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -33576,16 +36297,23 @@ index 2673075055fb..3a5ac9ee85d6 100644 Library("rtc_event_rtp_rtcp_gn") diff --git third_party/libwebrtc/logging/rtc_event_video_gn/moz.build third_party/libwebrtc/logging/rtc_event_video_gn/moz.build -index 4eba826cac76..a2af28545932 100644 +index ba5e515cd8e4..0648ec187f14 100644 --- third_party/libwebrtc/logging/rtc_event_video_gn/moz.build +++ third_party/libwebrtc/logging/rtc_event_video_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -33602,13 +36330,17 @@ index 4eba826cac76..a2af28545932 100644 FINAL_LIBRARY = "xul" -@@ -48,94 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -33627,6 +36359,10 @@ index 4eba826cac76..a2af28545932 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -33634,6 +36370,10 @@ index 4eba826cac76..a2af28545932 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -33649,6 +36389,10 @@ index 4eba826cac76..a2af28545932 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -33661,6 +36405,10 @@ index 4eba826cac76..a2af28545932 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -33698,7 +36446,7 @@ index 4eba826cac76..a2af28545932 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -33756,10 +36504,10 @@ index 4eba826cac76..a2af28545932 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -33770,10 +36518,10 @@ index 4eba826cac76..a2af28545932 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -33785,16 +36533,23 @@ index 4eba826cac76..a2af28545932 100644 Library("rtc_event_video_gn") diff --git third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build -index 84cfad03cbad..c15c6b76c6ad 100644 +index 916957e22c81..10f7b60985b4 100644 --- third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build +++ third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -33811,13 +36566,17 @@ index 84cfad03cbad..c15c6b76c6ad 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -33836,6 +36595,10 @@ index 84cfad03cbad..c15c6b76c6ad 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -33843,6 +36606,10 @@ index 84cfad03cbad..c15c6b76c6ad 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -33858,6 +36625,10 @@ index 84cfad03cbad..c15c6b76c6ad 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -33870,6 +36641,10 @@ index 84cfad03cbad..c15c6b76c6ad 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -33907,7 +36682,7 @@ index 84cfad03cbad..c15c6b76c6ad 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -33965,10 +36740,10 @@ index 84cfad03cbad..c15c6b76c6ad 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -33979,10 +36754,10 @@ index 84cfad03cbad..c15c6b76c6ad 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -33994,16 +36769,23 @@ index 84cfad03cbad..c15c6b76c6ad 100644 Library("rtc_stream_config_gn") diff --git third_party/libwebrtc/media/adapted_video_track_source_gn/moz.build third_party/libwebrtc/media/adapted_video_track_source_gn/moz.build -index c50a3f48e50c..8f304e5179b0 100644 +index 695b2ba30bd3..7ebde21eaa29 100644 --- third_party/libwebrtc/media/adapted_video_track_source_gn/moz.build +++ third_party/libwebrtc/media/adapted_video_track_source_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -34020,13 +36802,17 @@ index c50a3f48e50c..8f304e5179b0 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -34045,6 +36831,10 @@ index c50a3f48e50c..8f304e5179b0 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -34052,6 +36842,10 @@ index c50a3f48e50c..8f304e5179b0 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -34065,12 +36859,12 @@ index c50a3f48e50c..8f304e5179b0 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -34083,6 +36877,10 @@ index c50a3f48e50c..8f304e5179b0 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -34120,7 +36918,7 @@ index c50a3f48e50c..8f304e5179b0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -34178,10 +36976,10 @@ index c50a3f48e50c..8f304e5179b0 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -34192,10 +36990,10 @@ index c50a3f48e50c..8f304e5179b0 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -34207,16 +37005,15 @@ index c50a3f48e50c..8f304e5179b0 100644 Library("adapted_video_track_source_gn") diff --git third_party/libwebrtc/media/audio_source_gn/moz.build third_party/libwebrtc/media/audio_source_gn/moz.build -index a4593705f4d4..cf45ed1996b4 100644 +index 3581e20cca1b..9b54caddd0de 100644 --- third_party/libwebrtc/media/audio_source_gn/moz.build +++ third_party/libwebrtc/media/audio_source_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -34233,7 +37030,7 @@ index a4593705f4d4..cf45ed1996b4 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -34318,7 +37115,7 @@ index a4593705f4d4..cf45ed1996b4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -34344,7 +37141,7 @@ index a4593705f4d4..cf45ed1996b4 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -34386,16 +37183,23 @@ index a4593705f4d4..cf45ed1996b4 100644 - Library("audio_source_gn") diff --git third_party/libwebrtc/media/codec_gn/moz.build third_party/libwebrtc/media/codec_gn/moz.build -index 4ad0c6b4d4f1..a2e84b26f4b5 100644 +index 1a17cd2f4d2d..2e47ae5fdda4 100644 --- third_party/libwebrtc/media/codec_gn/moz.build +++ third_party/libwebrtc/media/codec_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -34412,13 +37216,17 @@ index 4ad0c6b4d4f1..a2e84b26f4b5 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -34437,6 +37245,10 @@ index 4ad0c6b4d4f1..a2e84b26f4b5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -34444,6 +37256,10 @@ index 4ad0c6b4d4f1..a2e84b26f4b5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -34457,12 +37273,12 @@ index 4ad0c6b4d4f1..a2e84b26f4b5 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -34475,6 +37291,10 @@ index 4ad0c6b4d4f1..a2e84b26f4b5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -34512,7 +37332,7 @@ index 4ad0c6b4d4f1..a2e84b26f4b5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -34570,10 +37390,10 @@ index 4ad0c6b4d4f1..a2e84b26f4b5 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -34584,10 +37404,10 @@ index 4ad0c6b4d4f1..a2e84b26f4b5 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -34599,16 +37419,15 @@ index 4ad0c6b4d4f1..a2e84b26f4b5 100644 Library("codec_gn") diff --git third_party/libwebrtc/media/media_channel_gn/moz.build third_party/libwebrtc/media/media_channel_gn/moz.build -index 0123be9df1ba..9ba5846e1cce 100644 +index b49bb251e1b9..e01e3b526b85 100644 --- third_party/libwebrtc/media/media_channel_gn/moz.build +++ third_party/libwebrtc/media/media_channel_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -34625,7 +37444,7 @@ index 0123be9df1ba..9ba5846e1cce 100644 FINAL_LIBRARY = "xul" -@@ -43,99 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -34671,10 +37490,6 @@ index 0123be9df1ba..9ba5846e1cce 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -34726,7 +37541,7 @@ index 0123be9df1ba..9ba5846e1cce 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -34752,7 +37567,7 @@ index 0123be9df1ba..9ba5846e1cce 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -171,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -34794,16 +37609,15 @@ index 0123be9df1ba..9ba5846e1cce 100644 - Library("media_channel_gn") diff --git third_party/libwebrtc/media/media_channel_impl_gn/moz.build third_party/libwebrtc/media/media_channel_impl_gn/moz.build -index 314151b757d8..146ff9def9fe 100644 +index 37f5a67f2bcc..6533a1bbd386 100644 --- third_party/libwebrtc/media/media_channel_impl_gn/moz.build +++ third_party/libwebrtc/media/media_channel_impl_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -34820,7 +37634,7 @@ index 314151b757d8..146ff9def9fe 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -34905,7 +37719,7 @@ index 314151b757d8..146ff9def9fe 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -34931,7 +37745,7 @@ index 314151b757d8..146ff9def9fe 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -34973,16 +37787,23 @@ index 314151b757d8..146ff9def9fe 100644 - Library("media_channel_impl_gn") diff --git third_party/libwebrtc/media/media_constants_gn/moz.build third_party/libwebrtc/media/media_constants_gn/moz.build -index 9ca79aabe233..56b3ea5ed006 100644 +index a104d2262dee..20928cdabcd3 100644 --- third_party/libwebrtc/media/media_constants_gn/moz.build +++ third_party/libwebrtc/media/media_constants_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -34999,13 +37820,17 @@ index 9ca79aabe233..56b3ea5ed006 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -35020,6 +37845,10 @@ index 9ca79aabe233..56b3ea5ed006 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -35027,6 +37856,10 @@ index 9ca79aabe233..56b3ea5ed006 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -35042,6 +37875,10 @@ index 9ca79aabe233..56b3ea5ed006 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -35054,6 +37891,10 @@ index 9ca79aabe233..56b3ea5ed006 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -35084,7 +37925,7 @@ index 9ca79aabe233..56b3ea5ed006 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -35142,10 +37983,10 @@ index 9ca79aabe233..56b3ea5ed006 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -35156,10 +37997,10 @@ index 9ca79aabe233..56b3ea5ed006 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -35171,16 +38012,15 @@ index 9ca79aabe233..56b3ea5ed006 100644 Library("media_constants_gn") diff --git third_party/libwebrtc/media/media_engine_gn/moz.build third_party/libwebrtc/media/media_engine_gn/moz.build -index 511ed8d0de3d..310b21190384 100644 +index fdf4a8ebf6e8..de1d36c1c373 100644 --- third_party/libwebrtc/media/media_engine_gn/moz.build +++ third_party/libwebrtc/media/media_engine_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -35197,7 +38037,7 @@ index 511ed8d0de3d..310b21190384 100644 FINAL_LIBRARY = "xul" -@@ -43,99 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -35243,10 +38083,6 @@ index 511ed8d0de3d..310b21190384 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -35298,7 +38134,7 @@ index 511ed8d0de3d..310b21190384 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -35324,7 +38160,7 @@ index 511ed8d0de3d..310b21190384 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -171,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -35366,16 +38202,23 @@ index 511ed8d0de3d..310b21190384 100644 - Library("media_engine_gn") diff --git third_party/libwebrtc/media/rid_description_gn/moz.build third_party/libwebrtc/media/rid_description_gn/moz.build -index f90d99ec11d7..1e68c6ca8bd9 100644 +index 50a2fd68b45b..1e41f0c073af 100644 --- third_party/libwebrtc/media/rid_description_gn/moz.build +++ third_party/libwebrtc/media/rid_description_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -35392,13 +38235,17 @@ index f90d99ec11d7..1e68c6ca8bd9 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -35417,6 +38264,10 @@ index f90d99ec11d7..1e68c6ca8bd9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -35424,6 +38275,10 @@ index f90d99ec11d7..1e68c6ca8bd9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -35437,12 +38292,12 @@ index f90d99ec11d7..1e68c6ca8bd9 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -35455,6 +38310,10 @@ index f90d99ec11d7..1e68c6ca8bd9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -35492,7 +38351,7 @@ index f90d99ec11d7..1e68c6ca8bd9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -35550,10 +38409,10 @@ index f90d99ec11d7..1e68c6ca8bd9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -35564,10 +38423,10 @@ index f90d99ec11d7..1e68c6ca8bd9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -35579,16 +38438,24 @@ index f90d99ec11d7..1e68c6ca8bd9 100644 Library("rid_description_gn") diff --git third_party/libwebrtc/media/rtc_audio_video_gn/moz.build third_party/libwebrtc/media/rtc_audio_video_gn/moz.build -index 7074c8187174..fb37030f65f5 100644 +index e13e7218f6af..9c05bb7e2414 100644 --- third_party/libwebrtc/media/rtc_audio_video_gn/moz.build +++ third_party/libwebrtc/media/rtc_audio_video_gn/moz.build -@@ -14,13 +14,22 @@ DEFINES["HAVE_WEBRTC_VIDEO"] = True +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" + DEFINES["HAVE_WEBRTC_VIDEO"] = True DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -35605,13 +38472,17 @@ index 7074c8187174..fb37030f65f5 100644 FINAL_LIBRARY = "xul" -@@ -49,103 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,119 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -35631,6 +38502,10 @@ index 7074c8187174..fb37030f65f5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -35638,6 +38513,10 @@ index 7074c8187174..fb37030f65f5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -35651,12 +38530,12 @@ index 7074c8187174..fb37030f65f5 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -35669,6 +38548,10 @@ index 7074c8187174..fb37030f65f5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -35710,7 +38593,7 @@ index 7074c8187174..fb37030f65f5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -153,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -168,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -35768,10 +38651,10 @@ index 7074c8187174..fb37030f65f5 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -35782,10 +38665,10 @@ index 7074c8187174..fb37030f65f5 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -35797,16 +38680,24 @@ index 7074c8187174..fb37030f65f5 100644 Library("rtc_audio_video_gn") diff --git third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build -index 57889f565303..bd831fddb2dc 100644 +index 29d2e027afa8..6daa5629a1eb 100644 --- third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build +++ third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build -@@ -14,13 +14,22 @@ DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" + DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True DEFINES["RTC_USE_LIBAOM_AV1_ENCODER"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -35823,13 +38714,17 @@ index 57889f565303..bd831fddb2dc 100644 FINAL_LIBRARY = "xul" -@@ -48,99 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,115 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -35849,6 +38744,10 @@ index 57889f565303..bd831fddb2dc 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -35856,6 +38755,10 @@ index 57889f565303..bd831fddb2dc 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -35869,12 +38772,12 @@ index 57889f565303..bd831fddb2dc 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -35887,6 +38790,10 @@ index 57889f565303..bd831fddb2dc 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -35924,7 +38831,7 @@ index 57889f565303..bd831fddb2dc 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -35982,10 +38889,10 @@ index 57889f565303..bd831fddb2dc 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -35996,10 +38903,10 @@ index 57889f565303..bd831fddb2dc 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -36011,16 +38918,15 @@ index 57889f565303..bd831fddb2dc 100644 Library("rtc_internal_video_codecs_gn") diff --git third_party/libwebrtc/media/rtc_media_base_gn/moz.build third_party/libwebrtc/media/rtc_media_base_gn/moz.build -index c18e870acb9a..fedda41e6ae3 100644 +index 492ef557c6d5..2d9dd74dd71d 100644 --- third_party/libwebrtc/media/rtc_media_base_gn/moz.build +++ third_party/libwebrtc/media/rtc_media_base_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -36037,7 +38943,7 @@ index c18e870acb9a..fedda41e6ae3 100644 FINAL_LIBRARY = "xul" -@@ -43,99 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -36083,10 +38989,6 @@ index c18e870acb9a..fedda41e6ae3 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -36138,7 +39040,7 @@ index c18e870acb9a..fedda41e6ae3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -36164,7 +39066,7 @@ index c18e870acb9a..fedda41e6ae3 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -171,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -36206,16 +39108,15 @@ index c18e870acb9a..fedda41e6ae3 100644 - Library("rtc_media_base_gn") diff --git third_party/libwebrtc/media/rtc_media_config_gn/moz.build third_party/libwebrtc/media/rtc_media_config_gn/moz.build -index 37cd82e2a682..972d06306f41 100644 +index c42978367e79..ae42a4df5b02 100644 --- third_party/libwebrtc/media/rtc_media_config_gn/moz.build +++ third_party/libwebrtc/media/rtc_media_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -36232,7 +39133,7 @@ index 37cd82e2a682..972d06306f41 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -36317,7 +39218,7 @@ index 37cd82e2a682..972d06306f41 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -36343,7 +39244,7 @@ index 37cd82e2a682..972d06306f41 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -36385,16 +39286,15 @@ index 37cd82e2a682..972d06306f41 100644 - Library("rtc_media_config_gn") diff --git third_party/libwebrtc/media/rtc_media_gn/moz.build third_party/libwebrtc/media/rtc_media_gn/moz.build -index 95aff4fcc141..f1496c154221 100644 +index ab0badb3130e..fe7e6cd83f1f 100644 --- third_party/libwebrtc/media/rtc_media_gn/moz.build +++ third_party/libwebrtc/media/rtc_media_gn/moz.build -@@ -14,13 +14,22 @@ DEFINES["HAVE_WEBRTC_VIDEO"] = True +@@ -14,12 +14,21 @@ DEFINES["HAVE_WEBRTC_VIDEO"] = True DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -36411,7 +39311,7 @@ index 95aff4fcc141..f1496c154221 100644 FINAL_LIBRARY = "xul" -@@ -44,103 +53,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -43,99 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -36457,10 +39357,6 @@ index 95aff4fcc141..f1496c154221 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -36516,7 +39412,7 @@ index 95aff4fcc141..f1496c154221 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,25 +61,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -143,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -36542,7 +39438,7 @@ index 95aff4fcc141..f1496c154221 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -176,40 +74,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -171,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -36584,16 +39480,23 @@ index 95aff4fcc141..f1496c154221 100644 - Library("rtc_media_gn") diff --git third_party/libwebrtc/media/rtc_sdp_video_format_utils_gn/moz.build third_party/libwebrtc/media/rtc_sdp_video_format_utils_gn/moz.build -index 3903b5043c9c..f04602321b4b 100644 +index 38bdd82cbc57..27de3f907e68 100644 --- third_party/libwebrtc/media/rtc_sdp_video_format_utils_gn/moz.build +++ third_party/libwebrtc/media/rtc_sdp_video_format_utils_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -36610,13 +39513,17 @@ index 3903b5043c9c..f04602321b4b 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -36635,6 +39542,10 @@ index 3903b5043c9c..f04602321b4b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -36642,6 +39553,10 @@ index 3903b5043c9c..f04602321b4b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -36655,12 +39570,12 @@ index 3903b5043c9c..f04602321b4b 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -36673,6 +39588,10 @@ index 3903b5043c9c..f04602321b4b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -36710,7 +39629,7 @@ index 3903b5043c9c..f04602321b4b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -36768,10 +39687,10 @@ index 3903b5043c9c..f04602321b4b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -36782,10 +39701,10 @@ index 3903b5043c9c..f04602321b4b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -36797,16 +39716,23 @@ index 3903b5043c9c..f04602321b4b 100644 Library("rtc_sdp_video_format_utils_gn") diff --git third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build -index a8632f24d148..12faca2c60ec 100644 +index 66a71c40c4c3..68ac3e57788c 100644 --- third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build +++ third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -36823,13 +39749,17 @@ index a8632f24d148..12faca2c60ec 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -36849,6 +39779,10 @@ index a8632f24d148..12faca2c60ec 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -36856,6 +39790,10 @@ index a8632f24d148..12faca2c60ec 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -36869,12 +39807,12 @@ index a8632f24d148..12faca2c60ec 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -36887,6 +39825,10 @@ index a8632f24d148..12faca2c60ec 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -36924,7 +39866,7 @@ index a8632f24d148..12faca2c60ec 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -36982,10 +39924,10 @@ index a8632f24d148..12faca2c60ec 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -36996,10 +39938,10 @@ index a8632f24d148..12faca2c60ec 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -37011,16 +39953,15 @@ index a8632f24d148..12faca2c60ec 100644 Library("rtc_simulcast_encoder_adapter_gn") diff --git third_party/libwebrtc/media/rtp_utils_gn/moz.build third_party/libwebrtc/media/rtp_utils_gn/moz.build -index 6d41faceb2a1..b3ce0c3dac99 100644 +index 4f6c7ecc79c1..05909ae9d9ab 100644 --- third_party/libwebrtc/media/rtp_utils_gn/moz.build +++ third_party/libwebrtc/media/rtp_utils_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -37037,7 +39978,7 @@ index 6d41faceb2a1..b3ce0c3dac99 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -37122,7 +40063,7 @@ index 6d41faceb2a1..b3ce0c3dac99 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -37148,7 +40089,7 @@ index 6d41faceb2a1..b3ce0c3dac99 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -37190,16 +40131,15 @@ index 6d41faceb2a1..b3ce0c3dac99 100644 - Library("rtp_utils_gn") diff --git third_party/libwebrtc/media/stream_params_gn/moz.build third_party/libwebrtc/media/stream_params_gn/moz.build -index 22c82b496a59..78fd4155d38b 100644 +index d55e6e09f06c..c4f947183b41 100644 --- third_party/libwebrtc/media/stream_params_gn/moz.build +++ third_party/libwebrtc/media/stream_params_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -37216,7 +40156,7 @@ index 22c82b496a59..78fd4155d38b 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -37301,7 +40241,7 @@ index 22c82b496a59..78fd4155d38b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -37327,7 +40267,7 @@ index 22c82b496a59..78fd4155d38b 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -37369,16 +40309,23 @@ index 22c82b496a59..78fd4155d38b 100644 - Library("stream_params_gn") diff --git third_party/libwebrtc/media/video_adapter_gn/moz.build third_party/libwebrtc/media/video_adapter_gn/moz.build -index ce7a74872715..80d67950990d 100644 +index 4dc558ddbbb7..d620cd03ecc7 100644 --- third_party/libwebrtc/media/video_adapter_gn/moz.build +++ third_party/libwebrtc/media/video_adapter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -37395,13 +40342,17 @@ index ce7a74872715..80d67950990d 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -37420,6 +40371,10 @@ index ce7a74872715..80d67950990d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -37427,6 +40382,10 @@ index ce7a74872715..80d67950990d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -37440,12 +40399,12 @@ index ce7a74872715..80d67950990d 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -37458,6 +40417,10 @@ index ce7a74872715..80d67950990d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -37495,7 +40458,7 @@ index ce7a74872715..80d67950990d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -37553,10 +40516,10 @@ index ce7a74872715..80d67950990d 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -37567,10 +40530,10 @@ index ce7a74872715..80d67950990d 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -37582,16 +40545,23 @@ index ce7a74872715..80d67950990d 100644 Library("video_adapter_gn") diff --git third_party/libwebrtc/media/video_broadcaster_gn/moz.build third_party/libwebrtc/media/video_broadcaster_gn/moz.build -index 0bba5248d917..c85e8c95f8f6 100644 +index a93d5af7f5fe..8c063e2cd0d2 100644 --- third_party/libwebrtc/media/video_broadcaster_gn/moz.build +++ third_party/libwebrtc/media/video_broadcaster_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -37608,13 +40578,17 @@ index 0bba5248d917..c85e8c95f8f6 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -37633,6 +40607,10 @@ index 0bba5248d917..c85e8c95f8f6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -37640,6 +40618,10 @@ index 0bba5248d917..c85e8c95f8f6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -37655,6 +40637,10 @@ index 0bba5248d917..c85e8c95f8f6 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -37667,6 +40653,10 @@ index 0bba5248d917..c85e8c95f8f6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -37704,7 +40694,7 @@ index 0bba5248d917..c85e8c95f8f6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -37762,10 +40752,10 @@ index 0bba5248d917..c85e8c95f8f6 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -37776,10 +40766,10 @@ index 0bba5248d917..c85e8c95f8f6 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -37791,16 +40781,23 @@ index 0bba5248d917..c85e8c95f8f6 100644 Library("video_broadcaster_gn") diff --git third_party/libwebrtc/media/video_common_gn/moz.build third_party/libwebrtc/media/video_common_gn/moz.build -index fe09ce34a933..a764d15f802e 100644 +index 6c29143ad9aa..1125008a4f6c 100644 --- third_party/libwebrtc/media/video_common_gn/moz.build +++ third_party/libwebrtc/media/video_common_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -37817,13 +40814,17 @@ index fe09ce34a933..a764d15f802e 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -37842,6 +40843,10 @@ index fe09ce34a933..a764d15f802e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -37849,6 +40854,10 @@ index fe09ce34a933..a764d15f802e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -37864,6 +40873,10 @@ index fe09ce34a933..a764d15f802e 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -37876,6 +40889,10 @@ index fe09ce34a933..a764d15f802e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -37913,7 +40930,7 @@ index fe09ce34a933..a764d15f802e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -37971,10 +40988,10 @@ index fe09ce34a933..a764d15f802e 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -37985,10 +41002,10 @@ index fe09ce34a933..a764d15f802e 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -38000,16 +41017,23 @@ index fe09ce34a933..a764d15f802e 100644 Library("video_common_gn") diff --git third_party/libwebrtc/media/video_source_base_gn/moz.build third_party/libwebrtc/media/video_source_base_gn/moz.build -index f8053045dc9f..a32461b2c660 100644 +index 4dc607134aac..546b829badfc 100644 --- third_party/libwebrtc/media/video_source_base_gn/moz.build +++ third_party/libwebrtc/media/video_source_base_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -38026,13 +41050,17 @@ index f8053045dc9f..a32461b2c660 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -38051,6 +41079,10 @@ index f8053045dc9f..a32461b2c660 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -38058,6 +41090,10 @@ index f8053045dc9f..a32461b2c660 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -38073,6 +41109,10 @@ index f8053045dc9f..a32461b2c660 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -38085,6 +41125,10 @@ index f8053045dc9f..a32461b2c660 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -38122,7 +41166,7 @@ index f8053045dc9f..a32461b2c660 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -38180,10 +41224,10 @@ index f8053045dc9f..a32461b2c660 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -38194,10 +41238,10 @@ index f8053045dc9f..a32461b2c660 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -38209,16 +41253,23 @@ index f8053045dc9f..a32461b2c660 100644 Library("video_source_base_gn") diff --git third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build -index 91f2dac44ee2..71ed37ed1668 100644 +index d46f1a759687..542b5a54b1f2 100644 --- third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build +++ third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -38235,13 +41286,17 @@ index 91f2dac44ee2..71ed37ed1668 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -38260,6 +41315,10 @@ index 91f2dac44ee2..71ed37ed1668 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -38267,6 +41326,10 @@ index 91f2dac44ee2..71ed37ed1668 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -38282,6 +41345,10 @@ index 91f2dac44ee2..71ed37ed1668 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -38294,6 +41361,10 @@ index 91f2dac44ee2..71ed37ed1668 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -38331,7 +41402,7 @@ index 91f2dac44ee2..71ed37ed1668 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -38389,10 +41460,10 @@ index 91f2dac44ee2..71ed37ed1668 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -38403,10 +41474,10 @@ index 91f2dac44ee2..71ed37ed1668 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -38418,16 +41489,23 @@ index 91f2dac44ee2..71ed37ed1668 100644 Library("async_audio_processing_gn") diff --git third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build -index f78bef6c5863..4db9966a8cb1 100644 +index d82a5a14f4b8..778a9aafefbd 100644 --- third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -38444,13 +41522,17 @@ index f78bef6c5863..4db9966a8cb1 100644 FINAL_LIBRARY = "xul" -@@ -50,98 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -38469,6 +41551,10 @@ index f78bef6c5863..4db9966a8cb1 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -38476,6 +41562,10 @@ index f78bef6c5863..4db9966a8cb1 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -38489,12 +41579,12 @@ index f78bef6c5863..4db9966a8cb1 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -38507,6 +41597,10 @@ index f78bef6c5863..4db9966a8cb1 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -38544,7 +41638,7 @@ index f78bef6c5863..4db9966a8cb1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -38602,10 +41696,10 @@ index f78bef6c5863..4db9966a8cb1 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -38616,10 +41710,10 @@ index f78bef6c5863..4db9966a8cb1 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -38631,16 +41725,15 @@ index f78bef6c5863..4db9966a8cb1 100644 Library("audio_coding_gn") diff --git third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build -index 2c7ca80ec0ec..ebb25ef7e20d 100644 +index 318901c1a44e..295c746c4637 100644 --- third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -38657,7 +41750,7 @@ index 2c7ca80ec0ec..ebb25ef7e20d 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -38742,7 +41835,7 @@ index 2c7ca80ec0ec..ebb25ef7e20d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -38768,7 +41861,7 @@ index 2c7ca80ec0ec..ebb25ef7e20d 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -38810,16 +41903,23 @@ index 2c7ca80ec0ec..ebb25ef7e20d 100644 - Library("audio_coding_module_typedefs_gn") diff --git third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build -index 7bc2549166df..c14d768af4f1 100644 +index faa1f1264733..db7345eab074 100644 --- third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -38836,13 +41936,17 @@ index 7bc2549166df..c14d768af4f1 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -38861,6 +41965,10 @@ index 7bc2549166df..c14d768af4f1 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -38868,6 +41976,10 @@ index 7bc2549166df..c14d768af4f1 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -38881,12 +41993,12 @@ index 7bc2549166df..c14d768af4f1 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -38899,6 +42011,10 @@ index 7bc2549166df..c14d768af4f1 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -38936,7 +42052,7 @@ index 7bc2549166df..c14d768af4f1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -38994,10 +42110,10 @@ index 7bc2549166df..c14d768af4f1 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -39008,10 +42124,10 @@ index 7bc2549166df..c14d768af4f1 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -39023,16 +42139,23 @@ index 7bc2549166df..c14d768af4f1 100644 Library("audio_coding_opus_common_gn") diff --git third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build -index 0524d70044a1..2be902ad493c 100644 +index 17b5510ed9c7..18e473fd2581 100644 --- third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -39049,13 +42172,17 @@ index 0524d70044a1..2be902ad493c 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -39074,6 +42201,10 @@ index 0524d70044a1..2be902ad493c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -39081,6 +42212,10 @@ index 0524d70044a1..2be902ad493c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -39094,12 +42229,12 @@ index 0524d70044a1..2be902ad493c 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -39112,6 +42247,10 @@ index 0524d70044a1..2be902ad493c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -39149,7 +42288,7 @@ index 0524d70044a1..2be902ad493c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -39207,10 +42346,10 @@ index 0524d70044a1..2be902ad493c 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -39221,10 +42360,10 @@ index 0524d70044a1..2be902ad493c 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -39236,16 +42375,23 @@ index 0524d70044a1..2be902ad493c 100644 Library("audio_encoder_cng_gn") diff --git third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build -index 0da571dfa094..4b99b74b454b 100644 +index cda4075cf2bc..01b991429a96 100644 --- third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -39262,13 +42408,17 @@ index 0da571dfa094..4b99b74b454b 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -39283,6 +42433,10 @@ index 0da571dfa094..4b99b74b454b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -39290,6 +42444,10 @@ index 0da571dfa094..4b99b74b454b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -39305,6 +42463,10 @@ index 0da571dfa094..4b99b74b454b 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -39317,6 +42479,10 @@ index 0da571dfa094..4b99b74b454b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -39347,7 +42513,7 @@ index 0da571dfa094..4b99b74b454b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -39405,10 +42571,10 @@ index 0da571dfa094..4b99b74b454b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -39419,10 +42585,10 @@ index 0da571dfa094..4b99b74b454b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -39434,16 +42600,23 @@ index 0da571dfa094..4b99b74b454b 100644 Library("audio_network_adaptor_config_gn") diff --git third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build -index ca6f82e73acc..7201f9631eba 100644 +index 7caacff1ca9c..5364c2abc969 100644 --- third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -39460,13 +42633,17 @@ index ca6f82e73acc..7201f9631eba 100644 FINAL_LIBRARY = "xul" -@@ -57,98 +66,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -56,114 +69,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -39485,6 +42662,10 @@ index ca6f82e73acc..7201f9631eba 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -39492,6 +42673,10 @@ index ca6f82e73acc..7201f9631eba 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -39505,12 +42690,12 @@ index ca6f82e73acc..7201f9631eba 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -39523,6 +42708,10 @@ index ca6f82e73acc..7201f9631eba 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -39560,7 +42749,7 @@ index ca6f82e73acc..7201f9631eba 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -156,82 +74,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -171,82 +77,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -39618,10 +42807,10 @@ index ca6f82e73acc..7201f9631eba 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -39632,10 +42821,10 @@ index ca6f82e73acc..7201f9631eba 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -39647,16 +42836,15 @@ index ca6f82e73acc..7201f9631eba 100644 Library("audio_network_adaptor_gn") diff --git third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build -index 485b23578569..0296469454c8 100644 +index 3a67db4a6326..9d507b56f1b9 100644 --- third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -39673,7 +42861,7 @@ index 485b23578569..0296469454c8 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,83 +55,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -39758,7 +42946,7 @@ index 485b23578569..0296469454c8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,82 +63,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -39845,16 +43033,23 @@ index 485b23578569..0296469454c8 100644 Library("g711_c_gn") diff --git third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build -index fd2075f729a4..10971d355fa4 100644 +index eb2bea17da78..010e4bca5d7a 100644 --- third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -39871,13 +43066,17 @@ index fd2075f729a4..10971d355fa4 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -39896,6 +43095,10 @@ index fd2075f729a4..10971d355fa4 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -39903,6 +43106,10 @@ index fd2075f729a4..10971d355fa4 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -39916,12 +43123,12 @@ index fd2075f729a4..10971d355fa4 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -39934,6 +43141,10 @@ index fd2075f729a4..10971d355fa4 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -39971,7 +43182,7 @@ index fd2075f729a4..10971d355fa4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -40029,10 +43240,10 @@ index fd2075f729a4..10971d355fa4 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -40043,10 +43254,10 @@ index fd2075f729a4..10971d355fa4 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -40058,16 +43269,15 @@ index fd2075f729a4..10971d355fa4 100644 Library("g711_gn") diff --git third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build -index f093a25e873e..8398cd7096a5 100644 +index 16611741d3a7..324042e8bb7b 100644 --- third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -40084,7 +43294,7 @@ index f093a25e873e..8398cd7096a5 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,83 +55,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -40169,7 +43379,7 @@ index f093a25e873e..8398cd7096a5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,82 +63,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -40256,16 +43466,23 @@ index f093a25e873e..8398cd7096a5 100644 Library("g722_c_gn") diff --git third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build -index 870a0d2d6b0a..8b2bcf13466a 100644 +index 532a8c1f6de6..eade52d13d0d 100644 --- third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -40282,13 +43499,17 @@ index 870a0d2d6b0a..8b2bcf13466a 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -40307,6 +43528,10 @@ index 870a0d2d6b0a..8b2bcf13466a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -40314,6 +43539,10 @@ index 870a0d2d6b0a..8b2bcf13466a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -40327,12 +43556,12 @@ index 870a0d2d6b0a..8b2bcf13466a 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -40345,6 +43574,10 @@ index 870a0d2d6b0a..8b2bcf13466a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -40382,7 +43615,7 @@ index 870a0d2d6b0a..8b2bcf13466a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -40440,10 +43673,10 @@ index 870a0d2d6b0a..8b2bcf13466a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -40454,10 +43687,10 @@ index 870a0d2d6b0a..8b2bcf13466a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -40469,16 +43702,15 @@ index 870a0d2d6b0a..8b2bcf13466a 100644 Library("g722_gn") diff --git third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build -index 5ede837b17fd..6d8fdbebabc4 100644 +index b8dd874ca987..33ad21e88a9b 100644 --- third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -40495,7 +43727,7 @@ index 5ede837b17fd..6d8fdbebabc4 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -40580,7 +43812,7 @@ index 5ede837b17fd..6d8fdbebabc4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -40606,7 +43838,7 @@ index 5ede837b17fd..6d8fdbebabc4 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -40648,16 +43880,15 @@ index 5ede837b17fd..6d8fdbebabc4 100644 - Library("isac_bwinfo_gn") diff --git third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build -index ca79e83e76a6..f2006f3a9c2c 100644 +index 6c96470ac113..6f26b7613ac0 100644 --- third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -40674,7 +43905,7 @@ index ca79e83e76a6..f2006f3a9c2c 100644 FINAL_LIBRARY = "xul" -@@ -50,83 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,83 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -40759,7 +43990,7 @@ index ca79e83e76a6..f2006f3a9c2c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -134,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -133,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -40846,16 +44077,23 @@ index ca79e83e76a6..f2006f3a9c2c 100644 Library("isac_vad_gn") diff --git third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build -index d9d629e63cb0..132b26983618 100644 +index c42f54743647..ef46df1da4fc 100644 --- third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -40872,13 +44110,17 @@ index d9d629e63cb0..132b26983618 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -40897,6 +44139,10 @@ index d9d629e63cb0..132b26983618 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -40904,6 +44150,10 @@ index d9d629e63cb0..132b26983618 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -40917,12 +44167,12 @@ index d9d629e63cb0..132b26983618 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -40935,6 +44185,10 @@ index d9d629e63cb0..132b26983618 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -40972,7 +44226,7 @@ index d9d629e63cb0..132b26983618 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -41030,10 +44284,10 @@ index d9d629e63cb0..132b26983618 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -41044,10 +44298,10 @@ index d9d629e63cb0..132b26983618 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -41059,16 +44313,23 @@ index d9d629e63cb0..132b26983618 100644 Library("legacy_encoded_audio_frame_gn") diff --git third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build -index 915658ecd560..0d8192df783a 100644 +index 61d03c2b24c2..5df332e08375 100644 --- third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -41085,13 +44346,17 @@ index 915658ecd560..0d8192df783a 100644 FINAL_LIBRARY = "xul" -@@ -82,98 +91,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -81,114 +94,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -41110,6 +44375,10 @@ index 915658ecd560..0d8192df783a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -41117,6 +44386,10 @@ index 915658ecd560..0d8192df783a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -41130,12 +44403,12 @@ index 915658ecd560..0d8192df783a 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -41148,6 +44421,10 @@ index 915658ecd560..0d8192df783a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -41185,7 +44462,7 @@ index 915658ecd560..0d8192df783a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -181,82 +99,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -196,82 +102,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -41243,10 +44520,10 @@ index 915658ecd560..0d8192df783a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -41257,10 +44534,10 @@ index 915658ecd560..0d8192df783a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -41272,16 +44549,15 @@ index 915658ecd560..0d8192df783a 100644 Library("neteq_gn") diff --git third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build -index 29b49af13c96..6a89c3181c8a 100644 +index 5f8526cb4069..55d6407090fc 100644 --- third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -41298,7 +44574,7 @@ index 29b49af13c96..6a89c3181c8a 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,83 +55,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -41383,7 +44659,7 @@ index 29b49af13c96..6a89c3181c8a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,82 +63,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -41470,16 +44746,23 @@ index 29b49af13c96..6a89c3181c8a 100644 Library("pcm16b_c_gn") diff --git third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build -index 2524b005d0a5..00abfed23ff5 100644 +index 428977fd1acf..cce6098221c5 100644 --- third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -41496,13 +44779,17 @@ index 2524b005d0a5..00abfed23ff5 100644 FINAL_LIBRARY = "xul" -@@ -49,98 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,114 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -41521,6 +44808,10 @@ index 2524b005d0a5..00abfed23ff5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -41528,6 +44819,10 @@ index 2524b005d0a5..00abfed23ff5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -41541,12 +44836,12 @@ index 2524b005d0a5..00abfed23ff5 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -41559,6 +44854,10 @@ index 2524b005d0a5..00abfed23ff5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -41596,7 +44895,7 @@ index 2524b005d0a5..00abfed23ff5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -41654,10 +44953,10 @@ index 2524b005d0a5..00abfed23ff5 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -41668,10 +44967,10 @@ index 2524b005d0a5..00abfed23ff5 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -41683,16 +44982,23 @@ index 2524b005d0a5..00abfed23ff5 100644 Library("pcm16b_gn") diff --git third_party/libwebrtc/modules/audio_coding/red_gn/moz.build third_party/libwebrtc/modules/audio_coding/red_gn/moz.build -index d3f279577fa5..66b0c64c35b7 100644 +index 773bab244a03..351564a69485 100644 --- third_party/libwebrtc/modules/audio_coding/red_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/red_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -41709,13 +45015,17 @@ index d3f279577fa5..66b0c64c35b7 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -41734,6 +45044,10 @@ index d3f279577fa5..66b0c64c35b7 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -41741,6 +45055,10 @@ index d3f279577fa5..66b0c64c35b7 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -41754,12 +45072,12 @@ index d3f279577fa5..66b0c64c35b7 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -41772,6 +45090,10 @@ index d3f279577fa5..66b0c64c35b7 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -41809,7 +45131,7 @@ index d3f279577fa5..66b0c64c35b7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -41867,10 +45189,10 @@ index d3f279577fa5..66b0c64c35b7 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -41881,10 +45203,10 @@ index d3f279577fa5..66b0c64c35b7 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -41896,16 +45218,23 @@ index d3f279577fa5..66b0c64c35b7 100644 Library("red_gn") diff --git third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build -index 649fef5f47be..c8dfb2ef5dc3 100644 +index 4104878e3d6a..c599a97f8fcf 100644 --- third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -41922,13 +45251,17 @@ index 649fef5f47be..c8dfb2ef5dc3 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -41947,6 +45280,10 @@ index 649fef5f47be..c8dfb2ef5dc3 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -41954,6 +45291,10 @@ index 649fef5f47be..c8dfb2ef5dc3 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -41967,12 +45308,12 @@ index 649fef5f47be..c8dfb2ef5dc3 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -41985,6 +45326,10 @@ index 649fef5f47be..c8dfb2ef5dc3 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -42011,18 +45356,11 @@ index 649fef5f47be..c8dfb2ef5dc3 100644 - DEFINES["_WINDOWS"] = True - DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True - DEFINES["__STD_C"] = True -- -- OS_LIBS += [ -- "crypt32", -- "iphlpapi", -- "secur32", -- "winmm" -- ] + DEFINES["_DEBUG"] = True if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -42109,16 +45447,23 @@ index 649fef5f47be..c8dfb2ef5dc3 100644 Library("webrtc_cng_gn") diff --git third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build -index 60686e723e86..ca83edda0e81 100644 +index 9403fd91f3d2..2991ddf102f6 100644 --- third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build -@@ -13,15 +13,24 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,18 +9,31 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_CODEC_OPUS"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -42137,13 +45482,17 @@ index 60686e723e86..ca83edda0e81 100644 FINAL_LIBRARY = "xul" -@@ -51,98 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -50,114 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -42162,6 +45511,10 @@ index 60686e723e86..ca83edda0e81 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -42169,6 +45522,10 @@ index 60686e723e86..ca83edda0e81 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -42182,12 +45539,12 @@ index 60686e723e86..ca83edda0e81 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -42200,6 +45557,10 @@ index 60686e723e86..ca83edda0e81 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -42237,7 +45598,7 @@ index 60686e723e86..ca83edda0e81 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -150,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -165,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -42295,10 +45656,10 @@ index 60686e723e86..ca83edda0e81 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -42309,10 +45670,10 @@ index 60686e723e86..ca83edda0e81 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -42324,16 +45685,23 @@ index 60686e723e86..ca83edda0e81 100644 Library("webrtc_multiopus_gn") diff --git third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build -index 5c070db0b5cf..34a92e7abde0 100644 +index f3aaa0d67bdc..08c694f63e18 100644 --- third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build -@@ -13,15 +13,24 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,18 +9,31 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_CODEC_OPUS"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -42352,13 +45720,17 @@ index 5c070db0b5cf..34a92e7abde0 100644 FINAL_LIBRARY = "xul" -@@ -51,98 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -50,114 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -42377,6 +45749,10 @@ index 5c070db0b5cf..34a92e7abde0 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -42384,6 +45760,10 @@ index 5c070db0b5cf..34a92e7abde0 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -42397,12 +45777,12 @@ index 5c070db0b5cf..34a92e7abde0 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -42415,6 +45795,10 @@ index 5c070db0b5cf..34a92e7abde0 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -42452,7 +45836,7 @@ index 5c070db0b5cf..34a92e7abde0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -150,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -165,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -42510,10 +45894,10 @@ index 5c070db0b5cf..34a92e7abde0 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -42524,10 +45908,10 @@ index 5c070db0b5cf..34a92e7abde0 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -42539,16 +45923,23 @@ index 5c070db0b5cf..34a92e7abde0 100644 Library("webrtc_opus_gn") diff --git third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build -index a52ae8687347..c9277731583e 100644 +index 86fc3f405429..5f8f8e535835 100644 --- third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build +++ third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build -@@ -13,15 +13,24 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,18 +9,31 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_CODEC_OPUS"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -42567,13 +45958,17 @@ index a52ae8687347..c9277731583e 100644 FINAL_LIBRARY = "xul" -@@ -50,87 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,107 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -42592,6 +45987,10 @@ index a52ae8687347..c9277731583e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -42599,6 +45998,10 @@ index a52ae8687347..c9277731583e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -42614,6 +46017,10 @@ index a52ae8687347..c9277731583e 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -42626,6 +46033,10 @@ index a52ae8687347..c9277731583e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -42656,7 +46067,7 @@ index a52ae8687347..c9277731583e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -157,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -42743,16 +46154,15 @@ index a52ae8687347..c9277731583e 100644 Library("webrtc_opus_wrapper_gn") diff --git third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build -index 4bce6bb07fdd..dcaf6e34ca7f 100644 +index 87d11c2579e5..8406c1f27370 100644 --- third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build +++ third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -42769,7 +46179,7 @@ index 4bce6bb07fdd..dcaf6e34ca7f 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -42854,7 +46264,7 @@ index 4bce6bb07fdd..dcaf6e34ca7f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -42880,7 +46290,7 @@ index 4bce6bb07fdd..dcaf6e34ca7f 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -42922,16 +46332,23 @@ index 4bce6bb07fdd..dcaf6e34ca7f 100644 - Library("audio_device_gn") diff --git third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build -index 9785374c7a77..862e284821d5 100644 +index c7e35781d9d6..ca6b5b3e12d6 100644 --- third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build +++ third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -42948,13 +46365,17 @@ index 9785374c7a77..862e284821d5 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -42973,6 +46394,10 @@ index 9785374c7a77..862e284821d5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -42980,6 +46405,10 @@ index 9785374c7a77..862e284821d5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -42993,12 +46422,12 @@ index 9785374c7a77..862e284821d5 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -43011,6 +46440,10 @@ index 9785374c7a77..862e284821d5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -43048,7 +46481,7 @@ index 9785374c7a77..862e284821d5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -43106,10 +46539,10 @@ index 9785374c7a77..862e284821d5 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -43120,10 +46553,10 @@ index 9785374c7a77..862e284821d5 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -43135,16 +46568,23 @@ index 9785374c7a77..862e284821d5 100644 Library("audio_frame_manipulator_gn") diff --git third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build -index 5e7263604f3f..472c0a3369e9 100644 +index 168b462ae903..67171da3d582 100644 --- third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build +++ third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -43162,13 +46602,17 @@ index 5e7263604f3f..472c0a3369e9 100644 FINAL_LIBRARY = "xul" -@@ -50,98 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -43187,6 +46631,10 @@ index 5e7263604f3f..472c0a3369e9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -43194,6 +46642,10 @@ index 5e7263604f3f..472c0a3369e9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -43207,12 +46659,12 @@ index 5e7263604f3f..472c0a3369e9 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -43225,6 +46677,10 @@ index 5e7263604f3f..472c0a3369e9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -43262,7 +46718,7 @@ index 5e7263604f3f..472c0a3369e9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -43320,10 +46776,10 @@ index 5e7263604f3f..472c0a3369e9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -43334,10 +46790,10 @@ index 5e7263604f3f..472c0a3369e9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -43349,16 +46805,15 @@ index 5e7263604f3f..472c0a3369e9 100644 Library("audio_mixer_impl_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_gn/moz.build -index bc8d58361929..1d50bf8de634 100644 +index a5ea7a055c2a..257c41f92e45 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -43375,7 +46830,7 @@ index bc8d58361929..1d50bf8de634 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -43464,7 +46919,7 @@ index bc8d58361929..1d50bf8de634 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -43490,7 +46945,7 @@ index bc8d58361929..1d50bf8de634 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -43532,16 +46987,15 @@ index bc8d58361929..1d50bf8de634 100644 - Library("adaptive_fir_filter_erl_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_gn/moz.build -index 870c269ee999..afb546c9665f 100644 +index 1c7aed16fb44..ff5f6f5c6b52 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -43558,7 +47012,7 @@ index 870c269ee999..afb546c9665f 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -43603,10 +47057,6 @@ index 870c269ee999..afb546c9665f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -43658,7 +47108,7 @@ index 870c269ee999..afb546c9665f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -43684,7 +47134,7 @@ index 870c269ee999..afb546c9665f 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -43726,16 +47176,24 @@ index 870c269ee999..afb546c9665f 100644 - Library("adaptive_fir_filter_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build -index 1060413c2fde..f2f6cc941cfc 100644 +index b199b50b1ec1..c7db7f029811 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build -@@ -18,15 +18,24 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -11,21 +11,31 @@ AllowCompilerWarnings() + + CXXFLAGS += [ + "-mavx2", +- "-mfma" ++ "-mfma", ++ "-std=gnu++20" + ] + + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -43754,13 +47212,17 @@ index 1060413c2fde..f2f6cc941cfc 100644 FINAL_LIBRARY = "xul" -@@ -58,127 +67,9 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -57,143 +67,9 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -43779,6 +47241,10 @@ index 1060413c2fde..f2f6cc941cfc 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -43786,6 +47252,10 @@ index 1060413c2fde..f2f6cc941cfc 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -43800,12 +47270,12 @@ index 1060413c2fde..f2f6cc941cfc 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -43818,6 +47288,10 @@ index 1060413c2fde..f2f6cc941cfc 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -43884,16 +47358,15 @@ index 1060413c2fde..f2f6cc941cfc 100644 CXXFLAGS += [ "-msse2" diff --git third_party/libwebrtc/modules/audio_processing/aec3/aec3_common_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/aec3_common_gn/moz.build -index 653ec38ff0f8..dc18db0b8de9 100644 +index e4aecfab22ab..c4156a9ff2f4 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/aec3_common_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/aec3_common_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -43910,7 +47383,7 @@ index 653ec38ff0f8..dc18db0b8de9 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -43995,7 +47468,7 @@ index 653ec38ff0f8..dc18db0b8de9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -44021,7 +47494,7 @@ index 653ec38ff0f8..dc18db0b8de9 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -44063,16 +47536,15 @@ index 653ec38ff0f8..dc18db0b8de9 100644 - Library("aec3_common_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec3/aec3_fft_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/aec3_fft_gn/moz.build -index 4967c45123d2..5a75b52ec1ea 100644 +index f891acfdb6bc..09b3550994f4 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/aec3_fft_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/aec3_fft_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -44089,7 +47561,7 @@ index 4967c45123d2..5a75b52ec1ea 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -44134,10 +47606,6 @@ index 4967c45123d2..5a75b52ec1ea 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -44189,7 +47657,7 @@ index 4967c45123d2..5a75b52ec1ea 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -44215,7 +47683,7 @@ index 4967c45123d2..5a75b52ec1ea 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -44257,16 +47725,23 @@ index 4967c45123d2..5a75b52ec1ea 100644 - Library("aec3_fft_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build -index d867766ad198..1c4951576a77 100644 +index deb61ac306cd..7e0457fca6db 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -44284,13 +47759,17 @@ index d867766ad198..1c4951576a77 100644 FINAL_LIBRARY = "xul" -@@ -104,98 +113,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -103,114 +116,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -44309,6 +47788,10 @@ index d867766ad198..1c4951576a77 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -44316,6 +47799,10 @@ index d867766ad198..1c4951576a77 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -44329,12 +47816,12 @@ index d867766ad198..1c4951576a77 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -44347,6 +47834,10 @@ index d867766ad198..1c4951576a77 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -44384,7 +47875,7 @@ index d867766ad198..1c4951576a77 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -203,82 +121,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -218,82 +124,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -44442,10 +47933,10 @@ index d867766ad198..1c4951576a77 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -44456,10 +47947,10 @@ index d867766ad198..1c4951576a77 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -44471,16 +47962,15 @@ index d867766ad198..1c4951576a77 100644 Library("aec3_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec3/fft_data_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/fft_data_gn/moz.build -index 47e42cb6ec67..9bdfe19920cc 100644 +index 595f2c8257c5..5decd286f131 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/fft_data_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/fft_data_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -44497,7 +47987,7 @@ index 47e42cb6ec67..9bdfe19920cc 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -44586,7 +48076,7 @@ index 47e42cb6ec67..9bdfe19920cc 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -44612,7 +48102,7 @@ index 47e42cb6ec67..9bdfe19920cc 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -44654,16 +48144,15 @@ index 47e42cb6ec67..9bdfe19920cc 100644 - Library("fft_data_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_gn/moz.build -index 90676a23e629..5c9ba0af45ef 100644 +index afb8ec4fcc88..5db219d43ef4 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -44680,7 +48169,7 @@ index 90676a23e629..5c9ba0af45ef 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -44769,7 +48258,7 @@ index 90676a23e629..5c9ba0af45ef 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -44795,7 +48284,7 @@ index 90676a23e629..5c9ba0af45ef 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -44837,16 +48326,15 @@ index 90676a23e629..5c9ba0af45ef 100644 - Library("matched_filter_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec3/render_buffer_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/render_buffer_gn/moz.build -index f7206d6f33ef..9f8bf192d7a8 100644 +index eff40ca1ec3b..a552fc95aca4 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/render_buffer_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/render_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -44863,7 +48351,7 @@ index f7206d6f33ef..9f8bf192d7a8 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -44952,7 +48440,7 @@ index f7206d6f33ef..9f8bf192d7a8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -44978,7 +48466,7 @@ index f7206d6f33ef..9f8bf192d7a8 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -45020,16 +48508,15 @@ index f7206d6f33ef..9f8bf192d7a8 100644 - Library("render_buffer_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec3/vector_math_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec3/vector_math_gn/moz.build -index d5e8985552cf..d34e64f796ef 100644 +index 2f5d61998ddb..1475e1f30524 100644 --- third_party/libwebrtc/modules/audio_processing/aec3/vector_math_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec3/vector_math_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -45046,7 +48533,7 @@ index d5e8985552cf..d34e64f796ef 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -45135,7 +48622,7 @@ index d5e8985552cf..d34e64f796ef 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -45161,7 +48648,7 @@ index d5e8985552cf..d34e64f796ef 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -45203,16 +48690,15 @@ index d5e8985552cf..d34e64f796ef 100644 - Library("vector_math_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec_dump/aec_dump_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec_dump/aec_dump_gn/moz.build -index e39f71fddecb..d727e8503f24 100644 +index 2cdcfb48d81f..fe42eaa02d10 100644 --- third_party/libwebrtc/modules/audio_processing/aec_dump/aec_dump_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec_dump/aec_dump_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -45229,7 +48715,7 @@ index e39f71fddecb..d727e8503f24 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -45274,10 +48760,6 @@ index e39f71fddecb..d727e8503f24 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -45329,7 +48811,7 @@ index e39f71fddecb..d727e8503f24 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -45355,7 +48837,7 @@ index e39f71fddecb..d727e8503f24 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -45397,16 +48879,23 @@ index e39f71fddecb..d727e8503f24 100644 - Library("aec_dump_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build -index 6e4384af4248..0124e796e10d 100644 +index a2d83ddf0b3d..a4a5c2aa7805 100644 --- third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -45423,13 +48912,17 @@ index 6e4384af4248..0124e796e10d 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -45448,6 +48941,10 @@ index 6e4384af4248..0124e796e10d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -45455,6 +48952,10 @@ index 6e4384af4248..0124e796e10d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -45468,12 +48969,12 @@ index 6e4384af4248..0124e796e10d 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -45486,6 +48987,10 @@ index 6e4384af4248..0124e796e10d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -45523,7 +49028,7 @@ index 6e4384af4248..0124e796e10d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -45581,10 +49086,10 @@ index 6e4384af4248..0124e796e10d 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -45595,10 +49100,10 @@ index 6e4384af4248..0124e796e10d 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -45610,16 +49115,23 @@ index 6e4384af4248..0124e796e10d 100644 Library("null_aec_dump_factory_gn") diff --git third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build -index ba9dc491198c..0d430b570eb5 100644 +index 5e57979690e7..0c17eeaf4606 100644 --- third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -45636,13 +49148,17 @@ index ba9dc491198c..0d430b570eb5 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -45661,6 +49177,10 @@ index ba9dc491198c..0d430b570eb5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -45668,6 +49188,10 @@ index ba9dc491198c..0d430b570eb5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -45681,12 +49205,12 @@ index ba9dc491198c..0d430b570eb5 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -45699,6 +49223,10 @@ index ba9dc491198c..0d430b570eb5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -45736,7 +49264,7 @@ index ba9dc491198c..0d430b570eb5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -45794,10 +49322,10 @@ index ba9dc491198c..0d430b570eb5 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -45808,10 +49336,10 @@ index ba9dc491198c..0d430b570eb5 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -45823,16 +49351,23 @@ index ba9dc491198c..0d430b570eb5 100644 Library("aec_dump_interface_gn") diff --git third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build -index f2cf5c859485..f49648e3086e 100644 +index 77ba6c3ff20d..31a5bd1a8db5 100644 --- third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -45849,13 +49384,17 @@ index f2cf5c859485..f49648e3086e 100644 FINAL_LIBRARY = "xul" -@@ -48,114 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,123 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -45878,6 +49417,10 @@ index f2cf5c859485..f49648e3086e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -45889,6 +49432,10 @@ index f2cf5c859485..f49648e3086e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -45902,12 +49449,12 @@ index f2cf5c859485..f49648e3086e 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -45924,6 +49471,10 @@ index f2cf5c859485..f49648e3086e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -45951,13 +49502,6 @@ index f2cf5c859485..f49648e3086e 100644 - DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True - DEFINES["__STD_C"] = True - -- OS_LIBS += [ -- "crypt32", -- "iphlpapi", -- "secur32", -- "winmm" -- ] -- - SOURCES += [ - "/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc" - ] @@ -45965,7 +49509,7 @@ index f2cf5c859485..f49648e3086e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -164,27 +66,12 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -172,27 +69,12 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["__ARM_NEON__"] = "1" SOURCES += [ @@ -45994,7 +49538,7 @@ index f2cf5c859485..f49648e3086e 100644 SOURCES += [ "/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc" ] -@@ -193,7 +80,6 @@ if CONFIG["TARGET_CPU"] == "mips32": +@@ -201,7 +83,6 @@ if CONFIG["TARGET_CPU"] == "mips32": DEFINES["MIPS32_LE"] = True DEFINES["MIPS_FPU_LE"] = True @@ -46002,7 +49546,7 @@ index f2cf5c859485..f49648e3086e 100644 SOURCES += [ "/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_mips.cc" -@@ -201,8 +87,6 @@ if CONFIG["TARGET_CPU"] == "mips32": +@@ -209,8 +90,6 @@ if CONFIG["TARGET_CPU"] == "mips32": if CONFIG["TARGET_CPU"] == "mips64": @@ -46011,7 +49555,7 @@ index f2cf5c859485..f49648e3086e 100644 SOURCES += [ "/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc" ] -@@ -213,77 +97,27 @@ if CONFIG["TARGET_CPU"] == "ppc64": +@@ -221,77 +100,27 @@ if CONFIG["TARGET_CPU"] == "ppc64": "/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc" ] @@ -46095,16 +49639,23 @@ index f2cf5c859485..f49648e3086e 100644 SOURCES += [ "/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc" diff --git third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build -index 4ae42eab2074..12e716eac789 100644 +index 83396ea27045..8705ee7bcbdc 100644 --- third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -46122,13 +49673,17 @@ index 4ae42eab2074..12e716eac789 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -46147,6 +49702,10 @@ index 4ae42eab2074..12e716eac789 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -46154,6 +49713,10 @@ index 4ae42eab2074..12e716eac789 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -46167,12 +49730,12 @@ index 4ae42eab2074..12e716eac789 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -46185,6 +49748,10 @@ index 4ae42eab2074..12e716eac789 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -46222,7 +49789,7 @@ index 4ae42eab2074..12e716eac789 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -46280,10 +49847,10 @@ index 4ae42eab2074..12e716eac789 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -46294,10 +49861,10 @@ index 4ae42eab2074..12e716eac789 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -46309,16 +49876,15 @@ index 4ae42eab2074..12e716eac789 100644 Library("agc_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc/gain_control_interface_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc/gain_control_interface_gn/moz.build -index 43ed251cd060..c2c90bfba826 100644 +index efe63a81707f..c96d332898a4 100644 --- third_party/libwebrtc/modules/audio_processing/agc/gain_control_interface_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc/gain_control_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -46335,7 +49901,7 @@ index 43ed251cd060..c2c90bfba826 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -46420,7 +49986,7 @@ index 43ed251cd060..c2c90bfba826 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -46446,7 +50012,7 @@ index 43ed251cd060..c2c90bfba826 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -46488,16 +50054,23 @@ index 43ed251cd060..c2c90bfba826 100644 - Library("gain_control_interface_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build -index 7528ebeac06c..9b8acfd3f582 100644 +index 64296ecfebc2..6b25d2368901 100644 --- third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -46514,13 +50087,17 @@ index 7528ebeac06c..9b8acfd3f582 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -46539,6 +50116,10 @@ index 7528ebeac06c..9b8acfd3f582 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -46546,6 +50127,10 @@ index 7528ebeac06c..9b8acfd3f582 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -46559,12 +50144,12 @@ index 7528ebeac06c..9b8acfd3f582 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -46577,6 +50162,10 @@ index 7528ebeac06c..9b8acfd3f582 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -46614,7 +50203,7 @@ index 7528ebeac06c..9b8acfd3f582 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -46672,10 +50261,10 @@ index 7528ebeac06c..9b8acfd3f582 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -46686,10 +50275,10 @@ index 7528ebeac06c..9b8acfd3f582 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -46701,16 +50290,23 @@ index 7528ebeac06c..9b8acfd3f582 100644 Library("legacy_agc_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build -index 1cea105f40ec..6ef3e305946d 100644 +index 06fa8de95211..34978e1ca94d 100644 --- third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -46727,13 +50323,17 @@ index 1cea105f40ec..6ef3e305946d 100644 FINAL_LIBRARY = "xul" -@@ -49,98 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,114 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -46752,6 +50352,10 @@ index 1cea105f40ec..6ef3e305946d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -46759,6 +50363,10 @@ index 1cea105f40ec..6ef3e305946d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -46772,12 +50380,12 @@ index 1cea105f40ec..6ef3e305946d 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -46790,6 +50398,10 @@ index 1cea105f40ec..6ef3e305946d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -46827,7 +50439,7 @@ index 1cea105f40ec..6ef3e305946d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -46885,10 +50497,10 @@ index 1cea105f40ec..6ef3e305946d 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -46899,10 +50511,10 @@ index 1cea105f40ec..6ef3e305946d 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -46914,16 +50526,23 @@ index 1cea105f40ec..6ef3e305946d 100644 Library("level_estimation_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gain_controller_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gain_controller_gn/moz.build -index 9ea8d808a0b2..74ce00318e08 100644 +index dbb2c6020758..88317a4d59c8 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gain_controller_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gain_controller_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -46941,13 +50560,17 @@ index 9ea8d808a0b2..74ce00318e08 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -46966,6 +50589,10 @@ index 9ea8d808a0b2..74ce00318e08 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -46973,6 +50600,10 @@ index 9ea8d808a0b2..74ce00318e08 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -46986,12 +50617,12 @@ index 9ea8d808a0b2..74ce00318e08 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -47004,6 +50635,10 @@ index 9ea8d808a0b2..74ce00318e08 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -47041,7 +50676,7 @@ index 9ea8d808a0b2..74ce00318e08 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -47099,10 +50734,10 @@ index 9ea8d808a0b2..74ce00318e08 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -47113,10 +50748,10 @@ index 9ea8d808a0b2..74ce00318e08 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -47128,16 +50763,23 @@ index 9ea8d808a0b2..74ce00318e08 100644 Library("adaptive_digital_gain_controller_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build -index 10c3b1a37504..14bbe9c06848 100644 +index 65ef01a3df9c..c8e2620f015b 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -47154,13 +50796,17 @@ index 10c3b1a37504..14bbe9c06848 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -47179,6 +50825,10 @@ index 10c3b1a37504..14bbe9c06848 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -47186,6 +50836,10 @@ index 10c3b1a37504..14bbe9c06848 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -47201,6 +50855,10 @@ index 10c3b1a37504..14bbe9c06848 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -47213,6 +50871,10 @@ index 10c3b1a37504..14bbe9c06848 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -47243,7 +50905,7 @@ index 10c3b1a37504..14bbe9c06848 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -47330,16 +50992,23 @@ index 10c3b1a37504..14bbe9c06848 100644 Library("biquad_filter_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/clipping_predictor_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/clipping_predictor_gn/moz.build -index 1853af5676aa..402d6757bd7a 100644 +index e548e1a7df62..e4de39263699 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/clipping_predictor_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/clipping_predictor_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -47356,13 +51025,17 @@ index 1853af5676aa..402d6757bd7a 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -47381,6 +51054,10 @@ index 1853af5676aa..402d6757bd7a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -47388,6 +51065,10 @@ index 1853af5676aa..402d6757bd7a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -47401,12 +51082,12 @@ index 1853af5676aa..402d6757bd7a 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -47419,6 +51100,10 @@ index 1853af5676aa..402d6757bd7a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -47456,7 +51141,7 @@ index 1853af5676aa..402d6757bd7a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -47514,10 +51199,10 @@ index 1853af5676aa..402d6757bd7a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -47528,10 +51213,10 @@ index 1853af5676aa..402d6757bd7a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -47543,16 +51228,15 @@ index 1853af5676aa..402d6757bd7a 100644 Library("clipping_predictor_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build -index 6ef8c096e204..78f2953bbeaf 100644 +index 0ffd3ac34d75..b94364f25d2a 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -47569,7 +51253,7 @@ index 6ef8c096e204..78f2953bbeaf 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -47654,7 +51338,7 @@ index 6ef8c096e204..78f2953bbeaf 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -47680,7 +51364,7 @@ index 6ef8c096e204..78f2953bbeaf 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -47722,16 +51406,23 @@ index 6ef8c096e204..78f2953bbeaf 100644 - Library("common_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/cpu_features_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/cpu_features_gn/moz.build -index accab782c164..48a7cf36bba9 100644 +index a7a2bbb1a173..b65a6c700d04 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/cpu_features_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/cpu_features_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -47748,13 +51439,17 @@ index accab782c164..48a7cf36bba9 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -47773,6 +51468,10 @@ index accab782c164..48a7cf36bba9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -47780,6 +51479,10 @@ index accab782c164..48a7cf36bba9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -47793,12 +51496,12 @@ index accab782c164..48a7cf36bba9 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -47811,6 +51514,10 @@ index accab782c164..48a7cf36bba9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -47848,7 +51555,7 @@ index accab782c164..48a7cf36bba9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -47906,10 +51613,10 @@ index accab782c164..48a7cf36bba9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -47920,10 +51627,10 @@ index accab782c164..48a7cf36bba9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -47935,16 +51642,23 @@ index accab782c164..48a7cf36bba9 100644 Library("cpu_features_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build -index bee6a39d3a73..bfbc8436e67f 100644 +index 5a94688af9e4..57f0eb221338 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -47962,13 +51676,17 @@ index bee6a39d3a73..bfbc8436e67f 100644 FINAL_LIBRARY = "xul" -@@ -50,98 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -47987,6 +51705,10 @@ index bee6a39d3a73..bfbc8436e67f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -47994,6 +51716,10 @@ index bee6a39d3a73..bfbc8436e67f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -48007,12 +51733,12 @@ index bee6a39d3a73..bfbc8436e67f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -48025,6 +51751,10 @@ index bee6a39d3a73..bfbc8436e67f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -48062,7 +51792,7 @@ index bee6a39d3a73..bfbc8436e67f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -48120,10 +51850,10 @@ index bee6a39d3a73..bfbc8436e67f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -48134,10 +51864,10 @@ index bee6a39d3a73..bfbc8436e67f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -48149,16 +51879,23 @@ index bee6a39d3a73..bfbc8436e67f 100644 Library("fixed_digital_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build -index 3688111f0d92..9fe7808cd8b8 100644 +index 2e16a28ccc52..5b1a4dde05c6 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -48175,13 +51912,17 @@ index 3688111f0d92..9fe7808cd8b8 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -48200,6 +51941,10 @@ index 3688111f0d92..9fe7808cd8b8 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -48207,6 +51952,10 @@ index 3688111f0d92..9fe7808cd8b8 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -48222,6 +51971,10 @@ index 3688111f0d92..9fe7808cd8b8 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -48234,6 +51987,10 @@ index 3688111f0d92..9fe7808cd8b8 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -48271,7 +52028,7 @@ index 3688111f0d92..9fe7808cd8b8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -48329,10 +52086,10 @@ index 3688111f0d92..9fe7808cd8b8 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -48343,10 +52100,10 @@ index 3688111f0d92..9fe7808cd8b8 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -48358,16 +52115,15 @@ index 3688111f0d92..9fe7808cd8b8 100644 Library("gain_applier_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/gain_map_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/gain_map_gn/moz.build -index cbf2f842b375..3fa9a1cbeea4 100644 +index d02bbba1b46e..f2650a2d1f47 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/gain_map_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/gain_map_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -48384,7 +52140,7 @@ index cbf2f842b375..3fa9a1cbeea4 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -48469,7 +52225,7 @@ index cbf2f842b375..3fa9a1cbeea4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -48495,7 +52251,7 @@ index cbf2f842b375..3fa9a1cbeea4 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -48537,16 +52293,23 @@ index cbf2f842b375..3fa9a1cbeea4 100644 - Library("gain_map_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/input_volume_controller_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/input_volume_controller_gn/moz.build -index 0f885c0a9a17..b313f1c299a2 100644 +index 280b95eee7f8..e0519ff9a168 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/input_volume_controller_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/input_volume_controller_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -48564,13 +52327,17 @@ index 0f885c0a9a17..b313f1c299a2 100644 FINAL_LIBRARY = "xul" -@@ -49,98 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,114 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -48589,6 +52356,10 @@ index 0f885c0a9a17..b313f1c299a2 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -48596,6 +52367,10 @@ index 0f885c0a9a17..b313f1c299a2 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -48609,12 +52384,12 @@ index 0f885c0a9a17..b313f1c299a2 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -48627,6 +52402,10 @@ index 0f885c0a9a17..b313f1c299a2 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -48664,7 +52443,7 @@ index 0f885c0a9a17..b313f1c299a2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -48722,10 +52501,10 @@ index 0f885c0a9a17..b313f1c299a2 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -48736,10 +52515,10 @@ index 0f885c0a9a17..b313f1c299a2 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -48751,16 +52530,23 @@ index 0f885c0a9a17..b313f1c299a2 100644 Library("input_volume_controller_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/input_volume_stats_reporter_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/input_volume_stats_reporter_gn/moz.build -index 96dd6d841212..b7344a7bb4e8 100644 +index 8e5f14dd12b5..c8fa737a9e36 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/input_volume_stats_reporter_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/input_volume_stats_reporter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -48777,13 +52563,17 @@ index 96dd6d841212..b7344a7bb4e8 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -48802,6 +52592,10 @@ index 96dd6d841212..b7344a7bb4e8 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -48809,6 +52603,10 @@ index 96dd6d841212..b7344a7bb4e8 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -48824,6 +52622,10 @@ index 96dd6d841212..b7344a7bb4e8 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -48836,6 +52638,10 @@ index 96dd6d841212..b7344a7bb4e8 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -48873,7 +52679,7 @@ index 96dd6d841212..b7344a7bb4e8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -48931,10 +52737,10 @@ index 96dd6d841212..b7344a7bb4e8 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -48945,10 +52751,10 @@ index 96dd6d841212..b7344a7bb4e8 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -48960,16 +52766,23 @@ index 96dd6d841212..b7344a7bb4e8 100644 Library("input_volume_stats_reporter_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build -index 5e9b6db9859c..2f22b8d4b286 100644 +index 69e15a976256..48d3994e3b62 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -48987,13 +52800,17 @@ index 5e9b6db9859c..2f22b8d4b286 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -49012,6 +52829,10 @@ index 5e9b6db9859c..2f22b8d4b286 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -49019,6 +52840,10 @@ index 5e9b6db9859c..2f22b8d4b286 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -49032,12 +52857,12 @@ index 5e9b6db9859c..2f22b8d4b286 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -49050,6 +52875,10 @@ index 5e9b6db9859c..2f22b8d4b286 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -49087,7 +52916,7 @@ index 5e9b6db9859c..2f22b8d4b286 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -49145,10 +52974,10 @@ index 5e9b6db9859c..2f22b8d4b286 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -49159,10 +52988,10 @@ index 5e9b6db9859c..2f22b8d4b286 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -49174,16 +53003,23 @@ index 5e9b6db9859c..2f22b8d4b286 100644 Library("noise_level_estimator_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_auto_correlation_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_auto_correlation_gn/moz.build -index b5e02e0356f1..66ec332889f4 100644 +index a666f58d28e9..cf694d66ec5c 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_auto_correlation_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_auto_correlation_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -49200,13 +53036,17 @@ index b5e02e0356f1..66ec332889f4 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -49225,6 +53065,10 @@ index b5e02e0356f1..66ec332889f4 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -49232,6 +53076,10 @@ index b5e02e0356f1..66ec332889f4 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -49245,12 +53093,12 @@ index b5e02e0356f1..66ec332889f4 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -49263,6 +53111,10 @@ index b5e02e0356f1..66ec332889f4 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -49300,7 +53152,7 @@ index b5e02e0356f1..66ec332889f4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -49358,10 +53210,10 @@ index b5e02e0356f1..66ec332889f4 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -49372,10 +53224,10 @@ index b5e02e0356f1..66ec332889f4 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -49387,16 +53239,15 @@ index b5e02e0356f1..66ec332889f4 100644 Library("rnn_vad_auto_correlation_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_common_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_common_gn/moz.build -index 103b43ffafe6..935208f9620d 100644 +index ec3430f0ea3b..24afcb8f8ed1 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_common_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_common_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -49413,7 +53264,7 @@ index 103b43ffafe6..935208f9620d 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -49458,10 +53309,6 @@ index 103b43ffafe6..935208f9620d 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -49513,7 +53360,7 @@ index 103b43ffafe6..935208f9620d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -49539,7 +53386,7 @@ index 103b43ffafe6..935208f9620d 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -49581,16 +53428,23 @@ index 103b43ffafe6..935208f9620d 100644 - Library("rnn_vad_common_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build -index 4a28dcbf93e6..cee61fd497cb 100644 +index 694be007a960..36f79264c472 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -49607,13 +53461,17 @@ index 4a28dcbf93e6..cee61fd497cb 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -49632,6 +53490,10 @@ index 4a28dcbf93e6..cee61fd497cb 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -49639,6 +53501,10 @@ index 4a28dcbf93e6..cee61fd497cb 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -49652,12 +53518,12 @@ index 4a28dcbf93e6..cee61fd497cb 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -49670,6 +53536,10 @@ index 4a28dcbf93e6..cee61fd497cb 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -49707,7 +53577,7 @@ index 4a28dcbf93e6..cee61fd497cb 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -49765,10 +53635,10 @@ index 4a28dcbf93e6..cee61fd497cb 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -49779,10 +53649,10 @@ index 4a28dcbf93e6..cee61fd497cb 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -49794,16 +53664,23 @@ index 4a28dcbf93e6..cee61fd497cb 100644 Library("rnn_vad_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_layers_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_layers_gn/moz.build -index 8d1c079d983a..8e20003f0660 100644 +index b737105b2e2c..1470fb8c682a 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_layers_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_layers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -49820,13 +53697,17 @@ index 8d1c079d983a..8e20003f0660 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -49845,6 +53726,10 @@ index 8d1c079d983a..8e20003f0660 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -49852,6 +53737,10 @@ index 8d1c079d983a..8e20003f0660 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -49865,12 +53754,12 @@ index 8d1c079d983a..8e20003f0660 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -49883,6 +53772,10 @@ index 8d1c079d983a..8e20003f0660 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -49920,7 +53813,7 @@ index 8d1c079d983a..8e20003f0660 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -49978,10 +53871,10 @@ index 8d1c079d983a..8e20003f0660 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -49992,10 +53885,10 @@ index 8d1c079d983a..8e20003f0660 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -50007,16 +53900,23 @@ index 8d1c079d983a..8e20003f0660 100644 Library("rnn_vad_layers_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_lp_residual_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_lp_residual_gn/moz.build -index 891d4d6998bf..83d4268ade5f 100644 +index 071308946506..73cbc265e149 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_lp_residual_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_lp_residual_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -50033,13 +53933,17 @@ index 891d4d6998bf..83d4268ade5f 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -50058,6 +53962,10 @@ index 891d4d6998bf..83d4268ade5f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -50065,6 +53973,10 @@ index 891d4d6998bf..83d4268ade5f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -50080,6 +53992,10 @@ index 891d4d6998bf..83d4268ade5f 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -50092,6 +54008,10 @@ index 891d4d6998bf..83d4268ade5f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -50122,7 +54042,7 @@ index 891d4d6998bf..83d4268ade5f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -50209,16 +54129,23 @@ index 891d4d6998bf..83d4268ade5f 100644 Library("rnn_vad_lp_residual_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_pitch_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_pitch_gn/moz.build -index 092a0988470b..8e7241ff0398 100644 +index f8aa3e0757df..061f1056932c 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_pitch_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_pitch_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -50235,13 +54162,17 @@ index 092a0988470b..8e7241ff0398 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -50260,6 +54191,10 @@ index 092a0988470b..8e7241ff0398 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -50267,6 +54202,10 @@ index 092a0988470b..8e7241ff0398 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -50280,12 +54219,12 @@ index 092a0988470b..8e7241ff0398 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -50298,6 +54237,10 @@ index 092a0988470b..8e7241ff0398 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -50335,7 +54278,7 @@ index 092a0988470b..8e7241ff0398 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -50393,10 +54336,10 @@ index 092a0988470b..8e7241ff0398 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -50407,10 +54350,10 @@ index 092a0988470b..8e7241ff0398 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -50422,16 +54365,15 @@ index 092a0988470b..8e7241ff0398 100644 Library("rnn_vad_pitch_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_ring_buffer_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_ring_buffer_gn/moz.build -index 1f33b3fe8a24..b20704b70ce4 100644 +index e417e97673c7..76bc962a8aad 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_ring_buffer_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_ring_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -50448,7 +54390,7 @@ index 1f33b3fe8a24..b20704b70ce4 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -50537,7 +54479,7 @@ index 1f33b3fe8a24..b20704b70ce4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -50563,7 +54505,7 @@ index 1f33b3fe8a24..b20704b70ce4 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -50605,16 +54547,15 @@ index 1f33b3fe8a24..b20704b70ce4 100644 - Library("rnn_vad_ring_buffer_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_sequence_buffer_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_sequence_buffer_gn/moz.build -index 01c4fadbd51d..fbb558e0f089 100644 +index e18a5bd7f9dc..2be62f51e029 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_sequence_buffer_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_sequence_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -50631,7 +54572,7 @@ index 01c4fadbd51d..fbb558e0f089 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -50720,7 +54661,7 @@ index 01c4fadbd51d..fbb558e0f089 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -50746,7 +54687,7 @@ index 01c4fadbd51d..fbb558e0f089 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -50788,16 +54729,23 @@ index 01c4fadbd51d..fbb558e0f089 100644 - Library("rnn_vad_sequence_buffer_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_spectral_features_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_spectral_features_gn/moz.build -index aa4a8ba4023f..664715c17bed 100644 +index 542765dac9e3..40a3328b5980 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_spectral_features_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_spectral_features_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -50814,13 +54762,17 @@ index aa4a8ba4023f..664715c17bed 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -50839,6 +54791,10 @@ index aa4a8ba4023f..664715c17bed 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -50846,6 +54802,10 @@ index aa4a8ba4023f..664715c17bed 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -50859,12 +54819,12 @@ index aa4a8ba4023f..664715c17bed 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -50877,6 +54837,10 @@ index aa4a8ba4023f..664715c17bed 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -50914,7 +54878,7 @@ index aa4a8ba4023f..664715c17bed 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -50972,10 +54936,10 @@ index aa4a8ba4023f..664715c17bed 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -50986,10 +54950,10 @@ index aa4a8ba4023f..664715c17bed 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -51001,16 +54965,15 @@ index aa4a8ba4023f..664715c17bed 100644 Library("rnn_vad_spectral_features_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_symmetric_matrix_buffer_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_symmetric_matrix_buffer_gn/moz.build -index b15d83f31f52..46f52e81acee 100644 +index f09fc9513baf..7cc5592dfd1d 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_symmetric_matrix_buffer_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_symmetric_matrix_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -51027,7 +54990,7 @@ index b15d83f31f52..46f52e81acee 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -51116,7 +55079,7 @@ index b15d83f31f52..46f52e81acee 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -51142,7 +55105,7 @@ index b15d83f31f52..46f52e81acee 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -51184,16 +55147,24 @@ index b15d83f31f52..46f52e81acee 100644 - Library("rnn_vad_symmetric_matrix_buffer_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn/moz.build -index 7933cd618b19..7f79ede28cb8 100644 +index 45291330790b..c6229c6dc7e5 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn/moz.build -@@ -18,14 +18,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -11,20 +11,30 @@ AllowCompilerWarnings() + + CXXFLAGS += [ + "-mavx2", +- "-mfma" ++ "-mfma", ++ "-std=gnu++20" + ] + + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -51211,13 +55182,17 @@ index 7933cd618b19..7f79ede28cb8 100644 FINAL_LIBRARY = "xul" -@@ -53,127 +62,9 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -52,143 +62,9 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -51236,6 +55211,10 @@ index 7933cd618b19..7f79ede28cb8 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -51243,6 +55222,10 @@ index 7933cd618b19..7f79ede28cb8 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -51257,12 +55240,12 @@ index 7933cd618b19..7f79ede28cb8 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -51275,6 +55258,10 @@ index 7933cd618b19..7f79ede28cb8 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -51341,16 +55328,15 @@ index 7933cd618b19..7f79ede28cb8 100644 CXXFLAGS += [ "-msse2" diff --git third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_gn/moz.build -index 6aa396591931..d34e64f796ef 100644 +index 44ef3df6cc24..1475e1f30524 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -51367,7 +55353,7 @@ index 6aa396591931..d34e64f796ef 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -51412,10 +55398,6 @@ index 6aa396591931..d34e64f796ef 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -51467,7 +55449,7 @@ index 6aa396591931..d34e64f796ef 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -51493,7 +55475,7 @@ index 6aa396591931..d34e64f796ef 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -51535,16 +55517,23 @@ index 6aa396591931..d34e64f796ef 100644 - Library("vector_math_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/saturation_protector_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/saturation_protector_gn/moz.build -index c23779c5058e..a9284fa8a632 100644 +index b3af82c3d3e6..34d1c7e84cd1 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/saturation_protector_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/saturation_protector_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -51562,13 +55551,17 @@ index c23779c5058e..a9284fa8a632 100644 FINAL_LIBRARY = "xul" -@@ -49,98 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,114 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -51587,6 +55580,10 @@ index c23779c5058e..a9284fa8a632 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -51594,6 +55591,10 @@ index c23779c5058e..a9284fa8a632 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -51607,12 +55608,12 @@ index c23779c5058e..a9284fa8a632 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -51625,6 +55626,10 @@ index c23779c5058e..a9284fa8a632 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -51662,7 +55667,7 @@ index c23779c5058e..a9284fa8a632 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -51720,10 +55725,10 @@ index c23779c5058e..a9284fa8a632 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -51734,10 +55739,10 @@ index c23779c5058e..a9284fa8a632 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -51749,16 +55754,23 @@ index c23779c5058e..a9284fa8a632 100644 Library("saturation_protector_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/speech_level_estimator_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/speech_level_estimator_gn/moz.build -index 91fd3df4e594..a14b5015f3ab 100644 +index 4d509a799a63..6ce5e1de874e 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/speech_level_estimator_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/speech_level_estimator_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -51776,13 +55788,17 @@ index 91fd3df4e594..a14b5015f3ab 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -51801,6 +55817,10 @@ index 91fd3df4e594..a14b5015f3ab 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -51808,6 +55828,10 @@ index 91fd3df4e594..a14b5015f3ab 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -51821,12 +55845,12 @@ index 91fd3df4e594..a14b5015f3ab 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -51839,6 +55863,10 @@ index 91fd3df4e594..a14b5015f3ab 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -51876,7 +55904,7 @@ index 91fd3df4e594..a14b5015f3ab 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -51934,10 +55962,10 @@ index 91fd3df4e594..a14b5015f3ab 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -51948,10 +55976,10 @@ index 91fd3df4e594..a14b5015f3ab 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -51963,16 +55991,23 @@ index 91fd3df4e594..a14b5015f3ab 100644 Library("speech_level_estimator_gn") diff --git third_party/libwebrtc/modules/audio_processing/agc2/vad_wrapper_gn/moz.build third_party/libwebrtc/modules/audio_processing/agc2/vad_wrapper_gn/moz.build -index 8376409d5f1b..0a093dd57e19 100644 +index 383103815df1..e6d34f2e9963 100644 --- third_party/libwebrtc/modules/audio_processing/agc2/vad_wrapper_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/agc2/vad_wrapper_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -51989,13 +56024,17 @@ index 8376409d5f1b..0a093dd57e19 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -52014,6 +56053,10 @@ index 8376409d5f1b..0a093dd57e19 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -52021,6 +56064,10 @@ index 8376409d5f1b..0a093dd57e19 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -52034,12 +56081,12 @@ index 8376409d5f1b..0a093dd57e19 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -52052,6 +56099,10 @@ index 8376409d5f1b..0a093dd57e19 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -52089,7 +56140,7 @@ index 8376409d5f1b..0a093dd57e19 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -52147,10 +56198,10 @@ index 8376409d5f1b..0a093dd57e19 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -52161,10 +56212,10 @@ index 8376409d5f1b..0a093dd57e19 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -52176,16 +56227,23 @@ index 8376409d5f1b..0a093dd57e19 100644 Library("vad_wrapper_gn") diff --git third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build -index 987b21db9b23..834169228e70 100644 +index 98d6b29cc08a..b7dde8b2de94 100644 --- third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -52203,13 +56261,17 @@ index 987b21db9b23..834169228e70 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -52228,6 +56290,10 @@ index 987b21db9b23..834169228e70 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -52235,6 +56301,10 @@ index 987b21db9b23..834169228e70 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -52248,12 +56318,12 @@ index 987b21db9b23..834169228e70 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -52266,6 +56336,10 @@ index 987b21db9b23..834169228e70 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -52303,7 +56377,7 @@ index 987b21db9b23..834169228e70 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -52361,10 +56435,10 @@ index 987b21db9b23..834169228e70 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -52375,10 +56449,10 @@ index 987b21db9b23..834169228e70 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -52390,16 +56464,23 @@ index 987b21db9b23..834169228e70 100644 Library("apm_logging_gn") diff --git third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build -index 9c1e95972886..91f9bbd6ceb5 100644 +index 058ad74950dd..977deec4d7f4 100644 --- third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -52417,13 +56498,17 @@ index 9c1e95972886..91f9bbd6ceb5 100644 FINAL_LIBRARY = "xul" -@@ -50,98 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -52442,6 +56527,10 @@ index 9c1e95972886..91f9bbd6ceb5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -52449,6 +56538,10 @@ index 9c1e95972886..91f9bbd6ceb5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -52462,12 +56555,12 @@ index 9c1e95972886..91f9bbd6ceb5 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -52480,6 +56573,10 @@ index 9c1e95972886..91f9bbd6ceb5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -52517,7 +56614,7 @@ index 9c1e95972886..91f9bbd6ceb5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -52575,10 +56672,10 @@ index 9c1e95972886..91f9bbd6ceb5 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -52589,10 +56686,10 @@ index 9c1e95972886..91f9bbd6ceb5 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -52604,16 +56701,23 @@ index 9c1e95972886..91f9bbd6ceb5 100644 Library("audio_buffer_gn") diff --git third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build -index ded45e12931c..8ce196f4f409 100644 +index 23ffb08d2621..c014bab9b892 100644 --- third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -52630,13 +56734,17 @@ index ded45e12931c..8ce196f4f409 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -52655,6 +56763,10 @@ index ded45e12931c..8ce196f4f409 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -52662,6 +56774,10 @@ index ded45e12931c..8ce196f4f409 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -52675,12 +56791,12 @@ index ded45e12931c..8ce196f4f409 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -52693,6 +56809,10 @@ index ded45e12931c..8ce196f4f409 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -52730,7 +56850,7 @@ index ded45e12931c..8ce196f4f409 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -52788,10 +56908,10 @@ index ded45e12931c..8ce196f4f409 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -52802,10 +56922,10 @@ index ded45e12931c..8ce196f4f409 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -52817,16 +56937,15 @@ index ded45e12931c..8ce196f4f409 100644 Library("audio_frame_proxies_gn") diff --git third_party/libwebrtc/modules/audio_processing/audio_frame_view_gn/moz.build third_party/libwebrtc/modules/audio_processing/audio_frame_view_gn/moz.build -index 1a02a32479d1..d8be909f90d0 100644 +index 6d2602568141..379149997075 100644 --- third_party/libwebrtc/modules/audio_processing/audio_frame_view_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/audio_frame_view_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -52843,7 +56962,7 @@ index 1a02a32479d1..d8be909f90d0 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -52939,7 +57058,7 @@ index 1a02a32479d1..d8be909f90d0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -52965,7 +57084,7 @@ index 1a02a32479d1..d8be909f90d0 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -53007,16 +57126,23 @@ index 1a02a32479d1..d8be909f90d0 100644 - Library("audio_frame_view_gn") diff --git third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build -index 39ceb97304bf..c0278d97cb97 100644 +index 92550aa6d0d4..a2ffd5dd447a 100644 --- third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -53034,13 +57160,17 @@ index 39ceb97304bf..c0278d97cb97 100644 FINAL_LIBRARY = "xul" -@@ -53,98 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -52,114 +65,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -53059,6 +57189,10 @@ index 39ceb97304bf..c0278d97cb97 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -53066,6 +57200,10 @@ index 39ceb97304bf..c0278d97cb97 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -53079,12 +57217,12 @@ index 39ceb97304bf..c0278d97cb97 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -53097,6 +57235,10 @@ index 39ceb97304bf..c0278d97cb97 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -53134,7 +57276,7 @@ index 39ceb97304bf..c0278d97cb97 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -152,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -167,82 +73,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -53192,10 +57334,10 @@ index 39ceb97304bf..c0278d97cb97 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -53206,10 +57348,10 @@ index 39ceb97304bf..c0278d97cb97 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -53221,16 +57363,23 @@ index 39ceb97304bf..c0278d97cb97 100644 Library("audio_processing_gn") diff --git third_party/libwebrtc/modules/audio_processing/capture_levels_adjuster/capture_levels_adjuster_gn/moz.build third_party/libwebrtc/modules/audio_processing/capture_levels_adjuster/capture_levels_adjuster_gn/moz.build -index 21bd8f59c874..a3933d901f07 100644 +index 3dbfcd5a6f9f..a08fb28c3289 100644 --- third_party/libwebrtc/modules/audio_processing/capture_levels_adjuster/capture_levels_adjuster_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/capture_levels_adjuster/capture_levels_adjuster_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -53247,13 +57396,17 @@ index 21bd8f59c874..a3933d901f07 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -53272,6 +57425,10 @@ index 21bd8f59c874..a3933d901f07 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -53279,6 +57436,10 @@ index 21bd8f59c874..a3933d901f07 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -53292,12 +57453,12 @@ index 21bd8f59c874..a3933d901f07 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -53310,6 +57471,10 @@ index 21bd8f59c874..a3933d901f07 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -53347,7 +57512,7 @@ index 21bd8f59c874..a3933d901f07 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -53405,10 +57570,10 @@ index 21bd8f59c874..a3933d901f07 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -53419,10 +57584,10 @@ index 21bd8f59c874..a3933d901f07 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -53434,16 +57599,23 @@ index 21bd8f59c874..a3933d901f07 100644 Library("capture_levels_adjuster_gn") diff --git third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build -index 42784ec85682..8c878f3a3108 100644 +index 24d24a7b0a63..507db98ee882 100644 --- third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -53461,13 +57633,17 @@ index 42784ec85682..8c878f3a3108 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -53486,6 +57662,10 @@ index 42784ec85682..8c878f3a3108 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -53493,6 +57673,10 @@ index 42784ec85682..8c878f3a3108 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -53506,12 +57690,12 @@ index 42784ec85682..8c878f3a3108 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -53524,6 +57708,10 @@ index 42784ec85682..8c878f3a3108 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -53561,7 +57749,7 @@ index 42784ec85682..8c878f3a3108 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -53619,10 +57807,10 @@ index 42784ec85682..8c878f3a3108 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -53633,10 +57821,10 @@ index 42784ec85682..8c878f3a3108 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -53648,16 +57836,23 @@ index 42784ec85682..8c878f3a3108 100644 Library("gain_controller2_gn") diff --git third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build -index fd8ca7c8a141..67452f83cfeb 100644 +index 4090a31bc00c..399836f5bd82 100644 --- third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -53674,13 +57869,17 @@ index fd8ca7c8a141..67452f83cfeb 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -53699,6 +57898,10 @@ index fd8ca7c8a141..67452f83cfeb 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -53706,6 +57909,10 @@ index fd8ca7c8a141..67452f83cfeb 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -53719,12 +57926,12 @@ index fd8ca7c8a141..67452f83cfeb 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -53737,6 +57944,10 @@ index fd8ca7c8a141..67452f83cfeb 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -53774,7 +57985,7 @@ index fd8ca7c8a141..67452f83cfeb 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -53832,10 +58043,10 @@ index fd8ca7c8a141..67452f83cfeb 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -53846,10 +58057,10 @@ index fd8ca7c8a141..67452f83cfeb 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -53861,16 +58072,23 @@ index fd8ca7c8a141..67452f83cfeb 100644 Library("high_pass_filter_gn") diff --git third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build -index f01e58d04ef2..7777cb881169 100644 +index c6b493c74573..ab6efa463be2 100644 --- third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -53888,13 +58106,17 @@ index f01e58d04ef2..7777cb881169 100644 FINAL_LIBRARY = "xul" -@@ -60,98 +69,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -59,114 +72,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -53913,6 +58135,10 @@ index f01e58d04ef2..7777cb881169 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -53920,6 +58146,10 @@ index f01e58d04ef2..7777cb881169 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -53933,12 +58163,12 @@ index f01e58d04ef2..7777cb881169 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -53951,6 +58181,10 @@ index f01e58d04ef2..7777cb881169 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -53988,7 +58222,7 @@ index f01e58d04ef2..7777cb881169 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -159,82 +77,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -174,82 +80,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -54046,10 +58280,10 @@ index f01e58d04ef2..7777cb881169 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -54060,10 +58294,10 @@ index f01e58d04ef2..7777cb881169 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -54075,16 +58309,23 @@ index f01e58d04ef2..7777cb881169 100644 Library("ns_gn") diff --git third_party/libwebrtc/modules/audio_processing/post_filter_gn/moz.build third_party/libwebrtc/modules/audio_processing/post_filter_gn/moz.build -index 899fcaea523b..a51a44f0c956 100644 +index 6677bc0c5c90..8c43bca031b3 100644 --- third_party/libwebrtc/modules/audio_processing/post_filter_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/post_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -54101,13 +58342,17 @@ index 899fcaea523b..a51a44f0c956 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -54126,6 +58371,10 @@ index 899fcaea523b..a51a44f0c956 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -54133,6 +58382,10 @@ index 899fcaea523b..a51a44f0c956 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -54146,12 +58399,12 @@ index 899fcaea523b..a51a44f0c956 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -54164,6 +58417,10 @@ index 899fcaea523b..a51a44f0c956 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -54201,7 +58458,7 @@ index 899fcaea523b..a51a44f0c956 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -54259,10 +58516,10 @@ index 899fcaea523b..a51a44f0c956 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -54273,10 +58530,10 @@ index 899fcaea523b..a51a44f0c956 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -54288,16 +58545,23 @@ index 899fcaea523b..a51a44f0c956 100644 Library("post_filter_gn") diff --git third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build -index cff5be834af7..21c086b8c9b0 100644 +index 3276b98346a3..7c8a2be7ff49 100644 --- third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -54314,13 +58578,17 @@ index cff5be834af7..21c086b8c9b0 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -54339,6 +58607,10 @@ index cff5be834af7..21c086b8c9b0 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -54346,6 +58618,10 @@ index cff5be834af7..21c086b8c9b0 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -54361,6 +58637,10 @@ index cff5be834af7..21c086b8c9b0 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -54373,6 +58653,10 @@ index cff5be834af7..21c086b8c9b0 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -54403,7 +58687,7 @@ index cff5be834af7..21c086b8c9b0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -54490,16 +58774,23 @@ index cff5be834af7..21c086b8c9b0 100644 Library("rms_level_gn") diff --git third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build -index cf79a4c26df6..dab700567aa5 100644 +index af67cfe4ed78..480ce2321da9 100644 --- third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -54516,13 +58807,17 @@ index cf79a4c26df6..dab700567aa5 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -54541,6 +58836,10 @@ index cf79a4c26df6..dab700567aa5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -54548,6 +58847,10 @@ index cf79a4c26df6..dab700567aa5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -54563,6 +58866,10 @@ index cf79a4c26df6..dab700567aa5 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -54575,6 +58882,10 @@ index cf79a4c26df6..dab700567aa5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -54605,7 +58916,7 @@ index cf79a4c26df6..dab700567aa5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -54692,16 +59003,23 @@ index cf79a4c26df6..dab700567aa5 100644 Library("cascaded_biquad_filter_gn") diff --git third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build -index acaf46bea398..d8c66bd630c6 100644 +index d5df1c79df2a..433da84b049f 100644 --- third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -54718,13 +59036,17 @@ index acaf46bea398..d8c66bd630c6 100644 FINAL_LIBRARY = "xul" -@@ -48,87 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,107 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -54743,6 +59065,10 @@ index acaf46bea398..d8c66bd630c6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -54750,6 +59076,10 @@ index acaf46bea398..d8c66bd630c6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -54765,6 +59095,10 @@ index acaf46bea398..d8c66bd630c6 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -54777,6 +59111,10 @@ index acaf46bea398..d8c66bd630c6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -54807,7 +59145,7 @@ index acaf46bea398..d8c66bd630c6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -136,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -155,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -54894,16 +59232,23 @@ index acaf46bea398..d8c66bd630c6 100644 Library("legacy_delay_estimator_gn") diff --git third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build -index 7722cee73233..ef60e63ae63c 100644 +index 2541f6fc8210..d61f972b1321 100644 --- third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -54920,13 +59265,17 @@ index 7722cee73233..ef60e63ae63c 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -54945,6 +59294,10 @@ index 7722cee73233..ef60e63ae63c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -54952,6 +59305,10 @@ index 7722cee73233..ef60e63ae63c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -54967,6 +59324,10 @@ index 7722cee73233..ef60e63ae63c 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -54979,6 +59340,10 @@ index 7722cee73233..ef60e63ae63c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -55009,7 +59374,7 @@ index 7722cee73233..ef60e63ae63c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -55096,16 +59461,23 @@ index 7722cee73233..ef60e63ae63c 100644 Library("pffft_wrapper_gn") diff --git third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build -index 31578408d725..9b0863007487 100644 +index 1ceb37d542e2..0f4bb1e12367 100644 --- third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build +++ third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -55122,13 +59494,17 @@ index 31578408d725..9b0863007487 100644 FINAL_LIBRARY = "xul" -@@ -54,98 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -53,114 +66,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -55147,6 +59523,10 @@ index 31578408d725..9b0863007487 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -55154,6 +59534,10 @@ index 31578408d725..9b0863007487 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -55167,12 +59551,12 @@ index 31578408d725..9b0863007487 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -55185,6 +59569,10 @@ index 31578408d725..9b0863007487 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -55222,7 +59610,7 @@ index 31578408d725..9b0863007487 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -153,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -168,82 +74,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -55280,10 +59668,10 @@ index 31578408d725..9b0863007487 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -55294,10 +59682,10 @@ index 31578408d725..9b0863007487 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -55309,16 +59697,23 @@ index 31578408d725..9b0863007487 100644 Library("vad_gn") diff --git third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build -index e4fc3f7a57eb..d2c784dde24c 100644 +index 8c869f510632..904649b32ae0 100644 --- third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -55335,13 +59730,17 @@ index e4fc3f7a57eb..d2c784dde24c 100644 FINAL_LIBRARY = "xul" -@@ -48,99 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,115 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -55361,6 +59760,10 @@ index e4fc3f7a57eb..d2c784dde24c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -55368,6 +59771,10 @@ index e4fc3f7a57eb..d2c784dde24c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -55381,12 +59788,12 @@ index e4fc3f7a57eb..d2c784dde24c 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -55399,6 +59806,10 @@ index e4fc3f7a57eb..d2c784dde24c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -55436,7 +59847,7 @@ index e4fc3f7a57eb..d2c784dde24c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -55494,10 +59905,10 @@ index e4fc3f7a57eb..d2c784dde24c 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -55508,10 +59919,10 @@ index e4fc3f7a57eb..d2c784dde24c 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -55523,16 +59934,23 @@ index e4fc3f7a57eb..d2c784dde24c 100644 Library("congestion_controller_gn") diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build -index 56f80df06658..8217ef58b331 100644 +index cd003ec3869f..5a485118c983 100644 --- third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -55549,13 +59967,17 @@ index 56f80df06658..8217ef58b331 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -55574,6 +59996,10 @@ index 56f80df06658..8217ef58b331 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -55581,6 +60007,10 @@ index 56f80df06658..8217ef58b331 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -55596,6 +60026,10 @@ index 56f80df06658..8217ef58b331 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -55608,6 +60042,10 @@ index 56f80df06658..8217ef58b331 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -55645,7 +60083,7 @@ index 56f80df06658..8217ef58b331 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -55703,10 +60141,10 @@ index 56f80df06658..8217ef58b331 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -55717,10 +60155,10 @@ index 56f80df06658..8217ef58b331 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -55732,16 +60170,23 @@ index 56f80df06658..8217ef58b331 100644 Library("alr_detector_gn") diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build -index 753e47da2b61..7ff7a111dc72 100644 +index e6b717e83cff..d8c2ef06bccb 100644 --- third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -55758,13 +60203,17 @@ index 753e47da2b61..7ff7a111dc72 100644 FINAL_LIBRARY = "xul" -@@ -48,99 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,115 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -55784,6 +60233,10 @@ index 753e47da2b61..7ff7a111dc72 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -55791,6 +60244,10 @@ index 753e47da2b61..7ff7a111dc72 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -55804,12 +60261,12 @@ index 753e47da2b61..7ff7a111dc72 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -55822,6 +60279,10 @@ index 753e47da2b61..7ff7a111dc72 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -55859,7 +60320,7 @@ index 753e47da2b61..7ff7a111dc72 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -55917,10 +60378,10 @@ index 753e47da2b61..7ff7a111dc72 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -55931,10 +60392,10 @@ index 753e47da2b61..7ff7a111dc72 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -55946,16 +60407,23 @@ index 753e47da2b61..7ff7a111dc72 100644 Library("delay_based_bwe_gn") diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build -index 1a7b79d12ff5..1c023f23de55 100644 +index 160eccc1f99d..28c377fc9c57 100644 --- third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -55972,13 +60440,17 @@ index 1a7b79d12ff5..1c023f23de55 100644 FINAL_LIBRARY = "xul" -@@ -52,98 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -51,114 +64,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -55997,6 +60469,10 @@ index 1a7b79d12ff5..1c023f23de55 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -56004,6 +60480,10 @@ index 1a7b79d12ff5..1c023f23de55 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -56017,12 +60497,12 @@ index 1a7b79d12ff5..1c023f23de55 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -56035,6 +60515,10 @@ index 1a7b79d12ff5..1c023f23de55 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -56072,7 +60556,7 @@ index 1a7b79d12ff5..1c023f23de55 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -151,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -166,82 +72,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -56130,10 +60614,10 @@ index 1a7b79d12ff5..1c023f23de55 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -56144,10 +60628,10 @@ index 1a7b79d12ff5..1c023f23de55 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -56159,16 +60643,23 @@ index 1a7b79d12ff5..1c023f23de55 100644 Library("estimators_gn") diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build -index b2e3acfcf5ab..ab0ee1d5f9b3 100644 +index 3911e8ff1001..948acef63e79 100644 --- third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -56185,13 +60676,17 @@ index b2e3acfcf5ab..ab0ee1d5f9b3 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -56211,6 +60706,10 @@ index b2e3acfcf5ab..ab0ee1d5f9b3 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -56218,6 +60717,10 @@ index b2e3acfcf5ab..ab0ee1d5f9b3 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -56231,12 +60734,12 @@ index b2e3acfcf5ab..ab0ee1d5f9b3 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -56249,6 +60752,10 @@ index b2e3acfcf5ab..ab0ee1d5f9b3 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -56286,7 +60793,7 @@ index b2e3acfcf5ab..ab0ee1d5f9b3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -56344,10 +60851,10 @@ index b2e3acfcf5ab..ab0ee1d5f9b3 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -56358,10 +60865,10 @@ index b2e3acfcf5ab..ab0ee1d5f9b3 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -56373,16 +60880,23 @@ index b2e3acfcf5ab..ab0ee1d5f9b3 100644 Library("goog_cc_gn") diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build -index c4561cb900cd..178ea9973d7e 100644 +index 44c809dfedd9..5d7411ee9700 100644 --- third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -56399,215 +60913,17 @@ index c4561cb900cd..178ea9973d7e 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - -- DEFINES["ANDROID"] = True -- DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" -- DEFINES["HAVE_SYS_UIO_H"] = True -- DEFINES["WEBRTC_ANDROID"] = True -- DEFINES["WEBRTC_ANDROID_OPENSLES"] = True -- DEFINES["WEBRTC_LINUX"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["_GNU_SOURCE"] = True -- DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- -- OS_LIBS += [ -- "log" -- ] -- --if CONFIG["OS_TARGET"] == "Darwin": -- -- DEFINES["WEBRTC_MAC"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "Linux": -- -- DEFINES["USE_AURA"] = "1" -- DEFINES["USE_GLIB"] = "1" -- DEFINES["USE_OZONE"] = "1" -- DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["_FILE_OFFSET_BITS"] = "64" -- DEFINES["_GLIBCXX_ASSERTIONS"] = "1" -- DEFINES["_LARGEFILE64_SOURCE"] = True -- DEFINES["_LARGEFILE_SOURCE"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "OpenBSD": -- -- DEFINES["USE_GLIB"] = "1" -- DEFINES["USE_OZONE"] = "1" -- DEFINES["WEBRTC_BSD"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["_FILE_OFFSET_BITS"] = "64" -- DEFINES["_LARGEFILE64_SOURCE"] = True -- DEFINES["_LARGEFILE_SOURCE"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "WINNT": -- -- DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True -- DEFINES["NOMINMAX"] = True -- DEFINES["NTDDI_VERSION"] = "0x0A000000" -- DEFINES["PSAPI_VERSION"] = "2" -- DEFINES["RTC_ENABLE_WIN_WGC"] = True -- DEFINES["UNICODE"] = True -- DEFINES["USE_AURA"] = "1" -- DEFINES["WEBRTC_WIN"] = True -- DEFINES["WIN32"] = True -- DEFINES["WIN32_LEAN_AND_MEAN"] = True -- DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" -- DEFINES["WINVER"] = "0x0A00" -- DEFINES["_ATL_NO_OPENGL"] = True -- DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True -- DEFINES["_CRT_RAND_S"] = True -- DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True -- DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True -- DEFINES["_HAS_EXCEPTIONS"] = "0" -- DEFINES["_HAS_NODISCARD"] = True -- DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True -- DEFINES["_SECURE_ATL"] = True -- DEFINES["_UNICODE"] = True -- DEFINES["_WIN32_WINNT"] = "0x0A00" -- DEFINES["_WINDOWS"] = True -- DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True -- DEFINES["__STD_C"] = True -+ DEFINES["_DEBUG"] = True - - if CONFIG["TARGET_CPU"] == "aarch64": - -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": - DEFINES["WEBRTC_HAS_NEON"] = True - DEFINES["__ARM_NEON__"] = "1" - --if CONFIG["TARGET_CPU"] == "arm": -- -- CXXFLAGS += [ -- "-mfpu=neon" -- ] -- -- DEFINES["WEBRTC_ARCH_ARM"] = True -- DEFINES["WEBRTC_ARCH_ARM_V7"] = True -- DEFINES["WEBRTC_HAS_NEON"] = True -- --if CONFIG["TARGET_CPU"] == "loongarch64": -- -- DEFINES["_GNU_SOURCE"] = True -- - if CONFIG["TARGET_CPU"] == "mips32": - - DEFINES["MIPS32_LE"] = True - DEFINES["MIPS_FPU_LE"] = True -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["TARGET_CPU"] == "mips64": -- -- DEFINES["_GNU_SOURCE"] = True - - if CONFIG["TARGET_CPU"] == "x86": - -- DEFINES["WEBRTC_ENABLE_AVX2"] = True -- --if CONFIG["TARGET_CPU"] == "x86_64": -- -- DEFINES["WEBRTC_ENABLE_AVX2"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": -- -- DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" -- --if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": -- - CXXFLAGS += [ - "-msse2" - ] - --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": -- -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": -- -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": -- - CXXFLAGS += [ -- "-msse2" +- "-std=gnu++20" - ] - -- DEFINES["_GNU_SOURCE"] = True -+ DEFINES["WEBRTC_ENABLE_AVX2"] = True - --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": -+if CONFIG["TARGET_CPU"] == "x86_64": - -- DEFINES["_GNU_SOURCE"] = True -+ DEFINES["WEBRTC_ENABLE_AVX2"] = True - - Library("link_capacity_estimator_gn") -diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v1_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v1_gn/moz.build -index d231b8ce8d6d..d273a93b674c 100644 ---- third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v1_gn/moz.build -+++ third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v1_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" - DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" - DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True - DEFINES["RTC_ENABLE_VP9"] = True -+DEFINES["USE_GLIB"] = "1" -+DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -+DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" - DEFINES["WEBRTC_LIBRARY_IMPL"] = True - DEFINES["WEBRTC_MOZILLA_BUILD"] = True - DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" -+DEFINES["WEBRTC_POSIX"] = True - DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" -+DEFINES["_FILE_OFFSET_BITS"] = "64" -+DEFINES["_LARGEFILE64_SOURCE"] = True -+DEFINES["_LARGEFILE_SOURCE"] = True - DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE" -+DEFINES["__STDC_CONSTANT_MACROS"] = True -+DEFINES["__STDC_FORMAT_MACROS"] = True - - FINAL_LIBRARY = "xul" - -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: - if CONFIG["MOZ_DEBUG"] == "1": - - DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" -- --if CONFIG["OS_TARGET"] == "Android": -- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -56626,6 +60942,10 @@ index d231b8ce8d6d..d273a93b674c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -56633,6 +60953,10 @@ index d231b8ce8d6d..d273a93b674c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -56646,12 +60970,12 @@ index d231b8ce8d6d..d273a93b674c 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -56664,6 +60988,10 @@ index d231b8ce8d6d..d273a93b674c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -56690,18 +61018,11 @@ index d231b8ce8d6d..d273a93b674c 100644 - DEFINES["_WINDOWS"] = True - DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True - DEFINES["__STD_C"] = True -- -- OS_LIBS += [ -- "crypt32", -- "iphlpapi", -- "secur32", -- "winmm" -- ] + DEFINES["_DEBUG"] = True if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -56786,18 +61107,25 @@ index d231b8ce8d6d..d273a93b674c 100644 - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True - Library("loss_based_bwe_v1_gn") + Library("link_capacity_estimator_gn") diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2_gn/moz.build -index aeef260f896b..026d69c6ee2f 100644 +index baed3863d12f..a3655b8f658d 100644 --- third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_bwe_v2_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -56814,13 +61142,17 @@ index aeef260f896b..026d69c6ee2f 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -56839,6 +61171,10 @@ index aeef260f896b..026d69c6ee2f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -56846,6 +61182,10 @@ index aeef260f896b..026d69c6ee2f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -56859,12 +61199,12 @@ index aeef260f896b..026d69c6ee2f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -56877,6 +61217,10 @@ index aeef260f896b..026d69c6ee2f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -56914,7 +61258,7 @@ index aeef260f896b..026d69c6ee2f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -56972,10 +61316,10 @@ index aeef260f896b..026d69c6ee2f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -56986,10 +61330,10 @@ index aeef260f896b..026d69c6ee2f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -57001,16 +61345,23 @@ index aeef260f896b..026d69c6ee2f 100644 Library("loss_based_bwe_v2_gn") diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build -index bead3df26019..b72b49849875 100644 +index 701eb9f46814..d6bdf50e6195 100644 --- third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -57027,13 +61378,17 @@ index bead3df26019..b72b49849875 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -57052,6 +61407,10 @@ index bead3df26019..b72b49849875 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -57059,6 +61418,10 @@ index bead3df26019..b72b49849875 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -57072,12 +61435,12 @@ index bead3df26019..b72b49849875 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -57090,6 +61453,10 @@ index bead3df26019..b72b49849875 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -57127,7 +61494,7 @@ index bead3df26019..b72b49849875 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -57185,10 +61552,10 @@ index bead3df26019..b72b49849875 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -57199,10 +61566,10 @@ index bead3df26019..b72b49849875 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -57214,16 +61581,23 @@ index bead3df26019..b72b49849875 100644 Library("probe_controller_gn") diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build -index 70f611b3a48e..89c3a99e4ea6 100644 +index f31df05e9cc1..8f9781707754 100644 --- third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -57240,13 +61614,17 @@ index 70f611b3a48e..89c3a99e4ea6 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -57265,6 +61643,10 @@ index 70f611b3a48e..89c3a99e4ea6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -57272,6 +61654,10 @@ index 70f611b3a48e..89c3a99e4ea6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -57285,12 +61671,12 @@ index 70f611b3a48e..89c3a99e4ea6 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -57303,6 +61689,10 @@ index 70f611b3a48e..89c3a99e4ea6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -57340,7 +61730,7 @@ index 70f611b3a48e..89c3a99e4ea6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -57398,10 +61788,10 @@ index 70f611b3a48e..89c3a99e4ea6 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -57412,10 +61802,10 @@ index 70f611b3a48e..89c3a99e4ea6 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -57427,16 +61817,23 @@ index 70f611b3a48e..89c3a99e4ea6 100644 Library("pushback_controller_gn") diff --git third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn/moz.build third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn/moz.build -index f22524dd354b..6e24db4653a2 100644 +index 43e7fdcca440..2e6b77ca422d 100644 --- third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -57453,13 +61850,17 @@ index f22524dd354b..6e24db4653a2 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -57478,6 +61879,10 @@ index f22524dd354b..6e24db4653a2 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -57485,6 +61890,10 @@ index f22524dd354b..6e24db4653a2 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -57498,12 +61907,12 @@ index f22524dd354b..6e24db4653a2 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -57516,6 +61925,10 @@ index f22524dd354b..6e24db4653a2 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -57553,7 +61966,7 @@ index f22524dd354b..6e24db4653a2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -57611,10 +62024,10 @@ index f22524dd354b..6e24db4653a2 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -57625,10 +62038,10 @@ index f22524dd354b..6e24db4653a2 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -57640,16 +62053,23 @@ index f22524dd354b..6e24db4653a2 100644 Library("send_side_bwe_gn") diff --git third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build -index e650ac11466b..ea7669bdf2c9 100644 +index 03eba1c22a16..10b8dd972fbe 100644 --- third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -57666,13 +62086,17 @@ index e650ac11466b..ea7669bdf2c9 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -57692,6 +62116,10 @@ index e650ac11466b..ea7669bdf2c9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -57699,6 +62127,10 @@ index e650ac11466b..ea7669bdf2c9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -57712,12 +62144,12 @@ index e650ac11466b..ea7669bdf2c9 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -57730,6 +62162,10 @@ index e650ac11466b..ea7669bdf2c9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -57767,7 +62203,7 @@ index e650ac11466b..ea7669bdf2c9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -57825,10 +62261,10 @@ index e650ac11466b..ea7669bdf2c9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -57839,10 +62275,10 @@ index e650ac11466b..ea7669bdf2c9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -57854,16 +62290,23 @@ index e650ac11466b..ea7669bdf2c9 100644 Library("control_handler_gn") diff --git third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build -index 64598f28cfca..113ac5fad487 100644 +index 2f3d51d2d0f3..ca791c4ffb1e 100644 --- third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build +++ third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -57880,13 +62323,17 @@ index 64598f28cfca..113ac5fad487 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -57905,6 +62352,10 @@ index 64598f28cfca..113ac5fad487 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -57912,6 +62363,10 @@ index 64598f28cfca..113ac5fad487 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -57925,12 +62380,12 @@ index 64598f28cfca..113ac5fad487 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -57943,6 +62398,10 @@ index 64598f28cfca..113ac5fad487 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -57980,7 +62439,7 @@ index 64598f28cfca..113ac5fad487 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -58038,10 +62497,10 @@ index 64598f28cfca..113ac5fad487 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -58052,10 +62511,10 @@ index 64598f28cfca..113ac5fad487 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -58067,16 +62526,23 @@ index 64598f28cfca..113ac5fad487 100644 Library("transport_feedback_gn") diff --git third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build -index 598b738b3d98..2fcec71e4a8c 100644 +index 5ac5f9dc2618..6a80673f02c5 100644 --- third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build +++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_AVX2"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -58094,7 +62560,7 @@ index 598b738b3d98..2fcec71e4a8c 100644 FINAL_LIBRARY = "xul" -@@ -48,103 +57,16 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,113 +60,16 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -58102,7 +62568,8 @@ index 598b738b3d98..2fcec71e4a8c 100644 -if CONFIG["OS_TARGET"] == "Darwin": - - CXXFLAGS += [ -- "-msse2" +- "-msse2", +- "-std=gnu++20" - ] - - DEFINES["WEBRTC_MAC"] = True @@ -58112,6 +62579,10 @@ index 598b738b3d98..2fcec71e4a8c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -58129,7 +62600,8 @@ index 598b738b3d98..2fcec71e4a8c 100644 -if CONFIG["OS_TARGET"] == "OpenBSD": - - CXXFLAGS += [ -- "-msse2" +- "-msse2", +- "-std=gnu++20" - ] - - DEFINES["USE_GLIB"] = "1" @@ -58144,6 +62616,10 @@ index 598b738b3d98..2fcec71e4a8c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -58173,12 +62649,12 @@ index 598b738b3d98..2fcec71e4a8c 100644 - -if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": - -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -- DEFINES["_DEBUG"] = True +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": +- +- DEFINES["_DEBUG"] = True +- -if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["_DEBUG"] = True @@ -58201,16 +62677,23 @@ index 598b738b3d98..2fcec71e4a8c 100644 CXXFLAGS += [ "-msse2" diff --git third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build -index b32544897c73..99cd089c6892 100644 +index 89bec9b845b0..cdb54c132cb5 100644 --- third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build +++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build -@@ -26,13 +26,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -22,16 +22,29 @@ if not CONFIG["MOZ_SYSTEM_PIPEWIRE"]: + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -58227,13 +62710,17 @@ index b32544897c73..99cd089c6892 100644 FINAL_LIBRARY = "xul" -@@ -85,185 +94,14 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -84,197 +97,14 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -58248,6 +62735,10 @@ index b32544897c73..99cd089c6892 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -58261,10 +62752,6 @@ index b32544897c73..99cd089c6892 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- - SOURCES += [ - "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_linux.cc" - ] @@ -58276,6 +62763,10 @@ index b32544897c73..99cd089c6892 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -58317,6 +62808,10 @@ index b32544897c73..99cd089c6892 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -58415,7 +62910,7 @@ index b32544897c73..99cd089c6892 100644 LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", -@@ -271,7 +109,8 @@ if CONFIG["TARGET_CPU"] == "arm": +@@ -282,7 +112,8 @@ if CONFIG["TARGET_CPU"] == "arm": ] SOURCES += [ @@ -58425,7 +62920,7 @@ index b32544897c73..99cd089c6892 100644 ] UNIFIED_SOURCES += [ -@@ -281,34 +120,9 @@ if CONFIG["TARGET_CPU"] == "arm": +@@ -292,34 +123,9 @@ if CONFIG["TARGET_CPU"] == "arm": "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc", @@ -58463,7 +62958,7 @@ index b32544897c73..99cd089c6892 100644 ] if CONFIG["TARGET_CPU"] == "mips32": -@@ -316,7 +130,6 @@ if CONFIG["TARGET_CPU"] == "mips32": +@@ -327,7 +133,6 @@ if CONFIG["TARGET_CPU"] == "mips32": DEFINES["MIPS32_LE"] = True DEFINES["MIPS_FPU_LE"] = True DEFINES["WEBRTC_USE_PIPEWIRE"] = True @@ -58471,7 +62966,7 @@ index b32544897c73..99cd089c6892 100644 LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", -@@ -324,7 +137,8 @@ if CONFIG["TARGET_CPU"] == "mips32": +@@ -335,7 +140,8 @@ if CONFIG["TARGET_CPU"] == "mips32": ] SOURCES += [ @@ -58481,7 +62976,7 @@ index b32544897c73..99cd089c6892 100644 ] UNIFIED_SOURCES += [ -@@ -334,13 +148,14 @@ if CONFIG["TARGET_CPU"] == "mips32": +@@ -345,13 +151,14 @@ if CONFIG["TARGET_CPU"] == "mips32": "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc", @@ -58498,7 +62993,7 @@ index b32544897c73..99cd089c6892 100644 LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", -@@ -348,7 +163,8 @@ if CONFIG["TARGET_CPU"] == "mips64": +@@ -359,7 +166,8 @@ if CONFIG["TARGET_CPU"] == "mips64": ] SOURCES += [ @@ -58508,7 +63003,7 @@ index b32544897c73..99cd089c6892 100644 ] UNIFIED_SOURCES += [ -@@ -358,117 +174,19 @@ if CONFIG["TARGET_CPU"] == "mips64": +@@ -369,117 +177,19 @@ if CONFIG["TARGET_CPU"] == "mips64": "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc", @@ -58630,7 +63125,7 @@ index b32544897c73..99cd089c6892 100644 LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", -@@ -476,7 +194,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +@@ -487,7 +197,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": ] SOURCES += [ @@ -58640,7 +63135,7 @@ index b32544897c73..99cd089c6892 100644 ] UNIFIED_SOURCES += [ -@@ -486,13 +205,15 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +@@ -497,13 +208,15 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc", @@ -58659,7 +63154,7 @@ index b32544897c73..99cd089c6892 100644 LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", -@@ -500,7 +221,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": +@@ -511,7 +224,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": ] SOURCES += [ @@ -58669,7 +63164,7 @@ index b32544897c73..99cd089c6892 100644 ] UNIFIED_SOURCES += [ -@@ -510,10 +232,12 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": +@@ -521,10 +235,12 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screen_capture_portal_interface.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_portal.cc", "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/screencast_stream_utils.cc", @@ -58684,7 +63179,7 @@ index b32544897c73..99cd089c6892 100644 DEFINES["WEBRTC_USE_X11"] = True -@@ -539,134 +263,61 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGE +@@ -550,134 +266,61 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGE "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_window_property.cc" ] @@ -58851,10 +63346,10 @@ index b32544897c73..99cd089c6892 100644 Library("desktop_capture_gn") diff --git third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build deleted file mode 100644 -index 1a08376347cd..000000000000 +index 8d73e6328be6..000000000000 --- third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build +++ /dev/null -@@ -1,82 +0,0 @@ +@@ -1,81 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -58874,7 +63369,6 @@ index 1a08376347cd..000000000000 -DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" -DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True -DEFINES["RTC_ENABLE_VP9"] = True --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MAC"] = True @@ -58938,16 +63432,23 @@ index 1a08376347cd..000000000000 - -Library("desktop_capture_objc_gn") diff --git third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build -index e8417c3d85c5..acecefe7be92 100644 +index 08c499404beb..e4eb5944e021 100644 --- third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build +++ third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -58964,13 +63465,17 @@ index e8417c3d85c5..acecefe7be92 100644 FINAL_LIBRARY = "xul" -@@ -53,69 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -52,85 +65,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -58978,6 +63483,10 @@ index e8417c3d85c5..acecefe7be92 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -58993,6 +63502,10 @@ index e8417c3d85c5..acecefe7be92 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -59005,6 +63518,10 @@ index e8417c3d85c5..acecefe7be92 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -59035,7 +63552,7 @@ index e8417c3d85c5..acecefe7be92 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -123,69 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,69 +73,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -59109,16 +63626,15 @@ index e8417c3d85c5..acecefe7be92 100644 Library("primitives_gn") diff --git third_party/libwebrtc/modules/module_api_gn/moz.build third_party/libwebrtc/modules/module_api_gn/moz.build -index fd9dea10a397..20052b5ad7c2 100644 +index f7bcafadcd73..f41f90b9b985 100644 --- third_party/libwebrtc/modules/module_api_gn/moz.build +++ third_party/libwebrtc/modules/module_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -59135,7 +63651,7 @@ index fd9dea10a397..20052b5ad7c2 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -59220,7 +63736,7 @@ index fd9dea10a397..20052b5ad7c2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -59246,7 +63762,7 @@ index fd9dea10a397..20052b5ad7c2 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -59288,16 +63804,15 @@ index fd9dea10a397..20052b5ad7c2 100644 - Library("module_api_gn") diff --git third_party/libwebrtc/modules/module_api_public_gn/moz.build third_party/libwebrtc/modules/module_api_public_gn/moz.build -index 231edf631e22..84af1af791b8 100644 +index 18ed1d8f113e..b8b1a89645df 100644 --- third_party/libwebrtc/modules/module_api_public_gn/moz.build +++ third_party/libwebrtc/modules/module_api_public_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -59314,7 +63829,7 @@ index 231edf631e22..84af1af791b8 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -59399,7 +63914,7 @@ index 231edf631e22..84af1af791b8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -59425,7 +63940,7 @@ index 231edf631e22..84af1af791b8 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -59467,16 +63982,15 @@ index 231edf631e22..84af1af791b8 100644 - Library("module_api_public_gn") diff --git third_party/libwebrtc/modules/module_fec_api_gn/moz.build third_party/libwebrtc/modules/module_fec_api_gn/moz.build -index cc6d4595397e..b7fe96ba4609 100644 +index 848229844edd..0d1db13f4e15 100644 --- third_party/libwebrtc/modules/module_fec_api_gn/moz.build +++ third_party/libwebrtc/modules/module_fec_api_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -59493,7 +64007,7 @@ index cc6d4595397e..b7fe96ba4609 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -59578,7 +64092,7 @@ index cc6d4595397e..b7fe96ba4609 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -59604,7 +64118,7 @@ index cc6d4595397e..b7fe96ba4609 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -59646,16 +64160,23 @@ index cc6d4595397e..b7fe96ba4609 100644 - Library("module_fec_api_gn") diff --git third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build -index cc77d844868d..6b5865551362 100644 +index 440873268213..690d12ace5e1 100644 --- third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build +++ third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -59672,13 +64193,17 @@ index cc77d844868d..6b5865551362 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -59697,6 +64222,10 @@ index cc77d844868d..6b5865551362 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -59704,6 +64233,10 @@ index cc77d844868d..6b5865551362 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -59719,6 +64252,10 @@ index cc77d844868d..6b5865551362 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -59731,6 +64268,10 @@ index cc77d844868d..6b5865551362 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -59761,7 +64302,7 @@ index cc77d844868d..6b5865551362 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -59848,16 +64389,23 @@ index cc77d844868d..6b5865551362 100644 Library("interval_budget_gn") diff --git third_party/libwebrtc/modules/pacing/pacing_gn/moz.build third_party/libwebrtc/modules/pacing/pacing_gn/moz.build -index d038755722bc..310397c3a8d0 100644 +index 3988f5c881cf..a7bf33d61697 100644 --- third_party/libwebrtc/modules/pacing/pacing_gn/moz.build +++ third_party/libwebrtc/modules/pacing/pacing_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -59874,13 +64422,17 @@ index d038755722bc..310397c3a8d0 100644 FINAL_LIBRARY = "xul" -@@ -54,99 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -53,115 +66,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -59900,6 +64452,10 @@ index d038755722bc..310397c3a8d0 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -59907,6 +64463,10 @@ index d038755722bc..310397c3a8d0 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -59920,12 +64480,12 @@ index d038755722bc..310397c3a8d0 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -59938,6 +64498,10 @@ index d038755722bc..310397c3a8d0 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -59975,7 +64539,7 @@ index d038755722bc..310397c3a8d0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -154,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -169,82 +74,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -60033,10 +64597,10 @@ index d038755722bc..310397c3a8d0 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -60047,10 +64611,10 @@ index d038755722bc..310397c3a8d0 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -60062,10 +64626,10 @@ index d038755722bc..310397c3a8d0 100644 Library("pacing_gn") diff --git third_party/libwebrtc/modules/portal/portal_gn/moz.build third_party/libwebrtc/modules/portal/portal_gn/moz.build -index 458d6eb3ad9a..e1abb12959d5 100644 +index db71b13e786c..393e3a0ce470 100644 --- third_party/libwebrtc/modules/portal/portal_gn/moz.build +++ third_party/libwebrtc/modules/portal/portal_gn/moz.build -@@ -26,22 +26,18 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -30,21 +30,17 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True @@ -60073,7 +64637,6 @@ index 458d6eb3ad9a..e1abb12959d5 100644 DEFINES["USE_GLIB"] = "1" DEFINES["USE_OZONE"] = "1" -DEFINES["USE_UDEV"] = True - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -60089,7 +64652,7 @@ index 458d6eb3ad9a..e1abb12959d5 100644 DEFINES["_LARGEFILE64_SOURCE"] = True DEFINES["_LARGEFILE_SOURCE"] = True DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE" -@@ -86,16 +82,6 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -89,16 +85,6 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -60107,16 +64670,23 @@ index 458d6eb3ad9a..e1abb12959d5 100644 DEFINES["MIPS32_LE"] = True diff --git third_party/libwebrtc/modules/remote_bitrate_estimator/congestion_control_feedback_generator_gn/moz.build third_party/libwebrtc/modules/remote_bitrate_estimator/congestion_control_feedback_generator_gn/moz.build -index d7f5b2e2ed3c..552d79429483 100644 +index 2ec77e5170f0..20a02cc02752 100644 --- third_party/libwebrtc/modules/remote_bitrate_estimator/congestion_control_feedback_generator_gn/moz.build +++ third_party/libwebrtc/modules/remote_bitrate_estimator/congestion_control_feedback_generator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -60133,13 +64703,17 @@ index d7f5b2e2ed3c..552d79429483 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -60158,6 +64732,10 @@ index d7f5b2e2ed3c..552d79429483 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -60165,6 +64743,10 @@ index d7f5b2e2ed3c..552d79429483 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -60178,12 +64760,12 @@ index d7f5b2e2ed3c..552d79429483 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -60196,6 +64778,10 @@ index d7f5b2e2ed3c..552d79429483 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -60233,7 +64819,7 @@ index d7f5b2e2ed3c..552d79429483 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -60291,10 +64877,10 @@ index d7f5b2e2ed3c..552d79429483 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -60305,10 +64891,10 @@ index d7f5b2e2ed3c..552d79429483 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -60320,16 +64906,23 @@ index d7f5b2e2ed3c..552d79429483 100644 Library("congestion_control_feedback_generator_gn") diff --git third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build -index 634813072a4f..b9e866bb70ab 100644 +index fe512fc45b91..bc6627a86e52 100644 --- third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build +++ third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -60346,13 +64939,17 @@ index 634813072a4f..b9e866bb70ab 100644 FINAL_LIBRARY = "xul" -@@ -56,98 +65,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -55,114 +68,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -60371,6 +64968,10 @@ index 634813072a4f..b9e866bb70ab 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -60378,6 +64979,10 @@ index 634813072a4f..b9e866bb70ab 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -60391,12 +64996,12 @@ index 634813072a4f..b9e866bb70ab 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -60409,6 +65014,10 @@ index 634813072a4f..b9e866bb70ab 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -60446,7 +65055,7 @@ index 634813072a4f..b9e866bb70ab 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -155,82 +73,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -170,82 +76,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -60504,10 +65113,10 @@ index 634813072a4f..b9e866bb70ab 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -60518,10 +65127,10 @@ index 634813072a4f..b9e866bb70ab 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -60533,16 +65142,15 @@ index 634813072a4f..b9e866bb70ab 100644 Library("remote_bitrate_estimator_gn") diff --git third_party/libwebrtc/modules/remote_bitrate_estimator/rtp_transport_feedback_generator_gn/moz.build third_party/libwebrtc/modules/remote_bitrate_estimator/rtp_transport_feedback_generator_gn/moz.build -index 12fb52e764cb..d248f7bccac2 100644 +index c2e7377ddfd4..4e66ff5db13a 100644 --- third_party/libwebrtc/modules/remote_bitrate_estimator/rtp_transport_feedback_generator_gn/moz.build +++ third_party/libwebrtc/modules/remote_bitrate_estimator/rtp_transport_feedback_generator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -60559,7 +65167,7 @@ index 12fb52e764cb..d248f7bccac2 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -60604,10 +65212,6 @@ index 12fb52e764cb..d248f7bccac2 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -60659,7 +65263,7 @@ index 12fb52e764cb..d248f7bccac2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -60685,7 +65289,7 @@ index 12fb52e764cb..d248f7bccac2 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -60727,16 +65331,23 @@ index 12fb52e764cb..d248f7bccac2 100644 - Library("rtp_transport_feedback_generator_gn") diff --git third_party/libwebrtc/modules/remote_bitrate_estimator/transport_sequence_number_feedback_generator_gn/moz.build third_party/libwebrtc/modules/remote_bitrate_estimator/transport_sequence_number_feedback_generator_gn/moz.build -index 2ae17422afdc..9475b9f04ea6 100644 +index ef714742ae33..1bb93172f690 100644 --- third_party/libwebrtc/modules/remote_bitrate_estimator/transport_sequence_number_feedback_generator_gn/moz.build +++ third_party/libwebrtc/modules/remote_bitrate_estimator/transport_sequence_number_feedback_generator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -60753,13 +65364,17 @@ index 2ae17422afdc..9475b9f04ea6 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -60778,6 +65393,10 @@ index 2ae17422afdc..9475b9f04ea6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -60785,6 +65404,10 @@ index 2ae17422afdc..9475b9f04ea6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -60798,12 +65421,12 @@ index 2ae17422afdc..9475b9f04ea6 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -60816,6 +65439,10 @@ index 2ae17422afdc..9475b9f04ea6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -60853,7 +65480,7 @@ index 2ae17422afdc..9475b9f04ea6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -60911,10 +65538,10 @@ index 2ae17422afdc..9475b9f04ea6 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -60925,10 +65552,10 @@ index 2ae17422afdc..9475b9f04ea6 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -60940,16 +65567,23 @@ index 2ae17422afdc..9475b9f04ea6 100644 Library("transport_sequence_number_feedback_generator_gn") diff --git third_party/libwebrtc/modules/rtp_rtcp/leb128_gn/moz.build third_party/libwebrtc/modules/rtp_rtcp/leb128_gn/moz.build -index 67e21c08ed59..6637e2d5f701 100644 +index a9e95be32c67..58a2fad51751 100644 --- third_party/libwebrtc/modules/rtp_rtcp/leb128_gn/moz.build +++ third_party/libwebrtc/modules/rtp_rtcp/leb128_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -60966,13 +65600,17 @@ index 67e21c08ed59..6637e2d5f701 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -60987,6 +65625,10 @@ index 67e21c08ed59..6637e2d5f701 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -60994,6 +65636,10 @@ index 67e21c08ed59..6637e2d5f701 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -61009,6 +65655,10 @@ index 67e21c08ed59..6637e2d5f701 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -61021,6 +65671,10 @@ index 67e21c08ed59..6637e2d5f701 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -61051,7 +65705,7 @@ index 67e21c08ed59..6637e2d5f701 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -61109,10 +65763,10 @@ index 67e21c08ed59..6637e2d5f701 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -61123,10 +65777,10 @@ index 67e21c08ed59..6637e2d5f701 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -61138,16 +65792,23 @@ index 67e21c08ed59..6637e2d5f701 100644 Library("leb128_gn") diff --git third_party/libwebrtc/modules/rtp_rtcp/ntp_time_util_gn/moz.build third_party/libwebrtc/modules/rtp_rtcp/ntp_time_util_gn/moz.build -index 82c4ee3f447c..999d165efd7b 100644 +index 71a7444f6edd..704888734d11 100644 --- third_party/libwebrtc/modules/rtp_rtcp/ntp_time_util_gn/moz.build +++ third_party/libwebrtc/modules/rtp_rtcp/ntp_time_util_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -61164,13 +65825,17 @@ index 82c4ee3f447c..999d165efd7b 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -61189,6 +65854,10 @@ index 82c4ee3f447c..999d165efd7b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -61196,6 +65865,10 @@ index 82c4ee3f447c..999d165efd7b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -61209,12 +65882,12 @@ index 82c4ee3f447c..999d165efd7b 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -61227,6 +65900,10 @@ index 82c4ee3f447c..999d165efd7b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -61264,7 +65941,7 @@ index 82c4ee3f447c..999d165efd7b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -61322,10 +65999,10 @@ index 82c4ee3f447c..999d165efd7b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -61336,10 +66013,10 @@ index 82c4ee3f447c..999d165efd7b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -61351,16 +66028,23 @@ index 82c4ee3f447c..999d165efd7b 100644 Library("ntp_time_util_gn") diff --git third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build -index 7136b4733028..906e13fae23f 100644 +index 4d06f22b32e5..190a6e1710c9 100644 --- third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build +++ third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -61377,13 +66061,17 @@ index 7136b4733028..906e13fae23f 100644 FINAL_LIBRARY = "xul" -@@ -91,98 +100,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -90,114 +103,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -61402,6 +66090,10 @@ index 7136b4733028..906e13fae23f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -61409,6 +66101,10 @@ index 7136b4733028..906e13fae23f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -61422,12 +66118,12 @@ index 7136b4733028..906e13fae23f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -61440,6 +66136,10 @@ index 7136b4733028..906e13fae23f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -61477,7 +66177,7 @@ index 7136b4733028..906e13fae23f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -190,82 +108,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -205,82 +111,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -61535,10 +66235,10 @@ index 7136b4733028..906e13fae23f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -61549,10 +66249,10 @@ index 7136b4733028..906e13fae23f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -61564,16 +66264,23 @@ index 7136b4733028..906e13fae23f 100644 Library("rtp_rtcp_format_gn") diff --git third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build -index 84e6fc103d2f..7dbe759825f9 100644 +index b7451abdb35b..0e5b16913861 100644 --- third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build +++ third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -61590,13 +66297,17 @@ index 84e6fc103d2f..7dbe759825f9 100644 FINAL_LIBRARY = "xul" -@@ -101,99 +110,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -100,115 +113,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -61616,6 +66327,10 @@ index 84e6fc103d2f..7dbe759825f9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -61623,6 +66338,10 @@ index 84e6fc103d2f..7dbe759825f9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -61636,12 +66355,12 @@ index 84e6fc103d2f..7dbe759825f9 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -61654,6 +66373,10 @@ index 84e6fc103d2f..7dbe759825f9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -61691,7 +66414,7 @@ index 84e6fc103d2f..7dbe759825f9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -201,82 +118,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -216,82 +121,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -61749,10 +66472,10 @@ index 84e6fc103d2f..7dbe759825f9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -61763,10 +66486,10 @@ index 84e6fc103d2f..7dbe759825f9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -61778,16 +66501,23 @@ index 84e6fc103d2f..7dbe759825f9 100644 Library("rtp_rtcp_gn") diff --git third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build -index ad581840c124..506da77c1fd1 100644 +index aa8cff1debbf..b2fb4ea1f57b 100644 --- third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build +++ third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -61804,13 +66534,17 @@ index ad581840c124..506da77c1fd1 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -61829,6 +66563,10 @@ index ad581840c124..506da77c1fd1 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -61836,6 +66574,10 @@ index ad581840c124..506da77c1fd1 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -61851,6 +66593,10 @@ index ad581840c124..506da77c1fd1 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -61863,6 +66609,10 @@ index ad581840c124..506da77c1fd1 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -61900,7 +66650,7 @@ index ad581840c124..506da77c1fd1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -61958,10 +66708,10 @@ index ad581840c124..506da77c1fd1 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -61972,10 +66722,10 @@ index ad581840c124..506da77c1fd1 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -61987,16 +66737,15 @@ index ad581840c124..506da77c1fd1 100644 Library("rtp_video_header_gn") diff --git third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build -index ddcad071428c..972cd7f213a7 100644 +index 44fe26802729..b9454797a98d 100644 --- third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build +++ third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -62013,7 +66762,7 @@ index ddcad071428c..972cd7f213a7 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,83 +55,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -62098,7 +66847,7 @@ index ddcad071428c..972cd7f213a7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,82 +63,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -62185,16 +66934,15 @@ index ddcad071428c..972cd7f213a7 100644 Library("fft_gn") diff --git third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build -index 62ce49f3c5cb..f59a3d81e78c 100644 +index dbc294fa96ab..9a429e728f39 100644 --- third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build +++ third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -62211,7 +66959,7 @@ index 62ce49f3c5cb..f59a3d81e78c 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,83 +55,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -62296,7 +67044,7 @@ index 62ce49f3c5cb..f59a3d81e78c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,82 +63,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -62383,16 +67131,15 @@ index 62ce49f3c5cb..f59a3d81e78c 100644 Library("g711_3p_gn") diff --git third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build -index 74257a155693..c8fd6527cf97 100644 +index d88730be83ca..eb0e3d9776c2 100644 --- third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build +++ third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -62409,7 +67156,7 @@ index 74257a155693..c8fd6527cf97 100644 FINAL_LIBRARY = "xul" -@@ -51,83 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -50,83 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -62494,7 +67241,7 @@ index 74257a155693..c8fd6527cf97 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -134,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -62581,16 +67328,15 @@ index 74257a155693..c8fd6527cf97 100644 Library("g722_3p_gn") diff --git third_party/libwebrtc/modules/utility/utility_gn/moz.build third_party/libwebrtc/modules/utility/utility_gn/moz.build -index 5ee4917da404..7d106d158a94 100644 +index 747a68987a76..91501607fb33 100644 --- third_party/libwebrtc/modules/utility/utility_gn/moz.build +++ third_party/libwebrtc/modules/utility/utility_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -62607,13 +67353,17 @@ index 5ee4917da404..7d106d158a94 100644 FINAL_LIBRARY = "xul" -@@ -43,91 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -62700,7 +67450,7 @@ index 5ee4917da404..7d106d158a94 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -62726,7 +67476,7 @@ index 5ee4917da404..7d106d158a94 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -163,52 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,52 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -62780,16 +67530,23 @@ index 5ee4917da404..7d106d158a94 100644 - Library("utility_gn") diff --git third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build -index 28b6ac5f25c8..6a2450c7dacb 100644 +index 8ec96d9a4a86..5d4869cd7f86 100644 --- third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build +++ third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build -@@ -18,13 +18,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -14,16 +14,29 @@ if not CONFIG["MOZ_SYSTEM_PIPEWIRE"]: + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -62806,7 +67563,7 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 FINAL_LIBRARY = "xul" -@@ -40,6 +49,10 @@ LOCAL_INCLUDES += [ +@@ -39,6 +52,10 @@ LOCAL_INCLUDES += [ ] UNIFIED_SOURCES += [ @@ -62817,13 +67574,17 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 "/third_party/libwebrtc/modules/video_capture/video_capture_options.cc" ] -@@ -52,171 +65,14 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -51,187 +68,14 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -62842,6 +67603,10 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -62849,6 +67614,10 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -62862,10 +67631,6 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- - UNIFIED_SOURCES += [ - "/third_party/libwebrtc/modules/video_capture/linux/device_info_linux.cc", - "/third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc", @@ -62875,6 +67640,10 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -62894,6 +67663,10 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -62968,7 +67741,7 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 - - DEFINES["MIPS32_LE"] = True - DEFINES["MIPS_FPU_LE"] = True -- DEFINES["WEBRTC_USE_PIPEWIRE"] = True + DEFINES["WEBRTC_USE_PIPEWIRE"] = True - DEFINES["_GNU_SOURCE"] = True - - LOCAL_INCLUDES += [ @@ -62985,13 +67758,13 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 - -if CONFIG["TARGET_CPU"] == "mips64": - - DEFINES["WEBRTC_USE_PIPEWIRE"] = True +- DEFINES["WEBRTC_USE_PIPEWIRE"] = True - DEFINES["_GNU_SOURCE"] = True + DEFINES["__ARM_NEON__"] = "1" LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", -@@ -230,44 +86,11 @@ if CONFIG["TARGET_CPU"] == "mips64": +@@ -245,44 +89,11 @@ if CONFIG["TARGET_CPU"] == "mips64": "/third_party/libwebrtc/modules/video_capture/linux/video_capture_pipewire.cc" ] @@ -63039,7 +67812,7 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", -@@ -281,10 +104,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": +@@ -296,10 +107,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": "/third_party/libwebrtc/modules/video_capture/linux/video_capture_pipewire.cc" ] @@ -63051,7 +67824,7 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", -@@ -298,14 +120,14 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": +@@ -313,14 +123,14 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": "/third_party/libwebrtc/modules/video_capture/linux/video_capture_pipewire.cc" ] @@ -63068,7 +67841,7 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", -@@ -319,10 +141,10 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +@@ -334,10 +144,10 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": "/third_party/libwebrtc/modules/video_capture/linux/video_capture_pipewire.cc" ] @@ -63082,16 +67855,23 @@ index 28b6ac5f25c8..6a2450c7dacb 100644 LOCAL_INCLUDES += [ "/third_party/libepoxy/libepoxy/include/", diff --git third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build -index de5bb188111b..c4db7dc59ecf 100644 +index 8e6a20c413c2..3dce7e24b7f2 100644 --- third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build +++ third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -63108,13 +67888,17 @@ index de5bb188111b..c4db7dc59ecf 100644 FINAL_LIBRARY = "xul" -@@ -51,98 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -50,114 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -63133,6 +67917,10 @@ index de5bb188111b..c4db7dc59ecf 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -63140,6 +67928,10 @@ index de5bb188111b..c4db7dc59ecf 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -63153,12 +67945,12 @@ index de5bb188111b..c4db7dc59ecf 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -63171,6 +67963,10 @@ index de5bb188111b..c4db7dc59ecf 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -63208,7 +68004,7 @@ index de5bb188111b..c4db7dc59ecf 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -150,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -165,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -63266,10 +68062,10 @@ index de5bb188111b..c4db7dc59ecf 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -63280,10 +68076,10 @@ index de5bb188111b..c4db7dc59ecf 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -63295,16 +68091,23 @@ index de5bb188111b..c4db7dc59ecf 100644 Library("video_capture_module_gn") diff --git third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build -index e0c966fb45be..23015c7646d6 100644 +index 09852f9680d2..0eeb8f20f052 100644 --- third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -63321,13 +68124,17 @@ index e0c966fb45be..23015c7646d6 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -63346,6 +68153,10 @@ index e0c966fb45be..23015c7646d6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -63353,6 +68164,10 @@ index e0c966fb45be..23015c7646d6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -63368,6 +68183,10 @@ index e0c966fb45be..23015c7646d6 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -63380,6 +68199,10 @@ index e0c966fb45be..23015c7646d6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -63417,7 +68240,7 @@ index e0c966fb45be..23015c7646d6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -63475,10 +68298,10 @@ index e0c966fb45be..23015c7646d6 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -63489,10 +68312,10 @@ index e0c966fb45be..23015c7646d6 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -63504,16 +68327,15 @@ index e0c966fb45be..23015c7646d6 100644 Library("chain_diff_calculator_gn") diff --git third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build -index b26732ca8bb2..c6ec6d247c75 100644 +index 18490a99922e..cd478d1ab4e0 100644 --- third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -63530,7 +68352,7 @@ index b26732ca8bb2..c6ec6d247c75 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -63619,7 +68441,7 @@ index b26732ca8bb2..c6ec6d247c75 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -63645,7 +68467,7 @@ index b26732ca8bb2..c6ec6d247c75 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -63687,16 +68509,23 @@ index b26732ca8bb2..c6ec6d247c75 100644 - Library("codec_globals_headers_gn") diff --git third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build -index 2e4abf38bdd6..029587e1db2e 100644 +index 6a1fce1d5dfe..c4489b1da4a4 100644 --- third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -63713,13 +68542,17 @@ index 2e4abf38bdd6..029587e1db2e 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -63738,6 +68571,10 @@ index 2e4abf38bdd6..029587e1db2e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -63745,6 +68582,10 @@ index 2e4abf38bdd6..029587e1db2e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -63758,12 +68599,12 @@ index 2e4abf38bdd6..029587e1db2e 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -63776,6 +68617,10 @@ index 2e4abf38bdd6..029587e1db2e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -63813,7 +68658,7 @@ index 2e4abf38bdd6..029587e1db2e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -63871,10 +68716,10 @@ index 2e4abf38bdd6..029587e1db2e 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -63885,10 +68730,10 @@ index 2e4abf38bdd6..029587e1db2e 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -63900,16 +68745,23 @@ index 2e4abf38bdd6..029587e1db2e 100644 Library("av1_svc_config_gn") diff --git third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build -index 3a1031ba04b6..bdedce7c4efd 100644 +index bb6f0eeaffb8..cba1557d956e 100644 --- third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build -@@ -16,13 +16,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -12,16 +12,29 @@ if CONFIG["MOZ_SYSTEM_AV1"]: + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -63926,13 +68778,17 @@ index 3a1031ba04b6..bdedce7c4efd 100644 FINAL_LIBRARY = "xul" -@@ -54,98 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -53,114 +66,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -63951,6 +68807,10 @@ index 3a1031ba04b6..bdedce7c4efd 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -63958,6 +68818,10 @@ index 3a1031ba04b6..bdedce7c4efd 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -63971,12 +68835,12 @@ index 3a1031ba04b6..bdedce7c4efd 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -63989,6 +68853,10 @@ index 3a1031ba04b6..bdedce7c4efd 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -64026,7 +68894,7 @@ index 3a1031ba04b6..bdedce7c4efd 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -153,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -168,82 +74,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -64084,10 +68952,10 @@ index 3a1031ba04b6..bdedce7c4efd 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -64098,10 +68966,10 @@ index 3a1031ba04b6..bdedce7c4efd 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -64113,16 +68981,23 @@ index 3a1031ba04b6..bdedce7c4efd 100644 Library("dav1d_decoder_gn") diff --git third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_gn/moz.build third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_gn/moz.build -index d79e8d29a8c5..b432bbb71fec 100644 +index 64865e705dc2..b510d6294cbc 100644 --- third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_gn/moz.build -@@ -16,13 +16,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -12,16 +12,29 @@ if CONFIG["MOZ_SYSTEM_AV1"]: + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -64139,13 +69014,17 @@ index d79e8d29a8c5..b432bbb71fec 100644 FINAL_LIBRARY = "xul" -@@ -50,98 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -64164,6 +69043,10 @@ index d79e8d29a8c5..b432bbb71fec 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -64171,6 +69054,10 @@ index d79e8d29a8c5..b432bbb71fec 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -64184,12 +69071,12 @@ index d79e8d29a8c5..b432bbb71fec 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -64202,6 +69089,10 @@ index d79e8d29a8c5..b432bbb71fec 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -64239,7 +69130,7 @@ index d79e8d29a8c5..b432bbb71fec 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -64297,10 +69188,10 @@ index d79e8d29a8c5..b432bbb71fec 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -64311,10 +69202,10 @@ index d79e8d29a8c5..b432bbb71fec 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -64326,16 +69217,23 @@ index d79e8d29a8c5..b432bbb71fec 100644 Library("aom_av1_encoder_gn") diff --git third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build -index a60787fc6449..f375bcdc2a8e 100644 +index c7e6879e9c9b..a9e5d531c7f8 100644 --- third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -64352,13 +69250,17 @@ index a60787fc6449..f375bcdc2a8e 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -64377,6 +69279,10 @@ index a60787fc6449..f375bcdc2a8e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -64384,6 +69290,10 @@ index a60787fc6449..f375bcdc2a8e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -64397,12 +69307,12 @@ index a60787fc6449..f375bcdc2a8e 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -64415,6 +69325,10 @@ index a60787fc6449..f375bcdc2a8e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -64452,7 +69366,7 @@ index a60787fc6449..f375bcdc2a8e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -64510,10 +69424,10 @@ index a60787fc6449..f375bcdc2a8e 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -64524,10 +69438,10 @@ index a60787fc6449..f375bcdc2a8e 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -64539,16 +69453,23 @@ index a60787fc6449..f375bcdc2a8e 100644 Library("encoded_frame_gn") diff --git third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build -index 769517d3f365..8cbfbfd52d05 100644 +index 6ed61e2ed514..c6e8ae200597 100644 --- third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -64565,13 +69486,17 @@ index 769517d3f365..8cbfbfd52d05 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -64590,6 +69515,10 @@ index 769517d3f365..8cbfbfd52d05 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -64597,6 +69526,10 @@ index 769517d3f365..8cbfbfd52d05 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -64612,6 +69545,10 @@ index 769517d3f365..8cbfbfd52d05 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -64624,6 +69561,10 @@ index 769517d3f365..8cbfbfd52d05 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -64661,7 +69602,7 @@ index 769517d3f365..8cbfbfd52d05 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -64719,10 +69660,10 @@ index 769517d3f365..8cbfbfd52d05 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -64733,10 +69674,10 @@ index 769517d3f365..8cbfbfd52d05 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -64748,16 +69689,23 @@ index 769517d3f365..8cbfbfd52d05 100644 Library("frame_dependencies_calculator_gn") diff --git third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build -index 24380868efcb..cfbdceb4d6db 100644 +index 553ce31ed2dd..8ae9b6a7a492 100644 --- third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -64774,13 +69722,17 @@ index 24380868efcb..cfbdceb4d6db 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -64799,6 +69751,10 @@ index 24380868efcb..cfbdceb4d6db 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -64806,6 +69762,10 @@ index 24380868efcb..cfbdceb4d6db 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -64819,12 +69779,12 @@ index 24380868efcb..cfbdceb4d6db 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -64837,6 +69797,10 @@ index 24380868efcb..cfbdceb4d6db 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -64874,7 +69838,7 @@ index 24380868efcb..cfbdceb4d6db 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -64932,10 +69896,10 @@ index 24380868efcb..cfbdceb4d6db 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -64946,10 +69910,10 @@ index 24380868efcb..cfbdceb4d6db 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -64961,16 +69925,23 @@ index 24380868efcb..cfbdceb4d6db 100644 Library("frame_helpers_gn") diff --git third_party/libwebrtc/modules/video_coding/h264_sprop_parameter_sets_gn/moz.build third_party/libwebrtc/modules/video_coding/h264_sprop_parameter_sets_gn/moz.build -index be74fea63164..53bdc368fe2b 100644 +index eb7fb47746e0..e76ba8ac7cd1 100644 --- third_party/libwebrtc/modules/video_coding/h264_sprop_parameter_sets_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/h264_sprop_parameter_sets_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -64987,13 +69958,17 @@ index be74fea63164..53bdc368fe2b 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -65012,6 +69987,10 @@ index be74fea63164..53bdc368fe2b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -65019,6 +69998,10 @@ index be74fea63164..53bdc368fe2b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -65034,6 +70017,10 @@ index be74fea63164..53bdc368fe2b 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -65046,6 +70033,10 @@ index be74fea63164..53bdc368fe2b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -65083,7 +70074,7 @@ index be74fea63164..53bdc368fe2b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -65141,10 +70132,10 @@ index be74fea63164..53bdc368fe2b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -65155,10 +70146,10 @@ index be74fea63164..53bdc368fe2b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -65170,16 +70161,23 @@ index be74fea63164..53bdc368fe2b 100644 Library("h264_sprop_parameter_sets_gn") diff --git third_party/libwebrtc/modules/video_coding/h26x_packet_buffer_gn/moz.build third_party/libwebrtc/modules/video_coding/h26x_packet_buffer_gn/moz.build -index 41156a4966db..8cef7a07fa45 100644 +index 34122a4e87a4..d13e4278cbe3 100644 --- third_party/libwebrtc/modules/video_coding/h26x_packet_buffer_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/h26x_packet_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -65196,13 +70194,17 @@ index 41156a4966db..8cef7a07fa45 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -65221,6 +70223,10 @@ index 41156a4966db..8cef7a07fa45 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -65228,6 +70234,10 @@ index 41156a4966db..8cef7a07fa45 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -65241,12 +70251,12 @@ index 41156a4966db..8cef7a07fa45 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -65259,6 +70269,10 @@ index 41156a4966db..8cef7a07fa45 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -65296,7 +70310,7 @@ index 41156a4966db..8cef7a07fa45 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -65354,10 +70368,10 @@ index 41156a4966db..8cef7a07fa45 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -65368,10 +70382,10 @@ index 41156a4966db..8cef7a07fa45 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -65383,16 +70397,23 @@ index 41156a4966db..8cef7a07fa45 100644 Library("h26x_packet_buffer_gn") diff --git third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build -index 74d1824de3fe..9e09c9517c27 100644 +index 4cca5934baed..0d44d1ae0915 100644 --- third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -65409,13 +70430,17 @@ index 74d1824de3fe..9e09c9517c27 100644 FINAL_LIBRARY = "xul" -@@ -48,98 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -65434,6 +70459,10 @@ index 74d1824de3fe..9e09c9517c27 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -65441,6 +70470,10 @@ index 74d1824de3fe..9e09c9517c27 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -65454,12 +70487,12 @@ index 74d1824de3fe..9e09c9517c27 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -65472,6 +70505,10 @@ index 74d1824de3fe..9e09c9517c27 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -65509,7 +70546,7 @@ index 74d1824de3fe..9e09c9517c27 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -65567,10 +70604,10 @@ index 74d1824de3fe..9e09c9517c27 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -65581,10 +70618,10 @@ index 74d1824de3fe..9e09c9517c27 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -65596,16 +70633,23 @@ index 74d1824de3fe..9e09c9517c27 100644 Library("nack_requester_gn") diff --git third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build -index e2f4fe9dfc59..e7ed8d372351 100644 +index 7cc5fe1a9bde..f8552b642dea 100644 --- third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -65622,13 +70666,17 @@ index e2f4fe9dfc59..e7ed8d372351 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -65647,6 +70695,10 @@ index e2f4fe9dfc59..e7ed8d372351 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -65654,6 +70706,10 @@ index e2f4fe9dfc59..e7ed8d372351 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -65667,12 +70723,12 @@ index e2f4fe9dfc59..e7ed8d372351 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -65685,6 +70741,10 @@ index e2f4fe9dfc59..e7ed8d372351 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -65722,7 +70782,7 @@ index e2f4fe9dfc59..e7ed8d372351 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -65780,10 +70840,10 @@ index e2f4fe9dfc59..e7ed8d372351 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -65794,10 +70854,10 @@ index e2f4fe9dfc59..e7ed8d372351 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -65809,16 +70869,23 @@ index e2f4fe9dfc59..e7ed8d372351 100644 Library("packet_buffer_gn") diff --git third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build -index 9830c749097d..153b21e66176 100644 +index badcb68f6737..15b76f1c0da7 100644 --- third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -65835,13 +70902,17 @@ index 9830c749097d..153b21e66176 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -65860,6 +70931,10 @@ index 9830c749097d..153b21e66176 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -65867,6 +70942,10 @@ index 9830c749097d..153b21e66176 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -65880,12 +70959,12 @@ index 9830c749097d..153b21e66176 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -65898,6 +70977,10 @@ index 9830c749097d..153b21e66176 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -65935,7 +71018,7 @@ index 9830c749097d..153b21e66176 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -65993,10 +71076,10 @@ index 9830c749097d..153b21e66176 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -66007,10 +71090,10 @@ index 9830c749097d..153b21e66176 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -66022,16 +71105,23 @@ index 9830c749097d..153b21e66176 100644 Library("scalability_mode_util_gn") diff --git third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build -index 9df7c0dd8fba..e240df219e23 100644 +index b96bece0f04e..99b1fa03fb5b 100644 --- third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -66048,13 +71138,17 @@ index 9df7c0dd8fba..e240df219e23 100644 FINAL_LIBRARY = "xul" -@@ -54,94 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -53,114 +66,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -66073,6 +71167,10 @@ index 9df7c0dd8fba..e240df219e23 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -66080,6 +71178,10 @@ index 9df7c0dd8fba..e240df219e23 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -66095,6 +71197,10 @@ index 9df7c0dd8fba..e240df219e23 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -66107,6 +71213,10 @@ index 9df7c0dd8fba..e240df219e23 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -66144,7 +71254,7 @@ index 9df7c0dd8fba..e240df219e23 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -149,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -168,82 +74,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -66202,10 +71312,10 @@ index 9df7c0dd8fba..e240df219e23 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -66216,10 +71326,10 @@ index 9df7c0dd8fba..e240df219e23 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -66231,16 +71341,23 @@ index 9df7c0dd8fba..e240df219e23 100644 Library("scalability_structures_gn") diff --git third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build -index dd6fa224c4e3..a2bd77e16b44 100644 +index d40294966654..67deb7449935 100644 --- third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -66257,13 +71374,17 @@ index dd6fa224c4e3..a2bd77e16b44 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -66282,6 +71403,10 @@ index dd6fa224c4e3..a2bd77e16b44 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -66289,6 +71414,10 @@ index dd6fa224c4e3..a2bd77e16b44 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -66304,6 +71433,10 @@ index dd6fa224c4e3..a2bd77e16b44 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -66316,6 +71449,10 @@ index dd6fa224c4e3..a2bd77e16b44 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -66346,7 +71483,7 @@ index dd6fa224c4e3..a2bd77e16b44 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -66433,16 +71570,23 @@ index dd6fa224c4e3..a2bd77e16b44 100644 Library("scalable_video_controller_gn") diff --git third_party/libwebrtc/modules/video_coding/svc/simulcast_to_svc_converter_gn/moz.build third_party/libwebrtc/modules/video_coding/svc/simulcast_to_svc_converter_gn/moz.build -index 78d6a20d1c2b..1e572a5e24fb 100644 +index 5118ad8887ff..5a330718a6d6 100644 --- third_party/libwebrtc/modules/video_coding/svc/simulcast_to_svc_converter_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/svc/simulcast_to_svc_converter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -66459,13 +71603,17 @@ index 78d6a20d1c2b..1e572a5e24fb 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -66485,6 +71633,10 @@ index 78d6a20d1c2b..1e572a5e24fb 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -66492,6 +71644,10 @@ index 78d6a20d1c2b..1e572a5e24fb 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -66505,12 +71661,12 @@ index 78d6a20d1c2b..1e572a5e24fb 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -66523,6 +71679,10 @@ index 78d6a20d1c2b..1e572a5e24fb 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -66560,7 +71720,7 @@ index 78d6a20d1c2b..1e572a5e24fb 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -66618,10 +71778,10 @@ index 78d6a20d1c2b..1e572a5e24fb 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -66632,10 +71792,10 @@ index 78d6a20d1c2b..1e572a5e24fb 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -66647,16 +71807,23 @@ index 78d6a20d1c2b..1e572a5e24fb 100644 Library("simulcast_to_svc_converter_gn") diff --git third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build -index b6fd02d1c670..6d501d35caa6 100644 +index 81a9f87adcea..bcf7384bb9fb 100644 --- third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -66673,13 +71840,17 @@ index b6fd02d1c670..6d501d35caa6 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -66698,6 +71869,10 @@ index b6fd02d1c670..6d501d35caa6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -66705,6 +71880,10 @@ index b6fd02d1c670..6d501d35caa6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -66718,12 +71897,12 @@ index b6fd02d1c670..6d501d35caa6 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -66736,6 +71915,10 @@ index b6fd02d1c670..6d501d35caa6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -66773,7 +71956,7 @@ index b6fd02d1c670..6d501d35caa6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -66831,10 +72014,10 @@ index b6fd02d1c670..6d501d35caa6 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -66845,10 +72028,10 @@ index b6fd02d1c670..6d501d35caa6 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -66860,16 +72043,23 @@ index b6fd02d1c670..6d501d35caa6 100644 Library("svc_rate_allocator_gn") diff --git third_party/libwebrtc/modules/video_coding/timing/decode_time_percentile_filter_gn/moz.build third_party/libwebrtc/modules/video_coding/timing/decode_time_percentile_filter_gn/moz.build -index 35fa0ebc0367..71d75a0acc73 100644 +index 896f0a068468..7982fdbd11b0 100644 --- third_party/libwebrtc/modules/video_coding/timing/decode_time_percentile_filter_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/timing/decode_time_percentile_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -66886,13 +72076,17 @@ index 35fa0ebc0367..71d75a0acc73 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -66911,6 +72105,10 @@ index 35fa0ebc0367..71d75a0acc73 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -66918,6 +72116,10 @@ index 35fa0ebc0367..71d75a0acc73 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -66933,6 +72135,10 @@ index 35fa0ebc0367..71d75a0acc73 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -66945,6 +72151,10 @@ index 35fa0ebc0367..71d75a0acc73 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -66975,7 +72185,7 @@ index 35fa0ebc0367..71d75a0acc73 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -67062,16 +72272,23 @@ index 35fa0ebc0367..71d75a0acc73 100644 Library("decode_time_percentile_filter_gn") diff --git third_party/libwebrtc/modules/video_coding/timing/frame_delay_variation_kalman_filter_gn/moz.build third_party/libwebrtc/modules/video_coding/timing/frame_delay_variation_kalman_filter_gn/moz.build -index 72b91ff1d788..406a7566b36a 100644 +index 5cb93affcf11..b8ca3ea9ff03 100644 --- third_party/libwebrtc/modules/video_coding/timing/frame_delay_variation_kalman_filter_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/timing/frame_delay_variation_kalman_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -67088,13 +72305,17 @@ index 72b91ff1d788..406a7566b36a 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -67113,6 +72334,10 @@ index 72b91ff1d788..406a7566b36a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -67120,6 +72345,10 @@ index 72b91ff1d788..406a7566b36a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -67135,6 +72364,10 @@ index 72b91ff1d788..406a7566b36a 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -67147,6 +72380,10 @@ index 72b91ff1d788..406a7566b36a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -67177,7 +72414,7 @@ index 72b91ff1d788..406a7566b36a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -67264,16 +72501,23 @@ index 72b91ff1d788..406a7566b36a 100644 Library("frame_delay_variation_kalman_filter_gn") diff --git third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_variation_calculator_gn/moz.build third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_variation_calculator_gn/moz.build -index 519588e13727..583c005a9f99 100644 +index 2f25723192bb..171a70e310c7 100644 --- third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_variation_calculator_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_variation_calculator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -67290,13 +72534,17 @@ index 519588e13727..583c005a9f99 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -67315,6 +72563,10 @@ index 519588e13727..583c005a9f99 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -67322,6 +72574,10 @@ index 519588e13727..583c005a9f99 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -67337,6 +72593,10 @@ index 519588e13727..583c005a9f99 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -67349,6 +72609,10 @@ index 519588e13727..583c005a9f99 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -67379,7 +72643,7 @@ index 519588e13727..583c005a9f99 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -67466,16 +72730,23 @@ index 519588e13727..583c005a9f99 100644 Library("inter_frame_delay_variation_calculator_gn") diff --git third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build -index 0d8cf2901590..016bb4eb8149 100644 +index 01a5cbfaacb4..8bb43a2f8b3d 100644 --- third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -67492,13 +72763,17 @@ index 0d8cf2901590..016bb4eb8149 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -67517,6 +72792,10 @@ index 0d8cf2901590..016bb4eb8149 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -67524,6 +72803,10 @@ index 0d8cf2901590..016bb4eb8149 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -67537,12 +72820,12 @@ index 0d8cf2901590..016bb4eb8149 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -67555,6 +72838,10 @@ index 0d8cf2901590..016bb4eb8149 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -67592,7 +72879,7 @@ index 0d8cf2901590..016bb4eb8149 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -67650,10 +72937,10 @@ index 0d8cf2901590..016bb4eb8149 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -67664,10 +72951,10 @@ index 0d8cf2901590..016bb4eb8149 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -67679,16 +72966,23 @@ index 0d8cf2901590..016bb4eb8149 100644 Library("jitter_estimator_gn") diff --git third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build -index bf0e685451ed..ec18831f7ade 100644 +index 163aec282266..54552a3a74fb 100644 --- third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -67705,13 +72999,17 @@ index bf0e685451ed..ec18831f7ade 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -67730,6 +73028,10 @@ index bf0e685451ed..ec18831f7ade 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -67737,6 +73039,10 @@ index bf0e685451ed..ec18831f7ade 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -67752,6 +73058,10 @@ index bf0e685451ed..ec18831f7ade 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -67764,6 +73074,10 @@ index bf0e685451ed..ec18831f7ade 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -67794,7 +73108,7 @@ index bf0e685451ed..ec18831f7ade 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -67881,16 +73195,23 @@ index bf0e685451ed..ec18831f7ade 100644 Library("rtt_filter_gn") diff --git third_party/libwebrtc/modules/video_coding/timing/timestamp_extrapolator_gn/moz.build third_party/libwebrtc/modules/video_coding/timing/timestamp_extrapolator_gn/moz.build -index 5813d216063b..021a276da6ad 100644 +index 7aaf581a3d26..cea6896013de 100644 --- third_party/libwebrtc/modules/video_coding/timing/timestamp_extrapolator_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/timing/timestamp_extrapolator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -67907,13 +73228,17 @@ index 5813d216063b..021a276da6ad 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -67932,6 +73257,10 @@ index 5813d216063b..021a276da6ad 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -67939,6 +73268,10 @@ index 5813d216063b..021a276da6ad 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -67954,6 +73287,10 @@ index 5813d216063b..021a276da6ad 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -67966,6 +73303,10 @@ index 5813d216063b..021a276da6ad 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -67992,11 +73333,18 @@ index 5813d216063b..021a276da6ad 100644 - DEFINES["_WINDOWS"] = True - DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True - DEFINES["__STD_C"] = True +- +- OS_LIBS += [ +- "crypt32", +- "iphlpapi", +- "secur32", +- "winmm" +- ] + DEFINES["_DEBUG"] = True if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -68054,10 +73402,10 @@ index 5813d216063b..021a276da6ad 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -68068,10 +73416,10 @@ index 5813d216063b..021a276da6ad 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -68083,16 +73431,23 @@ index 5813d216063b..021a276da6ad 100644 Library("timestamp_extrapolator_gn") diff --git third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build -index fcbc9c26ca61..b8e60636098b 100644 +index b5d03bf28abf..50b7a418a899 100644 --- third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -68109,13 +73464,17 @@ index fcbc9c26ca61..b8e60636098b 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -68134,6 +73493,10 @@ index fcbc9c26ca61..b8e60636098b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -68141,6 +73504,10 @@ index fcbc9c26ca61..b8e60636098b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -68154,12 +73521,12 @@ index fcbc9c26ca61..b8e60636098b 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -68172,6 +73539,10 @@ index fcbc9c26ca61..b8e60636098b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -68209,7 +73580,7 @@ index fcbc9c26ca61..b8e60636098b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -68267,10 +73638,10 @@ index fcbc9c26ca61..b8e60636098b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -68281,10 +73652,10 @@ index fcbc9c26ca61..b8e60636098b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -68296,16 +73667,23 @@ index fcbc9c26ca61..b8e60636098b 100644 Library("timing_module_gn") diff --git third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build -index 70ff7f1b9fb9..22dc0829c784 100644 +index f290fb2a0fff..55937e920a1b 100644 --- third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -68322,13 +73700,17 @@ index 70ff7f1b9fb9..22dc0829c784 100644 FINAL_LIBRARY = "xul" -@@ -49,98 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,114 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -68347,6 +73729,10 @@ index 70ff7f1b9fb9..22dc0829c784 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -68354,6 +73740,10 @@ index 70ff7f1b9fb9..22dc0829c784 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -68367,12 +73757,12 @@ index 70ff7f1b9fb9..22dc0829c784 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -68385,6 +73775,10 @@ index 70ff7f1b9fb9..22dc0829c784 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -68422,7 +73816,7 @@ index 70ff7f1b9fb9..22dc0829c784 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -68480,10 +73874,10 @@ index 70ff7f1b9fb9..22dc0829c784 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -68494,10 +73888,10 @@ index 70ff7f1b9fb9..22dc0829c784 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -68509,16 +73903,23 @@ index 70ff7f1b9fb9..22dc0829c784 100644 Library("video_codec_interface_gn") diff --git third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build -index 3b9af9e935fa..2c0fb20de5de 100644 +index 11ecb8ae48e1..e3b395a01ef8 100644 --- third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -68535,13 +73936,17 @@ index 3b9af9e935fa..2c0fb20de5de 100644 FINAL_LIBRARY = "xul" -@@ -60,99 +69,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -59,115 +72,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -68561,6 +73966,10 @@ index 3b9af9e935fa..2c0fb20de5de 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -68568,6 +73977,10 @@ index 3b9af9e935fa..2c0fb20de5de 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -68581,12 +73994,12 @@ index 3b9af9e935fa..2c0fb20de5de 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -68599,6 +74012,10 @@ index 3b9af9e935fa..2c0fb20de5de 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -68636,7 +74053,7 @@ index 3b9af9e935fa..2c0fb20de5de 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -160,82 +77,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -175,82 +80,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -68694,10 +74111,10 @@ index 3b9af9e935fa..2c0fb20de5de 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -68708,10 +74125,10 @@ index 3b9af9e935fa..2c0fb20de5de 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -68723,16 +74140,23 @@ index 3b9af9e935fa..2c0fb20de5de 100644 Library("video_coding_gn") diff --git third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build -index 372fbcc1fec9..63dc326cb39c 100644 +index 23978645a548..745135543e16 100644 --- third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -68749,13 +74173,17 @@ index 372fbcc1fec9..63dc326cb39c 100644 FINAL_LIBRARY = "xul" -@@ -59,99 +68,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -58,115 +71,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -68775,6 +74203,10 @@ index 372fbcc1fec9..63dc326cb39c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -68782,6 +74214,10 @@ index 372fbcc1fec9..63dc326cb39c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -68795,12 +74231,12 @@ index 372fbcc1fec9..63dc326cb39c 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -68813,6 +74249,10 @@ index 372fbcc1fec9..63dc326cb39c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -68850,7 +74290,7 @@ index 372fbcc1fec9..63dc326cb39c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -159,82 +76,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -174,82 +79,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -68908,10 +74348,10 @@ index 372fbcc1fec9..63dc326cb39c 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -68922,10 +74362,10 @@ index 372fbcc1fec9..63dc326cb39c 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -68937,16 +74377,23 @@ index 372fbcc1fec9..63dc326cb39c 100644 Library("video_coding_utility_gn") diff --git third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build -index 42fc86877d61..8aa23d3e602d 100644 +index e7966f60377b..e23460458ed9 100644 --- third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -68963,13 +74410,17 @@ index 42fc86877d61..8aa23d3e602d 100644 FINAL_LIBRARY = "xul" -@@ -52,99 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -51,115 +64,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -68989,6 +74440,10 @@ index 42fc86877d61..8aa23d3e602d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -68996,6 +74451,10 @@ index 42fc86877d61..8aa23d3e602d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -69009,12 +74468,12 @@ index 42fc86877d61..8aa23d3e602d 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -69027,6 +74486,10 @@ index 42fc86877d61..8aa23d3e602d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -69064,7 +74527,7 @@ index 42fc86877d61..8aa23d3e602d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -152,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -167,82 +72,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -69122,10 +74585,10 @@ index 42fc86877d61..8aa23d3e602d 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -69136,10 +74599,10 @@ index 42fc86877d61..8aa23d3e602d 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -69151,16 +74614,23 @@ index 42fc86877d61..8aa23d3e602d 100644 Library("webrtc_h264_gn") diff --git third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build -index a5be479fb5ef..33bf4869c3e1 100644 +index d71a26d07efc..013d0af5e8f4 100644 --- third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build -@@ -16,13 +16,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -12,16 +12,29 @@ if not CONFIG["MOZ_SYSTEM_LIBVPX"]: + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -69177,13 +74647,17 @@ index a5be479fb5ef..33bf4869c3e1 100644 FINAL_LIBRARY = "xul" -@@ -50,87 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,107 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -69202,6 +74676,10 @@ index a5be479fb5ef..33bf4869c3e1 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -69209,6 +74687,10 @@ index a5be479fb5ef..33bf4869c3e1 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -69224,6 +74706,10 @@ index a5be479fb5ef..33bf4869c3e1 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -69236,6 +74722,10 @@ index a5be479fb5ef..33bf4869c3e1 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -69266,7 +74756,7 @@ index a5be479fb5ef..33bf4869c3e1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -157,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -69353,16 +74843,23 @@ index a5be479fb5ef..33bf4869c3e1 100644 Library("webrtc_libvpx_interface_gn") diff --git third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build -index 83497c58de59..59b9cf953887 100644 +index c19e440232b4..e826bc9f0596 100644 --- third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build -@@ -16,13 +16,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -12,16 +12,29 @@ if not CONFIG["MOZ_SYSTEM_LIBVPX"]: + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -69379,13 +74876,17 @@ index 83497c58de59..59b9cf953887 100644 FINAL_LIBRARY = "xul" -@@ -53,99 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -52,115 +65,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -69405,6 +74906,10 @@ index 83497c58de59..59b9cf953887 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -69412,6 +74917,10 @@ index 83497c58de59..59b9cf953887 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -69425,12 +74934,12 @@ index 83497c58de59..59b9cf953887 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -69443,6 +74952,10 @@ index 83497c58de59..59b9cf953887 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -69480,7 +74993,7 @@ index 83497c58de59..59b9cf953887 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -153,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -168,82 +73,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -69538,10 +75051,10 @@ index 83497c58de59..59b9cf953887 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -69552,10 +75065,10 @@ index 83497c58de59..59b9cf953887 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -69567,16 +75080,23 @@ index 83497c58de59..59b9cf953887 100644 Library("webrtc_vp8_gn") diff --git third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build -index f7123a48ff94..159d0f488cf5 100644 +index 731d28fe29fa..8771b6cfa66b 100644 --- third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -69593,13 +75113,17 @@ index f7123a48ff94..159d0f488cf5 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -69618,6 +75142,10 @@ index f7123a48ff94..159d0f488cf5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -69625,6 +75153,10 @@ index f7123a48ff94..159d0f488cf5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -69640,6 +75172,10 @@ index f7123a48ff94..159d0f488cf5 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -69652,6 +75188,10 @@ index f7123a48ff94..159d0f488cf5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -69682,7 +75222,7 @@ index f7123a48ff94..159d0f488cf5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -69769,16 +75309,23 @@ index f7123a48ff94..159d0f488cf5 100644 Library("webrtc_vp8_scalability_gn") diff --git third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build -index 1eef00eaf9b7..38bf89857dd5 100644 +index e9f43541065d..347db215e01d 100644 --- third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -69795,13 +75342,17 @@ index 1eef00eaf9b7..38bf89857dd5 100644 FINAL_LIBRARY = "xul" -@@ -52,99 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -51,115 +64,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -69821,6 +75372,10 @@ index 1eef00eaf9b7..38bf89857dd5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -69828,6 +75383,10 @@ index 1eef00eaf9b7..38bf89857dd5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -69841,12 +75400,12 @@ index 1eef00eaf9b7..38bf89857dd5 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -69859,6 +75418,10 @@ index 1eef00eaf9b7..38bf89857dd5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -69896,7 +75459,7 @@ index 1eef00eaf9b7..38bf89857dd5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -152,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -167,82 +72,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -69954,10 +75517,10 @@ index 1eef00eaf9b7..38bf89857dd5 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -69968,10 +75531,10 @@ index 1eef00eaf9b7..38bf89857dd5 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -69983,16 +75546,23 @@ index 1eef00eaf9b7..38bf89857dd5 100644 Library("webrtc_vp8_temporal_layers_gn") diff --git third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build -index bbd8102cbd1a..8cca12c5caf8 100644 +index c428c10ef3b6..0d272d5b971a 100644 --- third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build -@@ -16,13 +16,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -12,16 +12,29 @@ if not CONFIG["MOZ_SYSTEM_LIBVPX"]: + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -70009,13 +75579,17 @@ index bbd8102cbd1a..8cca12c5caf8 100644 FINAL_LIBRARY = "xul" -@@ -55,99 +64,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -54,115 +67,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -70035,6 +75609,10 @@ index bbd8102cbd1a..8cca12c5caf8 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -70042,6 +75620,10 @@ index bbd8102cbd1a..8cca12c5caf8 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -70055,12 +75637,12 @@ index bbd8102cbd1a..8cca12c5caf8 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -70073,6 +75655,10 @@ index bbd8102cbd1a..8cca12c5caf8 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -70110,7 +75696,7 @@ index bbd8102cbd1a..8cca12c5caf8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -155,82 +72,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -170,82 +75,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -70168,10 +75754,10 @@ index bbd8102cbd1a..8cca12c5caf8 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -70182,10 +75768,10 @@ index bbd8102cbd1a..8cca12c5caf8 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -70197,16 +75783,23 @@ index bbd8102cbd1a..8cca12c5caf8 100644 Library("webrtc_vp9_gn") diff --git third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build -index f57a0a7e568b..9a78b83fbd8c 100644 +index b2f437e70e0e..4775059772a4 100644 --- third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build +++ third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -70223,13 +75816,17 @@ index f57a0a7e568b..9a78b83fbd8c 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -70248,6 +75845,10 @@ index f57a0a7e568b..9a78b83fbd8c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -70255,6 +75856,10 @@ index f57a0a7e568b..9a78b83fbd8c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -70268,12 +75873,12 @@ index f57a0a7e568b..9a78b83fbd8c 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -70286,6 +75891,10 @@ index f57a0a7e568b..9a78b83fbd8c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -70323,7 +75932,7 @@ index f57a0a7e568b..9a78b83fbd8c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -70381,10 +75990,10 @@ index f57a0a7e568b..9a78b83fbd8c 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -70395,10 +76004,10 @@ index f57a0a7e568b..9a78b83fbd8c 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -70410,10 +76019,10 @@ index f57a0a7e568b..9a78b83fbd8c 100644 Library("webrtc_vp9_helpers_gn") diff --git third_party/libwebrtc/moz.build third_party/libwebrtc/moz.build -index addff5313714..c70b3c2a5742 100644 +index bf06d4c2bb47..93a8e11a140e 100644 --- third_party/libwebrtc/moz.build +++ third_party/libwebrtc/moz.build -@@ -290,6 +290,8 @@ DIRS += [ +@@ -291,6 +291,8 @@ DIRS += [ "/third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn", "/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn", "/third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn", @@ -70422,14 +76031,15 @@ index addff5313714..c70b3c2a5742 100644 "/third_party/libwebrtc/modules/module_api_gn", "/third_party/libwebrtc/modules/module_api_public_gn", "/third_party/libwebrtc/modules/module_fec_api_gn", -@@ -516,137 +518,30 @@ DIRS += [ +@@ -516,138 +518,30 @@ DIRS += [ "/third_party/libwebrtc/webrtc_gn" ] -if CONFIG["OS_TARGET"] == "Android": - - DIRS += [ -- "/third_party/libwebrtc/rtc_base/ifaddrs_android_gn" +- "/third_party/libwebrtc/rtc_base/ifaddrs_android_gn", +- "/third_party/libwebrtc/third_party/cpu_features/ndk_compat_gn" - ] - -if CONFIG["OS_TARGET"] == "Darwin": @@ -70564,7 +76174,7 @@ index addff5313714..c70b3c2a5742 100644 DIRS += [ "/third_party/libwebrtc/common_audio/common_audio_avx2_gn", -@@ -654,13 +549,11 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +@@ -655,13 +549,11 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn", "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn", "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn", @@ -70579,7 +76189,7 @@ index addff5313714..c70b3c2a5742 100644 DIRS += [ "/third_party/libwebrtc/common_audio/common_audio_avx2_gn", -@@ -668,73 +561,6 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": +@@ -669,73 +561,6 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn", "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn", "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn", @@ -70654,16 +76264,15 @@ index addff5313714..c70b3c2a5742 100644 - "/third_party/libwebrtc/modules/desktop_capture/primitives_gn" - ] diff --git third_party/libwebrtc/net/dcsctp/common/internal_types_gn/moz.build third_party/libwebrtc/net/dcsctp/common/internal_types_gn/moz.build -index 5d989ceee1f6..0190347650e9 100644 +index e948e7063568..cb82eed45dbd 100644 --- third_party/libwebrtc/net/dcsctp/common/internal_types_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/common/internal_types_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -70680,7 +76289,7 @@ index 5d989ceee1f6..0190347650e9 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -70769,7 +76378,7 @@ index 5d989ceee1f6..0190347650e9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -70795,7 +76404,7 @@ index 5d989ceee1f6..0190347650e9 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -70837,16 +76446,15 @@ index 5d989ceee1f6..0190347650e9 100644 - Library("internal_types_gn") diff --git third_party/libwebrtc/net/dcsctp/common/math_gn/moz.build third_party/libwebrtc/net/dcsctp/common/math_gn/moz.build -index 5e2c9f2def32..7eaf7c5142d8 100644 +index fb147e0954d8..7cf07c682496 100644 --- third_party/libwebrtc/net/dcsctp/common/math_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/common/math_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -70863,7 +76471,7 @@ index 5e2c9f2def32..7eaf7c5142d8 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -70948,7 +76556,7 @@ index 5e2c9f2def32..7eaf7c5142d8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -70974,7 +76582,7 @@ index 5e2c9f2def32..7eaf7c5142d8 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -71016,16 +76624,15 @@ index 5e2c9f2def32..7eaf7c5142d8 100644 - Library("math_gn") diff --git third_party/libwebrtc/net/dcsctp/common/sequence_numbers_gn/moz.build third_party/libwebrtc/net/dcsctp/common/sequence_numbers_gn/moz.build -index 5c1a80e0070e..5d69af7109d6 100644 +index 345f7a7a11dd..9059a5797011 100644 --- third_party/libwebrtc/net/dcsctp/common/sequence_numbers_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/common/sequence_numbers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -71042,7 +76649,7 @@ index 5c1a80e0070e..5d69af7109d6 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -71131,7 +76738,7 @@ index 5c1a80e0070e..5d69af7109d6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -71157,7 +76764,7 @@ index 5c1a80e0070e..5d69af7109d6 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -71199,16 +76806,15 @@ index 5c1a80e0070e..5d69af7109d6 100644 - Library("sequence_numbers_gn") diff --git third_party/libwebrtc/net/dcsctp/packet/bounded_io_gn/moz.build third_party/libwebrtc/net/dcsctp/packet/bounded_io_gn/moz.build -index 3f2b5a02680f..55149d8fe27a 100644 +index f17dec091b41..61070979f313 100644 --- third_party/libwebrtc/net/dcsctp/packet/bounded_io_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/packet/bounded_io_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -71225,7 +76831,7 @@ index 3f2b5a02680f..55149d8fe27a 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -71314,7 +76920,7 @@ index 3f2b5a02680f..55149d8fe27a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -71340,7 +76946,7 @@ index 3f2b5a02680f..55149d8fe27a 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -71382,16 +76988,23 @@ index 3f2b5a02680f..55149d8fe27a 100644 - Library("bounded_io_gn") diff --git third_party/libwebrtc/net/dcsctp/packet/chunk_gn/moz.build third_party/libwebrtc/net/dcsctp/packet/chunk_gn/moz.build -index 353abfb3fb3d..872482ca3530 100644 +index 32a1cdfe66a6..6e89be08d86f 100644 --- third_party/libwebrtc/net/dcsctp/packet/chunk_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/packet/chunk_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -71408,13 +77021,17 @@ index 353abfb3fb3d..872482ca3530 100644 FINAL_LIBRARY = "xul" -@@ -64,94 +73,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -63,114 +76,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -71433,6 +77050,10 @@ index 353abfb3fb3d..872482ca3530 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -71440,6 +77061,10 @@ index 353abfb3fb3d..872482ca3530 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -71455,6 +77080,10 @@ index 353abfb3fb3d..872482ca3530 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -71467,6 +77096,10 @@ index 353abfb3fb3d..872482ca3530 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -71504,7 +77137,7 @@ index 353abfb3fb3d..872482ca3530 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -159,82 +81,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -178,82 +84,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -71562,10 +77195,10 @@ index 353abfb3fb3d..872482ca3530 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -71576,10 +77209,10 @@ index 353abfb3fb3d..872482ca3530 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -71591,16 +77224,23 @@ index 353abfb3fb3d..872482ca3530 100644 Library("chunk_gn") diff --git third_party/libwebrtc/net/dcsctp/packet/chunk_validators_gn/moz.build third_party/libwebrtc/net/dcsctp/packet/chunk_validators_gn/moz.build -index 7b67df816ef9..3ffb653184ca 100644 +index f303325e987b..f4e26f620052 100644 --- third_party/libwebrtc/net/dcsctp/packet/chunk_validators_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/packet/chunk_validators_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -71617,13 +77257,17 @@ index 7b67df816ef9..3ffb653184ca 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -71642,6 +77286,10 @@ index 7b67df816ef9..3ffb653184ca 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -71649,6 +77297,10 @@ index 7b67df816ef9..3ffb653184ca 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -71664,6 +77316,10 @@ index 7b67df816ef9..3ffb653184ca 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -71676,6 +77332,10 @@ index 7b67df816ef9..3ffb653184ca 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -71713,7 +77373,7 @@ index 7b67df816ef9..3ffb653184ca 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -71771,10 +77431,10 @@ index 7b67df816ef9..3ffb653184ca 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -71785,10 +77445,10 @@ index 7b67df816ef9..3ffb653184ca 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -71800,16 +77460,23 @@ index 7b67df816ef9..3ffb653184ca 100644 Library("chunk_validators_gn") diff --git third_party/libwebrtc/net/dcsctp/packet/crc32c_gn/moz.build third_party/libwebrtc/net/dcsctp/packet/crc32c_gn/moz.build -index 7cee175df41c..9b19d2ce9ae1 100644 +index b3453a6570d4..db239f833136 100644 --- third_party/libwebrtc/net/dcsctp/packet/crc32c_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/packet/crc32c_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -71826,13 +77493,17 @@ index 7cee175df41c..9b19d2ce9ae1 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -71851,6 +77522,10 @@ index 7cee175df41c..9b19d2ce9ae1 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -71858,6 +77533,10 @@ index 7cee175df41c..9b19d2ce9ae1 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -71873,6 +77552,10 @@ index 7cee175df41c..9b19d2ce9ae1 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -71885,6 +77568,10 @@ index 7cee175df41c..9b19d2ce9ae1 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -71915,7 +77602,7 @@ index 7cee175df41c..9b19d2ce9ae1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -72002,16 +77689,15 @@ index 7cee175df41c..9b19d2ce9ae1 100644 Library("crc32c_gn") diff --git third_party/libwebrtc/net/dcsctp/packet/data_gn/moz.build third_party/libwebrtc/net/dcsctp/packet/data_gn/moz.build -index 42fbfd5dd1f9..14d7570c9647 100644 +index 3ef5d5be2245..b91e78705eae 100644 --- third_party/libwebrtc/net/dcsctp/packet/data_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/packet/data_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -72028,7 +77714,7 @@ index 42fbfd5dd1f9..14d7570c9647 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -72117,7 +77803,7 @@ index 42fbfd5dd1f9..14d7570c9647 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -72143,7 +77829,7 @@ index 42fbfd5dd1f9..14d7570c9647 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -72185,16 +77871,23 @@ index 42fbfd5dd1f9..14d7570c9647 100644 - Library("data_gn") diff --git third_party/libwebrtc/net/dcsctp/packet/error_cause_gn/moz.build third_party/libwebrtc/net/dcsctp/packet/error_cause_gn/moz.build -index abbfe919bab4..c4d0d6069fcd 100644 +index 1d3785220850..ec47f54be732 100644 --- third_party/libwebrtc/net/dcsctp/packet/error_cause_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/packet/error_cause_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -72211,13 +77904,17 @@ index abbfe919bab4..c4d0d6069fcd 100644 FINAL_LIBRARY = "xul" -@@ -60,94 +69,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -59,114 +72,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -72236,6 +77933,10 @@ index abbfe919bab4..c4d0d6069fcd 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -72243,6 +77944,10 @@ index abbfe919bab4..c4d0d6069fcd 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -72258,6 +77963,10 @@ index abbfe919bab4..c4d0d6069fcd 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -72270,6 +77979,10 @@ index abbfe919bab4..c4d0d6069fcd 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -72307,7 +78020,7 @@ index abbfe919bab4..c4d0d6069fcd 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -155,82 +77,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -174,82 +80,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -72365,10 +78078,10 @@ index abbfe919bab4..c4d0d6069fcd 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -72379,10 +78092,10 @@ index abbfe919bab4..c4d0d6069fcd 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -72394,16 +78107,23 @@ index abbfe919bab4..c4d0d6069fcd 100644 Library("error_cause_gn") diff --git third_party/libwebrtc/net/dcsctp/packet/parameter_gn/moz.build third_party/libwebrtc/net/dcsctp/packet/parameter_gn/moz.build -index 35547f27626c..ef2aa914823a 100644 +index e5a260ffa359..4a9be3392a92 100644 --- third_party/libwebrtc/net/dcsctp/packet/parameter_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/packet/parameter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -72420,13 +78140,17 @@ index 35547f27626c..ef2aa914823a 100644 FINAL_LIBRARY = "xul" -@@ -58,94 +67,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -57,114 +70,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -72445,6 +78169,10 @@ index 35547f27626c..ef2aa914823a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -72452,6 +78180,10 @@ index 35547f27626c..ef2aa914823a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -72467,6 +78199,10 @@ index 35547f27626c..ef2aa914823a 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -72479,6 +78215,10 @@ index 35547f27626c..ef2aa914823a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -72516,7 +78256,7 @@ index 35547f27626c..ef2aa914823a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -153,82 +75,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -172,82 +78,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -72574,10 +78314,10 @@ index 35547f27626c..ef2aa914823a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -72588,10 +78328,10 @@ index 35547f27626c..ef2aa914823a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -72603,16 +78343,23 @@ index 35547f27626c..ef2aa914823a 100644 Library("parameter_gn") diff --git third_party/libwebrtc/net/dcsctp/packet/sctp_packet_gn/moz.build third_party/libwebrtc/net/dcsctp/packet/sctp_packet_gn/moz.build -index 543236d4b64f..a1bd6d4f00ca 100644 +index 497644154760..c751dbbcf49b 100644 --- third_party/libwebrtc/net/dcsctp/packet/sctp_packet_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/packet/sctp_packet_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -72629,13 +78376,17 @@ index 543236d4b64f..a1bd6d4f00ca 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -72654,6 +78405,10 @@ index 543236d4b64f..a1bd6d4f00ca 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -72661,6 +78416,10 @@ index 543236d4b64f..a1bd6d4f00ca 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -72676,6 +78435,10 @@ index 543236d4b64f..a1bd6d4f00ca 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -72688,6 +78451,10 @@ index 543236d4b64f..a1bd6d4f00ca 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -72725,7 +78492,7 @@ index 543236d4b64f..a1bd6d4f00ca 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -72783,10 +78550,10 @@ index 543236d4b64f..a1bd6d4f00ca 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -72797,10 +78564,10 @@ index 543236d4b64f..a1bd6d4f00ca 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -72812,16 +78579,23 @@ index 543236d4b64f..a1bd6d4f00ca 100644 Library("sctp_packet_gn") diff --git third_party/libwebrtc/net/dcsctp/packet/tlv_trait_gn/moz.build third_party/libwebrtc/net/dcsctp/packet/tlv_trait_gn/moz.build -index 4f179f644afd..f3745d68b2a2 100644 +index 64e98c0ca8fb..3d1be257fd74 100644 --- third_party/libwebrtc/net/dcsctp/packet/tlv_trait_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/packet/tlv_trait_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -72838,13 +78612,17 @@ index 4f179f644afd..f3745d68b2a2 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -72863,6 +78641,10 @@ index 4f179f644afd..f3745d68b2a2 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -72870,6 +78652,10 @@ index 4f179f644afd..f3745d68b2a2 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -72885,6 +78671,10 @@ index 4f179f644afd..f3745d68b2a2 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -72897,6 +78687,10 @@ index 4f179f644afd..f3745d68b2a2 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -72934,7 +78728,7 @@ index 4f179f644afd..f3745d68b2a2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -72992,10 +78786,10 @@ index 4f179f644afd..f3745d68b2a2 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -73006,10 +78800,10 @@ index 4f179f644afd..f3745d68b2a2 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -73021,16 +78815,23 @@ index 4f179f644afd..f3745d68b2a2 100644 Library("tlv_trait_gn") diff --git third_party/libwebrtc/net/dcsctp/public/factory_gn/moz.build third_party/libwebrtc/net/dcsctp/public/factory_gn/moz.build -index 3c15f57a7e7c..b63147ae3a61 100644 +index 5afb501a0c06..d9b4e05ede8e 100644 --- third_party/libwebrtc/net/dcsctp/public/factory_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/public/factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -73047,13 +78848,17 @@ index 3c15f57a7e7c..b63147ae3a61 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -73072,6 +78877,10 @@ index 3c15f57a7e7c..b63147ae3a61 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -73079,6 +78888,10 @@ index 3c15f57a7e7c..b63147ae3a61 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -73094,6 +78907,10 @@ index 3c15f57a7e7c..b63147ae3a61 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -73106,6 +78923,10 @@ index 3c15f57a7e7c..b63147ae3a61 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -73143,7 +78964,7 @@ index 3c15f57a7e7c..b63147ae3a61 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -73201,10 +79022,10 @@ index 3c15f57a7e7c..b63147ae3a61 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -73215,10 +79036,10 @@ index 3c15f57a7e7c..b63147ae3a61 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -73230,16 +79051,23 @@ index 3c15f57a7e7c..b63147ae3a61 100644 Library("factory_gn") diff --git third_party/libwebrtc/net/dcsctp/public/socket_gn/moz.build third_party/libwebrtc/net/dcsctp/public/socket_gn/moz.build -index 25e24b187285..ccb418ece198 100644 +index 2ceda860f068..f857b7e881b6 100644 --- third_party/libwebrtc/net/dcsctp/public/socket_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/public/socket_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -73256,13 +79084,17 @@ index 25e24b187285..ccb418ece198 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -73281,6 +79113,10 @@ index 25e24b187285..ccb418ece198 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -73288,6 +79124,10 @@ index 25e24b187285..ccb418ece198 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -73303,6 +79143,10 @@ index 25e24b187285..ccb418ece198 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -73315,6 +79159,10 @@ index 25e24b187285..ccb418ece198 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -73345,7 +79193,7 @@ index 25e24b187285..ccb418ece198 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -73432,16 +79280,15 @@ index 25e24b187285..ccb418ece198 100644 Library("socket_gn") diff --git third_party/libwebrtc/net/dcsctp/public/types_gn/moz.build third_party/libwebrtc/net/dcsctp/public/types_gn/moz.build -index 0443a29b77d4..4528b2721a7b 100644 +index 084e64708b47..e2eaa506a512 100644 --- third_party/libwebrtc/net/dcsctp/public/types_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/public/types_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -73458,7 +79305,7 @@ index 0443a29b77d4..4528b2721a7b 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -73547,7 +79394,7 @@ index 0443a29b77d4..4528b2721a7b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -73573,7 +79420,7 @@ index 0443a29b77d4..4528b2721a7b 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -73615,16 +79462,23 @@ index 0443a29b77d4..4528b2721a7b 100644 - Library("types_gn") diff --git third_party/libwebrtc/net/dcsctp/rx/data_tracker_gn/moz.build third_party/libwebrtc/net/dcsctp/rx/data_tracker_gn/moz.build -index 70a0e2b772d1..ee1c7992d039 100644 +index bb12bb01f5b3..7be6e26f56f8 100644 --- third_party/libwebrtc/net/dcsctp/rx/data_tracker_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/rx/data_tracker_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -73641,13 +79495,17 @@ index 70a0e2b772d1..ee1c7992d039 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -73666,6 +79524,10 @@ index 70a0e2b772d1..ee1c7992d039 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -73673,6 +79535,10 @@ index 70a0e2b772d1..ee1c7992d039 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -73688,6 +79554,10 @@ index 70a0e2b772d1..ee1c7992d039 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -73700,6 +79570,10 @@ index 70a0e2b772d1..ee1c7992d039 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -73737,7 +79611,7 @@ index 70a0e2b772d1..ee1c7992d039 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -73795,10 +79669,10 @@ index 70a0e2b772d1..ee1c7992d039 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -73809,10 +79683,10 @@ index 70a0e2b772d1..ee1c7992d039 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -73824,16 +79698,23 @@ index 70a0e2b772d1..ee1c7992d039 100644 Library("data_tracker_gn") diff --git third_party/libwebrtc/net/dcsctp/rx/interleaved_reassembly_streams_gn/moz.build third_party/libwebrtc/net/dcsctp/rx/interleaved_reassembly_streams_gn/moz.build -index f107fbd0ea75..4afed3eeafd1 100644 +index 7379d0595fd1..29075c722d09 100644 --- third_party/libwebrtc/net/dcsctp/rx/interleaved_reassembly_streams_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/rx/interleaved_reassembly_streams_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -73850,13 +79731,17 @@ index f107fbd0ea75..4afed3eeafd1 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -73875,6 +79760,10 @@ index f107fbd0ea75..4afed3eeafd1 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -73882,6 +79771,10 @@ index f107fbd0ea75..4afed3eeafd1 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -73897,6 +79790,10 @@ index f107fbd0ea75..4afed3eeafd1 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -73909,6 +79806,10 @@ index f107fbd0ea75..4afed3eeafd1 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -73946,7 +79847,7 @@ index f107fbd0ea75..4afed3eeafd1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -74004,10 +79905,10 @@ index f107fbd0ea75..4afed3eeafd1 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -74018,10 +79919,10 @@ index f107fbd0ea75..4afed3eeafd1 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -74033,16 +79934,23 @@ index f107fbd0ea75..4afed3eeafd1 100644 Library("interleaved_reassembly_streams_gn") diff --git third_party/libwebrtc/net/dcsctp/rx/reassembly_queue_gn/moz.build third_party/libwebrtc/net/dcsctp/rx/reassembly_queue_gn/moz.build -index b5de81a0f0e3..ba62dcc0cc0a 100644 +index f0f07f920293..ee0b8fa5952b 100644 --- third_party/libwebrtc/net/dcsctp/rx/reassembly_queue_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/rx/reassembly_queue_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -74059,13 +79967,17 @@ index b5de81a0f0e3..ba62dcc0cc0a 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -74084,6 +79996,10 @@ index b5de81a0f0e3..ba62dcc0cc0a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -74091,6 +80007,10 @@ index b5de81a0f0e3..ba62dcc0cc0a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -74106,6 +80026,10 @@ index b5de81a0f0e3..ba62dcc0cc0a 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -74118,6 +80042,10 @@ index b5de81a0f0e3..ba62dcc0cc0a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -74155,7 +80083,7 @@ index b5de81a0f0e3..ba62dcc0cc0a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -74213,10 +80141,10 @@ index b5de81a0f0e3..ba62dcc0cc0a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -74227,10 +80155,10 @@ index b5de81a0f0e3..ba62dcc0cc0a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -74242,16 +80170,15 @@ index b5de81a0f0e3..ba62dcc0cc0a 100644 Library("reassembly_queue_gn") diff --git third_party/libwebrtc/net/dcsctp/rx/reassembly_streams_gn/moz.build third_party/libwebrtc/net/dcsctp/rx/reassembly_streams_gn/moz.build -index 2fd7cf0908d9..b2c7a7b46ae0 100644 +index 5057e44341e3..8c1f046755a3 100644 --- third_party/libwebrtc/net/dcsctp/rx/reassembly_streams_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/rx/reassembly_streams_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -74268,7 +80195,7 @@ index 2fd7cf0908d9..b2c7a7b46ae0 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -74364,7 +80291,7 @@ index 2fd7cf0908d9..b2c7a7b46ae0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -74390,7 +80317,7 @@ index 2fd7cf0908d9..b2c7a7b46ae0 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -74432,16 +80359,23 @@ index 2fd7cf0908d9..b2c7a7b46ae0 100644 - Library("reassembly_streams_gn") diff --git third_party/libwebrtc/net/dcsctp/rx/traditional_reassembly_streams_gn/moz.build third_party/libwebrtc/net/dcsctp/rx/traditional_reassembly_streams_gn/moz.build -index bd8e9eb36141..f86e4e49ef1e 100644 +index a2c6dca5eb60..80e4fb36c493 100644 --- third_party/libwebrtc/net/dcsctp/rx/traditional_reassembly_streams_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/rx/traditional_reassembly_streams_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -74458,13 +80392,17 @@ index bd8e9eb36141..f86e4e49ef1e 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -74483,6 +80421,10 @@ index bd8e9eb36141..f86e4e49ef1e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -74490,6 +80432,10 @@ index bd8e9eb36141..f86e4e49ef1e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -74505,6 +80451,10 @@ index bd8e9eb36141..f86e4e49ef1e 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -74517,6 +80467,10 @@ index bd8e9eb36141..f86e4e49ef1e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -74554,7 +80508,7 @@ index bd8e9eb36141..f86e4e49ef1e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -74612,10 +80566,10 @@ index bd8e9eb36141..f86e4e49ef1e 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -74626,10 +80580,10 @@ index bd8e9eb36141..f86e4e49ef1e 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -74641,16 +80595,15 @@ index bd8e9eb36141..f86e4e49ef1e 100644 Library("traditional_reassembly_streams_gn") diff --git third_party/libwebrtc/net/dcsctp/socket/context_gn/moz.build third_party/libwebrtc/net/dcsctp/socket/context_gn/moz.build -index c57262d8ef49..ffa8a5cda3c8 100644 +index c1b83a46abe3..14cd41f96e4f 100644 --- third_party/libwebrtc/net/dcsctp/socket/context_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/socket/context_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -74667,7 +80620,7 @@ index c57262d8ef49..ffa8a5cda3c8 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -74763,7 +80716,7 @@ index c57262d8ef49..ffa8a5cda3c8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -74789,7 +80742,7 @@ index c57262d8ef49..ffa8a5cda3c8 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -74831,16 +80784,23 @@ index c57262d8ef49..ffa8a5cda3c8 100644 - Library("context_gn") diff --git third_party/libwebrtc/net/dcsctp/socket/dcsctp_socket_gn/moz.build third_party/libwebrtc/net/dcsctp/socket/dcsctp_socket_gn/moz.build -index 5120a15a6937..e2c9efaec29d 100644 +index 29a04e5ca135..0cf2728346df 100644 --- third_party/libwebrtc/net/dcsctp/socket/dcsctp_socket_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/socket/dcsctp_socket_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -74857,13 +80817,17 @@ index 5120a15a6937..e2c9efaec29d 100644 FINAL_LIBRARY = "xul" -@@ -49,94 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,114 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -74882,6 +80846,10 @@ index 5120a15a6937..e2c9efaec29d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -74889,6 +80857,10 @@ index 5120a15a6937..e2c9efaec29d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -74904,6 +80876,10 @@ index 5120a15a6937..e2c9efaec29d 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -74916,6 +80892,10 @@ index 5120a15a6937..e2c9efaec29d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -74953,7 +80933,7 @@ index 5120a15a6937..e2c9efaec29d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -144,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -75011,10 +80991,10 @@ index 5120a15a6937..e2c9efaec29d 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -75025,10 +81005,10 @@ index 5120a15a6937..e2c9efaec29d 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -75040,16 +81020,23 @@ index 5120a15a6937..e2c9efaec29d 100644 Library("dcsctp_socket_gn") diff --git third_party/libwebrtc/net/dcsctp/socket/heartbeat_handler_gn/moz.build third_party/libwebrtc/net/dcsctp/socket/heartbeat_handler_gn/moz.build -index eb861906769d..050ff51340a0 100644 +index 66c34162b8dc..fdf1bbb890a5 100644 --- third_party/libwebrtc/net/dcsctp/socket/heartbeat_handler_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/socket/heartbeat_handler_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -75066,13 +81053,17 @@ index eb861906769d..050ff51340a0 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -75091,6 +81082,10 @@ index eb861906769d..050ff51340a0 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -75098,6 +81093,10 @@ index eb861906769d..050ff51340a0 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -75113,6 +81112,10 @@ index eb861906769d..050ff51340a0 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -75125,6 +81128,10 @@ index eb861906769d..050ff51340a0 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -75162,7 +81169,7 @@ index eb861906769d..050ff51340a0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -75220,10 +81227,10 @@ index eb861906769d..050ff51340a0 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -75234,10 +81241,10 @@ index eb861906769d..050ff51340a0 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -75249,16 +81256,23 @@ index eb861906769d..050ff51340a0 100644 Library("heartbeat_handler_gn") diff --git third_party/libwebrtc/net/dcsctp/socket/packet_sender_gn/moz.build third_party/libwebrtc/net/dcsctp/socket/packet_sender_gn/moz.build -index 052785897c7c..5c764530cba1 100644 +index 00f7f6e1def2..c31b3ee4cc2d 100644 --- third_party/libwebrtc/net/dcsctp/socket/packet_sender_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/socket/packet_sender_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -75275,13 +81289,17 @@ index 052785897c7c..5c764530cba1 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -75300,6 +81318,10 @@ index 052785897c7c..5c764530cba1 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -75307,6 +81329,10 @@ index 052785897c7c..5c764530cba1 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -75322,6 +81348,10 @@ index 052785897c7c..5c764530cba1 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -75334,6 +81364,10 @@ index 052785897c7c..5c764530cba1 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -75371,7 +81405,7 @@ index 052785897c7c..5c764530cba1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -75429,10 +81463,10 @@ index 052785897c7c..5c764530cba1 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -75443,10 +81477,10 @@ index 052785897c7c..5c764530cba1 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -75458,16 +81492,23 @@ index 052785897c7c..5c764530cba1 100644 Library("packet_sender_gn") diff --git third_party/libwebrtc/net/dcsctp/socket/stream_reset_handler_gn/moz.build third_party/libwebrtc/net/dcsctp/socket/stream_reset_handler_gn/moz.build -index 421593aa97f2..659bf023c4a3 100644 +index 3b8899da3266..5532a14e5bda 100644 --- third_party/libwebrtc/net/dcsctp/socket/stream_reset_handler_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/socket/stream_reset_handler_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -75484,13 +81525,17 @@ index 421593aa97f2..659bf023c4a3 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -75509,6 +81554,10 @@ index 421593aa97f2..659bf023c4a3 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -75516,6 +81565,10 @@ index 421593aa97f2..659bf023c4a3 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -75531,6 +81584,10 @@ index 421593aa97f2..659bf023c4a3 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -75543,6 +81600,10 @@ index 421593aa97f2..659bf023c4a3 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -75580,7 +81641,7 @@ index 421593aa97f2..659bf023c4a3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -75638,10 +81699,10 @@ index 421593aa97f2..659bf023c4a3 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -75652,10 +81713,10 @@ index 421593aa97f2..659bf023c4a3 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -75667,16 +81728,23 @@ index 421593aa97f2..659bf023c4a3 100644 Library("stream_reset_handler_gn") diff --git third_party/libwebrtc/net/dcsctp/socket/transmission_control_block_gn/moz.build third_party/libwebrtc/net/dcsctp/socket/transmission_control_block_gn/moz.build -index 7d29e6f235bc..bbe20788c261 100644 +index ef3e5cdff066..5b3a5af9aba8 100644 --- third_party/libwebrtc/net/dcsctp/socket/transmission_control_block_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/socket/transmission_control_block_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -75693,13 +81761,17 @@ index 7d29e6f235bc..bbe20788c261 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -75718,6 +81790,10 @@ index 7d29e6f235bc..bbe20788c261 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -75725,6 +81801,10 @@ index 7d29e6f235bc..bbe20788c261 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -75740,6 +81820,10 @@ index 7d29e6f235bc..bbe20788c261 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -75752,6 +81836,10 @@ index 7d29e6f235bc..bbe20788c261 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -75789,7 +81877,7 @@ index 7d29e6f235bc..bbe20788c261 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -75847,10 +81935,10 @@ index 7d29e6f235bc..bbe20788c261 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -75861,10 +81949,10 @@ index 7d29e6f235bc..bbe20788c261 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -75876,16 +81964,23 @@ index 7d29e6f235bc..bbe20788c261 100644 Library("transmission_control_block_gn") diff --git third_party/libwebrtc/net/dcsctp/timer/task_queue_timeout_gn/moz.build third_party/libwebrtc/net/dcsctp/timer/task_queue_timeout_gn/moz.build -index 63c797a30bdd..c75a4734ac3f 100644 +index c42f501ab5b8..17aff1a85181 100644 --- third_party/libwebrtc/net/dcsctp/timer/task_queue_timeout_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/timer/task_queue_timeout_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -75902,13 +81997,17 @@ index 63c797a30bdd..c75a4734ac3f 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -75927,6 +82026,10 @@ index 63c797a30bdd..c75a4734ac3f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -75934,6 +82037,10 @@ index 63c797a30bdd..c75a4734ac3f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -75949,6 +82056,10 @@ index 63c797a30bdd..c75a4734ac3f 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -75961,6 +82072,10 @@ index 63c797a30bdd..c75a4734ac3f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -75998,7 +82113,7 @@ index 63c797a30bdd..c75a4734ac3f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -76056,10 +82171,10 @@ index 63c797a30bdd..c75a4734ac3f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -76070,10 +82185,10 @@ index 63c797a30bdd..c75a4734ac3f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -76085,16 +82200,23 @@ index 63c797a30bdd..c75a4734ac3f 100644 Library("task_queue_timeout_gn") diff --git third_party/libwebrtc/net/dcsctp/timer/timer_gn/moz.build third_party/libwebrtc/net/dcsctp/timer/timer_gn/moz.build -index 54e896eb35ab..51253edabb96 100644 +index 1739ac8b4ef0..410e23eda3c3 100644 --- third_party/libwebrtc/net/dcsctp/timer/timer_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/timer/timer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -76111,13 +82233,17 @@ index 54e896eb35ab..51253edabb96 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -76136,6 +82262,10 @@ index 54e896eb35ab..51253edabb96 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -76143,6 +82273,10 @@ index 54e896eb35ab..51253edabb96 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -76158,6 +82292,10 @@ index 54e896eb35ab..51253edabb96 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -76170,6 +82308,10 @@ index 54e896eb35ab..51253edabb96 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -76200,7 +82342,7 @@ index 54e896eb35ab..51253edabb96 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -76287,16 +82429,23 @@ index 54e896eb35ab..51253edabb96 100644 Library("timer_gn") diff --git third_party/libwebrtc/net/dcsctp/tx/outstanding_data_gn/moz.build third_party/libwebrtc/net/dcsctp/tx/outstanding_data_gn/moz.build -index 0548bf7afb2f..cdd387364988 100644 +index e85dc4592bf1..c2c7420b0893 100644 --- third_party/libwebrtc/net/dcsctp/tx/outstanding_data_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/tx/outstanding_data_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -76313,13 +82462,17 @@ index 0548bf7afb2f..cdd387364988 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -76338,6 +82491,10 @@ index 0548bf7afb2f..cdd387364988 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -76345,6 +82502,10 @@ index 0548bf7afb2f..cdd387364988 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -76360,6 +82521,10 @@ index 0548bf7afb2f..cdd387364988 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -76372,6 +82537,10 @@ index 0548bf7afb2f..cdd387364988 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -76409,7 +82578,7 @@ index 0548bf7afb2f..cdd387364988 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -76467,10 +82636,10 @@ index 0548bf7afb2f..cdd387364988 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -76481,10 +82650,10 @@ index 0548bf7afb2f..cdd387364988 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -76496,16 +82665,23 @@ index 0548bf7afb2f..cdd387364988 100644 Library("outstanding_data_gn") diff --git third_party/libwebrtc/net/dcsctp/tx/retransmission_error_counter_gn/moz.build third_party/libwebrtc/net/dcsctp/tx/retransmission_error_counter_gn/moz.build -index 95e9bc2679a5..2ebdf85adf8a 100644 +index e1ae0824a880..672690c7125d 100644 --- third_party/libwebrtc/net/dcsctp/tx/retransmission_error_counter_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/tx/retransmission_error_counter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -76522,13 +82698,17 @@ index 95e9bc2679a5..2ebdf85adf8a 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -76547,6 +82727,10 @@ index 95e9bc2679a5..2ebdf85adf8a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -76554,6 +82738,10 @@ index 95e9bc2679a5..2ebdf85adf8a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -76569,6 +82757,10 @@ index 95e9bc2679a5..2ebdf85adf8a 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -76581,6 +82773,10 @@ index 95e9bc2679a5..2ebdf85adf8a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -76618,7 +82814,7 @@ index 95e9bc2679a5..2ebdf85adf8a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -76676,10 +82872,10 @@ index 95e9bc2679a5..2ebdf85adf8a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -76690,10 +82886,10 @@ index 95e9bc2679a5..2ebdf85adf8a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -76705,16 +82901,23 @@ index 95e9bc2679a5..2ebdf85adf8a 100644 Library("retransmission_error_counter_gn") diff --git third_party/libwebrtc/net/dcsctp/tx/retransmission_queue_gn/moz.build third_party/libwebrtc/net/dcsctp/tx/retransmission_queue_gn/moz.build -index aaaf15543dae..db73ce751e20 100644 +index 543fd767cc65..292597d1de09 100644 --- third_party/libwebrtc/net/dcsctp/tx/retransmission_queue_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/tx/retransmission_queue_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -76731,13 +82934,17 @@ index aaaf15543dae..db73ce751e20 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -76756,6 +82963,10 @@ index aaaf15543dae..db73ce751e20 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -76763,6 +82974,10 @@ index aaaf15543dae..db73ce751e20 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -76778,6 +82993,10 @@ index aaaf15543dae..db73ce751e20 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -76790,6 +83009,10 @@ index aaaf15543dae..db73ce751e20 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -76827,7 +83050,7 @@ index aaaf15543dae..db73ce751e20 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -76885,10 +83108,10 @@ index aaaf15543dae..db73ce751e20 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -76899,10 +83122,10 @@ index aaaf15543dae..db73ce751e20 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -76914,16 +83137,23 @@ index aaaf15543dae..db73ce751e20 100644 Library("retransmission_queue_gn") diff --git third_party/libwebrtc/net/dcsctp/tx/retransmission_timeout_gn/moz.build third_party/libwebrtc/net/dcsctp/tx/retransmission_timeout_gn/moz.build -index 5c8b76f3df08..1c6b0b3c59c2 100644 +index b0bd600462ba..7e3b4fdbd0a3 100644 --- third_party/libwebrtc/net/dcsctp/tx/retransmission_timeout_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/tx/retransmission_timeout_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -76940,13 +83170,17 @@ index 5c8b76f3df08..1c6b0b3c59c2 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -76965,6 +83199,10 @@ index 5c8b76f3df08..1c6b0b3c59c2 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -76972,6 +83210,10 @@ index 5c8b76f3df08..1c6b0b3c59c2 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -76987,6 +83229,10 @@ index 5c8b76f3df08..1c6b0b3c59c2 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -76999,6 +83245,10 @@ index 5c8b76f3df08..1c6b0b3c59c2 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -77029,7 +83279,7 @@ index 5c8b76f3df08..1c6b0b3c59c2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -77116,16 +83366,23 @@ index 5c8b76f3df08..1c6b0b3c59c2 100644 Library("retransmission_timeout_gn") diff --git third_party/libwebrtc/net/dcsctp/tx/rr_send_queue_gn/moz.build third_party/libwebrtc/net/dcsctp/tx/rr_send_queue_gn/moz.build -index 32b453815025..38eff16e76ca 100644 +index 828c2ae923b9..e612eaa591aa 100644 --- third_party/libwebrtc/net/dcsctp/tx/rr_send_queue_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/tx/rr_send_queue_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -77142,13 +83399,17 @@ index 32b453815025..38eff16e76ca 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -77167,6 +83428,10 @@ index 32b453815025..38eff16e76ca 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -77174,6 +83439,10 @@ index 32b453815025..38eff16e76ca 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -77189,6 +83458,10 @@ index 32b453815025..38eff16e76ca 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -77201,6 +83474,10 @@ index 32b453815025..38eff16e76ca 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -77238,7 +83515,7 @@ index 32b453815025..38eff16e76ca 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -77296,10 +83573,10 @@ index 32b453815025..38eff16e76ca 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -77310,10 +83587,10 @@ index 32b453815025..38eff16e76ca 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -77325,16 +83602,15 @@ index 32b453815025..38eff16e76ca 100644 Library("rr_send_queue_gn") diff --git third_party/libwebrtc/net/dcsctp/tx/send_queue_gn/moz.build third_party/libwebrtc/net/dcsctp/tx/send_queue_gn/moz.build -index ecd82d9dfcc4..de8b818042ce 100644 +index 5aab21126b8d..dc4ce43eaf02 100644 --- third_party/libwebrtc/net/dcsctp/tx/send_queue_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/tx/send_queue_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -77351,7 +83627,7 @@ index ecd82d9dfcc4..de8b818042ce 100644 FINAL_LIBRARY = "xul" -@@ -43,94 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -77447,7 +83723,7 @@ index ecd82d9dfcc4..de8b818042ce 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -138,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -77473,7 +83749,7 @@ index ecd82d9dfcc4..de8b818042ce 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -166,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -77515,16 +83791,23 @@ index ecd82d9dfcc4..de8b818042ce 100644 - Library("send_queue_gn") diff --git third_party/libwebrtc/net/dcsctp/tx/stream_scheduler_gn/moz.build third_party/libwebrtc/net/dcsctp/tx/stream_scheduler_gn/moz.build -index 083e381121c5..5401aebf1609 100644 +index 229e9ffdb1d5..9dcd4136cd05 100644 --- third_party/libwebrtc/net/dcsctp/tx/stream_scheduler_gn/moz.build +++ third_party/libwebrtc/net/dcsctp/tx/stream_scheduler_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -77541,13 +83824,17 @@ index 083e381121c5..5401aebf1609 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -77566,6 +83853,10 @@ index 083e381121c5..5401aebf1609 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -77573,6 +83864,10 @@ index 083e381121c5..5401aebf1609 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -77588,6 +83883,10 @@ index 083e381121c5..5401aebf1609 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -77600,6 +83899,10 @@ index 083e381121c5..5401aebf1609 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -77637,7 +83940,7 @@ index 083e381121c5..5401aebf1609 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -77695,10 +83998,10 @@ index 083e381121c5..5401aebf1609 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -77709,10 +84012,10 @@ index 083e381121c5..5401aebf1609 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -77724,16 +84027,23 @@ index 083e381121c5..5401aebf1609 100644 Library("stream_scheduler_gn") diff --git third_party/libwebrtc/rtc_base/async_dns_resolver_gn/moz.build third_party/libwebrtc/rtc_base/async_dns_resolver_gn/moz.build -index 46a480860fe6..fe74f0c08984 100644 +index 4680b8038c15..11a5835aa0ec 100644 --- third_party/libwebrtc/rtc_base/async_dns_resolver_gn/moz.build +++ third_party/libwebrtc/rtc_base/async_dns_resolver_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -77750,13 +84060,17 @@ index 46a480860fe6..fe74f0c08984 100644 FINAL_LIBRARY = "xul" -@@ -47,95 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -77776,6 +84090,10 @@ index 46a480860fe6..fe74f0c08984 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -77783,6 +84101,10 @@ index 46a480860fe6..fe74f0c08984 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -77798,6 +84120,10 @@ index 46a480860fe6..fe74f0c08984 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -77810,6 +84136,10 @@ index 46a480860fe6..fe74f0c08984 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -77847,7 +84177,7 @@ index 46a480860fe6..fe74f0c08984 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -77905,10 +84235,10 @@ index 46a480860fe6..fe74f0c08984 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -77919,10 +84249,10 @@ index 46a480860fe6..fe74f0c08984 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -77934,16 +84264,15 @@ index 46a480860fe6..fe74f0c08984 100644 Library("async_dns_resolver_gn") diff --git third_party/libwebrtc/rtc_base/async_packet_socket_gn/moz.build third_party/libwebrtc/rtc_base/async_packet_socket_gn/moz.build -index 07bb6443d9d6..91b568c42ae2 100644 +index 84ac167bbdb4..9add7df57b49 100644 --- third_party/libwebrtc/rtc_base/async_packet_socket_gn/moz.build +++ third_party/libwebrtc/rtc_base/async_packet_socket_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -77960,7 +84289,7 @@ index 07bb6443d9d6..91b568c42ae2 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -78045,7 +84374,7 @@ index 07bb6443d9d6..91b568c42ae2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -78071,7 +84400,7 @@ index 07bb6443d9d6..91b568c42ae2 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -78113,16 +84442,23 @@ index 07bb6443d9d6..91b568c42ae2 100644 - Library("async_packet_socket_gn") diff --git third_party/libwebrtc/rtc_base/base64_gn/moz.build third_party/libwebrtc/rtc_base/base64_gn/moz.build -index 3de0b7560849..50ee6b06bc6a 100644 +index d5290ba156ee..438d28335bbf 100644 --- third_party/libwebrtc/rtc_base/base64_gn/moz.build +++ third_party/libwebrtc/rtc_base/base64_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -78139,13 +84475,17 @@ index 3de0b7560849..50ee6b06bc6a 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -78164,6 +84504,10 @@ index 3de0b7560849..50ee6b06bc6a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -78171,6 +84515,10 @@ index 3de0b7560849..50ee6b06bc6a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -78186,6 +84534,10 @@ index 3de0b7560849..50ee6b06bc6a 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -78198,6 +84550,10 @@ index 3de0b7560849..50ee6b06bc6a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -78228,7 +84584,7 @@ index 3de0b7560849..50ee6b06bc6a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -78315,16 +84671,23 @@ index 3de0b7560849..50ee6b06bc6a 100644 Library("base64_gn") diff --git third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build -index ffff7692d155..4c211b919333 100644 +index 80ddb0225604..9bcacaba76c6 100644 --- third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build +++ third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -78341,13 +84704,17 @@ index ffff7692d155..4c211b919333 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -78366,6 +84733,10 @@ index ffff7692d155..4c211b919333 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -78373,6 +84744,10 @@ index ffff7692d155..4c211b919333 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -78388,6 +84763,10 @@ index ffff7692d155..4c211b919333 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -78400,6 +84779,10 @@ index ffff7692d155..4c211b919333 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -78430,7 +84813,7 @@ index ffff7692d155..4c211b919333 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -78517,16 +84900,23 @@ index ffff7692d155..4c211b919333 100644 Library("bit_buffer_gn") diff --git third_party/libwebrtc/rtc_base/bitrate_tracker_gn/moz.build third_party/libwebrtc/rtc_base/bitrate_tracker_gn/moz.build -index 5ac7d2799a21..bb005444b014 100644 +index 827aea8164d8..48d6a8a83d35 100644 --- third_party/libwebrtc/rtc_base/bitrate_tracker_gn/moz.build +++ third_party/libwebrtc/rtc_base/bitrate_tracker_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -78543,13 +84933,17 @@ index 5ac7d2799a21..bb005444b014 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -78568,6 +84962,10 @@ index 5ac7d2799a21..bb005444b014 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -78575,6 +84973,10 @@ index 5ac7d2799a21..bb005444b014 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -78590,6 +84992,10 @@ index 5ac7d2799a21..bb005444b014 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -78602,6 +85008,10 @@ index 5ac7d2799a21..bb005444b014 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -78639,7 +85049,7 @@ index 5ac7d2799a21..bb005444b014 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -78697,10 +85107,10 @@ index 5ac7d2799a21..bb005444b014 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -78711,10 +85121,10 @@ index 5ac7d2799a21..bb005444b014 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -78726,16 +85136,23 @@ index 5ac7d2799a21..bb005444b014 100644 Library("bitrate_tracker_gn") diff --git third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build -index eee5ccd81304..7d0af1877572 100644 +index 22951bbe63d7..f7117ae3f008 100644 --- third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build +++ third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -78752,13 +85169,17 @@ index eee5ccd81304..7d0af1877572 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -78777,6 +85198,10 @@ index eee5ccd81304..7d0af1877572 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -78784,6 +85209,10 @@ index eee5ccd81304..7d0af1877572 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -78799,6 +85228,10 @@ index eee5ccd81304..7d0af1877572 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -78811,6 +85244,10 @@ index eee5ccd81304..7d0af1877572 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -78841,7 +85278,7 @@ index eee5ccd81304..7d0af1877572 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -78928,16 +85365,15 @@ index eee5ccd81304..7d0af1877572 100644 Library("bitstream_reader_gn") diff --git third_party/libwebrtc/rtc_base/buffer_gn/moz.build third_party/libwebrtc/rtc_base/buffer_gn/moz.build -index ef4cb47eab49..a43d4f89c6ba 100644 +index 1fcfe7639127..fb81a8672641 100644 --- third_party/libwebrtc/rtc_base/buffer_gn/moz.build +++ third_party/libwebrtc/rtc_base/buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -78954,7 +85390,7 @@ index ef4cb47eab49..a43d4f89c6ba 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -79043,7 +85479,7 @@ index ef4cb47eab49..a43d4f89c6ba 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -79069,7 +85505,7 @@ index ef4cb47eab49..a43d4f89c6ba 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -79111,16 +85547,23 @@ index ef4cb47eab49..a43d4f89c6ba 100644 - Library("buffer_gn") diff --git third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build -index 4d0296e2b9af..c5b976275752 100644 +index a3061b52e1c5..e0c40a228e26 100644 --- third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build +++ third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -79137,13 +85580,17 @@ index 4d0296e2b9af..c5b976275752 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -79162,6 +85609,10 @@ index 4d0296e2b9af..c5b976275752 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -79169,6 +85620,10 @@ index 4d0296e2b9af..c5b976275752 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -79184,6 +85639,10 @@ index 4d0296e2b9af..c5b976275752 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -79196,6 +85655,10 @@ index 4d0296e2b9af..c5b976275752 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -79226,7 +85689,7 @@ index 4d0296e2b9af..c5b976275752 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -79313,16 +85776,15 @@ index 4d0296e2b9af..c5b976275752 100644 Library("byte_buffer_gn") diff --git third_party/libwebrtc/rtc_base/byte_order_gn/moz.build third_party/libwebrtc/rtc_base/byte_order_gn/moz.build -index d357971ac11b..c936f00bf8ee 100644 +index 1545308124ab..a3ec3a3d626b 100644 --- third_party/libwebrtc/rtc_base/byte_order_gn/moz.build +++ third_party/libwebrtc/rtc_base/byte_order_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -79339,7 +85801,7 @@ index d357971ac11b..c936f00bf8ee 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -79424,7 +85886,7 @@ index d357971ac11b..c936f00bf8ee 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -79450,7 +85912,7 @@ index d357971ac11b..c936f00bf8ee 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -79492,16 +85954,23 @@ index d357971ac11b..c936f00bf8ee 100644 - Library("byte_order_gn") diff --git third_party/libwebrtc/rtc_base/checks_gn/moz.build third_party/libwebrtc/rtc_base/checks_gn/moz.build -index dbd6fb44f059..119f166be716 100644 +index 8d87d4d8216f..e4f306a32de0 100644 --- third_party/libwebrtc/rtc_base/checks_gn/moz.build +++ third_party/libwebrtc/rtc_base/checks_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -79518,13 +85987,17 @@ index dbd6fb44f059..119f166be716 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -79543,6 +86016,10 @@ index dbd6fb44f059..119f166be716 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -79550,6 +86027,10 @@ index dbd6fb44f059..119f166be716 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -79565,6 +86046,10 @@ index dbd6fb44f059..119f166be716 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -79577,6 +86062,10 @@ index dbd6fb44f059..119f166be716 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -79607,7 +86096,7 @@ index dbd6fb44f059..119f166be716 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -79694,16 +86183,15 @@ index dbd6fb44f059..119f166be716 100644 Library("checks_gn") diff --git third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build -index 1b95fbaa6d76..6fcc88e2c397 100644 +index 7bdfd334c9eb..fb7482f075fd 100644 --- third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build +++ third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -79720,7 +86208,7 @@ index 1b95fbaa6d76..6fcc88e2c397 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -79805,7 +86293,7 @@ index 1b95fbaa6d76..6fcc88e2c397 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -79831,7 +86319,7 @@ index 1b95fbaa6d76..6fcc88e2c397 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -79873,16 +86361,23 @@ index 1b95fbaa6d76..6fcc88e2c397 100644 - Library("compile_assert_c_gn") diff --git third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build -index 45f3542a1cf3..f5aede81a63d 100644 +index bc4699b03b1f..e81adae3ae48 100644 --- third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build +++ third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -79899,13 +86394,17 @@ index 45f3542a1cf3..f5aede81a63d 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -79924,6 +86423,10 @@ index 45f3542a1cf3..f5aede81a63d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -79931,6 +86434,10 @@ index 45f3542a1cf3..f5aede81a63d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -79946,6 +86453,10 @@ index 45f3542a1cf3..f5aede81a63d 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -79958,6 +86469,10 @@ index 45f3542a1cf3..f5aede81a63d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -79988,7 +86503,7 @@ index 45f3542a1cf3..f5aede81a63d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -80075,16 +86590,15 @@ index 45f3542a1cf3..f5aede81a63d 100644 Library("flat_containers_internal_gn") diff --git third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build -index 12d9f24a5dea..03965a3dbbbd 100644 +index 110a2268825e..f5df159ef2c1 100644 --- third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build +++ third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -80101,7 +86615,7 @@ index 12d9f24a5dea..03965a3dbbbd 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -80190,7 +86704,7 @@ index 12d9f24a5dea..03965a3dbbbd 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -80216,7 +86730,7 @@ index 12d9f24a5dea..03965a3dbbbd 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -80258,16 +86772,15 @@ index 12d9f24a5dea..03965a3dbbbd 100644 - Library("flat_map_gn") diff --git third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build -index 94d72b0be826..9bf7b297f73d 100644 +index fb086fe47844..3033d814afa7 100644 --- third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build +++ third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -80284,7 +86797,7 @@ index 94d72b0be826..9bf7b297f73d 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -80373,7 +86886,7 @@ index 94d72b0be826..9bf7b297f73d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -80399,7 +86912,7 @@ index 94d72b0be826..9bf7b297f73d 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -80441,16 +86954,23 @@ index 94d72b0be826..9bf7b297f73d 100644 - Library("flat_set_gn") diff --git third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build -index 290fa237597c..95fee876429c 100644 +index 9f17e1be42ec..03f53c77a75a 100644 --- third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build +++ third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -80467,13 +86987,17 @@ index 290fa237597c..95fee876429c 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -80492,6 +87016,10 @@ index 290fa237597c..95fee876429c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -80499,6 +87027,10 @@ index 290fa237597c..95fee876429c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -80514,6 +87046,10 @@ index 290fa237597c..95fee876429c 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -80526,6 +87062,10 @@ index 290fa237597c..95fee876429c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -80556,7 +87096,7 @@ index 290fa237597c..95fee876429c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -80643,16 +87183,23 @@ index 290fa237597c..95fee876429c 100644 Library("copy_on_write_buffer_gn") diff --git third_party/libwebrtc/rtc_base/cpu_info_gn/moz.build third_party/libwebrtc/rtc_base/cpu_info_gn/moz.build -index 1029f0836bfe..6a114014c1f4 100644 +index 6a2345034a07..9dd328e92485 100644 --- third_party/libwebrtc/rtc_base/cpu_info_gn/moz.build +++ third_party/libwebrtc/rtc_base/cpu_info_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -80669,13 +87216,17 @@ index 1029f0836bfe..6a114014c1f4 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -80694,6 +87245,10 @@ index 1029f0836bfe..6a114014c1f4 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -80701,6 +87256,10 @@ index 1029f0836bfe..6a114014c1f4 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -80716,6 +87275,10 @@ index 1029f0836bfe..6a114014c1f4 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -80728,6 +87291,10 @@ index 1029f0836bfe..6a114014c1f4 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -80765,7 +87332,7 @@ index 1029f0836bfe..6a114014c1f4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -80823,10 +87390,10 @@ index 1029f0836bfe..6a114014c1f4 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -80837,10 +87404,10 @@ index 1029f0836bfe..6a114014c1f4 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -80852,16 +87419,23 @@ index 1029f0836bfe..6a114014c1f4 100644 Library("cpu_info_gn") diff --git third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build -index d19a77f5a18b..95b1a36564bc 100644 +index f11f29619d5e..de25562cd255 100644 --- third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build +++ third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -80878,13 +87452,17 @@ index d19a77f5a18b..95b1a36564bc 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -80903,6 +87481,10 @@ index d19a77f5a18b..95b1a36564bc 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -80910,6 +87492,10 @@ index d19a77f5a18b..95b1a36564bc 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -80925,6 +87511,10 @@ index d19a77f5a18b..95b1a36564bc 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -80937,6 +87527,10 @@ index d19a77f5a18b..95b1a36564bc 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -80967,7 +87561,7 @@ index d19a77f5a18b..95b1a36564bc 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -81054,16 +87648,23 @@ index d19a77f5a18b..95b1a36564bc 100644 Library("criticalsection_gn") diff --git third_party/libwebrtc/rtc_base/denormal_disabler_gn/moz.build third_party/libwebrtc/rtc_base/denormal_disabler_gn/moz.build -index ee63503765bb..288cd082cad6 100644 +index 32d3eabe7182..1716888a1540 100644 --- third_party/libwebrtc/rtc_base/denormal_disabler_gn/moz.build +++ third_party/libwebrtc/rtc_base/denormal_disabler_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -81080,13 +87681,17 @@ index ee63503765bb..288cd082cad6 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -81105,6 +87710,10 @@ index ee63503765bb..288cd082cad6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -81112,6 +87721,10 @@ index ee63503765bb..288cd082cad6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -81127,6 +87740,10 @@ index ee63503765bb..288cd082cad6 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -81139,6 +87756,10 @@ index ee63503765bb..288cd082cad6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -81169,7 +87790,7 @@ index ee63503765bb..288cd082cad6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -81256,16 +87877,15 @@ index ee63503765bb..288cd082cad6 100644 Library("denormal_disabler_gn") diff --git third_party/libwebrtc/rtc_base/divide_round_gn/moz.build third_party/libwebrtc/rtc_base/divide_round_gn/moz.build -index 6d17c8740b6c..4081536caf3a 100644 +index c45abd0214c2..5afb72a8871d 100644 --- third_party/libwebrtc/rtc_base/divide_round_gn/moz.build +++ third_party/libwebrtc/rtc_base/divide_round_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -81282,7 +87902,7 @@ index 6d17c8740b6c..4081536caf3a 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -81371,7 +87991,7 @@ index 6d17c8740b6c..4081536caf3a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -81397,7 +88017,7 @@ index 6d17c8740b6c..4081536caf3a 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -81439,16 +88059,15 @@ index 6d17c8740b6c..4081536caf3a 100644 - Library("divide_round_gn") diff --git third_party/libwebrtc/rtc_base/dscp_gn/moz.build third_party/libwebrtc/rtc_base/dscp_gn/moz.build -index b11b9ea3a10f..7ff506e6f033 100644 +index 67fc0c9f2946..db5bc6af820e 100644 --- third_party/libwebrtc/rtc_base/dscp_gn/moz.build +++ third_party/libwebrtc/rtc_base/dscp_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -81465,7 +88084,7 @@ index b11b9ea3a10f..7ff506e6f033 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -81550,7 +88169,7 @@ index b11b9ea3a10f..7ff506e6f033 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -81576,7 +88195,7 @@ index b11b9ea3a10f..7ff506e6f033 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -81618,16 +88237,23 @@ index b11b9ea3a10f..7ff506e6f033 100644 - Library("dscp_gn") diff --git third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build -index 8e75ad113c46..7d3dce09ccf7 100644 +index 9871decbb1aa..e090fdcce24c 100644 --- third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build +++ third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -81644,13 +88270,17 @@ index 8e75ad113c46..7d3dce09ccf7 100644 FINAL_LIBRARY = "xul" -@@ -48,94 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -81669,6 +88299,10 @@ index 8e75ad113c46..7d3dce09ccf7 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -81676,6 +88310,10 @@ index 8e75ad113c46..7d3dce09ccf7 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -81691,6 +88329,10 @@ index 8e75ad113c46..7d3dce09ccf7 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -81703,6 +88345,10 @@ index 8e75ad113c46..7d3dce09ccf7 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -81740,7 +88386,7 @@ index 8e75ad113c46..7d3dce09ccf7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -81798,10 +88444,10 @@ index 8e75ad113c46..7d3dce09ccf7 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -81812,10 +88458,10 @@ index 8e75ad113c46..7d3dce09ccf7 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -81827,16 +88473,23 @@ index 8e75ad113c46..7d3dce09ccf7 100644 Library("event_tracer_gn") diff --git third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build -index 10f82d3ff81e..40fcc18fd804 100644 +index 6f3804964680..09ee866580b3 100644 --- third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -81853,13 +88506,17 @@ index 10f82d3ff81e..40fcc18fd804 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -81878,6 +88535,10 @@ index 10f82d3ff81e..40fcc18fd804 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -81885,6 +88546,10 @@ index 10f82d3ff81e..40fcc18fd804 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -81900,6 +88565,10 @@ index 10f82d3ff81e..40fcc18fd804 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -81912,6 +88581,10 @@ index 10f82d3ff81e..40fcc18fd804 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -81949,7 +88622,7 @@ index 10f82d3ff81e..40fcc18fd804 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -82007,10 +88680,10 @@ index 10f82d3ff81e..40fcc18fd804 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -82021,10 +88694,10 @@ index 10f82d3ff81e..40fcc18fd804 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -82036,16 +88709,23 @@ index 10f82d3ff81e..40fcc18fd804 100644 Library("alr_experiment_gn") diff --git third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build -index 4b8665b1b4d3..3186f94b957f 100644 +index bbf714b33195..15fcbde02d97 100644 --- third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -82062,13 +88742,17 @@ index 4b8665b1b4d3..3186f94b957f 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -82087,6 +88771,10 @@ index 4b8665b1b4d3..3186f94b957f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -82094,6 +88782,10 @@ index 4b8665b1b4d3..3186f94b957f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -82107,12 +88799,12 @@ index 4b8665b1b4d3..3186f94b957f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -82125,6 +88817,10 @@ index 4b8665b1b4d3..3186f94b957f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -82162,7 +88858,7 @@ index 4b8665b1b4d3..3186f94b957f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -82220,10 +88916,10 @@ index 4b8665b1b4d3..3186f94b957f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -82234,10 +88930,10 @@ index 4b8665b1b4d3..3186f94b957f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -82249,16 +88945,23 @@ index 4b8665b1b4d3..3186f94b957f 100644 Library("balanced_degradation_settings_gn") diff --git third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build -index c589d3227b8f..ca1de2ba5686 100644 +index 439ec1d4e7c9..52a1550b84d0 100644 --- third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -82275,13 +88978,17 @@ index c589d3227b8f..ca1de2ba5686 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -82300,6 +89007,10 @@ index c589d3227b8f..ca1de2ba5686 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -82307,6 +89018,10 @@ index c589d3227b8f..ca1de2ba5686 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -82320,12 +89035,12 @@ index c589d3227b8f..ca1de2ba5686 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -82338,6 +89053,10 @@ index c589d3227b8f..ca1de2ba5686 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -82375,7 +89094,7 @@ index c589d3227b8f..ca1de2ba5686 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -82433,10 +89152,10 @@ index c589d3227b8f..ca1de2ba5686 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -82447,10 +89166,10 @@ index c589d3227b8f..ca1de2ba5686 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -82462,16 +89181,23 @@ index c589d3227b8f..ca1de2ba5686 100644 Library("encoder_info_settings_gn") diff --git third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build -index c20b2e2aa6d7..89b499bfa973 100644 +index bf20d2672978..f694fc71932b 100644 --- third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -82488,13 +89214,17 @@ index c20b2e2aa6d7..89b499bfa973 100644 FINAL_LIBRARY = "xul" -@@ -50,94 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,114 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -82513,6 +89243,10 @@ index c20b2e2aa6d7..89b499bfa973 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -82520,6 +89254,10 @@ index c20b2e2aa6d7..89b499bfa973 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -82535,6 +89273,10 @@ index c20b2e2aa6d7..89b499bfa973 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -82547,6 +89289,10 @@ index c20b2e2aa6d7..89b499bfa973 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -82584,7 +89330,7 @@ index c20b2e2aa6d7..89b499bfa973 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -145,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -164,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -82642,10 +89388,10 @@ index c20b2e2aa6d7..89b499bfa973 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -82656,10 +89402,10 @@ index c20b2e2aa6d7..89b499bfa973 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -82671,16 +89417,23 @@ index c20b2e2aa6d7..89b499bfa973 100644 Library("field_trial_parser_gn") diff --git third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build -index a1cdc70739b0..593522344bb9 100644 +index 3ab54cf6bd88..e7cba2997a14 100644 --- third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -82697,13 +89450,17 @@ index a1cdc70739b0..593522344bb9 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -82722,6 +89479,10 @@ index a1cdc70739b0..593522344bb9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -82729,6 +89490,10 @@ index a1cdc70739b0..593522344bb9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -82744,6 +89509,10 @@ index a1cdc70739b0..593522344bb9 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -82756,6 +89525,10 @@ index a1cdc70739b0..593522344bb9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -82793,7 +89566,7 @@ index a1cdc70739b0..593522344bb9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -82851,10 +89624,10 @@ index a1cdc70739b0..593522344bb9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -82865,10 +89638,10 @@ index a1cdc70739b0..593522344bb9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -82880,16 +89653,23 @@ index a1cdc70739b0..593522344bb9 100644 Library("keyframe_interval_settings_experiment_gn") diff --git third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build -index 4b3f27a4b3c3..d6b28a71bc0f 100644 +index 07f12b5051b7..6dcc86225977 100644 --- third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -82906,13 +89686,17 @@ index 4b3f27a4b3c3..d6b28a71bc0f 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -82931,6 +89715,10 @@ index 4b3f27a4b3c3..d6b28a71bc0f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -82938,6 +89726,10 @@ index 4b3f27a4b3c3..d6b28a71bc0f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -82953,6 +89745,10 @@ index 4b3f27a4b3c3..d6b28a71bc0f 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -82965,6 +89761,10 @@ index 4b3f27a4b3c3..d6b28a71bc0f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -83002,7 +89802,7 @@ index 4b3f27a4b3c3..d6b28a71bc0f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -83060,10 +89860,10 @@ index 4b3f27a4b3c3..d6b28a71bc0f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -83074,10 +89874,10 @@ index 4b3f27a4b3c3..d6b28a71bc0f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -83089,16 +89889,23 @@ index 4b3f27a4b3c3..d6b28a71bc0f 100644 Library("min_video_bitrate_experiment_gn") diff --git third_party/libwebrtc/rtc_base/experiments/normalize_simulcast_size_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/normalize_simulcast_size_experiment_gn/moz.build -index a826e388bec4..0db52e8261d9 100644 +index 79de1ae073a5..c92ecb38451c 100644 --- third_party/libwebrtc/rtc_base/experiments/normalize_simulcast_size_experiment_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/normalize_simulcast_size_experiment_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -83115,13 +89922,17 @@ index a826e388bec4..0db52e8261d9 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -83140,6 +89951,10 @@ index a826e388bec4..0db52e8261d9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -83147,6 +89962,10 @@ index a826e388bec4..0db52e8261d9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -83162,6 +89981,10 @@ index a826e388bec4..0db52e8261d9 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -83174,6 +89997,10 @@ index a826e388bec4..0db52e8261d9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -83211,7 +90038,7 @@ index a826e388bec4..0db52e8261d9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -83269,10 +90096,10 @@ index a826e388bec4..0db52e8261d9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -83283,10 +90110,10 @@ index a826e388bec4..0db52e8261d9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -83298,16 +90125,23 @@ index a826e388bec4..0db52e8261d9 100644 Library("normalize_simulcast_size_experiment_gn") diff --git third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build -index a15b6a0f37fa..f6268077ed0d 100644 +index de5ccaa7e596..8ea47b1f2a07 100644 --- third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -83324,13 +90158,17 @@ index a15b6a0f37fa..f6268077ed0d 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -83349,6 +90187,10 @@ index a15b6a0f37fa..f6268077ed0d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -83356,6 +90198,10 @@ index a15b6a0f37fa..f6268077ed0d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -83371,6 +90217,10 @@ index a15b6a0f37fa..f6268077ed0d 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -83383,6 +90233,10 @@ index a15b6a0f37fa..f6268077ed0d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -83420,7 +90274,7 @@ index a15b6a0f37fa..f6268077ed0d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -83478,10 +90332,10 @@ index a15b6a0f37fa..f6268077ed0d 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -83492,10 +90346,10 @@ index a15b6a0f37fa..f6268077ed0d 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -83507,16 +90361,23 @@ index a15b6a0f37fa..f6268077ed0d 100644 Library("quality_scaler_settings_gn") diff --git third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build -index 6656011a3f73..9f3c461f759b 100644 +index db3d8c8a188b..e3623185b4c1 100644 --- third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -83533,13 +90394,17 @@ index 6656011a3f73..9f3c461f759b 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -83558,6 +90423,10 @@ index 6656011a3f73..9f3c461f759b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -83565,6 +90434,10 @@ index 6656011a3f73..9f3c461f759b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -83578,12 +90451,12 @@ index 6656011a3f73..9f3c461f759b 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -83596,6 +90469,10 @@ index 6656011a3f73..9f3c461f759b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -83633,7 +90510,7 @@ index 6656011a3f73..9f3c461f759b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -83691,10 +90568,10 @@ index 6656011a3f73..9f3c461f759b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -83705,10 +90582,10 @@ index 6656011a3f73..9f3c461f759b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -83720,16 +90597,23 @@ index 6656011a3f73..9f3c461f759b 100644 Library("quality_scaling_experiment_gn") diff --git third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build -index 882e6c023720..af436eb83128 100644 +index 7866b4a70a4f..6d8d954f0400 100644 --- third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build +++ third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -83746,13 +90630,17 @@ index 882e6c023720..af436eb83128 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -83771,6 +90659,10 @@ index 882e6c023720..af436eb83128 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -83778,6 +90670,10 @@ index 882e6c023720..af436eb83128 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -83791,12 +90687,12 @@ index 882e6c023720..af436eb83128 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -83809,6 +90705,10 @@ index 882e6c023720..af436eb83128 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -83846,7 +90746,7 @@ index 882e6c023720..af436eb83128 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -83904,233 +90804,24 @@ index 882e6c023720..af436eb83128 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": -- -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": -- -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": -- - CXXFLAGS += [ - "-msse2" - ] - -- DEFINES["_GNU_SOURCE"] = True -+ DEFINES["WEBRTC_ENABLE_AVX2"] = True - --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": -+if CONFIG["TARGET_CPU"] == "x86_64": - -- DEFINES["_GNU_SOURCE"] = True -+ DEFINES["WEBRTC_ENABLE_AVX2"] = True - - Library("rate_control_settings_gn") -diff --git third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build -index 3329e9d7773e..b1f7e6b7b42c 100644 ---- third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build -+++ third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" - DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" - DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True - DEFINES["RTC_ENABLE_VP9"] = True -+DEFINES["USE_GLIB"] = "1" -+DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -+DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" - DEFINES["WEBRTC_LIBRARY_IMPL"] = True - DEFINES["WEBRTC_MOZILLA_BUILD"] = True - DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" -+DEFINES["WEBRTC_POSIX"] = True - DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" -+DEFINES["_FILE_OFFSET_BITS"] = "64" -+DEFINES["_LARGEFILE64_SOURCE"] = True -+DEFINES["_LARGEFILE_SOURCE"] = True - DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE" -+DEFINES["__STDC_CONSTANT_MACROS"] = True -+DEFINES["__STDC_FORMAT_MACROS"] = True - - FINAL_LIBRARY = "xul" - -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: - if CONFIG["MOZ_DEBUG"] == "1": - - DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" -- --if CONFIG["OS_TARGET"] == "Android": -- -- DEFINES["ANDROID"] = True -- DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" -- DEFINES["HAVE_SYS_UIO_H"] = True -- DEFINES["WEBRTC_ANDROID"] = True -- DEFINES["WEBRTC_ANDROID_OPENSLES"] = True -- DEFINES["WEBRTC_LINUX"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["_GNU_SOURCE"] = True -- DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- -- OS_LIBS += [ -- "log" -- ] -- --if CONFIG["OS_TARGET"] == "Darwin": -- -- DEFINES["WEBRTC_MAC"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "Linux": -- -- DEFINES["USE_AURA"] = "1" -- DEFINES["USE_GLIB"] = "1" -- DEFINES["USE_OZONE"] = "1" -- DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["_FILE_OFFSET_BITS"] = "64" -- DEFINES["_GLIBCXX_ASSERTIONS"] = "1" -- DEFINES["_LARGEFILE64_SOURCE"] = True -- DEFINES["_LARGEFILE_SOURCE"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "OpenBSD": -- -- DEFINES["USE_GLIB"] = "1" -- DEFINES["USE_OZONE"] = "1" -- DEFINES["WEBRTC_BSD"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["_FILE_OFFSET_BITS"] = "64" -- DEFINES["_LARGEFILE64_SOURCE"] = True -- DEFINES["_LARGEFILE_SOURCE"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "WINNT": -- -- DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True -- DEFINES["NOMINMAX"] = True -- DEFINES["NTDDI_VERSION"] = "0x0A000000" -- DEFINES["PSAPI_VERSION"] = "2" -- DEFINES["RTC_ENABLE_WIN_WGC"] = True -- DEFINES["UNICODE"] = True -- DEFINES["USE_AURA"] = "1" -- DEFINES["WEBRTC_WIN"] = True -- DEFINES["WIN32"] = True -- DEFINES["WIN32_LEAN_AND_MEAN"] = True -- DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" -- DEFINES["WINVER"] = "0x0A00" -- DEFINES["_ATL_NO_OPENGL"] = True -- DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True -- DEFINES["_CRT_RAND_S"] = True -- DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True -- DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True -- DEFINES["_HAS_EXCEPTIONS"] = "0" -- DEFINES["_HAS_NODISCARD"] = True -- DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True -- DEFINES["_SECURE_ATL"] = True -- DEFINES["_UNICODE"] = True -- DEFINES["_WIN32_WINNT"] = "0x0A00" -- DEFINES["_WINDOWS"] = True -- DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True -- DEFINES["__STD_C"] = True -- -- OS_LIBS += [ -- "crypt32", -- "iphlpapi", -- "secur32", -- "winmm" -- ] -+ DEFINES["_DEBUG"] = True - - if CONFIG["TARGET_CPU"] == "aarch64": - -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": - DEFINES["WEBRTC_HAS_NEON"] = True - DEFINES["__ARM_NEON__"] = "1" - --if CONFIG["TARGET_CPU"] == "arm": -- -- CXXFLAGS += [ -- "-mfpu=neon" -- ] -- -- DEFINES["WEBRTC_ARCH_ARM"] = True -- DEFINES["WEBRTC_ARCH_ARM_V7"] = True -- DEFINES["WEBRTC_HAS_NEON"] = True -- --if CONFIG["TARGET_CPU"] == "loongarch64": +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True - - if CONFIG["TARGET_CPU"] == "mips32": - - DEFINES["MIPS32_LE"] = True - DEFINES["MIPS_FPU_LE"] = True -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["TARGET_CPU"] == "mips64": +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": - - DEFINES["_GNU_SOURCE"] = True - - if CONFIG["TARGET_CPU"] == "x86": - -- DEFINES["WEBRTC_ENABLE_AVX2"] = True -- --if CONFIG["TARGET_CPU"] == "x86_64": - -- DEFINES["WEBRTC_ENABLE_AVX2"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": -- -- DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" -- --if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - CXXFLAGS += [ "-msse2" ] --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": -- -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": -- -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": -- -- CXXFLAGS += [ -- "-msse2" -- ] -- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -84140,18 +90831,25 @@ index 3329e9d7773e..b1f7e6b7b42c 100644 - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True - Library("stable_target_rate_experiment_gn") + Library("rate_control_settings_gn") diff --git third_party/libwebrtc/rtc_base/frequency_tracker_gn/moz.build third_party/libwebrtc/rtc_base/frequency_tracker_gn/moz.build -index 2dab806a0600..3811dae58fa1 100644 +index c8c61429d38f..47b3096ae1da 100644 --- third_party/libwebrtc/rtc_base/frequency_tracker_gn/moz.build +++ third_party/libwebrtc/rtc_base/frequency_tracker_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -84168,13 +90866,17 @@ index 2dab806a0600..3811dae58fa1 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -84193,6 +90895,10 @@ index 2dab806a0600..3811dae58fa1 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -84200,6 +90906,10 @@ index 2dab806a0600..3811dae58fa1 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -84215,6 +90925,10 @@ index 2dab806a0600..3811dae58fa1 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -84227,6 +90941,10 @@ index 2dab806a0600..3811dae58fa1 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -84264,7 +90982,7 @@ index 2dab806a0600..3811dae58fa1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -84322,10 +91040,10 @@ index 2dab806a0600..3811dae58fa1 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -84336,10 +91054,10 @@ index 2dab806a0600..3811dae58fa1 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -84351,16 +91069,15 @@ index 2dab806a0600..3811dae58fa1 100644 Library("frequency_tracker_gn") diff --git third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build -index c551d6f8e7db..6afbfab03fe8 100644 +index 6e4858c05e1d..e01a08018962 100644 --- third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build +++ third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -84377,7 +91094,7 @@ index c551d6f8e7db..6afbfab03fe8 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -84462,7 +91179,7 @@ index c551d6f8e7db..6afbfab03fe8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -84488,7 +91205,7 @@ index c551d6f8e7db..6afbfab03fe8 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -84530,16 +91247,23 @@ index c551d6f8e7db..6afbfab03fe8 100644 - Library("gtest_prod_gn") diff --git third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build -index 633a84eb5698..945c0d939375 100644 +index 4c82ebf4f1a4..9bb8130d8c7a 100644 --- third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build +++ third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -84556,13 +91280,17 @@ index 633a84eb5698..945c0d939375 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -84581,6 +91309,10 @@ index 633a84eb5698..945c0d939375 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -84588,6 +91320,10 @@ index 633a84eb5698..945c0d939375 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -84603,6 +91339,10 @@ index 633a84eb5698..945c0d939375 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -84615,6 +91355,10 @@ index 633a84eb5698..945c0d939375 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -84645,7 +91389,7 @@ index 633a84eb5698..945c0d939375 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -84733,10 +91477,10 @@ index 633a84eb5698..945c0d939375 100644 Library("histogram_percentile_counter_gn") diff --git third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build deleted file mode 100644 -index b6c099877828..000000000000 +index 471d8a145443..000000000000 --- third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build +++ /dev/null -@@ -1,96 +0,0 @@ +@@ -1,99 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -84748,6 +91492,10 @@ index b6c099877828..000000000000 -COMPILE_FLAGS["OS_INCLUDES"] = [] -AllowCompilerWarnings() - +-CXXFLAGS += [ +- "-std=gnu++20" +-] +- -DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" -DEFINES["ANDROID"] = True -DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" @@ -84755,7 +91503,6 @@ index b6c099877828..000000000000 -DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" -DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True -DEFINES["RTC_ENABLE_VP9"] = True --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ANDROID"] = True -DEFINES["WEBRTC_ANDROID_OPENSLES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -84834,16 +91581,15 @@ index b6c099877828..000000000000 - -Library("ifaddrs_android_gn") diff --git third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build -index 81956aa523cb..3898fa6a642b 100644 +index f18c322cef73..70cbdf4c62e1 100644 --- third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build +++ third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -84860,7 +91606,7 @@ index 81956aa523cb..3898fa6a642b 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -84945,7 +91691,7 @@ index 81956aa523cb..3898fa6a642b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -84971,7 +91717,7 @@ index 81956aa523cb..3898fa6a642b 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -85013,16 +91759,23 @@ index 81956aa523cb..3898fa6a642b 100644 - Library("ignore_wundef_gn") diff --git third_party/libwebrtc/rtc_base/ip_address_gn/moz.build third_party/libwebrtc/rtc_base/ip_address_gn/moz.build -index df4bfbe590f8..2e35650e0118 100644 +index c67703077af9..8ff1adb6036f 100644 --- third_party/libwebrtc/rtc_base/ip_address_gn/moz.build +++ third_party/libwebrtc/rtc_base/ip_address_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -85039,13 +91792,17 @@ index df4bfbe590f8..2e35650e0118 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -85065,6 +91822,10 @@ index df4bfbe590f8..2e35650e0118 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -85072,6 +91833,10 @@ index df4bfbe590f8..2e35650e0118 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -85087,6 +91852,10 @@ index df4bfbe590f8..2e35650e0118 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -85099,6 +91868,10 @@ index df4bfbe590f8..2e35650e0118 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -85135,7 +91908,7 @@ index df4bfbe590f8..2e35650e0118 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -85193,10 +91966,10 @@ index df4bfbe590f8..2e35650e0118 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -85207,10 +91980,10 @@ index df4bfbe590f8..2e35650e0118 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -85222,16 +91995,23 @@ index df4bfbe590f8..2e35650e0118 100644 Library("ip_address_gn") diff --git third_party/libwebrtc/rtc_base/logging_gn/moz.build third_party/libwebrtc/rtc_base/logging_gn/moz.build -index 671657aa368d..25c4dcfeffd4 100644 +index 853c5bcada13..d16275ec7067 100644 --- third_party/libwebrtc/rtc_base/logging_gn/moz.build +++ third_party/libwebrtc/rtc_base/logging_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -85249,13 +92029,17 @@ index 671657aa368d..25c4dcfeffd4 100644 FINAL_LIBRARY = "xul" -@@ -48,94 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,114 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -85274,6 +92058,10 @@ index 671657aa368d..25c4dcfeffd4 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -85281,6 +92069,10 @@ index 671657aa368d..25c4dcfeffd4 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -85296,6 +92088,10 @@ index 671657aa368d..25c4dcfeffd4 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -85308,6 +92104,10 @@ index 671657aa368d..25c4dcfeffd4 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -85345,7 +92145,7 @@ index 671657aa368d..25c4dcfeffd4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -85403,10 +92203,10 @@ index 671657aa368d..25c4dcfeffd4 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -85417,10 +92217,10 @@ index 671657aa368d..25c4dcfeffd4 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -85432,16 +92232,15 @@ index 671657aa368d..25c4dcfeffd4 100644 Library("logging_gn") diff --git third_party/libwebrtc/rtc_base/macromagic_gn/moz.build third_party/libwebrtc/rtc_base/macromagic_gn/moz.build -index ee7bf52578e1..8cf0cbacb8c7 100644 +index fc6e8f693b98..17687531d1c6 100644 --- third_party/libwebrtc/rtc_base/macromagic_gn/moz.build +++ third_party/libwebrtc/rtc_base/macromagic_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -85458,7 +92257,7 @@ index ee7bf52578e1..8cf0cbacb8c7 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -85543,7 +92342,7 @@ index ee7bf52578e1..8cf0cbacb8c7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -85569,7 +92368,7 @@ index ee7bf52578e1..8cf0cbacb8c7 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -85611,16 +92410,23 @@ index ee7bf52578e1..8cf0cbacb8c7 100644 - Library("macromagic_gn") diff --git third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build -index 2dee6afe49e4..0d337d8cb039 100644 +index 3c352afea7ec..6ad9b42d6dc4 100644 --- third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build +++ third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -85637,13 +92443,17 @@ index 2dee6afe49e4..0d337d8cb039 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -85662,6 +92472,10 @@ index 2dee6afe49e4..0d337d8cb039 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -85669,6 +92483,10 @@ index 2dee6afe49e4..0d337d8cb039 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -85684,6 +92502,10 @@ index 2dee6afe49e4..0d337d8cb039 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -85696,6 +92518,10 @@ index 2dee6afe49e4..0d337d8cb039 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -85726,7 +92552,7 @@ index 2dee6afe49e4..0d337d8cb039 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -85813,16 +92639,15 @@ index 2dee6afe49e4..0d337d8cb039 100644 Library("aligned_malloc_gn") diff --git third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build -index 73ea529287cf..293ce4f38dd7 100644 +index 7b6b50b9dd15..03d6e54acba9 100644 --- third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build +++ third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -85839,7 +92664,7 @@ index 73ea529287cf..293ce4f38dd7 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -85928,7 +92753,7 @@ index 73ea529287cf..293ce4f38dd7 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -85954,7 +92779,7 @@ index 73ea529287cf..293ce4f38dd7 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -85996,16 +92821,15 @@ index 73ea529287cf..293ce4f38dd7 100644 - Library("mod_ops_gn") diff --git third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build -index 2e59566bed66..0ab732b24e2c 100644 +index 8bf71a1ab9b2..084355af82e2 100644 --- third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build +++ third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -86022,7 +92846,7 @@ index 2e59566bed66..0ab732b24e2c 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -86111,7 +92935,7 @@ index 2e59566bed66..0ab732b24e2c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -86137,7 +92961,7 @@ index 2e59566bed66..0ab732b24e2c 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -86179,16 +93003,23 @@ index 2e59566bed66..0ab732b24e2c 100644 - Library("moving_max_counter_gn") diff --git third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build -index b77950bc7127..fba1ed0c6b80 100644 +index 250d021bf165..01e254bed37a 100644 --- third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build +++ third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -86205,13 +93036,17 @@ index b77950bc7127..fba1ed0c6b80 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -86231,6 +93066,10 @@ index b77950bc7127..fba1ed0c6b80 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -86238,6 +93077,10 @@ index b77950bc7127..fba1ed0c6b80 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -86253,6 +93096,10 @@ index b77950bc7127..fba1ed0c6b80 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -86265,6 +93112,10 @@ index b77950bc7127..fba1ed0c6b80 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -86301,7 +93152,7 @@ index b77950bc7127..fba1ed0c6b80 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -86359,10 +93210,10 @@ index b77950bc7127..fba1ed0c6b80 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -86373,10 +93224,10 @@ index b77950bc7127..fba1ed0c6b80 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -86387,196 +93238,24 @@ index b77950bc7127..fba1ed0c6b80 100644 + DEFINES["WEBRTC_ENABLE_AVX2"] = True Library("net_helpers_gn") -diff --git third_party/libwebrtc/rtc_base/network/ecn_marking_gn/moz.build third_party/libwebrtc/rtc_base/network/ecn_marking_gn/moz.build -index 8ab0d1a1c443..00fbb2407fdc 100644 ---- third_party/libwebrtc/rtc_base/network/ecn_marking_gn/moz.build -+++ third_party/libwebrtc/rtc_base/network/ecn_marking_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" - DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" - DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True - DEFINES["RTC_ENABLE_VP9"] = True -+DEFINES["USE_GLIB"] = "1" -+DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -+DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" - DEFINES["WEBRTC_LIBRARY_IMPL"] = True - DEFINES["WEBRTC_MOZILLA_BUILD"] = True - DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" -+DEFINES["WEBRTC_POSIX"] = True - DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" -+DEFINES["_FILE_OFFSET_BITS"] = "64" -+DEFINES["_LARGEFILE64_SOURCE"] = True -+DEFINES["_LARGEFILE_SOURCE"] = True - DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE" -+DEFINES["__STDC_CONSTANT_MACROS"] = True -+DEFINES["__STDC_FORMAT_MACROS"] = True - - FINAL_LIBRARY = "xul" - -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: - if CONFIG["MOZ_DEBUG"] == "1": - - DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" -- --if CONFIG["OS_TARGET"] == "Android": -- -- DEFINES["ANDROID"] = True -- DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" -- DEFINES["HAVE_SYS_UIO_H"] = True -- DEFINES["WEBRTC_ANDROID"] = True -- DEFINES["WEBRTC_ANDROID_OPENSLES"] = True -- DEFINES["WEBRTC_LINUX"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["_GNU_SOURCE"] = True -- DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "Darwin": -- -- DEFINES["WEBRTC_MAC"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "Linux": -- -- DEFINES["USE_AURA"] = "1" -- DEFINES["USE_GLIB"] = "1" -- DEFINES["USE_OZONE"] = "1" -- DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["_FILE_OFFSET_BITS"] = "64" -- DEFINES["_GLIBCXX_ASSERTIONS"] = "1" -- DEFINES["_LARGEFILE64_SOURCE"] = True -- DEFINES["_LARGEFILE_SOURCE"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "OpenBSD": -- -- DEFINES["USE_GLIB"] = "1" -- DEFINES["USE_OZONE"] = "1" -- DEFINES["WEBRTC_BSD"] = True -- DEFINES["WEBRTC_POSIX"] = True -- DEFINES["_FILE_OFFSET_BITS"] = "64" -- DEFINES["_LARGEFILE64_SOURCE"] = True -- DEFINES["_LARGEFILE_SOURCE"] = True -- DEFINES["__STDC_CONSTANT_MACROS"] = True -- DEFINES["__STDC_FORMAT_MACROS"] = True -- --if CONFIG["OS_TARGET"] == "WINNT": -- -- DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True -- DEFINES["NOMINMAX"] = True -- DEFINES["NTDDI_VERSION"] = "0x0A000000" -- DEFINES["PSAPI_VERSION"] = "2" -- DEFINES["RTC_ENABLE_WIN_WGC"] = True -- DEFINES["UNICODE"] = True -- DEFINES["USE_AURA"] = "1" -- DEFINES["WEBRTC_WIN"] = True -- DEFINES["WIN32"] = True -- DEFINES["WIN32_LEAN_AND_MEAN"] = True -- DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" -- DEFINES["WINVER"] = "0x0A00" -- DEFINES["_ATL_NO_OPENGL"] = True -- DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True -- DEFINES["_CRT_RAND_S"] = True -- DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True -- DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True -- DEFINES["_HAS_EXCEPTIONS"] = "0" -- DEFINES["_HAS_NODISCARD"] = True -- DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True -- DEFINES["_SECURE_ATL"] = True -- DEFINES["_UNICODE"] = True -- DEFINES["_WIN32_WINNT"] = "0x0A00" -- DEFINES["_WINDOWS"] = True -- DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True -- DEFINES["__STD_C"] = True -+ DEFINES["_DEBUG"] = True - - if CONFIG["TARGET_CPU"] == "aarch64": - -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": - DEFINES["WEBRTC_HAS_NEON"] = True - DEFINES["__ARM_NEON__"] = "1" - --if CONFIG["TARGET_CPU"] == "arm": -- -- DEFINES["WEBRTC_ARCH_ARM"] = True -- DEFINES["WEBRTC_ARCH_ARM_V7"] = True -- DEFINES["WEBRTC_HAS_NEON"] = True -- --if CONFIG["TARGET_CPU"] == "loongarch64": -- -- DEFINES["_GNU_SOURCE"] = True -- - if CONFIG["TARGET_CPU"] == "mips32": - - DEFINES["MIPS32_LE"] = True - DEFINES["MIPS_FPU_LE"] = True -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["TARGET_CPU"] == "mips64": -- -- DEFINES["_GNU_SOURCE"] = True - - if CONFIG["TARGET_CPU"] == "x86": - -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": - - DEFINES["WEBRTC_ENABLE_AVX2"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": -- -- DEFINES["_DEBUG"] = True -- --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": -- -- DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": -- -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": -- -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": -- -- DEFINES["_GNU_SOURCE"] = True -- --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": -- -- DEFINES["_GNU_SOURCE"] = True -- - Library("ecn_marking_gn") diff --git third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build -index 81feecacf14b..f965c58c8b39 100644 +index 6b3882c8e215..28cf9963eb6f 100644 --- third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build +++ third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -86593,13 +93272,17 @@ index 81feecacf14b..f965c58c8b39 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -86614,6 +93297,10 @@ index 81feecacf14b..f965c58c8b39 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -86621,6 +93308,10 @@ index 81feecacf14b..f965c58c8b39 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -86636,6 +93327,10 @@ index 81feecacf14b..f965c58c8b39 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -86648,6 +93343,10 @@ index 81feecacf14b..f965c58c8b39 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -86678,7 +93377,7 @@ index 81feecacf14b..f965c58c8b39 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -86736,10 +93435,10 @@ index 81feecacf14b..f965c58c8b39 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -86750,10 +93449,10 @@ index 81feecacf14b..f965c58c8b39 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -86765,16 +93464,23 @@ index 81feecacf14b..f965c58c8b39 100644 Library("sent_packet_gn") diff --git third_party/libwebrtc/rtc_base/network_constants_gn/moz.build third_party/libwebrtc/rtc_base/network_constants_gn/moz.build -index b70c0869b9f4..cf164b3f193d 100644 +index 64a02b49cd61..1fb29bdbddeb 100644 --- third_party/libwebrtc/rtc_base/network_constants_gn/moz.build +++ third_party/libwebrtc/rtc_base/network_constants_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -86791,13 +93497,17 @@ index b70c0869b9f4..cf164b3f193d 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -86816,6 +93526,10 @@ index b70c0869b9f4..cf164b3f193d 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -86823,6 +93537,10 @@ index b70c0869b9f4..cf164b3f193d 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -86838,6 +93556,10 @@ index b70c0869b9f4..cf164b3f193d 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -86850,6 +93572,10 @@ index b70c0869b9f4..cf164b3f193d 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -86880,7 +93606,7 @@ index b70c0869b9f4..cf164b3f193d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -86967,16 +93693,23 @@ index b70c0869b9f4..cf164b3f193d 100644 Library("network_constants_gn") diff --git third_party/libwebrtc/rtc_base/network_route_gn/moz.build third_party/libwebrtc/rtc_base/network_route_gn/moz.build -index d796c3624894..a888f2abaa37 100644 +index 90b5bcd80497..2a5e0afd12ea 100644 --- third_party/libwebrtc/rtc_base/network_route_gn/moz.build +++ third_party/libwebrtc/rtc_base/network_route_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -86993,13 +93726,17 @@ index d796c3624894..a888f2abaa37 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -87018,6 +93755,10 @@ index d796c3624894..a888f2abaa37 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -87025,6 +93766,10 @@ index d796c3624894..a888f2abaa37 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -87040,6 +93785,10 @@ index d796c3624894..a888f2abaa37 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -87052,6 +93801,10 @@ index d796c3624894..a888f2abaa37 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -87082,7 +93835,7 @@ index d796c3624894..a888f2abaa37 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -87169,16 +93922,23 @@ index d796c3624894..a888f2abaa37 100644 Library("network_route_gn") diff --git third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build -index 383af03f4b8a..ee0e9f2d522c 100644 +index d36a784ba3f9..6da644bc60af 100644 --- third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build +++ third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -87195,13 +93955,17 @@ index 383af03f4b8a..ee0e9f2d522c 100644 FINAL_LIBRARY = "xul" -@@ -47,95 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -87221,6 +93985,10 @@ index 383af03f4b8a..ee0e9f2d522c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -87228,6 +93996,10 @@ index 383af03f4b8a..ee0e9f2d522c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -87243,6 +94015,10 @@ index 383af03f4b8a..ee0e9f2d522c 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -87255,6 +94031,10 @@ index 383af03f4b8a..ee0e9f2d522c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -87292,7 +94072,7 @@ index 383af03f4b8a..ee0e9f2d522c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -87350,10 +94130,10 @@ index 383af03f4b8a..ee0e9f2d522c 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -87364,10 +94144,10 @@ index 383af03f4b8a..ee0e9f2d522c 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -87379,16 +94159,15 @@ index 383af03f4b8a..ee0e9f2d522c 100644 Library("null_socket_server_gn") diff --git third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build -index c1906fd2a387..613d27903932 100644 +index 43975dc4d3dd..054a6b377ce4 100644 --- third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build +++ third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -87405,7 +94184,7 @@ index c1906fd2a387..613d27903932 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -87494,7 +94273,7 @@ index c1906fd2a387..613d27903932 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -87520,7 +94299,7 @@ index c1906fd2a387..613d27903932 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -87562,16 +94341,23 @@ index c1906fd2a387..613d27903932 100644 - Library("one_time_event_gn") diff --git third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build -index 654b0f0b8824..cfd0a2978cdc 100644 +index 2f3cc276bd06..2b3a860c4426 100644 --- third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build +++ third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -87588,13 +94374,17 @@ index 654b0f0b8824..cfd0a2978cdc 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -87613,6 +94403,10 @@ index 654b0f0b8824..cfd0a2978cdc 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -87620,6 +94414,10 @@ index 654b0f0b8824..cfd0a2978cdc 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -87635,6 +94433,10 @@ index 654b0f0b8824..cfd0a2978cdc 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -87647,6 +94449,10 @@ index 654b0f0b8824..cfd0a2978cdc 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -87684,7 +94490,7 @@ index 654b0f0b8824..cfd0a2978cdc 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -87742,10 +94548,10 @@ index 654b0f0b8824..cfd0a2978cdc 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -87756,10 +94562,10 @@ index 654b0f0b8824..cfd0a2978cdc 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -87771,16 +94577,23 @@ index 654b0f0b8824..cfd0a2978cdc 100644 Library("platform_thread_gn") diff --git third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build -index 327f3e200bb8..9242464f3a21 100644 +index 835c1fbf08b6..b38ba39f3d4e 100644 --- third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build +++ third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -87797,13 +94610,17 @@ index 327f3e200bb8..9242464f3a21 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -87822,6 +94639,10 @@ index 327f3e200bb8..9242464f3a21 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -87829,6 +94650,10 @@ index 327f3e200bb8..9242464f3a21 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -87844,6 +94669,10 @@ index 327f3e200bb8..9242464f3a21 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -87856,6 +94685,10 @@ index 327f3e200bb8..9242464f3a21 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -87886,7 +94719,7 @@ index 327f3e200bb8..9242464f3a21 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -87973,16 +94806,15 @@ index 327f3e200bb8..9242464f3a21 100644 Library("platform_thread_types_gn") diff --git third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build -index 0874b5aa6087..61bacf572dab 100644 +index 9067fc0643a5..293ec660b38f 100644 --- third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build +++ third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -87999,7 +94831,7 @@ index 0874b5aa6087..61bacf572dab 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -88084,7 +94916,7 @@ index 0874b5aa6087..61bacf572dab 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -88110,7 +94942,7 @@ index 0874b5aa6087..61bacf572dab 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -88152,16 +94984,23 @@ index 0874b5aa6087..61bacf572dab 100644 - Library("protobuf_utils_gn") diff --git third_party/libwebrtc/rtc_base/race_checker_gn/moz.build third_party/libwebrtc/rtc_base/race_checker_gn/moz.build -index 4fa501393c5a..2977e41f6f93 100644 +index e7748ce732f6..1500b41661b3 100644 --- third_party/libwebrtc/rtc_base/race_checker_gn/moz.build +++ third_party/libwebrtc/rtc_base/race_checker_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -88178,13 +95017,17 @@ index 4fa501393c5a..2977e41f6f93 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -88203,6 +95046,10 @@ index 4fa501393c5a..2977e41f6f93 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -88210,6 +95057,10 @@ index 4fa501393c5a..2977e41f6f93 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -88225,6 +95076,10 @@ index 4fa501393c5a..2977e41f6f93 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -88237,6 +95092,10 @@ index 4fa501393c5a..2977e41f6f93 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -88267,7 +95126,7 @@ index 4fa501393c5a..2977e41f6f93 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -88354,16 +95213,23 @@ index 4fa501393c5a..2977e41f6f93 100644 Library("race_checker_gn") diff --git third_party/libwebrtc/rtc_base/random_gn/moz.build third_party/libwebrtc/rtc_base/random_gn/moz.build -index 42e9f4292969..ef9dd3cd001a 100644 +index 7c69b2b2baca..a7a696a78544 100644 --- third_party/libwebrtc/rtc_base/random_gn/moz.build +++ third_party/libwebrtc/rtc_base/random_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -88380,13 +95246,17 @@ index 42e9f4292969..ef9dd3cd001a 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -88405,6 +95275,10 @@ index 42e9f4292969..ef9dd3cd001a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -88412,6 +95286,10 @@ index 42e9f4292969..ef9dd3cd001a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -88427,6 +95305,10 @@ index 42e9f4292969..ef9dd3cd001a 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -88439,6 +95321,10 @@ index 42e9f4292969..ef9dd3cd001a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -88469,7 +95355,7 @@ index 42e9f4292969..ef9dd3cd001a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -88556,16 +95442,23 @@ index 42e9f4292969..ef9dd3cd001a 100644 Library("random_gn") diff --git third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build -index 608a490989a2..5b3d0be997df 100644 +index 999ecfa5ee3a..da43fa0b57f5 100644 --- third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build +++ third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -88582,13 +95475,17 @@ index 608a490989a2..5b3d0be997df 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -88607,6 +95504,10 @@ index 608a490989a2..5b3d0be997df 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -88614,6 +95515,10 @@ index 608a490989a2..5b3d0be997df 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -88627,12 +95532,12 @@ index 608a490989a2..5b3d0be997df 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -88645,6 +95550,10 @@ index 608a490989a2..5b3d0be997df 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -88682,7 +95591,7 @@ index 608a490989a2..5b3d0be997df 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -88740,10 +95649,10 @@ index 608a490989a2..5b3d0be997df 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -88754,10 +95663,10 @@ index 608a490989a2..5b3d0be997df 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -88769,16 +95678,23 @@ index 608a490989a2..5b3d0be997df 100644 Library("rate_limiter_gn") diff --git third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build -index 54839db68ac0..792d09980705 100644 +index 42f252ca7732..18ff4d3a3f9e 100644 --- third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build +++ third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -88795,13 +95711,17 @@ index 54839db68ac0..792d09980705 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -88820,6 +95740,10 @@ index 54839db68ac0..792d09980705 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -88827,6 +95751,10 @@ index 54839db68ac0..792d09980705 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -88842,6 +95770,10 @@ index 54839db68ac0..792d09980705 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -88854,6 +95786,10 @@ index 54839db68ac0..792d09980705 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -88891,7 +95827,7 @@ index 54839db68ac0..792d09980705 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -88949,10 +95885,10 @@ index 54839db68ac0..792d09980705 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -88963,10 +95899,10 @@ index 54839db68ac0..792d09980705 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -88978,16 +95914,23 @@ index 54839db68ac0..792d09980705 100644 Library("rate_statistics_gn") diff --git third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build -index e10833b0a989..b1a63691df31 100644 +index 4634400c423d..5b89c75b3058 100644 --- third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build +++ third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -89004,13 +95947,17 @@ index e10833b0a989..b1a63691df31 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -89029,6 +95976,10 @@ index e10833b0a989..b1a63691df31 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -89036,6 +95987,10 @@ index e10833b0a989..b1a63691df31 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -89051,6 +96006,10 @@ index e10833b0a989..b1a63691df31 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -89063,6 +96022,10 @@ index e10833b0a989..b1a63691df31 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -89100,7 +96063,7 @@ index e10833b0a989..b1a63691df31 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -89158,10 +96121,10 @@ index e10833b0a989..b1a63691df31 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -89172,10 +96135,10 @@ index e10833b0a989..b1a63691df31 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -89187,16 +96150,15 @@ index e10833b0a989..b1a63691df31 100644 Library("rate_tracker_gn") diff --git third_party/libwebrtc/rtc_base/refcount_gn/moz.build third_party/libwebrtc/rtc_base/refcount_gn/moz.build -index 30cfbb15baee..0df4a80a7319 100644 +index 2ec4b4c993a9..08ec8bc2590a 100644 --- third_party/libwebrtc/rtc_base/refcount_gn/moz.build +++ third_party/libwebrtc/rtc_base/refcount_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -89213,7 +96175,7 @@ index 30cfbb15baee..0df4a80a7319 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -89298,7 +96260,7 @@ index 30cfbb15baee..0df4a80a7319 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -89324,7 +96286,7 @@ index 30cfbb15baee..0df4a80a7319 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -89366,16 +96328,15 @@ index 30cfbb15baee..0df4a80a7319 100644 - Library("refcount_gn") diff --git third_party/libwebrtc/rtc_base/rolling_accumulator_gn/moz.build third_party/libwebrtc/rtc_base/rolling_accumulator_gn/moz.build -index e3c38a7a8821..3602d93b1ca4 100644 +index 71eaf72b7101..c3f335cd189d 100644 --- third_party/libwebrtc/rtc_base/rolling_accumulator_gn/moz.build +++ third_party/libwebrtc/rtc_base/rolling_accumulator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -89392,7 +96353,7 @@ index e3c38a7a8821..3602d93b1ca4 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -89481,7 +96442,7 @@ index e3c38a7a8821..3602d93b1ca4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -89507,7 +96468,7 @@ index e3c38a7a8821..3602d93b1ca4 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -89549,16 +96510,23 @@ index e3c38a7a8821..3602d93b1ca4 100644 - Library("rolling_accumulator_gn") diff --git third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build -index 77e3de024fa1..cf21e61558bb 100644 +index 12fadc1f9a42..e514f45c4c65 100644 --- third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build +++ third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -89575,13 +96543,17 @@ index 77e3de024fa1..cf21e61558bb 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -89600,6 +96572,10 @@ index 77e3de024fa1..cf21e61558bb 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -89607,6 +96583,10 @@ index 77e3de024fa1..cf21e61558bb 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -89622,6 +96602,10 @@ index 77e3de024fa1..cf21e61558bb 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -89634,6 +96618,10 @@ index 77e3de024fa1..cf21e61558bb 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -89660,18 +96648,11 @@ index 77e3de024fa1..cf21e61558bb 100644 - DEFINES["_WINDOWS"] = True - DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True - DEFINES["__STD_C"] = True -- -- OS_LIBS += [ -- "crypt32", -- "iphlpapi", -- "secur32", -- "winmm" -- ] + DEFINES["_DEBUG"] = True if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -89758,16 +96739,23 @@ index 77e3de024fa1..cf21e61558bb 100644 Library("rtc_event_gn") diff --git third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build -index 0687c3138dae..8d218bfe7cff 100644 +index c720119a5c89..15f92340b6dc 100644 --- third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build +++ third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -89784,13 +96772,17 @@ index 0687c3138dae..8d218bfe7cff 100644 FINAL_LIBRARY = "xul" -@@ -49,87 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,107 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -89809,6 +96801,10 @@ index 0687c3138dae..8d218bfe7cff 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -89816,6 +96812,10 @@ index 0687c3138dae..8d218bfe7cff 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -89831,6 +96831,10 @@ index 0687c3138dae..8d218bfe7cff 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -89843,6 +96847,10 @@ index 0687c3138dae..8d218bfe7cff 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -89873,7 +96881,7 @@ index 0687c3138dae..8d218bfe7cff 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -137,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -156,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -89960,16 +96968,23 @@ index 0687c3138dae..8d218bfe7cff 100644 Library("rtc_numerics_gn") diff --git third_party/libwebrtc/rtc_base/rtp_to_ntp_estimator_gn/moz.build third_party/libwebrtc/rtc_base/rtp_to_ntp_estimator_gn/moz.build -index f1b154f22252..55a35cb2bd5f 100644 +index e0671e93a97e..4a51313a1e7c 100644 --- third_party/libwebrtc/rtc_base/rtp_to_ntp_estimator_gn/moz.build +++ third_party/libwebrtc/rtc_base/rtp_to_ntp_estimator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -89986,13 +97001,17 @@ index f1b154f22252..55a35cb2bd5f 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -90011,6 +97030,10 @@ index f1b154f22252..55a35cb2bd5f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -90018,6 +97041,10 @@ index f1b154f22252..55a35cb2bd5f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -90031,12 +97058,12 @@ index f1b154f22252..55a35cb2bd5f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -90049,6 +97076,10 @@ index f1b154f22252..55a35cb2bd5f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -90086,7 +97117,7 @@ index f1b154f22252..55a35cb2bd5f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -90144,10 +97175,10 @@ index f1b154f22252..55a35cb2bd5f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -90158,10 +97189,10 @@ index f1b154f22252..55a35cb2bd5f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -90173,16 +97204,15 @@ index f1b154f22252..55a35cb2bd5f 100644 Library("rtp_to_ntp_estimator_gn") diff --git third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build -index c93abdb78469..bf32218de21a 100644 +index 8412e5d46abd..3d944f71708e 100644 --- third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build +++ third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -90199,7 +97229,7 @@ index c93abdb78469..bf32218de21a 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -90284,7 +97314,7 @@ index c93abdb78469..bf32218de21a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -90310,7 +97340,7 @@ index c93abdb78469..bf32218de21a 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -90352,16 +97382,15 @@ index c93abdb78469..bf32218de21a 100644 - Library("safe_compare_gn") diff --git third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build -index d7da28fb1f85..22a7237ba07d 100644 +index b9b5685168cd..6e907c03078e 100644 --- third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build +++ third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -90378,7 +97407,7 @@ index d7da28fb1f85..22a7237ba07d 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -90467,7 +97496,7 @@ index d7da28fb1f85..22a7237ba07d 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -90493,7 +97522,7 @@ index d7da28fb1f85..22a7237ba07d 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -90535,16 +97564,15 @@ index d7da28fb1f85..22a7237ba07d 100644 - Library("safe_conversions_gn") diff --git third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build -index 961f0bd72b1e..c576316e0fe9 100644 +index 9e7f9b007a04..4387f10d4765 100644 --- third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build +++ third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -90561,7 +97589,7 @@ index 961f0bd72b1e..c576316e0fe9 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -90650,7 +97678,7 @@ index 961f0bd72b1e..c576316e0fe9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -90676,7 +97704,7 @@ index 961f0bd72b1e..c576316e0fe9 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -90718,16 +97746,23 @@ index 961f0bd72b1e..c576316e0fe9 100644 - Library("safe_minmax_gn") diff --git third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build -index f6caca40a372..df2f524baf2b 100644 +index 6ebef4d853b2..7f44a48ec748 100644 --- third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build +++ third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -90744,13 +97779,17 @@ index f6caca40a372..df2f524baf2b 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -90769,6 +97808,10 @@ index f6caca40a372..df2f524baf2b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -90776,6 +97819,10 @@ index f6caca40a372..df2f524baf2b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -90791,6 +97838,10 @@ index f6caca40a372..df2f524baf2b 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -90803,6 +97854,10 @@ index f6caca40a372..df2f524baf2b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -90833,7 +97888,7 @@ index f6caca40a372..df2f524baf2b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -90920,16 +97975,15 @@ index f6caca40a372..df2f524baf2b 100644 Library("sample_counter_gn") diff --git third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build -index cbc6c4ce08a5..8a6f2ff9cdfe 100644 +index ff05e2ced54e..635fdb7ef8cb 100644 --- third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build +++ third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -90946,7 +98000,7 @@ index cbc6c4ce08a5..8a6f2ff9cdfe 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -91031,7 +98085,7 @@ index cbc6c4ce08a5..8a6f2ff9cdfe 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -91057,7 +98111,7 @@ index cbc6c4ce08a5..8a6f2ff9cdfe 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -91099,16 +98153,23 @@ index cbc6c4ce08a5..8a6f2ff9cdfe 100644 - Library("sanitizer_gn") diff --git third_party/libwebrtc/rtc_base/socket_address_gn/moz.build third_party/libwebrtc/rtc_base/socket_address_gn/moz.build -index da0d411790df..3b7abf48ec23 100644 +index 4e7011e90027..b217d69de204 100644 --- third_party/libwebrtc/rtc_base/socket_address_gn/moz.build +++ third_party/libwebrtc/rtc_base/socket_address_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -91125,13 +98186,17 @@ index da0d411790df..3b7abf48ec23 100644 FINAL_LIBRARY = "xul" -@@ -47,95 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -91151,6 +98216,10 @@ index da0d411790df..3b7abf48ec23 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -91158,6 +98227,10 @@ index da0d411790df..3b7abf48ec23 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -91173,6 +98246,10 @@ index da0d411790df..3b7abf48ec23 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -91185,6 +98262,10 @@ index da0d411790df..3b7abf48ec23 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -91222,7 +98303,7 @@ index da0d411790df..3b7abf48ec23 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -91280,10 +98361,10 @@ index da0d411790df..3b7abf48ec23 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -91294,10 +98375,10 @@ index da0d411790df..3b7abf48ec23 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -91309,16 +98390,15 @@ index da0d411790df..3b7abf48ec23 100644 Library("socket_address_gn") diff --git third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build -index dc7939c48277..b236be3572d2 100644 +index d5451f5fa8df..18a7964355d5 100644 --- third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build +++ third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -91335,7 +98415,7 @@ index dc7939c48277..b236be3572d2 100644 FINAL_LIBRARY = "xul" -@@ -43,95 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -91432,7 +98512,7 @@ index dc7939c48277..b236be3572d2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -139,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -91458,7 +98538,7 @@ index dc7939c48277..b236be3572d2 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -167,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -91500,16 +98580,23 @@ index dc7939c48277..b236be3572d2 100644 - Library("socket_factory_gn") diff --git third_party/libwebrtc/rtc_base/socket_gn/moz.build third_party/libwebrtc/rtc_base/socket_gn/moz.build -index 06b5a4bcb3ff..fcbb385f314f 100644 +index 389d1784c6a7..1b424e8ed744 100644 --- third_party/libwebrtc/rtc_base/socket_gn/moz.build +++ third_party/libwebrtc/rtc_base/socket_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -91526,13 +98613,17 @@ index 06b5a4bcb3ff..fcbb385f314f 100644 FINAL_LIBRARY = "xul" -@@ -47,95 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -91552,6 +98643,10 @@ index 06b5a4bcb3ff..fcbb385f314f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -91559,6 +98654,10 @@ index 06b5a4bcb3ff..fcbb385f314f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -91574,6 +98673,10 @@ index 06b5a4bcb3ff..fcbb385f314f 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -91586,6 +98689,10 @@ index 06b5a4bcb3ff..fcbb385f314f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -91623,7 +98730,7 @@ index 06b5a4bcb3ff..fcbb385f314f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -91681,10 +98788,10 @@ index 06b5a4bcb3ff..fcbb385f314f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -91695,10 +98802,10 @@ index 06b5a4bcb3ff..fcbb385f314f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -91710,16 +98817,15 @@ index 06b5a4bcb3ff..fcbb385f314f 100644 Library("socket_gn") diff --git third_party/libwebrtc/rtc_base/socket_server_gn/moz.build third_party/libwebrtc/rtc_base/socket_server_gn/moz.build -index 03f2f995636c..292d7dcb64ff 100644 +index 4ca8dd7726b9..44180730ad13 100644 --- third_party/libwebrtc/rtc_base/socket_server_gn/moz.build +++ third_party/libwebrtc/rtc_base/socket_server_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -91736,7 +98842,7 @@ index 03f2f995636c..292d7dcb64ff 100644 FINAL_LIBRARY = "xul" -@@ -43,95 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -91833,7 +98939,7 @@ index 03f2f995636c..292d7dcb64ff 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -139,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -91859,7 +98965,7 @@ index 03f2f995636c..292d7dcb64ff 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -167,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -91901,16 +99007,15 @@ index 03f2f995636c..292d7dcb64ff 100644 - Library("socket_server_gn") diff --git third_party/libwebrtc/rtc_base/ssl_adapter_gn/moz.build third_party/libwebrtc/rtc_base/ssl_adapter_gn/moz.build -index 2b58594242fa..cd78bce2c8a5 100644 +index 15aad07e729f..21e14c44e232 100644 --- third_party/libwebrtc/rtc_base/ssl_adapter_gn/moz.build +++ third_party/libwebrtc/rtc_base/ssl_adapter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -91927,7 +99032,7 @@ index 2b58594242fa..cd78bce2c8a5 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -92012,7 +99117,7 @@ index 2b58594242fa..cd78bce2c8a5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -92038,7 +99143,7 @@ index 2b58594242fa..cd78bce2c8a5 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -92080,16 +99185,23 @@ index 2b58594242fa..cd78bce2c8a5 100644 - Library("ssl_adapter_gn") diff --git third_party/libwebrtc/rtc_base/stringutils_gn/moz.build third_party/libwebrtc/rtc_base/stringutils_gn/moz.build -index ae515ab20433..d01938625840 100644 +index 9894df29155b..2a11ffc34329 100644 --- third_party/libwebrtc/rtc_base/stringutils_gn/moz.build +++ third_party/libwebrtc/rtc_base/stringutils_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -92106,13 +99218,17 @@ index ae515ab20433..d01938625840 100644 FINAL_LIBRARY = "xul" -@@ -51,87 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -50,107 +63,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -92131,6 +99247,10 @@ index ae515ab20433..d01938625840 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -92138,6 +99258,10 @@ index ae515ab20433..d01938625840 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -92153,6 +99277,10 @@ index ae515ab20433..d01938625840 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -92165,6 +99293,10 @@ index ae515ab20433..d01938625840 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -92195,7 +99327,7 @@ index ae515ab20433..d01938625840 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -139,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -158,82 +71,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -92282,16 +99414,15 @@ index ae515ab20433..d01938625840 100644 Library("stringutils_gn") diff --git third_party/libwebrtc/rtc_base/strong_alias_gn/moz.build third_party/libwebrtc/rtc_base/strong_alias_gn/moz.build -index ec3c56c17bfa..f64d83cc69ff 100644 +index a3f31a7a6fdf..8c09540fd98d 100644 --- third_party/libwebrtc/rtc_base/strong_alias_gn/moz.build +++ third_party/libwebrtc/rtc_base/strong_alias_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -92308,7 +99439,7 @@ index ec3c56c17bfa..f64d83cc69ff 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -92393,7 +99524,7 @@ index ec3c56c17bfa..f64d83cc69ff 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -92419,7 +99550,7 @@ index ec3c56c17bfa..f64d83cc69ff 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -92461,16 +99592,15 @@ index ec3c56c17bfa..f64d83cc69ff 100644 - Library("strong_alias_gn") diff --git third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build -index ba1dd17ad663..d4b79355709b 100644 +index 725c011556d5..0870b6d3f753 100644 --- third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build +++ third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -92487,7 +99617,7 @@ index ba1dd17ad663..d4b79355709b 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -92576,7 +99706,7 @@ index ba1dd17ad663..d4b79355709b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -92602,7 +99732,7 @@ index ba1dd17ad663..d4b79355709b 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -92644,16 +99774,15 @@ index ba1dd17ad663..d4b79355709b 100644 - Library("swap_queue_gn") diff --git third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build -index a88a968ac205..1fb7f52e323f 100644 +index d37b0d0d971d..d83739dcb266 100644 --- third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build +++ third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -92670,7 +99799,7 @@ index a88a968ac205..1fb7f52e323f 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -92759,7 +99888,7 @@ index a88a968ac205..1fb7f52e323f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -92785,7 +99914,7 @@ index a88a968ac205..1fb7f52e323f 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -92827,16 +99956,23 @@ index a88a968ac205..1fb7f52e323f 100644 - Library("mutex_gn") diff --git third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build -index 167271deeb95..25fe0919eb51 100644 +index 54de498e463f..abb84d91436b 100644 --- third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build +++ third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -92853,13 +99989,17 @@ index 167271deeb95..25fe0919eb51 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -92878,6 +100018,10 @@ index 167271deeb95..25fe0919eb51 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -92885,6 +100029,10 @@ index 167271deeb95..25fe0919eb51 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -92900,6 +100048,10 @@ index 167271deeb95..25fe0919eb51 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -92912,6 +100064,10 @@ index 167271deeb95..25fe0919eb51 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -92942,7 +100098,7 @@ index 167271deeb95..25fe0919eb51 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -93029,16 +100185,23 @@ index 167271deeb95..25fe0919eb51 100644 Library("sequence_checker_internal_gn") diff --git third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build -index 567da5f0b74b..799b8997d401 100644 +index 5131b384449d..5ef7f00d6d94 100644 --- third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build +++ third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -93055,13 +100218,17 @@ index 567da5f0b74b..799b8997d401 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -93076,6 +100243,10 @@ index 567da5f0b74b..799b8997d401 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -93083,6 +100254,10 @@ index 567da5f0b74b..799b8997d401 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -93098,6 +100273,10 @@ index 567da5f0b74b..799b8997d401 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -93110,6 +100289,10 @@ index 567da5f0b74b..799b8997d401 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -93140,7 +100323,7 @@ index 567da5f0b74b..799b8997d401 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -93198,10 +100381,10 @@ index 567da5f0b74b..799b8997d401 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -93212,10 +100395,10 @@ index 567da5f0b74b..799b8997d401 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -93227,16 +100410,23 @@ index 567da5f0b74b..799b8997d401 100644 Library("yield_gn") diff --git third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build -index acf6a98373b7..04ae98653c29 100644 +index 5fb11b5a4bb7..029670a84ab9 100644 --- third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build +++ third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -93253,13 +100443,17 @@ index acf6a98373b7..04ae98653c29 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -93278,6 +100472,10 @@ index acf6a98373b7..04ae98653c29 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -93285,6 +100483,10 @@ index acf6a98373b7..04ae98653c29 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -93300,6 +100502,10 @@ index acf6a98373b7..04ae98653c29 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -93312,6 +100518,10 @@ index acf6a98373b7..04ae98653c29 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -93342,7 +100552,7 @@ index acf6a98373b7..04ae98653c29 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -93429,16 +100639,15 @@ index acf6a98373b7..04ae98653c29 100644 Library("yield_policy_gn") diff --git third_party/libwebrtc/rtc_base/system/arch_gn/moz.build third_party/libwebrtc/rtc_base/system/arch_gn/moz.build -index 1cb62e0945fa..088ea5019886 100644 +index ba6494df25bc..eb72cb65f99a 100644 --- third_party/libwebrtc/rtc_base/system/arch_gn/moz.build +++ third_party/libwebrtc/rtc_base/system/arch_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -93455,7 +100664,7 @@ index 1cb62e0945fa..088ea5019886 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -93540,7 +100749,7 @@ index 1cb62e0945fa..088ea5019886 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -93566,7 +100775,7 @@ index 1cb62e0945fa..088ea5019886 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -93609,10 +100818,10 @@ index 1cb62e0945fa..088ea5019886 100644 Library("arch_gn") diff --git third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build deleted file mode 100644 -index 126fc5a4138d..000000000000 +index 089c08ecf102..000000000000 --- third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build +++ /dev/null -@@ -1,76 +0,0 @@ +@@ -1,75 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -93628,7 +100837,6 @@ index 126fc5a4138d..000000000000 -DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" -DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True -DEFINES["RTC_ENABLE_VP9"] = True --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ARCH_ARM"] = True -DEFINES["WEBRTC_ARCH_ARM_V7"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" @@ -93691,10 +100899,10 @@ index 126fc5a4138d..000000000000 -Library("asm_defines_gn") diff --git third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build deleted file mode 100644 -index 6ee1d92a09ab..000000000000 +index 1da48987d8c3..000000000000 --- third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build +++ /dev/null -@@ -1,70 +0,0 @@ +@@ -1,69 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -93714,7 +100922,6 @@ index 6ee1d92a09ab..000000000000 -DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" -DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True -DEFINES["RTC_ENABLE_VP9"] = True --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MAC"] = True @@ -93766,16 +100973,23 @@ index 6ee1d92a09ab..000000000000 - -Library("cocoa_threading_gn") diff --git third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build -index 2e3930335f16..e81233b291f3 100644 +index 2e4e1d69d436..44faa970f9fa 100644 --- third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build +++ third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -93792,13 +101006,17 @@ index 2e3930335f16..e81233b291f3 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -93817,6 +101035,10 @@ index 2e3930335f16..e81233b291f3 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -93824,6 +101046,10 @@ index 2e3930335f16..e81233b291f3 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -93839,6 +101065,10 @@ index 2e3930335f16..e81233b291f3 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -93851,6 +101081,10 @@ index 2e3930335f16..e81233b291f3 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -93881,7 +101115,7 @@ index 2e3930335f16..e81233b291f3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -93969,10 +101203,10 @@ index 2e3930335f16..e81233b291f3 100644 Library("file_wrapper_gn") diff --git third_party/libwebrtc/rtc_base/system/gcd_helpers_gn/moz.build third_party/libwebrtc/rtc_base/system/gcd_helpers_gn/moz.build deleted file mode 100644 -index 0b5b9cc3e28c..000000000000 +index 6f7acfe97c19..000000000000 --- third_party/libwebrtc/rtc_base/system/gcd_helpers_gn/moz.build +++ /dev/null -@@ -1,70 +0,0 @@ +@@ -1,69 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -93992,7 +101226,6 @@ index 0b5b9cc3e28c..000000000000 -DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" -DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True -DEFINES["RTC_ENABLE_VP9"] = True --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MAC"] = True @@ -94044,16 +101277,15 @@ index 0b5b9cc3e28c..000000000000 - -Library("gcd_helpers_gn") diff --git third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build -index cdb4a308314f..d8e5d7bb1406 100644 +index a631f13a179d..0d1fb75179ef 100644 --- third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build +++ third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -94070,7 +101302,7 @@ index cdb4a308314f..d8e5d7bb1406 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -94155,7 +101387,7 @@ index cdb4a308314f..d8e5d7bb1406 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -94181,7 +101413,7 @@ index cdb4a308314f..d8e5d7bb1406 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -94223,16 +101455,15 @@ index cdb4a308314f..d8e5d7bb1406 100644 - Library("ignore_warnings_gn") diff --git third_party/libwebrtc/rtc_base/system/inline_gn/moz.build third_party/libwebrtc/rtc_base/system/inline_gn/moz.build -index fadc0174478c..aff95da60bae 100644 +index fed5d2d9dd25..e918460b84fe 100644 --- third_party/libwebrtc/rtc_base/system/inline_gn/moz.build +++ third_party/libwebrtc/rtc_base/system/inline_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -94249,7 +101480,7 @@ index fadc0174478c..aff95da60bae 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -94334,7 +101565,7 @@ index fadc0174478c..aff95da60bae 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -94360,7 +101591,7 @@ index fadc0174478c..aff95da60bae 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -94402,16 +101633,15 @@ index fadc0174478c..aff95da60bae 100644 - Library("inline_gn") diff --git third_party/libwebrtc/rtc_base/system/no_unique_address_gn/moz.build third_party/libwebrtc/rtc_base/system/no_unique_address_gn/moz.build -index 34a3fd2104aa..e4c2efe044e1 100644 +index ac54e7b6810d..176b44667775 100644 --- third_party/libwebrtc/rtc_base/system/no_unique_address_gn/moz.build +++ third_party/libwebrtc/rtc_base/system/no_unique_address_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -94428,7 +101658,7 @@ index 34a3fd2104aa..e4c2efe044e1 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -94513,7 +101743,7 @@ index 34a3fd2104aa..e4c2efe044e1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -94539,7 +101769,7 @@ index 34a3fd2104aa..e4c2efe044e1 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -94581,16 +101811,15 @@ index 34a3fd2104aa..e4c2efe044e1 100644 - Library("no_unique_address_gn") diff --git third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build -index 52f34ff2cfbf..d7a1041a40b2 100644 +index 28109964edf2..be0f987a9fa0 100644 --- third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build +++ third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -94607,7 +101836,7 @@ index 52f34ff2cfbf..d7a1041a40b2 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -94692,7 +101921,7 @@ index 52f34ff2cfbf..d7a1041a40b2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -94718,7 +101947,7 @@ index 52f34ff2cfbf..d7a1041a40b2 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -94760,16 +101989,15 @@ index 52f34ff2cfbf..d7a1041a40b2 100644 - Library("rtc_export_gn") diff --git third_party/libwebrtc/rtc_base/system/unused_gn/moz.build third_party/libwebrtc/rtc_base/system/unused_gn/moz.build -index 9e46eebe6af2..a889d722dbf6 100644 +index fc470fbc0fb4..5deb07a2a80a 100644 --- third_party/libwebrtc/rtc_base/system/unused_gn/moz.build +++ third_party/libwebrtc/rtc_base/system/unused_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -94786,7 +102014,7 @@ index 9e46eebe6af2..a889d722dbf6 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -94871,7 +102099,7 @@ index 9e46eebe6af2..a889d722dbf6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -94897,7 +102125,7 @@ index 9e46eebe6af2..a889d722dbf6 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -94939,16 +102167,15 @@ index 9e46eebe6af2..a889d722dbf6 100644 - Library("unused_gn") diff --git third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build -index 7fc9b68c3766..114a58d422aa 100644 +index 2d2eeaea1294..0acf53f14d5e 100644 --- third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build +++ third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -94965,7 +102192,7 @@ index 7fc9b68c3766..114a58d422aa 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -95050,7 +102277,7 @@ index 7fc9b68c3766..114a58d422aa 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -95076,7 +102303,7 @@ index 7fc9b68c3766..114a58d422aa 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -95118,16 +102345,23 @@ index 7fc9b68c3766..114a58d422aa 100644 - Library("warn_current_thread_is_deadlocked_gn") diff --git third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build -index 74f32de32c41..c3c83a3b5dac 100644 +index 6968afccd46e..8dcf86ee10b7 100644 --- third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build +++ third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -95144,13 +102378,17 @@ index 74f32de32c41..c3c83a3b5dac 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -95169,6 +102407,10 @@ index 74f32de32c41..c3c83a3b5dac 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -95176,6 +102418,10 @@ index 74f32de32c41..c3c83a3b5dac 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -95189,12 +102435,12 @@ index 74f32de32c41..c3c83a3b5dac 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -95207,6 +102453,10 @@ index 74f32de32c41..c3c83a3b5dac 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -95244,7 +102494,7 @@ index 74f32de32c41..c3c83a3b5dac 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -95302,10 +102552,10 @@ index 74f32de32c41..c3c83a3b5dac 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -95316,10 +102566,10 @@ index 74f32de32c41..c3c83a3b5dac 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -95331,16 +102581,23 @@ index 74f32de32c41..c3c83a3b5dac 100644 Library("repeating_task_gn") diff --git third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build -index 98cc1865d964..9b13ea8cac90 100644 +index 16b9830a183a..b42f955e4115 100644 --- third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build +++ third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -95357,13 +102614,17 @@ index 98cc1865d964..9b13ea8cac90 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -95378,6 +102639,10 @@ index 98cc1865d964..9b13ea8cac90 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -95385,6 +102650,10 @@ index 98cc1865d964..9b13ea8cac90 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -95400,6 +102669,10 @@ index 98cc1865d964..9b13ea8cac90 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -95412,6 +102685,10 @@ index 98cc1865d964..9b13ea8cac90 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -95442,7 +102719,7 @@ index 98cc1865d964..9b13ea8cac90 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -95500,10 +102777,10 @@ index 98cc1865d964..9b13ea8cac90 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -95514,10 +102791,10 @@ index 98cc1865d964..9b13ea8cac90 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -95529,16 +102806,23 @@ index 98cc1865d964..9b13ea8cac90 100644 Library("sigslot_gn") diff --git third_party/libwebrtc/rtc_base/threading_gn/moz.build third_party/libwebrtc/rtc_base/threading_gn/moz.build -index 8ff81d5ef745..95b3fecb47ac 100644 +index d168d3a09470..98b262c45bf9 100644 --- third_party/libwebrtc/rtc_base/threading_gn/moz.build +++ third_party/libwebrtc/rtc_base/threading_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -95555,13 +102839,17 @@ index 8ff81d5ef745..95b3fecb47ac 100644 FINAL_LIBRARY = "xul" -@@ -50,111 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -49,131 +62,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -95585,6 +102873,10 @@ index 8ff81d5ef745..95b3fecb47ac 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -95596,6 +102888,10 @@ index 8ff81d5ef745..95b3fecb47ac 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -95615,6 +102911,10 @@ index 8ff81d5ef745..95b3fecb47ac 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -95627,6 +102927,10 @@ index 8ff81d5ef745..95b3fecb47ac 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -95668,7 +102972,7 @@ index 8ff81d5ef745..95b3fecb47ac 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -181,82 +70,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -95755,16 +103059,23 @@ index 8ff81d5ef745..95b3fecb47ac 100644 Library("threading_gn") diff --git third_party/libwebrtc/rtc_base/timeutils_gn/moz.build third_party/libwebrtc/rtc_base/timeutils_gn/moz.build -index 3db91db313c7..795267fa1e69 100644 +index a4a5f263e03c..a9960db995e8 100644 --- third_party/libwebrtc/rtc_base/timeutils_gn/moz.build +++ third_party/libwebrtc/rtc_base/timeutils_gn/moz.build -@@ -13,14 +13,23 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,17 +9,30 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_EXCLUDE_SYSTEM_TIME"] = True @@ -95782,13 +103093,17 @@ index 3db91db313c7..795267fa1e69 100644 FINAL_LIBRARY = "xul" -@@ -49,94 +58,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -48,114 +61,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -95807,6 +103122,10 @@ index 3db91db313c7..795267fa1e69 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -95814,6 +103133,10 @@ index 3db91db313c7..795267fa1e69 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -95829,6 +103152,10 @@ index 3db91db313c7..795267fa1e69 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -95841,6 +103168,10 @@ index 3db91db313c7..795267fa1e69 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -95878,7 +103209,7 @@ index 3db91db313c7..795267fa1e69 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -144,82 +66,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +69,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -95936,10 +103267,10 @@ index 3db91db313c7..795267fa1e69 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -95950,10 +103281,10 @@ index 3db91db313c7..795267fa1e69 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -95965,16 +103296,15 @@ index 3db91db313c7..795267fa1e69 100644 Library("timeutils_gn") diff --git third_party/libwebrtc/rtc_base/type_traits_gn/moz.build third_party/libwebrtc/rtc_base/type_traits_gn/moz.build -index eb3c2f943e59..07203a214025 100644 +index ea897f3b3845..11ce35fdc349 100644 --- third_party/libwebrtc/rtc_base/type_traits_gn/moz.build +++ third_party/libwebrtc/rtc_base/type_traits_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -95991,7 +103321,7 @@ index eb3c2f943e59..07203a214025 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -96076,7 +103406,7 @@ index eb3c2f943e59..07203a214025 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -96102,7 +103432,7 @@ index eb3c2f943e59..07203a214025 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -96144,16 +103474,15 @@ index eb3c2f943e59..07203a214025 100644 - Library("type_traits_gn") diff --git third_party/libwebrtc/rtc_base/unique_id_generator_gn/moz.build third_party/libwebrtc/rtc_base/unique_id_generator_gn/moz.build -index bb19302007e0..736d9c19b851 100644 +index 621fccf9d167..9cda58f5bf98 100644 --- third_party/libwebrtc/rtc_base/unique_id_generator_gn/moz.build +++ third_party/libwebrtc/rtc_base/unique_id_generator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -96170,7 +103499,7 @@ index bb19302007e0..736d9c19b851 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -96255,7 +103584,7 @@ index bb19302007e0..736d9c19b851 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -96281,7 +103610,7 @@ index bb19302007e0..736d9c19b851 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -96323,16 +103652,15 @@ index bb19302007e0..736d9c19b851 100644 - Library("unique_id_generator_gn") diff --git third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build -index b55576d4555f..20374a951217 100644 +index da71deee59ac..7942ee7a0e00 100644 --- third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build +++ third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -96349,7 +103677,7 @@ index b55576d4555f..20374a951217 100644 FINAL_LIBRARY = "xul" -@@ -43,87 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,87 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -96438,7 +103766,7 @@ index b55576d4555f..20374a951217 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -130,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -96464,7 +103792,7 @@ index b55576d4555f..20374a951217 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -159,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -158,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -96506,16 +103834,23 @@ index b55576d4555f..20374a951217 100644 - Library("unit_base_gn") diff --git third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build -index 2b3c126e49ab..3d606013c213 100644 +index 1e0c3cb0a7a5..a68f8eae3284 100644 --- third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build +++ third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -96532,13 +103867,17 @@ index 2b3c126e49ab..3d606013c213 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -96557,6 +103896,10 @@ index 2b3c126e49ab..3d606013c213 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -96564,6 +103907,10 @@ index 2b3c126e49ab..3d606013c213 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -96579,6 +103926,10 @@ index 2b3c126e49ab..3d606013c213 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -96591,6 +103942,10 @@ index 2b3c126e49ab..3d606013c213 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -96621,7 +103976,7 @@ index 2b3c126e49ab..3d606013c213 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -96709,10 +104064,10 @@ index 2b3c126e49ab..3d606013c213 100644 Library("weak_ptr_gn") diff --git third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn/moz.build third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn/moz.build deleted file mode 100644 -index 4c5be7cc813d..000000000000 +index cd55c0c4b4b9..000000000000 --- third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn/moz.build +++ /dev/null -@@ -1,92 +0,0 @@ +@@ -1,95 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -96724,6 +104079,10 @@ index 4c5be7cc813d..000000000000 -COMPILE_FLAGS["OS_INCLUDES"] = [] -AllowCompilerWarnings() - +-CXXFLAGS += [ +- "-std:c++20" +-] +- -DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" -DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True -DEFINES["NOMINMAX"] = True @@ -96735,7 +104094,6 @@ index 4c5be7cc813d..000000000000 -DEFINES["RTC_ENABLE_WIN_WGC"] = True -DEFINES["UNICODE"] = True -DEFINES["USE_AURA"] = "1" --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MOZILLA_BUILD"] = True @@ -96807,10 +104165,10 @@ index 4c5be7cc813d..000000000000 -Library("create_direct3d_device_gn") diff --git third_party/libwebrtc/rtc_base/win/get_activation_factory_gn/moz.build third_party/libwebrtc/rtc_base/win/get_activation_factory_gn/moz.build deleted file mode 100644 -index 04efd2321e4b..000000000000 +index 79ff472a7687..000000000000 --- third_party/libwebrtc/rtc_base/win/get_activation_factory_gn/moz.build +++ /dev/null -@@ -1,92 +0,0 @@ +@@ -1,95 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -96822,6 +104180,10 @@ index 04efd2321e4b..000000000000 -COMPILE_FLAGS["OS_INCLUDES"] = [] -AllowCompilerWarnings() - +-CXXFLAGS += [ +- "-std:c++20" +-] +- -DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" -DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True -DEFINES["NOMINMAX"] = True @@ -96833,7 +104195,6 @@ index 04efd2321e4b..000000000000 -DEFINES["RTC_ENABLE_WIN_WGC"] = True -DEFINES["UNICODE"] = True -DEFINES["USE_AURA"] = "1" --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MOZILLA_BUILD"] = True @@ -96905,10 +104266,10 @@ index 04efd2321e4b..000000000000 -Library("get_activation_factory_gn") diff --git third_party/libwebrtc/rtc_base/win/hstring_gn/moz.build third_party/libwebrtc/rtc_base/win/hstring_gn/moz.build deleted file mode 100644 -index cf9ee07fb823..000000000000 +index 5a69bc248233..000000000000 --- third_party/libwebrtc/rtc_base/win/hstring_gn/moz.build +++ /dev/null -@@ -1,92 +0,0 @@ +@@ -1,95 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -96920,6 +104281,10 @@ index cf9ee07fb823..000000000000 -COMPILE_FLAGS["OS_INCLUDES"] = [] -AllowCompilerWarnings() - +-CXXFLAGS += [ +- "-std:c++20" +-] +- -DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" -DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True -DEFINES["NOMINMAX"] = True @@ -96931,7 +104296,6 @@ index cf9ee07fb823..000000000000 -DEFINES["RTC_ENABLE_WIN_WGC"] = True -DEFINES["UNICODE"] = True -DEFINES["USE_AURA"] = "1" --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MOZILLA_BUILD"] = True @@ -97003,10 +104367,10 @@ index cf9ee07fb823..000000000000 -Library("hstring_gn") diff --git third_party/libwebrtc/rtc_base/win/windows_version_gn/moz.build third_party/libwebrtc/rtc_base/win/windows_version_gn/moz.build deleted file mode 100644 -index 39d803a2b7c1..000000000000 +index 1b6458e538a7..000000000000 --- third_party/libwebrtc/rtc_base/win/windows_version_gn/moz.build +++ /dev/null -@@ -1,92 +0,0 @@ +@@ -1,95 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -97018,6 +104382,10 @@ index 39d803a2b7c1..000000000000 -COMPILE_FLAGS["OS_INCLUDES"] = [] -AllowCompilerWarnings() - +-CXXFLAGS += [ +- "-std:c++20" +-] +- -DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" -DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True -DEFINES["NOMINMAX"] = True @@ -97029,7 +104397,6 @@ index 39d803a2b7c1..000000000000 -DEFINES["RTC_ENABLE_WIN_WGC"] = True -DEFINES["UNICODE"] = True -DEFINES["USE_AURA"] = "1" --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MOZILLA_BUILD"] = True @@ -97101,10 +104468,10 @@ index 39d803a2b7c1..000000000000 -Library("windows_version_gn") diff --git third_party/libwebrtc/rtc_base/win32_gn/moz.build third_party/libwebrtc/rtc_base/win32_gn/moz.build deleted file mode 100644 -index 47af84b5f84f..000000000000 +index 3a9a4aa749ca..000000000000 --- third_party/libwebrtc/rtc_base/win32_gn/moz.build +++ /dev/null -@@ -1,99 +0,0 @@ +@@ -1,102 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -97116,6 +104483,10 @@ index 47af84b5f84f..000000000000 -COMPILE_FLAGS["OS_INCLUDES"] = [] -AllowCompilerWarnings() - +-CXXFLAGS += [ +- "-std:c++20" +-] +- -DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" -DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True -DEFINES["NOMINMAX"] = True @@ -97127,7 +104498,6 @@ index 47af84b5f84f..000000000000 -DEFINES["RTC_ENABLE_WIN_WGC"] = True -DEFINES["UNICODE"] = True -DEFINES["USE_AURA"] = "1" --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MOZILLA_BUILD"] = True @@ -97205,16 +104575,23 @@ index 47af84b5f84f..000000000000 - -Library("win32_gn") diff --git third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build -index cfada7305524..14ac7a7ae3f4 100644 +index 89a3b9b196cb..99a72c73a234 100644 --- third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build +++ third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -97231,13 +104608,17 @@ index cfada7305524..14ac7a7ae3f4 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -97256,6 +104637,10 @@ index cfada7305524..14ac7a7ae3f4 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -97263,6 +104648,10 @@ index cfada7305524..14ac7a7ae3f4 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -97278,6 +104667,10 @@ index cfada7305524..14ac7a7ae3f4 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -97290,6 +104683,10 @@ index cfada7305524..14ac7a7ae3f4 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -97320,7 +104717,7 @@ index cfada7305524..14ac7a7ae3f4 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -97408,10 +104805,10 @@ index cfada7305524..14ac7a7ae3f4 100644 Library("zero_memory_gn") diff --git third_party/libwebrtc/sdk/base_objc_gn/moz.build third_party/libwebrtc/sdk/base_objc_gn/moz.build deleted file mode 100644 -index 5ffb44f0d008..000000000000 +index 9b01dffe9772..000000000000 --- third_party/libwebrtc/sdk/base_objc_gn/moz.build +++ /dev/null -@@ -1,83 +0,0 @@ +@@ -1,82 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -97435,7 +104832,6 @@ index 5ffb44f0d008..000000000000 -DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" -DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True -DEFINES["RTC_ENABLE_VP9"] = True --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MAC"] = True @@ -97497,10 +104893,10 @@ index 5ffb44f0d008..000000000000 -Library("base_objc_gn") diff --git third_party/libwebrtc/sdk/helpers_objc_gn/moz.build third_party/libwebrtc/sdk/helpers_objc_gn/moz.build deleted file mode 100644 -index 4c92c02984a8..000000000000 +index 7e8e518da889..000000000000 --- third_party/libwebrtc/sdk/helpers_objc_gn/moz.build +++ /dev/null -@@ -1,78 +0,0 @@ +@@ -1,77 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -97524,7 +104920,6 @@ index 4c92c02984a8..000000000000 -DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" -DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True -DEFINES["RTC_ENABLE_VP9"] = True --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MAC"] = True @@ -97581,10 +104976,10 @@ index 4c92c02984a8..000000000000 -Library("helpers_objc_gn") diff --git third_party/libwebrtc/sdk/videocapture_objc_gn/moz.build third_party/libwebrtc/sdk/videocapture_objc_gn/moz.build deleted file mode 100644 -index e0438f8f6e19..000000000000 +index 82bb50767500..000000000000 --- third_party/libwebrtc/sdk/videocapture_objc_gn/moz.build +++ /dev/null -@@ -1,73 +0,0 @@ +@@ -1,72 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -97604,7 +104999,6 @@ index e0438f8f6e19..000000000000 -DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" -DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True -DEFINES["RTC_ENABLE_VP9"] = True --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MAC"] = True @@ -97660,10 +105054,10 @@ index e0438f8f6e19..000000000000 -Library("videocapture_objc_gn") diff --git third_party/libwebrtc/sdk/videoframebuffer_objc_gn/moz.build third_party/libwebrtc/sdk/videoframebuffer_objc_gn/moz.build deleted file mode 100644 -index 74abd1c954a5..000000000000 +index 96823fe3a0c6..000000000000 --- third_party/libwebrtc/sdk/videoframebuffer_objc_gn/moz.build +++ /dev/null -@@ -1,76 +0,0 @@ +@@ -1,75 +0,0 @@ -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -97683,7 +105077,6 @@ index 74abd1c954a5..000000000000 -DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" -DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True -DEFINES["RTC_ENABLE_VP9"] = True --DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True -DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" -DEFINES["WEBRTC_LIBRARY_IMPL"] = True -DEFINES["WEBRTC_MAC"] = True @@ -97741,16 +105134,23 @@ index 74abd1c954a5..000000000000 - -Library("videoframebuffer_objc_gn") diff --git third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build -index 42b21364766f..efc6c5ca191e 100644 +index 7b22c5d83d57..e30f866c3be3 100644 --- third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build +++ third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -97767,13 +105167,17 @@ index 42b21364766f..efc6c5ca191e 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -97792,6 +105196,10 @@ index 42b21364766f..efc6c5ca191e 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -97799,6 +105207,10 @@ index 42b21364766f..efc6c5ca191e 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -97814,6 +105226,10 @@ index 42b21364766f..efc6c5ca191e 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -97826,6 +105242,10 @@ index 42b21364766f..efc6c5ca191e 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -97863,7 +105283,7 @@ index 42b21364766f..efc6c5ca191e 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -97921,10 +105341,10 @@ index 42b21364766f..efc6c5ca191e 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -97935,10 +105355,10 @@ index 42b21364766f..efc6c5ca191e 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -97950,16 +105370,23 @@ index 42b21364766f..efc6c5ca191e 100644 Library("field_trial_gn") diff --git third_party/libwebrtc/system_wrappers/metrics_gn/moz.build third_party/libwebrtc/system_wrappers/metrics_gn/moz.build -index 36c9baa62823..b243d3d58410 100644 +index 5efcf4737574..cc9bc9ac01fc 100644 --- third_party/libwebrtc/system_wrappers/metrics_gn/moz.build +++ third_party/libwebrtc/system_wrappers/metrics_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -97976,13 +105403,17 @@ index 36c9baa62823..b243d3d58410 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -98001,6 +105432,10 @@ index 36c9baa62823..b243d3d58410 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -98008,6 +105443,10 @@ index 36c9baa62823..b243d3d58410 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -98023,6 +105462,10 @@ index 36c9baa62823..b243d3d58410 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -98035,6 +105478,10 @@ index 36c9baa62823..b243d3d58410 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -98065,7 +105512,7 @@ index 36c9baa62823..b243d3d58410 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -98152,16 +105599,23 @@ index 36c9baa62823..b243d3d58410 100644 Library("metrics_gn") diff --git third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build -index ac00b2932e82..467d3c380ea3 100644 +index 0b73327eca60..4f3ad6b76fa3 100644 --- third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build +++ third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -98178,13 +105632,17 @@ index ac00b2932e82..467d3c380ea3 100644 FINAL_LIBRARY = "xul" -@@ -48,108 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -98197,18 +105655,16 @@ index ac00b2932e82..467d3c380ea3 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- LOCAL_INCLUDES += [ -- "/config/external/nspr/", -- "/nsprpub/lib/ds/", -- "/nsprpub/pr/include/" -- ] -- - OS_LIBS += [ - "log" - ] - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -98216,6 +105672,10 @@ index ac00b2932e82..467d3c380ea3 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -98229,16 +105689,12 @@ index ac00b2932e82..467d3c380ea3 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] +-if CONFIG["OS_TARGET"] == "OpenBSD": - -- UNIFIED_SOURCES += [ -- "/third_party/libwebrtc/system_wrappers/source/cpu_features_linux.cc" +- CXXFLAGS += [ +- "-std=gnu++20" - ] - --if CONFIG["OS_TARGET"] == "OpenBSD": -- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -98251,6 +105707,10 @@ index ac00b2932e82..467d3c380ea3 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -98288,7 +105748,7 @@ index ac00b2932e82..467d3c380ea3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -157,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -98346,10 +105806,10 @@ index ac00b2932e82..467d3c380ea3 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -98360,10 +105820,10 @@ index ac00b2932e82..467d3c380ea3 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -98375,16 +105835,15 @@ index ac00b2932e82..467d3c380ea3 100644 Library("system_wrappers_gn") diff --git third_party/libwebrtc/test/rtp_test_utils_gn/moz.build third_party/libwebrtc/test/rtp_test_utils_gn/moz.build -index 8096fc9c96c2..052c0f84c668 100644 +index 1bccfd79c93a..898ece1e2007 100644 --- third_party/libwebrtc/test/rtp_test_utils_gn/moz.build +++ third_party/libwebrtc/test/rtp_test_utils_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -98401,7 +105860,7 @@ index 8096fc9c96c2..052c0f84c668 100644 FINAL_LIBRARY = "xul" -@@ -43,99 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,95 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -98447,10 +105906,6 @@ index 8096fc9c96c2..052c0f84c668 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -98502,7 +105957,7 @@ index 8096fc9c96c2..052c0f84c668 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -143,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -138,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -98528,7 +105983,7 @@ index 8096fc9c96c2..052c0f84c668 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -171,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -166,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -98569,6 +106024,60 @@ index 8096fc9c96c2..052c0f84c668 100644 - DEFINES["_GNU_SOURCE"] = True - Library("rtp_test_utils_gn") +diff --git third_party/libwebrtc/third_party/cpu_features/ndk_compat_gn/moz.build third_party/libwebrtc/third_party/cpu_features/ndk_compat_gn/moz.build +deleted file mode 100644 +index 75b2e8878e03..000000000000 +--- third_party/libwebrtc/third_party/cpu_features/ndk_compat_gn/moz.build ++++ /dev/null +@@ -1,48 +0,0 @@ +-# This Source Code Form is subject to the terms of the Mozilla Public +-# License, v. 2.0. If a copy of the MPL was not distributed with this +-# file, You can obtain one at http://mozilla.org/MPL/2.0/. +- +- +- ### This moz.build was AUTOMATICALLY GENERATED from a GN config, ### +- ### DO NOT edit it by hand. ### +- +-COMPILE_FLAGS["OS_INCLUDES"] = [] +-AllowCompilerWarnings() +- +-DEFINES["ANDROID"] = True +-DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" +-DEFINES["HAVE_SYS_UIO_H"] = True +-DEFINES["_GNU_SOURCE"] = True +-DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE" +-DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True +-DEFINES["__STDC_CONSTANT_MACROS"] = True +-DEFINES["__STDC_FORMAT_MACROS"] = True +- +-FINAL_LIBRARY = "xul" +- +- +-LOCAL_INCLUDES += [ +- "!/dist/include/libwebrtc_overrides", +- "!/ipc/ipdl/_ipdlheaders", +- "!/third_party/libwebrtc/gen", +- "/ipc/chromium/src", +- "/third_party/libwebrtc/", +- "/tools/profiler/public" +-] +- +-if not CONFIG["MOZ_DEBUG"]: +- +- DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" +- DEFINES["NDEBUG"] = True +- DEFINES["NVALGRIND"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1": +- +- DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" +- DEFINES["_DEBUG"] = True +- +-if CONFIG["TARGET_CPU"] == "aarch64": +- +- DEFINES["__ARM_NEON__"] = "1" +- +-Library("ndk_compat_gn") diff --git third_party/libwebrtc/third_party/crc32c/crc32c_arm64_gn/moz.build third_party/libwebrtc/third_party/crc32c/crc32c_arm64_gn/moz.build index 2d36986a05c5..d4f34c6e8a54 100644 --- third_party/libwebrtc/third_party/crc32c/crc32c_arm64_gn/moz.build @@ -99285,16 +106794,15 @@ index 57e79a7f9e44..b855a3042e28 100644 Library("crc32c_sse42_gn") diff --git third_party/libwebrtc/third_party/dav1d/dav1d_gn/moz.build third_party/libwebrtc/third_party/dav1d/dav1d_gn/moz.build -index 290cb7c6b79a..96e9a04853c1 100644 +index d7dd3e349440..6839dc4717fa 100644 --- third_party/libwebrtc/third_party/dav1d/dav1d_gn/moz.build +++ third_party/libwebrtc/third_party/dav1d/dav1d_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -99311,7 +106819,7 @@ index 290cb7c6b79a..96e9a04853c1 100644 FINAL_LIBRARY = "xul" -@@ -45,83 +54,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -44,83 +53,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -99396,7 +106904,7 @@ index 290cb7c6b79a..96e9a04853c1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -129,25 +62,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -128,25 +61,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -99422,7 +106930,7 @@ index 290cb7c6b79a..96e9a04853c1 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -157,40 +75,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -156,40 +74,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -99464,16 +106972,15 @@ index 290cb7c6b79a..96e9a04853c1 100644 - Library("dav1d_gn") diff --git third_party/libwebrtc/third_party/libaom/libaom_gn/moz.build third_party/libwebrtc/third_party/libaom/libaom_gn/moz.build -index 5621fcc8c3a5..43b59d982945 100644 +index 26d729aa4816..9a021575ec73 100644 --- third_party/libwebrtc/third_party/libaom/libaom_gn/moz.build +++ third_party/libwebrtc/third_party/libaom/libaom_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -99490,7 +106997,7 @@ index 5621fcc8c3a5..43b59d982945 100644 FINAL_LIBRARY = "xul" -@@ -43,83 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,83 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -99575,7 +107082,7 @@ index 5621fcc8c3a5..43b59d982945 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -127,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -126,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -99601,7 +107108,7 @@ index 5621fcc8c3a5..43b59d982945 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -155,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -154,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -99643,10 +107150,10 @@ index 5621fcc8c3a5..43b59d982945 100644 - Library("aom_gn") diff --git third_party/libwebrtc/third_party/libepoxy/libepoxy_gn/moz.build third_party/libwebrtc/third_party/libepoxy/libepoxy_gn/moz.build -index efacb30c976b..37831e91930e 100644 +index 6f10f838698a..d7ba52dc8024 100644 --- third_party/libwebrtc/third_party/libepoxy/libepoxy_gn/moz.build +++ third_party/libwebrtc/third_party/libepoxy/libepoxy_gn/moz.build -@@ -13,21 +13,17 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,20 +13,16 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True @@ -99654,7 +107161,6 @@ index efacb30c976b..37831e91930e 100644 DEFINES["USE_GLIB"] = "1" DEFINES["USE_OZONE"] = "1" -DEFINES["USE_UDEV"] = True - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -99669,7 +107175,7 @@ index efacb30c976b..37831e91930e 100644 DEFINES["_LARGEFILE64_SOURCE"] = True DEFINES["_LARGEFILE_SOURCE"] = True DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE" -@@ -66,12 +62,6 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -65,12 +61,6 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -99683,16 +107189,15 @@ index efacb30c976b..37831e91930e 100644 DEFINES["MIPS32_LE"] = True diff --git third_party/libwebrtc/third_party/libyuv/libyuv_gn/moz.build third_party/libwebrtc/third_party/libyuv/libyuv_gn/moz.build -index bed86c31bdb2..776ccac7a804 100644 +index 5ccdff9910f0..746852255f4e 100644 --- third_party/libwebrtc/third_party/libyuv/libyuv_gn/moz.build +++ third_party/libwebrtc/third_party/libyuv/libyuv_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -99709,7 +107214,7 @@ index bed86c31bdb2..776ccac7a804 100644 FINAL_LIBRARY = "xul" -@@ -45,83 +54,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -44,83 +53,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -99794,7 +107299,7 @@ index bed86c31bdb2..776ccac7a804 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -129,25 +62,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -128,25 +61,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -99820,7 +107325,7 @@ index bed86c31bdb2..776ccac7a804 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -157,40 +75,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -156,40 +74,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -100332,16 +107837,23 @@ index fc239a9d7eae..541de9c16824 100644 - Library("rnn_vad_gn") diff --git third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build -index 9e0421f6862f..bd7fb2f5ab67 100644 +index 3fdd6f82a882..d8565e99f4fc 100644 --- third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build +++ third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -100358,13 +107870,17 @@ index 9e0421f6862f..bd7fb2f5ab67 100644 FINAL_LIBRARY = "xul" -@@ -55,99 +64,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -54,115 +67,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -100384,6 +107900,10 @@ index 9e0421f6862f..bd7fb2f5ab67 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -100391,6 +107911,10 @@ index 9e0421f6862f..bd7fb2f5ab67 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -100404,12 +107928,12 @@ index 9e0421f6862f..bd7fb2f5ab67 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -100422,6 +107946,10 @@ index 9e0421f6862f..bd7fb2f5ab67 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -100459,7 +107987,7 @@ index 9e0421f6862f..bd7fb2f5ab67 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -155,82 +72,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -170,82 +75,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -100517,10 +108045,10 @@ index 9e0421f6862f..bd7fb2f5ab67 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -100531,10 +108059,10 @@ index 9e0421f6862f..bd7fb2f5ab67 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -100546,16 +108074,23 @@ index 9e0421f6862f..bd7fb2f5ab67 100644 Library("video_adaptation_gn") diff --git third_party/libwebrtc/video/config/encoder_config_gn/moz.build third_party/libwebrtc/video/config/encoder_config_gn/moz.build -index 74e2cdbd67e4..0e966d100fe1 100644 +index 865900b598de..0fc614829ce7 100644 --- third_party/libwebrtc/video/config/encoder_config_gn/moz.build +++ third_party/libwebrtc/video/config/encoder_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -100572,13 +108107,17 @@ index 74e2cdbd67e4..0e966d100fe1 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -100597,6 +108136,10 @@ index 74e2cdbd67e4..0e966d100fe1 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -100604,6 +108147,10 @@ index 74e2cdbd67e4..0e966d100fe1 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -100617,12 +108164,12 @@ index 74e2cdbd67e4..0e966d100fe1 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -100635,6 +108182,10 @@ index 74e2cdbd67e4..0e966d100fe1 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -100672,7 +108223,7 @@ index 74e2cdbd67e4..0e966d100fe1 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -100730,10 +108281,10 @@ index 74e2cdbd67e4..0e966d100fe1 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -100744,10 +108295,10 @@ index 74e2cdbd67e4..0e966d100fe1 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -100759,16 +108310,23 @@ index 74e2cdbd67e4..0e966d100fe1 100644 Library("encoder_config_gn") diff --git third_party/libwebrtc/video/config/streams_config_gn/moz.build third_party/libwebrtc/video/config/streams_config_gn/moz.build -index 5863ad52a6e8..bc2b39685fd5 100644 +index 9275bcc0855a..9bfb207645ac 100644 --- third_party/libwebrtc/video/config/streams_config_gn/moz.build +++ third_party/libwebrtc/video/config/streams_config_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -100785,13 +108343,17 @@ index 5863ad52a6e8..bc2b39685fd5 100644 FINAL_LIBRARY = "xul" -@@ -48,99 +57,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -47,115 +60,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -100811,6 +108373,10 @@ index 5863ad52a6e8..bc2b39685fd5 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -100818,6 +108384,10 @@ index 5863ad52a6e8..bc2b39685fd5 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -100831,12 +108401,12 @@ index 5863ad52a6e8..bc2b39685fd5 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -100849,6 +108419,10 @@ index 5863ad52a6e8..bc2b39685fd5 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -100886,7 +108460,7 @@ index 5863ad52a6e8..bc2b39685fd5 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -148,82 +65,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -163,82 +68,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -100944,10 +108518,10 @@ index 5863ad52a6e8..bc2b39685fd5 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -100958,10 +108532,10 @@ index 5863ad52a6e8..bc2b39685fd5 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -100973,16 +108547,23 @@ index 5863ad52a6e8..bc2b39685fd5 100644 Library("streams_config_gn") diff --git third_party/libwebrtc/video/corruption_detection/corruption_classifier_gn/moz.build third_party/libwebrtc/video/corruption_detection/corruption_classifier_gn/moz.build -index 884638b06a1d..762cbea3858f 100644 +index eab5fabcf870..8bedde4c3fa7 100644 --- third_party/libwebrtc/video/corruption_detection/corruption_classifier_gn/moz.build +++ third_party/libwebrtc/video/corruption_detection/corruption_classifier_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -100999,13 +108580,17 @@ index 884638b06a1d..762cbea3858f 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -101024,6 +108609,10 @@ index 884638b06a1d..762cbea3858f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -101031,6 +108620,10 @@ index 884638b06a1d..762cbea3858f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -101046,6 +108639,10 @@ index 884638b06a1d..762cbea3858f 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -101058,6 +108655,10 @@ index 884638b06a1d..762cbea3858f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -101095,7 +108696,7 @@ index 884638b06a1d..762cbea3858f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -101153,10 +108754,10 @@ index 884638b06a1d..762cbea3858f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -101167,10 +108768,10 @@ index 884638b06a1d..762cbea3858f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -101182,16 +108783,23 @@ index 884638b06a1d..762cbea3858f 100644 Library("corruption_classifier_gn") diff --git third_party/libwebrtc/video/corruption_detection/frame_instrumentation_evaluation_gn/moz.build third_party/libwebrtc/video/corruption_detection/frame_instrumentation_evaluation_gn/moz.build -index f160515f9c38..4eea6328a5d3 100644 +index 9faf5b89eb15..1d6aa6fbe092 100644 --- third_party/libwebrtc/video/corruption_detection/frame_instrumentation_evaluation_gn/moz.build +++ third_party/libwebrtc/video/corruption_detection/frame_instrumentation_evaluation_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -101208,13 +108816,17 @@ index f160515f9c38..4eea6328a5d3 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -101233,6 +108845,10 @@ index f160515f9c38..4eea6328a5d3 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -101240,6 +108856,10 @@ index f160515f9c38..4eea6328a5d3 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -101255,6 +108875,10 @@ index f160515f9c38..4eea6328a5d3 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -101267,6 +108891,10 @@ index f160515f9c38..4eea6328a5d3 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -101304,7 +108932,7 @@ index f160515f9c38..4eea6328a5d3 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -101362,10 +108990,10 @@ index f160515f9c38..4eea6328a5d3 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -101376,10 +109004,10 @@ index f160515f9c38..4eea6328a5d3 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -101391,16 +109019,23 @@ index f160515f9c38..4eea6328a5d3 100644 Library("frame_instrumentation_evaluation_gn") diff --git third_party/libwebrtc/video/corruption_detection/frame_instrumentation_generator_gn/moz.build third_party/libwebrtc/video/corruption_detection/frame_instrumentation_generator_gn/moz.build -index 0c60dc67b601..4865e3e9cdd2 100644 +index 2fbcadb4ae1c..3ce701b2ec90 100644 --- third_party/libwebrtc/video/corruption_detection/frame_instrumentation_generator_gn/moz.build +++ third_party/libwebrtc/video/corruption_detection/frame_instrumentation_generator_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -101417,13 +109052,17 @@ index 0c60dc67b601..4865e3e9cdd2 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -101443,6 +109082,10 @@ index 0c60dc67b601..4865e3e9cdd2 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -101450,6 +109093,10 @@ index 0c60dc67b601..4865e3e9cdd2 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -101463,12 +109110,12 @@ index 0c60dc67b601..4865e3e9cdd2 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -101481,6 +109128,10 @@ index 0c60dc67b601..4865e3e9cdd2 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -101518,7 +109169,7 @@ index 0c60dc67b601..4865e3e9cdd2 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -101576,10 +109227,10 @@ index 0c60dc67b601..4865e3e9cdd2 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -101590,10 +109241,10 @@ index 0c60dc67b601..4865e3e9cdd2 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -101605,16 +109256,23 @@ index 0c60dc67b601..4865e3e9cdd2 100644 Library("frame_instrumentation_generator_gn") diff --git third_party/libwebrtc/video/corruption_detection/generic_mapping_functions_gn/moz.build third_party/libwebrtc/video/corruption_detection/generic_mapping_functions_gn/moz.build -index 7fadc8ba5b07..87f05c46174f 100644 +index 677bd777b01a..43a2ce5228f6 100644 --- third_party/libwebrtc/video/corruption_detection/generic_mapping_functions_gn/moz.build +++ third_party/libwebrtc/video/corruption_detection/generic_mapping_functions_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -101631,13 +109289,17 @@ index 7fadc8ba5b07..87f05c46174f 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -101656,6 +109318,10 @@ index 7fadc8ba5b07..87f05c46174f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -101663,6 +109329,10 @@ index 7fadc8ba5b07..87f05c46174f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -101676,12 +109346,12 @@ index 7fadc8ba5b07..87f05c46174f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -101694,6 +109364,10 @@ index 7fadc8ba5b07..87f05c46174f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -101731,7 +109405,7 @@ index 7fadc8ba5b07..87f05c46174f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -101789,10 +109463,10 @@ index 7fadc8ba5b07..87f05c46174f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -101803,10 +109477,10 @@ index 7fadc8ba5b07..87f05c46174f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -101818,16 +109492,23 @@ index 7fadc8ba5b07..87f05c46174f 100644 Library("generic_mapping_functions_gn") diff --git third_party/libwebrtc/video/corruption_detection/halton_frame_sampler_gn/moz.build third_party/libwebrtc/video/corruption_detection/halton_frame_sampler_gn/moz.build -index 8160c5025775..8af9ba8b4f5b 100644 +index 319099e20e84..1a0daac76922 100644 --- third_party/libwebrtc/video/corruption_detection/halton_frame_sampler_gn/moz.build +++ third_party/libwebrtc/video/corruption_detection/halton_frame_sampler_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -101844,13 +109525,17 @@ index 8160c5025775..8af9ba8b4f5b 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -101869,6 +109554,10 @@ index 8160c5025775..8af9ba8b4f5b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -101876,6 +109565,10 @@ index 8160c5025775..8af9ba8b4f5b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -101891,6 +109584,10 @@ index 8160c5025775..8af9ba8b4f5b 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -101903,6 +109600,10 @@ index 8160c5025775..8af9ba8b4f5b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -101940,7 +109641,7 @@ index 8160c5025775..8af9ba8b4f5b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -101998,10 +109699,10 @@ index 8160c5025775..8af9ba8b4f5b 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -102012,10 +109713,10 @@ index 8160c5025775..8af9ba8b4f5b 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -102027,16 +109728,23 @@ index 8160c5025775..8af9ba8b4f5b 100644 Library("halton_frame_sampler_gn") diff --git third_party/libwebrtc/video/corruption_detection/halton_sequence_gn/moz.build third_party/libwebrtc/video/corruption_detection/halton_sequence_gn/moz.build -index 12b9872121b0..5e692452aa8b 100644 +index 9726cf7d3756..85bd3bdd3734 100644 --- third_party/libwebrtc/video/corruption_detection/halton_sequence_gn/moz.build +++ third_party/libwebrtc/video/corruption_detection/halton_sequence_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -102053,13 +109761,17 @@ index 12b9872121b0..5e692452aa8b 100644 FINAL_LIBRARY = "xul" -@@ -47,87 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,107 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -102078,6 +109790,10 @@ index 12b9872121b0..5e692452aa8b 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -102085,6 +109801,10 @@ index 12b9872121b0..5e692452aa8b 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -102100,6 +109820,10 @@ index 12b9872121b0..5e692452aa8b 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -102112,6 +109836,10 @@ index 12b9872121b0..5e692452aa8b 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -102142,7 +109870,7 @@ index 12b9872121b0..5e692452aa8b 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -135,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -154,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -102228,17 +109956,24 @@ index 12b9872121b0..5e692452aa8b 100644 + DEFINES["WEBRTC_ENABLE_AVX2"] = True Library("halton_sequence_gn") -diff --git third_party/libwebrtc/video/decode_synchronizer_gn/moz.build third_party/libwebrtc/video/decode_synchronizer_gn/moz.build -index a10ed68bfc77..b9038bcd8af6 100644 ---- third_party/libwebrtc/video/decode_synchronizer_gn/moz.build -+++ third_party/libwebrtc/video/decode_synchronizer_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +diff --git third_party/libwebrtc/video/corruption_detection/video_frame_sampler_gn/moz.build third_party/libwebrtc/video/corruption_detection/video_frame_sampler_gn/moz.build +index 8c7d63b72a90..f07e23927292 100644 +--- third_party/libwebrtc/video/corruption_detection/video_frame_sampler_gn/moz.build ++++ third_party/libwebrtc/video/corruption_detection/video_frame_sampler_gn/moz.build +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -102255,13 +109990,17 @@ index a10ed68bfc77..b9038bcd8af6 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -102280,6 +110019,10 @@ index a10ed68bfc77..b9038bcd8af6 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -102287,6 +110030,10 @@ index a10ed68bfc77..b9038bcd8af6 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -102300,12 +110047,12 @@ index a10ed68bfc77..b9038bcd8af6 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -102318,6 +110065,10 @@ index a10ed68bfc77..b9038bcd8af6 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -102355,7 +110106,7 @@ index a10ed68bfc77..b9038bcd8af6 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -102413,24 +110164,260 @@ index a10ed68bfc77..b9038bcd8af6 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - +- CXXFLAGS += [ +- "-msse2" +- ] +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +- CXXFLAGS += [ "-msse2" ] --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": +- DEFINES["_GNU_SOURCE"] = True ++ DEFINES["WEBRTC_ENABLE_AVX2"] = True + +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": ++if CONFIG["TARGET_CPU"] == "x86_64": + +- DEFINES["_GNU_SOURCE"] = True ++ DEFINES["WEBRTC_ENABLE_AVX2"] = True + + Library("video_frame_sampler_gn") +diff --git third_party/libwebrtc/video/decode_synchronizer_gn/moz.build third_party/libwebrtc/video/decode_synchronizer_gn/moz.build +index e5ace8e4fd24..6328ecb27e8a 100644 +--- third_party/libwebrtc/video/decode_synchronizer_gn/moz.build ++++ third_party/libwebrtc/video/decode_synchronizer_gn/moz.build +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" + DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" + DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True + DEFINES["RTC_ENABLE_VP9"] = True ++DEFINES["USE_GLIB"] = "1" ++DEFINES["USE_OZONE"] = "1" ++DEFINES["WEBRTC_BSD"] = True + DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" + DEFINES["WEBRTC_LIBRARY_IMPL"] = True + DEFINES["WEBRTC_MOZILLA_BUILD"] = True + DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" ++DEFINES["WEBRTC_POSIX"] = True + DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" ++DEFINES["_FILE_OFFSET_BITS"] = "64" ++DEFINES["_LARGEFILE64_SOURCE"] = True ++DEFINES["_LARGEFILE_SOURCE"] = True + DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE" ++DEFINES["__STDC_CONSTANT_MACROS"] = True ++DEFINES["__STDC_FORMAT_MACROS"] = True + + FINAL_LIBRARY = "xul" + +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: + if CONFIG["MOZ_DEBUG"] == "1": + + DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - +-if CONFIG["OS_TARGET"] == "Android": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["ANDROID"] = True +- DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" +- DEFINES["HAVE_SYS_UIO_H"] = True +- DEFINES["WEBRTC_ANDROID"] = True +- DEFINES["WEBRTC_ANDROID_OPENSLES"] = True +- DEFINES["WEBRTC_LINUX"] = True +- DEFINES["WEBRTC_POSIX"] = True - DEFINES["_GNU_SOURCE"] = True +- DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": +- OS_LIBS += [ +- "log" +- ] +- +-if CONFIG["OS_TARGET"] == "Darwin": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["WEBRTC_MAC"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True +- +-if CONFIG["OS_TARGET"] == "Linux": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["USE_AURA"] = "1" +- DEFINES["USE_GLIB"] = "1" +- DEFINES["USE_OZONE"] = "1" +- DEFINES["USE_UDEV"] = True +- DEFINES["WEBRTC_LINUX"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["_FILE_OFFSET_BITS"] = "64" +- DEFINES["_GLIBCXX_ASSERTIONS"] = "1" +- DEFINES["_LARGEFILE64_SOURCE"] = True +- DEFINES["_LARGEFILE_SOURCE"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True +- +-if CONFIG["OS_TARGET"] == "OpenBSD": +- +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- +- DEFINES["USE_GLIB"] = "1" +- DEFINES["USE_OZONE"] = "1" +- DEFINES["WEBRTC_BSD"] = True +- DEFINES["WEBRTC_POSIX"] = True +- DEFINES["_FILE_OFFSET_BITS"] = "64" +- DEFINES["_LARGEFILE64_SOURCE"] = True +- DEFINES["_LARGEFILE_SOURCE"] = True +- DEFINES["__STDC_CONSTANT_MACROS"] = True +- DEFINES["__STDC_FORMAT_MACROS"] = True +- +-if CONFIG["OS_TARGET"] == "WINNT": +- +- CXXFLAGS += [ +- "-std:c++20" +- ] +- +- DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True +- DEFINES["NOMINMAX"] = True +- DEFINES["NTDDI_VERSION"] = "0x0A000000" +- DEFINES["PSAPI_VERSION"] = "2" +- DEFINES["RTC_ENABLE_WIN_WGC"] = True +- DEFINES["UNICODE"] = True +- DEFINES["USE_AURA"] = "1" +- DEFINES["WEBRTC_WIN"] = True +- DEFINES["WIN32"] = True +- DEFINES["WIN32_LEAN_AND_MEAN"] = True +- DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" +- DEFINES["WINVER"] = "0x0A00" +- DEFINES["_ATL_NO_OPENGL"] = True +- DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True +- DEFINES["_CRT_RAND_S"] = True +- DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True +- DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True +- DEFINES["_HAS_EXCEPTIONS"] = "0" +- DEFINES["_HAS_NODISCARD"] = True +- DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True +- DEFINES["_SECURE_ATL"] = True +- DEFINES["_UNICODE"] = True +- DEFINES["_WIN32_WINNT"] = "0x0A00" +- DEFINES["_WINDOWS"] = True +- DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True +- DEFINES["__STD_C"] = True +- +- OS_LIBS += [ +- "crypt32", +- "iphlpapi", +- "secur32", +- "winmm" +- ] ++ DEFINES["_DEBUG"] = True + + if CONFIG["TARGET_CPU"] == "aarch64": + +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": + DEFINES["WEBRTC_HAS_NEON"] = True + DEFINES["__ARM_NEON__"] = "1" + +-if CONFIG["TARGET_CPU"] == "arm": +- +- CXXFLAGS += [ +- "-mfpu=neon" +- ] +- +- DEFINES["WEBRTC_ARCH_ARM"] = True +- DEFINES["WEBRTC_ARCH_ARM_V7"] = True +- DEFINES["WEBRTC_HAS_NEON"] = True +- +-if CONFIG["TARGET_CPU"] == "loongarch64": - - DEFINES["_GNU_SOURCE"] = True - --if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": + if CONFIG["TARGET_CPU"] == "mips32": + + DEFINES["MIPS32_LE"] = True + DEFINES["MIPS_FPU_LE"] = True +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["TARGET_CPU"] == "mips64": +- +- DEFINES["_GNU_SOURCE"] = True + + if CONFIG["TARGET_CPU"] == "x86": + +- DEFINES["WEBRTC_ENABLE_AVX2"] = True +- +-if CONFIG["TARGET_CPU"] == "x86_64": +- +- DEFINES["WEBRTC_ENABLE_AVX2"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": +- +- DEFINES["_DEBUG"] = True +- +-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": +- +- DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" +- +-if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": +- +- DEFINES["_GNU_SOURCE"] = True +- +-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": +- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -102442,16 +110429,23 @@ index a10ed68bfc77..b9038bcd8af6 100644 Library("decode_synchronizer_gn") diff --git third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build -index 9d4e277b38dd..b7be4412c741 100644 +index 1eb084c24914..569219f68829 100644 --- third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build +++ third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -102468,13 +110462,17 @@ index 9d4e277b38dd..b7be4412c741 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -102493,6 +110491,10 @@ index 9d4e277b38dd..b7be4412c741 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -102500,6 +110502,10 @@ index 9d4e277b38dd..b7be4412c741 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -102513,12 +110519,12 @@ index 9d4e277b38dd..b7be4412c741 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -102531,6 +110537,10 @@ index 9d4e277b38dd..b7be4412c741 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -102568,7 +110578,7 @@ index 9d4e277b38dd..b7be4412c741 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -102626,10 +110636,10 @@ index 9d4e277b38dd..b7be4412c741 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -102640,10 +110650,10 @@ index 9d4e277b38dd..b7be4412c741 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -102655,16 +110665,15 @@ index 9d4e277b38dd..b7be4412c741 100644 Library("frame_cadence_adapter_gn") diff --git third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build -index 24e0f71b39a0..3c4a565ff44a 100644 +index 0b4bfc8a1ae8..f6086ea6f0de 100644 --- third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build +++ third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -102681,7 +110690,7 @@ index 24e0f71b39a0..3c4a565ff44a 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -102726,10 +110735,6 @@ index 24e0f71b39a0..3c4a565ff44a 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -102781,7 +110786,7 @@ index 24e0f71b39a0..3c4a565ff44a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -102807,7 +110812,7 @@ index 24e0f71b39a0..3c4a565ff44a 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -102849,16 +110854,23 @@ index 24e0f71b39a0..3c4a565ff44a 100644 - Library("frame_decode_scheduler_gn") diff --git third_party/libwebrtc/video/frame_decode_timing_gn/moz.build third_party/libwebrtc/video/frame_decode_timing_gn/moz.build -index 79c2df2abd6f..8f48257e34c8 100644 +index d7c80a733fd3..56cb34a1dc91 100644 --- third_party/libwebrtc/video/frame_decode_timing_gn/moz.build +++ third_party/libwebrtc/video/frame_decode_timing_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -102875,13 +110887,17 @@ index 79c2df2abd6f..8f48257e34c8 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -102900,6 +110916,10 @@ index 79c2df2abd6f..8f48257e34c8 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -102907,6 +110927,10 @@ index 79c2df2abd6f..8f48257e34c8 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -102920,12 +110944,12 @@ index 79c2df2abd6f..8f48257e34c8 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -102938,6 +110962,10 @@ index 79c2df2abd6f..8f48257e34c8 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -102975,7 +111003,7 @@ index 79c2df2abd6f..8f48257e34c8 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -103033,10 +111061,10 @@ index 79c2df2abd6f..8f48257e34c8 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -103047,10 +111075,10 @@ index 79c2df2abd6f..8f48257e34c8 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -103062,16 +111090,23 @@ index 79c2df2abd6f..8f48257e34c8 100644 Library("frame_decode_timing_gn") diff --git third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build -index 974b59b917c6..d9f2c28b1fc0 100644 +index 12f88753ca39..65d2fa878456 100644 --- third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build +++ third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -103088,13 +111123,17 @@ index 974b59b917c6..d9f2c28b1fc0 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -103114,6 +111153,10 @@ index 974b59b917c6..d9f2c28b1fc0 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -103121,6 +111164,10 @@ index 974b59b917c6..d9f2c28b1fc0 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -103134,12 +111181,12 @@ index 974b59b917c6..d9f2c28b1fc0 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -103152,6 +111199,10 @@ index 974b59b917c6..d9f2c28b1fc0 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -103189,7 +111240,7 @@ index 974b59b917c6..d9f2c28b1fc0 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -103247,10 +111298,10 @@ index 974b59b917c6..d9f2c28b1fc0 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -103261,10 +111312,10 @@ index 974b59b917c6..d9f2c28b1fc0 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -103276,16 +111327,23 @@ index 974b59b917c6..d9f2c28b1fc0 100644 Library("frame_dumping_decoder_gn") diff --git third_party/libwebrtc/video/frame_dumping_encoder_gn/moz.build third_party/libwebrtc/video/frame_dumping_encoder_gn/moz.build -index 08669d63243f..2ee61d4c08a9 100644 +index 811efba89652..1fa679c578b7 100644 --- third_party/libwebrtc/video/frame_dumping_encoder_gn/moz.build +++ third_party/libwebrtc/video/frame_dumping_encoder_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -103302,13 +111360,17 @@ index 08669d63243f..2ee61d4c08a9 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -103328,6 +111390,10 @@ index 08669d63243f..2ee61d4c08a9 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -103335,6 +111401,10 @@ index 08669d63243f..2ee61d4c08a9 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -103348,12 +111418,12 @@ index 08669d63243f..2ee61d4c08a9 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -103366,6 +111436,10 @@ index 08669d63243f..2ee61d4c08a9 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -103403,7 +111477,7 @@ index 08669d63243f..2ee61d4c08a9 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -103461,10 +111535,10 @@ index 08669d63243f..2ee61d4c08a9 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -103475,10 +111549,10 @@ index 08669d63243f..2ee61d4c08a9 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -103490,16 +111564,23 @@ index 08669d63243f..2ee61d4c08a9 100644 Library("frame_dumping_encoder_gn") diff --git third_party/libwebrtc/video/render/incoming_video_stream_gn/moz.build third_party/libwebrtc/video/render/incoming_video_stream_gn/moz.build -index c5d5c2d71fd5..5f274171a19a 100644 +index 4055e4dc4653..8ce066226533 100644 --- third_party/libwebrtc/video/render/incoming_video_stream_gn/moz.build +++ third_party/libwebrtc/video/render/incoming_video_stream_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -103516,13 +111597,17 @@ index c5d5c2d71fd5..5f274171a19a 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -103541,6 +111626,10 @@ index c5d5c2d71fd5..5f274171a19a 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -103548,6 +111637,10 @@ index c5d5c2d71fd5..5f274171a19a 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -103563,6 +111656,10 @@ index c5d5c2d71fd5..5f274171a19a 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -103575,6 +111672,10 @@ index c5d5c2d71fd5..5f274171a19a 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -103612,7 +111713,7 @@ index c5d5c2d71fd5..5f274171a19a 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -103670,10 +111771,10 @@ index c5d5c2d71fd5..5f274171a19a 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -103684,10 +111785,10 @@ index c5d5c2d71fd5..5f274171a19a 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -103699,16 +111800,23 @@ index c5d5c2d71fd5..5f274171a19a 100644 Library("incoming_video_stream_gn") diff --git third_party/libwebrtc/video/render/video_render_frames_gn/moz.build third_party/libwebrtc/video/render/video_render_frames_gn/moz.build -index 1d20930416c7..02b24524999c 100644 +index 2af35e613160..a78a18cf5e01 100644 --- third_party/libwebrtc/video/render/video_render_frames_gn/moz.build +++ third_party/libwebrtc/video/render/video_render_frames_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -103725,13 +111833,17 @@ index 1d20930416c7..02b24524999c 100644 FINAL_LIBRARY = "xul" -@@ -47,94 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -103750,6 +111862,10 @@ index 1d20930416c7..02b24524999c 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -103757,6 +111873,10 @@ index 1d20930416c7..02b24524999c 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -103772,6 +111892,10 @@ index 1d20930416c7..02b24524999c 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -103784,6 +111908,10 @@ index 1d20930416c7..02b24524999c 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -103821,7 +111949,7 @@ index 1d20930416c7..02b24524999c 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -103879,10 +112007,10 @@ index 1d20930416c7..02b24524999c 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -103893,10 +112021,10 @@ index 1d20930416c7..02b24524999c 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -103908,16 +112036,23 @@ index 1d20930416c7..02b24524999c 100644 Library("video_render_frames_gn") diff --git third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build -index 901da7d1bb97..f7972f671015 100644 +index dc552260ed86..ee34a129be13 100644 --- third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build +++ third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -103934,13 +112069,17 @@ index 901da7d1bb97..f7972f671015 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -103959,6 +112098,10 @@ index 901da7d1bb97..f7972f671015 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -103966,6 +112109,10 @@ index 901da7d1bb97..f7972f671015 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -103979,12 +112126,12 @@ index 901da7d1bb97..f7972f671015 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -103997,6 +112144,10 @@ index 901da7d1bb97..f7972f671015 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -104034,7 +112185,7 @@ index 901da7d1bb97..f7972f671015 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -104092,10 +112243,10 @@ index 901da7d1bb97..f7972f671015 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -104106,10 +112257,10 @@ index 901da7d1bb97..f7972f671015 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -104121,16 +112272,23 @@ index 901da7d1bb97..f7972f671015 100644 Library("task_queue_frame_decode_scheduler_gn") diff --git third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build -index 30b3de21de19..cf6461e2fb06 100644 +index 3b6c61cda5ce..af781f74d81b 100644 --- third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build +++ third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -104147,13 +112305,17 @@ index 30b3de21de19..cf6461e2fb06 100644 FINAL_LIBRARY = "xul" -@@ -47,83 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,103 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -104168,6 +112330,10 @@ index 30b3de21de19..cf6461e2fb06 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -104175,6 +112341,10 @@ index 30b3de21de19..cf6461e2fb06 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -104190,6 +112360,10 @@ index 30b3de21de19..cf6461e2fb06 100644 - -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -104202,6 +112376,10 @@ index 30b3de21de19..cf6461e2fb06 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -104232,7 +112410,7 @@ index 30b3de21de19..cf6461e2fb06 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -131,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -150,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -104290,10 +112468,10 @@ index 30b3de21de19..cf6461e2fb06 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -104304,10 +112482,10 @@ index 30b3de21de19..cf6461e2fb06 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -104319,16 +112497,23 @@ index 30b3de21de19..cf6461e2fb06 100644 Library("unique_timestamp_counter_gn") diff --git third_party/libwebrtc/video/video_gn/moz.build third_party/libwebrtc/video/video_gn/moz.build -index ec2bc7bdf704..43312f3e4850 100644 +index 20305674dedd..1525bb334eb9 100644 --- third_party/libwebrtc/video/video_gn/moz.build +++ third_party/libwebrtc/video/video_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -104345,13 +112530,17 @@ index ec2bc7bdf704..43312f3e4850 100644 FINAL_LIBRARY = "xul" -@@ -66,99 +75,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -65,115 +78,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -104371,6 +112560,10 @@ index ec2bc7bdf704..43312f3e4850 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -104378,6 +112571,10 @@ index ec2bc7bdf704..43312f3e4850 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -104391,12 +112588,12 @@ index ec2bc7bdf704..43312f3e4850 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -104409,6 +112606,10 @@ index ec2bc7bdf704..43312f3e4850 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -104446,7 +112647,7 @@ index ec2bc7bdf704..43312f3e4850 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -166,82 +83,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -181,82 +86,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -104504,10 +112705,10 @@ index ec2bc7bdf704..43312f3e4850 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -104518,10 +112719,10 @@ index ec2bc7bdf704..43312f3e4850 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -104533,16 +112734,23 @@ index ec2bc7bdf704..43312f3e4850 100644 Library("video_gn") diff --git third_party/libwebrtc/video/video_receive_stream_timeout_tracker_gn/moz.build third_party/libwebrtc/video/video_receive_stream_timeout_tracker_gn/moz.build -index ca7fe91a98bd..3ede4e3c5441 100644 +index bc2d0a143361..c6e4d36f8444 100644 --- third_party/libwebrtc/video/video_receive_stream_timeout_tracker_gn/moz.build +++ third_party/libwebrtc/video/video_receive_stream_timeout_tracker_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -104559,13 +112767,17 @@ index ca7fe91a98bd..3ede4e3c5441 100644 FINAL_LIBRARY = "xul" -@@ -47,98 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,114 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -104584,6 +112796,10 @@ index ca7fe91a98bd..3ede4e3c5441 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -104591,6 +112807,10 @@ index ca7fe91a98bd..3ede4e3c5441 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -104604,12 +112824,12 @@ index ca7fe91a98bd..3ede4e3c5441 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -104622,6 +112842,10 @@ index ca7fe91a98bd..3ede4e3c5441 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -104659,7 +112883,7 @@ index ca7fe91a98bd..3ede4e3c5441 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -146,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -104717,10 +112941,10 @@ index ca7fe91a98bd..3ede4e3c5441 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -104731,10 +112955,10 @@ index ca7fe91a98bd..3ede4e3c5441 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -104746,16 +112970,23 @@ index ca7fe91a98bd..3ede4e3c5441 100644 Library("video_receive_stream_timeout_tracker_gn") diff --git third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build -index bc36ab524a06..25af38a13548 100644 +index f52787a08fce..253db3b836e7 100644 --- third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build +++ third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -104772,13 +113003,17 @@ index bc36ab524a06..25af38a13548 100644 FINAL_LIBRARY = "xul" -@@ -47,99 +56,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -46,115 +59,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -104798,6 +113033,10 @@ index bc36ab524a06..25af38a13548 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -104805,6 +113044,10 @@ index bc36ab524a06..25af38a13548 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -104818,12 +113061,12 @@ index bc36ab524a06..25af38a13548 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -104836,6 +113079,10 @@ index bc36ab524a06..25af38a13548 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -104873,7 +113120,7 @@ index bc36ab524a06..25af38a13548 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -147,82 +64,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -162,82 +67,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -104931,10 +113178,10 @@ index bc36ab524a06..25af38a13548 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -104945,10 +113192,10 @@ index bc36ab524a06..25af38a13548 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -104960,16 +113207,23 @@ index bc36ab524a06..25af38a13548 100644 Library("video_stream_buffer_controller_gn") diff --git third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build -index 7869e76699a7..069bc56cba0f 100644 +index 25ef4221b6be..09291af07481 100644 --- third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build +++ third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -9,16 +9,29 @@ + COMPILE_FLAGS["OS_INCLUDES"] = [] + AllowCompilerWarnings() + ++CXXFLAGS += [ ++ "-std=gnu++20" ++] ++ + DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -104986,13 +113240,17 @@ index 7869e76699a7..069bc56cba0f 100644 FINAL_LIBRARY = "xul" -@@ -55,99 +64,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -54,115 +67,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" - -if CONFIG["OS_TARGET"] == "Android": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["ANDROID"] = True - DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" - DEFINES["HAVE_SYS_UIO_H"] = True @@ -105012,6 +113270,10 @@ index 7869e76699a7..069bc56cba0f 100644 - -if CONFIG["OS_TARGET"] == "Darwin": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["WEBRTC_MAC"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["__STDC_CONSTANT_MACROS"] = True @@ -105019,6 +113281,10 @@ index 7869e76699a7..069bc56cba0f 100644 - -if CONFIG["OS_TARGET"] == "Linux": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" @@ -105032,12 +113298,12 @@ index 7869e76699a7..069bc56cba0f 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - +- CXXFLAGS += [ +- "-std=gnu++20" +- ] +- - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_BSD"] = True @@ -105050,6 +113316,10 @@ index 7869e76699a7..069bc56cba0f 100644 - -if CONFIG["OS_TARGET"] == "WINNT": - +- CXXFLAGS += [ +- "-std:c++20" +- ] +- - DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True - DEFINES["NOMINMAX"] = True - DEFINES["NTDDI_VERSION"] = "0x0A000000" @@ -105087,7 +113357,7 @@ index 7869e76699a7..069bc56cba0f 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -155,82 +72,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -170,82 +75,21 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -105145,10 +113415,10 @@ index 7869e76699a7..069bc56cba0f 100644 - -if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": - - CXXFLAGS += [ - "-msse2" - ] - +- CXXFLAGS += [ +- "-msse2" +- ] +- -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": - - DEFINES["_GNU_SOURCE"] = True @@ -105159,10 +113429,10 @@ index 7869e76699a7..069bc56cba0f 100644 - -if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": - -- CXXFLAGS += [ -- "-msse2" -- ] -- + CXXFLAGS += [ + "-msse2" + ] + - DEFINES["_GNU_SOURCE"] = True + DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -105174,16 +113444,15 @@ index 7869e76699a7..069bc56cba0f 100644 Library("video_stream_encoder_impl_gn") diff --git third_party/libwebrtc/video/video_stream_encoder_interface_gn/moz.build third_party/libwebrtc/video/video_stream_encoder_interface_gn/moz.build -index 2d846cdb56bf..e9b9e9ac4128 100644 +index 89ad79e33a09..17f77a8bcf9e 100644 --- third_party/libwebrtc/video/video_stream_encoder_interface_gn/moz.build +++ third_party/libwebrtc/video/video_stream_encoder_interface_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -105200,7 +113469,7 @@ index 2d846cdb56bf..e9b9e9ac4128 100644 FINAL_LIBRARY = "xul" -@@ -43,98 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,94 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -105245,10 +113514,6 @@ index 2d846cdb56bf..e9b9e9ac4128 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -105300,7 +113565,7 @@ index 2d846cdb56bf..e9b9e9ac4128 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -142,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -137,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -105326,7 +113591,7 @@ index 2d846cdb56bf..e9b9e9ac4128 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -170,40 +73,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -165,40 +72,4 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -105368,16 +113633,15 @@ index 2d846cdb56bf..e9b9e9ac4128 100644 - Library("video_stream_encoder_interface_gn") diff --git third_party/libwebrtc/webrtc_gn/moz.build third_party/libwebrtc/webrtc_gn/moz.build -index 964093865951..85a1b6287692 100644 +index 42667b424826..dc7270acb50d 100644 --- third_party/libwebrtc/webrtc_gn/moz.build +++ third_party/libwebrtc/webrtc_gn/moz.build -@@ -13,13 +13,22 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" +@@ -13,12 +13,21 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True DEFINES["RTC_ENABLE_VP9"] = True +DEFINES["USE_GLIB"] = "1" +DEFINES["USE_OZONE"] = "1" - DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True +DEFINES["WEBRTC_BSD"] = True DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" DEFINES["WEBRTC_LIBRARY_IMPL"] = True @@ -105394,7 +113658,7 @@ index 964093865951..85a1b6287692 100644 FINAL_LIBRARY = "xul" -@@ -43,122 +52,7 @@ if not CONFIG["MOZ_DEBUG"]: +@@ -42,118 +51,7 @@ if not CONFIG["MOZ_DEBUG"]: if CONFIG["MOZ_DEBUG"] == "1": DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" @@ -105445,10 +113709,6 @@ index 964093865951..85a1b6287692 100644 - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - -- OS_LIBS += [ -- "rt" -- ] -- -if CONFIG["OS_TARGET"] == "OpenBSD": - - DEFINES["USE_GLIB"] = "1" @@ -105518,7 +113778,7 @@ index 964093865951..85a1b6287692 100644 if CONFIG["TARGET_CPU"] == "aarch64": -@@ -166,25 +60,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": +@@ -161,25 +59,10 @@ if CONFIG["TARGET_CPU"] == "aarch64": DEFINES["WEBRTC_HAS_NEON"] = True DEFINES["__ARM_NEON__"] = "1" @@ -105544,7 +113804,7 @@ index 964093865951..85a1b6287692 100644 if CONFIG["TARGET_CPU"] == "x86": -@@ -194,27 +73,7 @@ if CONFIG["TARGET_CPU"] == "x86_64": +@@ -189,27 +72,7 @@ if CONFIG["TARGET_CPU"] == "x86_64": DEFINES["WEBRTC_ENABLE_AVX2"] = True @@ -105573,7 +113833,7 @@ index 964093865951..85a1b6287692 100644 OS_LIBS += [ "X11", -@@ -226,20 +85,4 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": +@@ -221,20 +84,4 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux": "Xrender" ] diff --git a/mail/thunderbird/files/patch-third__party_libwebrtc_build_config_BUILDCONFIG.gn b/mail/thunderbird/files/patch-third__party_libwebrtc_build_config_BUILDCONFIG.gn index 4b1ff9f98604..7774855c7941 100644 --- a/mail/thunderbird/files/patch-third__party_libwebrtc_build_config_BUILDCONFIG.gn +++ b/mail/thunderbird/files/patch-third__party_libwebrtc_build_config_BUILDCONFIG.gn @@ -1,21 +1,21 @@ -commit 79334dba3e5be4a7bb17a22b2fde70933991d6f4 +commit e8a3b91abdc00edd7633aabbe5e63bfc0d0825e4 Author: Christoph Moench-Tegeder <cmt@FreeBSD.org> enable pipewire on bsd diff --git third_party/chromium/build/config/BUILDCONFIG.gn third_party/chromium/build/config/BUILDCONFIG.gn -index 889bdb9235..1566833175 100644 +index 4bb38fe31ff2..b10eb19f521a 100644 --- third_party/chromium/build/config/BUILDCONFIG.gn +++ third_party/chromium/build/config/BUILDCONFIG.gn -@@ -132,6 +132,7 @@ declare_args() { +@@ -137,6 +137,7 @@ declare_args() { # Set to true when compiling with the Clang compiler. is_clang = current_os != "linux" || current_os == "openbsd" || -+ current_os != "freebsd" || ++ current_os == "freebsd" || (current_cpu != "s390x" && current_cpu != "s390" && current_cpu != "ppc64" && current_cpu != "ppc" && current_cpu != "mips" && current_cpu != "mips64" && -@@ -184,7 +185,7 @@ if (host_toolchain == "") { +@@ -206,7 +207,7 @@ if (host_toolchain == "") { # TODO(dpranke): Add some sort of assert here that verifies that # no toolchain omitted host_toolchain from its toolchain_args(). @@ -24,16 +24,16 @@ index 889bdb9235..1566833175 100644 if (target_os != "linux") { host_toolchain = "//chromium/build/toolchain/linux:clang_$host_cpu" } else if (is_clang) { -@@ -222,7 +223,7 @@ if (target_os == "android") { - assert(host_os == "linux" || host_os == "mac", - "Android builds are only supported on Linux and Mac hosts.") +@@ -246,7 +247,7 @@ if (target_os == "android") { + # Targeting android on Mac is best-effort and not guaranteed to work. + #assert(host_os == "linux", "Android builds are only supported on Linux.") _default_toolchain = "//chromium/build/toolchain/android:android_clang_$target_cpu" -} else if (target_os == "chromeos" || target_os == "linux" || target_os == "openbsd") { +} else if (target_os == "chromeos" || target_os == "linux" || target_os == "openbsd" || target_os == "freebsd") { # See comments in build/toolchain/cros/BUILD.gn about board compiles. if (is_clang) { _default_toolchain = "//chromium/build/toolchain/linux:clang_$target_cpu" -@@ -288,7 +289,7 @@ is_chromeos = current_os == "chromeos" +@@ -314,7 +315,7 @@ is_chromeos = current_os == "chromeos" is_fuchsia = current_os == "fuchsia" is_ios = current_os == "ios" is_linux = current_os == "linux" @@ -41,12 +41,12 @@ index 889bdb9235..1566833175 100644 +is_bsd = current_os == "openbsd" || current_os == "freebsd" is_mac = current_os == "mac" is_nacl = current_os == "nacl" - is_win = current_os == "win" || current_os == "winuwp" + is_wasm = current_os == "emscripten" diff --git third_party/libwebrtc/BUILD.gn third_party/libwebrtc/BUILD.gn -index 14c47ef2be..31a86a41c0 100644 +index ac8569efaa40..5d6c5953491c 100644 --- third_party/libwebrtc/BUILD.gn +++ third_party/libwebrtc/BUILD.gn -@@ -110,7 +110,7 @@ if (!build_with_chromium && !build_with_mozilla) { +@@ -111,7 +111,7 @@ if (!build_with_chromium && !build_with_mozilla) { "tools_webrtc/perf:webrtc_dashboard_upload", ] } @@ -56,10 +56,10 @@ index 14c47ef2be..31a86a41c0 100644 } } diff --git third_party/libwebrtc/modules/desktop_capture/BUILD.gn third_party/libwebrtc/modules/desktop_capture/BUILD.gn -index 2f99e3f75f..7dc6c36aab 100644 +index 5c843cfc2b6a..0ed9f98a964f 100644 --- third_party/libwebrtc/modules/desktop_capture/BUILD.gn +++ third_party/libwebrtc/modules/desktop_capture/BUILD.gn -@@ -74,7 +74,7 @@ if (rtc_include_tests) { +@@ -76,7 +76,7 @@ if (rtc_include_tests) { "window_finder_unittest.cc", ] @@ -68,7 +68,7 @@ index 2f99e3f75f..7dc6c36aab 100644 configs += [ "../portal:gio" ] } -@@ -86,7 +86,7 @@ if (rtc_include_tests) { +@@ -88,7 +88,7 @@ if (rtc_include_tests) { } } @@ -77,7 +77,7 @@ index 2f99e3f75f..7dc6c36aab 100644 rtc_test("shared_screencast_stream_test") { testonly = true -@@ -145,7 +145,7 @@ if (rtc_include_tests) { +@@ -148,7 +148,7 @@ if (rtc_include_tests) { "test_utils_unittest.cc", ] @@ -86,6 +86,24 @@ index 2f99e3f75f..7dc6c36aab 100644 configs += [ "../portal:gio" ] } +@@ -215,7 +215,7 @@ if (rtc_include_tests) { + "screen_drawer.h", + ] + +- if (is_linux || is_chromeos) { ++ if (is_linux || is_chromeos || is_bsd) { + sources += [ "screen_drawer_linux.cc" ] + libs = [ "X11" ] + } +@@ -254,7 +254,7 @@ if (rtc_include_tests) { + "mock_desktop_capturer_callback.h", + ] + +- if ((is_linux || is_chromeos) && rtc_use_pipewire) { ++ if ((is_linux || is_chromeos || us_bsd) && rtc_use_pipewire) { + configs += [ "../portal:gio" ] + } + @@ -267,7 +267,7 @@ if (rtc_include_tests) { } @@ -95,17 +113,8 @@ index 2f99e3f75f..7dc6c36aab 100644 config("pipewire_config") { configs = [ "../portal:pipewire_config" ] } -@@ -329,7 +329,7 @@ rtc_library("desktop_capture") { - "window_finder.cc", - "window_finder.h", - ] -- if (is_linux && !is_castos && rtc_use_pipewire) { -+ if ((is_linux || is_bsd) && !is_castos && rtc_use_pipewire) { - sources += [ "desktop_capture_metadata.h" ] - } - if (is_mac) { diff --git third_party/libwebrtc/modules/portal/BUILD.gn third_party/libwebrtc/modules/portal/BUILD.gn -index 6828388b31..7e1857d861 100644 +index 70b4739ad0c4..99ab95d441f3 100644 --- third_party/libwebrtc/modules/portal/BUILD.gn +++ third_party/libwebrtc/modules/portal/BUILD.gn @@ -10,7 +10,7 @@ import("//chromium/build/config/linux/pkg_config.gni") @@ -118,7 +127,7 @@ index 6828388b31..7e1857d861 100644 pkg_config("gio") { packages = [ diff --git third_party/libwebrtc/webrtc.gni third_party/libwebrtc/webrtc.gni -index 7155b1db72..22ed06166a 100644 +index 1e87de20e545..77a8a55d8659 100644 --- third_party/libwebrtc/webrtc.gni +++ third_party/libwebrtc/webrtc.gni @@ -151,7 +151,7 @@ declare_args() { diff --git a/mail/thunderbird/files/patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland__egl__dmabuf.cc b/mail/thunderbird/files/patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland__egl__dmabuf.cc index dc51721edf06..13a23c835960 100644 --- a/mail/thunderbird/files/patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland__egl__dmabuf.cc +++ b/mail/thunderbird/files/patch-third__party_libwebrtc_modules_desktop__capture_linux_wayland__egl__dmabuf.cc @@ -1,26 +1,19 @@ -commit 505b8f54ca7e3ee3230ed9c94e6553de504fda29 +commit f53507857647459d4a48935901f80f27a5ae58a9 Author: Christoph Moench-Tegeder <cmt@FreeBSD.org> avoid linux-only includes diff --git third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc -index 9f30378451fb..75381cd39e29 100644 +index 821fdfb487b7..e000c1c104fe 100644 --- third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc +++ third_party/libwebrtc/modules/desktop_capture/linux/wayland/egl_dmabuf.cc -@@ -11,12 +11,16 @@ - #include "modules/desktop_capture/linux/wayland/egl_dmabuf.h" - - #include <EGL/eglext.h> +@@ -15,7 +15,9 @@ + #include <EGL/eglplatform.h> + #include <GL/gl.h> + #include <GL/glext.h> +#if !defined(__FreeBSD__) #include <asm/ioctl.h> +#endif #include <dlfcn.h> #include <fcntl.h> - #include <gdk/gdk.h> - #include <libdrm/drm_fourcc.h> -+#if !defined(__FreeBSD__) - #include <linux/types.h> -+#endif - #include <spa/param/video/format-utils.h> - #include <unistd.h> - #include <xf86drm.h> + #include <gbm.h> diff --git a/mail/thunderbird/files/patch-third__party_libwebrtc_modules_portal_pipewire__utils.h b/mail/thunderbird/files/patch-third__party_libwebrtc_modules_portal_pipewire__utils.h new file mode 100644 index 000000000000..14ed30920d6a --- /dev/null +++ b/mail/thunderbird/files/patch-third__party_libwebrtc_modules_portal_pipewire__utils.h @@ -0,0 +1,19 @@ +commit 9f34111f6f4e2ebefd878a3c256fc012826e6936 +Author: Christoph Moench-Tegeder <cmt@FreeBSD.org> + + FreeBSD does not know asm-generic/ioctl.h + +diff --git third_party/libwebrtc/modules/portal/pipewire_utils.h third_party/libwebrtc/modules/portal/pipewire_utils.h +index c3d4f347a8cd..14a36260c292 100644 +--- third_party/libwebrtc/modules/portal/pipewire_utils.h ++++ third_party/libwebrtc/modules/portal/pipewire_utils.h +@@ -11,7 +11,9 @@ + #ifndef MODULES_PORTAL_PIPEWIRE_UTILS_H_ + #define MODULES_PORTAL_PIPEWIRE_UTILS_H_ + ++#if !defined(__FreeBSD__) + #include <asm-generic/ioctl.h> ++#endif + #include <sys/ioctl.h> + #include <sys/mman.h> + |
