summaryrefslogtreecommitdiff
path: root/www/firefox/files
diff options
context:
space:
mode:
authorChristoph Moench-Tegeder <cmt@FreeBSD.org>2025-03-25 22:27:52 +0100
committerChristoph Moench-Tegeder <cmt@FreeBSD.org>2025-03-25 22:27:52 +0100
commit90a57ac9f29ad9df483827a5bd9d584a7c5aedcd (patch)
tree535cb9e18b264e8cee84be81eb86de8bbd21effe /www/firefox/files
parentnet/freerdp3: Update 3.14.0 => 3.14.1 (diff)
www/firefox: update to 137.0 (rc1)
Release Notes (soon): https://www.mozilla.org/en-US/firefox/137.0/releasenotes/
Diffstat (limited to 'www/firefox/files')
-rw-r--r--www/firefox/files/patch-bug19487768
-rw-r--r--www/firefox/files/patch-build_gn__processor.py (renamed from www/firefox/files/patch-python_mozbuild_mozbuild_gn__processor.py)20
-rw-r--r--www/firefox/files/patch-libwebrtc-generated5072
3 files changed, 3798 insertions, 1302 deletions
diff --git a/www/firefox/files/patch-bug1948776 b/www/firefox/files/patch-bug1948776
index 86953f4e4472..d969a28a0dec 100644
--- a/www/firefox/files/patch-bug1948776
+++ b/www/firefox/files/patch-bug1948776
@@ -21,9 +21,9 @@ index 61121bcbaf8d..b31f2200e8e6 100644
- void* memory = mmap(nullptr, aSize, PROT_NONE,
- MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, -1, 0);
+#ifndef __FreeBSD__
-+ int flags = MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE;
++ constexpr int flags = MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE;
+#else
-+ int flags = MAP_ANONYMOUS | MAP_PRIVATE;
++ constexpr int flags = MAP_ANONYMOUS | MAP_PRIVATE;
+#endif
+ void* memory = mmap(nullptr, aSize, PROT_NONE, flags, -1, 0);
if (memory == MAP_FAILED) {
@@ -40,9 +40,9 @@ index da279f469237..9ed83af4b1f2 100644
- void* memory = mmap(nullptr, size, PROT_NONE,
- MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, -1, 0);
+#ifndef __FreeBSD__
-+ int flags = MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE;
++ constexpr int flags = MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE;
+#else
-+ int flags = MAP_ANONYMOUS | MAP_PRIVATE;
++ constexpr int flags = MAP_ANONYMOUS | MAP_PRIVATE;
+#endif
+ void* memory = mmap(nullptr, size, PROT_NONE, flags, -1, 0);
if (memory == MAP_FAILED) {
diff --git a/www/firefox/files/patch-python_mozbuild_mozbuild_gn__processor.py b/www/firefox/files/patch-build_gn__processor.py
index 94584d8b160b..be5e10347483 100644
--- a/www/firefox/files/patch-python_mozbuild_mozbuild_gn__processor.py
+++ b/www/firefox/files/patch-build_gn__processor.py
@@ -1,13 +1,13 @@
-commit 6bfdff4afcc9e3843b9c3a5d7e884e281a305398
+commit 0e5bcbefae64b35a5c8df360e3980258a565fa72
Author: Christoph Moench-Tegeder <cmt@burggraben.net>
- chase gn_processor.py changes
+ chase gn_processor.py move
-diff --git python/mozbuild/mozbuild/gn_processor.py python/mozbuild/mozbuild/gn_processor.py
-index a77b6c7759f1..e5498ac5e9df 100644
---- python/mozbuild/mozbuild/gn_processor.py
-+++ python/mozbuild/mozbuild/gn_processor.py
-@@ -185,6 +185,7 @@ def filter_gn_config(path, gn_result, sandbox_vars, input_vars, gn_target):
+diff --git build/gn_processor.py build/gn_processor.py
+index 2ba8b92c2751..91170efb9a5d 100644
+--- build/gn_processor.py
++++ build/gn_processor.py
+@@ -186,6 +186,7 @@ def filter_gn_config(path, gn_result, sandbox_vars, input_vars, gn_target):
}
oses = {
"android": "Android",
@@ -15,7 +15,7 @@ index a77b6c7759f1..e5498ac5e9df 100644
"linux": "Linux",
"mac": "Darwin",
"openbsd": "OpenBSD",
-@@ -742,17 +743,17 @@ def main():
+@@ -780,17 +781,17 @@ def main():
vars_set = []
for is_debug in (True, False):
@@ -35,10 +35,10 @@ index a77b6c7759f1..e5498ac5e9df 100644
target_cpus.append("riscv64")
- if target_os == "linux":
+ if target_os in ("freebsd", "linux"):
- target_cpus.extend(["ppc64", "mipsel", "mips64el"])
+ target_cpus.extend(["loong64", "ppc64", "mipsel", "mips64el"])
for target_cpu in target_cpus:
vars = {
-@@ -761,7 +762,7 @@ def main():
+@@ -799,7 +800,7 @@ def main():
"target_cpu": target_cpu,
"target_os": target_os,
}
diff --git a/www/firefox/files/patch-libwebrtc-generated b/www/firefox/files/patch-libwebrtc-generated
index 7cc3320ba596..9158e070322c 100644
--- a/www/firefox/files/patch-libwebrtc-generated
+++ b/www/firefox/files/patch-libwebrtc-generated
@@ -1,10 +1,10 @@
-commit 05e619ebbe49c70dab8273ff9769da63ea1d8631
+commit 03ad892364d95687b41b0eabd6031c4d3e081db4
Author: Christoph Moench-Tegeder <cmt@FreeBSD.org>
- regenerate FreeBSD libwebrtc patch for Firefox 136
+ regenerate FreeBSD libwebrtc patch for Firefox 137
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 31e5e0cb14be..d54f6dbed565 100644
+index 655ef59cba4b..d54f6dbed565 100644
--- third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build
+++ third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -28,7 +28,7 @@ index 31e5e0cb14be..d54f6dbed565 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -130,6 +130,10 @@ index 31e5e0cb14be..d54f6dbed565 100644
- 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
@@ -211,7 +215,7 @@ index 31e5e0cb14be..d54f6dbed565 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 84878ba9f99f..0a1c7b839dda 100644
+index d4382d1df1cc..0a1c7b839dda 100644
--- third_party/libwebrtc/api/array_view_gn/moz.build
+++ third_party/libwebrtc/api/array_view_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -235,7 +239,7 @@ index 84878ba9f99f..0a1c7b839dda 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -333,6 +337,10 @@ index 84878ba9f99f..0a1c7b839dda 100644
- 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
@@ -345,7 +353,7 @@ index 84878ba9f99f..0a1c7b839dda 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -398,7 +406,7 @@ index 84878ba9f99f..0a1c7b839dda 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 f8804e882e6e..b6efeac78e76 100644
+index e935019626ad..b6efeac78e76 100644
--- third_party/libwebrtc/api/async_dns_resolver_gn/moz.build
+++ third_party/libwebrtc/api/async_dns_resolver_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -422,7 +430,7 @@ index f8804e882e6e..b6efeac78e76 100644
FINAL_LIBRARY = "xul"
-@@ -39,116 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -528,6 +536,10 @@ index f8804e882e6e..b6efeac78e76 100644
- 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
@@ -540,7 +552,7 @@ index f8804e882e6e..b6efeac78e76 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -158,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -593,7 +605,7 @@ index f8804e882e6e..b6efeac78e76 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 f79ef5c75c4d..daf2b9c13beb 100644
+index cfb3b6961c8e..daf2b9c13beb 100644
--- third_party/libwebrtc/api/audio/aec3_config_gn/moz.build
+++ third_party/libwebrtc/api/audio/aec3_config_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -617,7 +629,7 @@ index f79ef5c75c4d..daf2b9c13beb 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -719,6 +731,10 @@ index f79ef5c75c4d..daf2b9c13beb 100644
- 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
@@ -800,7 +816,7 @@ index f79ef5c75c4d..daf2b9c13beb 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 4f58b0dfae3e..9311473ef1a8 100644
+index 589d5a72ef9b..9311473ef1a8 100644
--- third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build
+++ third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -825,7 +841,7 @@ index 4f58b0dfae3e..9311473ef1a8 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -938,6 +954,10 @@ index 4f58b0dfae3e..9311473ef1a8 100644
- 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
@@ -1019,7 +1039,7 @@ index 4f58b0dfae3e..9311473ef1a8 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 acf6fe8822f4..956114463750 100644
+index a727e70ec91d..956114463750 100644
--- third_party/libwebrtc/api/audio/audio_device_gn/moz.build
+++ third_party/libwebrtc/api/audio/audio_device_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -1043,7 +1063,7 @@ index acf6fe8822f4..956114463750 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -1141,6 +1161,10 @@ index acf6fe8822f4..956114463750 100644
- 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
@@ -1153,7 +1177,7 @@ index acf6fe8822f4..956114463750 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -1206,7 +1230,7 @@ index acf6fe8822f4..956114463750 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 5506b2b799c0..f121290ac495 100644
+index 0cf70f6a0a66..f121290ac495 100644
--- third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build
+++ third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -1230,7 +1254,7 @@ index 5506b2b799c0..f121290ac495 100644
FINAL_LIBRARY = "xul"
-@@ -44,182 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -1339,6 +1363,10 @@ index 5506b2b799c0..f121290ac495 100644
- 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
@@ -1420,7 +1448,7 @@ index 5506b2b799c0..f121290ac495 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 3b9b2a2dd8f1..f34df50bef47 100644
+index d9e237b4c753..f34df50bef47 100644
--- third_party/libwebrtc/api/audio/audio_frame_processor_gn/moz.build
+++ third_party/libwebrtc/api/audio/audio_frame_processor_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -1444,7 +1472,7 @@ index 3b9b2a2dd8f1..f34df50bef47 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -1538,6 +1566,10 @@ index 3b9b2a2dd8f1..f34df50bef47 100644
- 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
@@ -1550,7 +1582,7 @@ index 3b9b2a2dd8f1..f34df50bef47 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -1603,7 +1635,7 @@ index 3b9b2a2dd8f1..f34df50bef47 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 13f69cf28328..aca2a4d6a37f 100644
+index 9576084c2bfb..aca2a4d6a37f 100644
--- third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build
+++ third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -1627,7 +1659,7 @@ index 13f69cf28328..aca2a4d6a37f 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -1732,6 +1764,10 @@ index 13f69cf28328..aca2a4d6a37f 100644
- 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
@@ -1744,7 +1780,7 @@ index 13f69cf28328..aca2a4d6a37f 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -1797,7 +1833,7 @@ index 13f69cf28328..aca2a4d6a37f 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 c7c012a9aa21..fb9329509240 100644
+index 2e7d38d911f4..fb9329509240 100644
--- third_party/libwebrtc/api/audio/audio_processing_gn/moz.build
+++ third_party/libwebrtc/api/audio/audio_processing_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -1821,7 +1857,7 @@ index c7c012a9aa21..fb9329509240 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -1923,6 +1959,10 @@ index c7c012a9aa21..fb9329509240 100644
- 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
@@ -2004,7 +2044,7 @@ index c7c012a9aa21..fb9329509240 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 064122654c6f..9275b9e39050 100644
+index 0400bcf1bdfc..9275b9e39050 100644
--- third_party/libwebrtc/api/audio/audio_processing_statistics_gn/moz.build
+++ third_party/libwebrtc/api/audio/audio_processing_statistics_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -2028,7 +2068,7 @@ index 064122654c6f..9275b9e39050 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -2126,6 +2166,10 @@ index 064122654c6f..9275b9e39050 100644
- 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
@@ -2206,8 +2250,231 @@ index 064122654c6f..9275b9e39050 100644
+ DEFINES["USE_X11"] = "1"
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 af681d4d0d28..dd6059825208 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
+@@ -12,12 +12,21 @@ AllowCompilerWarnings()
+ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
+ DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
+ DEFINES["RTC_ENABLE_VP9"] = True
++DEFINES["USE_GLIB"] = "1"
++DEFINES["USE_OZONE"] = "1"
+ DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "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["__STDC_CONSTANT_MACROS"] = True
++DEFINES["__STDC_FORMAT_MACROS"] = True
+
+ FINAL_LIBRARY = "xul"
+
+@@ -44,190 +53,32 @@ 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"] = "r22_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["__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["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
+- DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
+- 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_NSS_CERTS"] = "1"
+- DEFINES["USE_OZONE"] = "1"
+- DEFINES["USE_UDEV"] = True
+- DEFINES["WEBRTC_LINUX"] = 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
+-
+- OS_LIBS += [
+- "rt"
+- ]
+-
+-if CONFIG["OS_TARGET"] == "OpenBSD":
+-
+- DEFINES["USE_GLIB"] = "1"
+- DEFINES["USE_OZONE"] = "1"
+- DEFINES["USE_X11"] = "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_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["__STD_C"] = True
+-
+- OS_LIBS += [
+- "crypt32",
+- "iphlpapi",
+- "secur32",
+- "winmm"
+- ]
++ DEFINES["_DEBUG"] = True
+
+ if CONFIG["TARGET_CPU"] == "aarch64":
+
+ DEFINES["WEBRTC_ARCH_ARM64"] = True
+ DEFINES["WEBRTC_HAS_NEON"] = True
+
+-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["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
+-
+- DEFINES["USE_X11"] = "1"
+-
+-if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "arm":
+-
+- OS_LIBS += [
+- "unwind"
+- ]
+-
+-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":
++ DEFINES["WEBRTC_ENABLE_AVX2"] = True
+
+- CXXFLAGS += [
+- "-msse2"
+- ]
++if CONFIG["TARGET_CPU"] == "x86_64":
+
+- DEFINES["_GNU_SOURCE"] = True
++ DEFINES["WEBRTC_ENABLE_AVX2"] = True
+
+-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
++if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
+
+- DEFINES["_GNU_SOURCE"] = True
++ DEFINES["USE_X11"] = "1"
+
+ 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 67e90d93f334..9bb9eff44ed7 100644
+index 904a224b5a88..9bb9eff44ed7 100644
--- third_party/libwebrtc/api/audio/echo_control_gn/moz.build
+++ third_party/libwebrtc/api/audio/echo_control_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -2231,7 +2498,7 @@ index 67e90d93f334..9bb9eff44ed7 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -2329,6 +2596,10 @@ index 67e90d93f334..9bb9eff44ed7 100644
- 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
@@ -2341,7 +2612,7 @@ index 67e90d93f334..9bb9eff44ed7 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -2394,7 +2665,7 @@ index 67e90d93f334..9bb9eff44ed7 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 f639c8e6aa50..b7d03e2fb268 100644
+index ae4047c15bad..b7d03e2fb268 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -2418,7 +2689,7 @@ index f639c8e6aa50..b7d03e2fb268 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -2527,6 +2798,10 @@ index f639c8e6aa50..b7d03e2fb268 100644
- 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
@@ -2608,7 +2883,7 @@ index f639c8e6aa50..b7d03e2fb268 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 38eb1e438940..5c76a4bbb10f 100644
+index 9007bea06a57..5c76a4bbb10f 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -2632,7 +2907,7 @@ index 38eb1e438940..5c76a4bbb10f 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -2741,6 +3016,10 @@ index 38eb1e438940..5c76a4bbb10f 100644
- 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
@@ -2822,7 +3101,7 @@ index 38eb1e438940..5c76a4bbb10f 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 3b733727d4f6..475c29ae92d2 100644
+index 1de066daa01e..475c29ae92d2 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -2846,7 +3125,7 @@ index 3b733727d4f6..475c29ae92d2 100644
FINAL_LIBRARY = "xul"
-@@ -46,182 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -2955,6 +3234,10 @@ index 3b733727d4f6..475c29ae92d2 100644
- 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
@@ -3036,7 +3319,7 @@ index 3b733727d4f6..475c29ae92d2 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 23378fd83171..517b3b57ed6b 100644
+index be74a5a11b8d..517b3b57ed6b 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -3061,7 +3344,7 @@ index 23378fd83171..517b3b57ed6b 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -3174,6 +3457,10 @@ index 23378fd83171..517b3b57ed6b 100644
- 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
@@ -3255,7 +3542,7 @@ index 23378fd83171..517b3b57ed6b 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 f58bac277b45..4c5f8099504f 100644
+index f6a0d16b0b5c..4c5f8099504f 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -3280,7 +3567,7 @@ index f58bac277b45..4c5f8099504f 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -3393,6 +3680,10 @@ index f58bac277b45..4c5f8099504f 100644
- 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
@@ -3474,7 +3765,7 @@ index f58bac277b45..4c5f8099504f 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 cb227d9c44a9..c883304f6928 100644
+index 58fffb2e22d1..c883304f6928 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -3498,7 +3789,7 @@ index cb227d9c44a9..c883304f6928 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -3607,6 +3898,10 @@ index cb227d9c44a9..c883304f6928 100644
- 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
@@ -3688,7 +3983,7 @@ index cb227d9c44a9..c883304f6928 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 d25ce578888b..0399f439f107 100644
+index 7f12ebe49f01..0399f439f107 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -3712,7 +4007,7 @@ index d25ce578888b..0399f439f107 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -3821,6 +4116,10 @@ index d25ce578888b..0399f439f107 100644
- 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
@@ -3902,7 +4201,7 @@ index d25ce578888b..0399f439f107 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 70a5175c80b8..d9457426de70 100644
+index e808e4298249..d9457426de70 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -3926,7 +4225,7 @@ index 70a5175c80b8..d9457426de70 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -4035,6 +4334,10 @@ index 70a5175c80b8..d9457426de70 100644
- 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
@@ -4116,7 +4419,7 @@ index 70a5175c80b8..d9457426de70 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 bc2f347b5d5f..724106b4aea7 100644
+index 5e4da695b94a..724106b4aea7 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -4140,7 +4443,7 @@ index bc2f347b5d5f..724106b4aea7 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -4245,6 +4548,10 @@ index bc2f347b5d5f..724106b4aea7 100644
- 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
@@ -4257,7 +4564,7 @@ index bc2f347b5d5f..724106b4aea7 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -4310,7 +4617,7 @@ index bc2f347b5d5f..724106b4aea7 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 593c04d9bd47..4d8340d021cd 100644
+index 1ea3e2809c53..4d8340d021cd 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -4334,7 +4641,7 @@ index 593c04d9bd47..4d8340d021cd 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -4443,6 +4750,10 @@ index 593c04d9bd47..4d8340d021cd 100644
- 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
@@ -4524,7 +4835,7 @@ index 593c04d9bd47..4d8340d021cd 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 073323eeed09..abf91648be19 100644
+index 37f380708aa3..abf91648be19 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -4548,7 +4859,7 @@ index 073323eeed09..abf91648be19 100644
FINAL_LIBRARY = "xul"
-@@ -44,182 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -4657,6 +4968,10 @@ index 073323eeed09..abf91648be19 100644
- 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
@@ -4738,7 +5053,7 @@ index 073323eeed09..abf91648be19 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 a00c9021364a..ec98b9e1da9d 100644
+index 38ae3cb77d4a..ec98b9e1da9d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -4762,7 +5077,7 @@ index a00c9021364a..ec98b9e1da9d 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -4867,6 +5182,10 @@ index a00c9021364a..ec98b9e1da9d 100644
- 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
@@ -4879,7 +5198,7 @@ index a00c9021364a..ec98b9e1da9d 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -4932,7 +5251,7 @@ index a00c9021364a..ec98b9e1da9d 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 e118829b3861..1ef54111434a 100644
+index 7c496999196d..1ef54111434a 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -4956,7 +5275,7 @@ index e118829b3861..1ef54111434a 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -5069,6 +5388,10 @@ index e118829b3861..1ef54111434a 100644
- 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
@@ -5150,7 +5473,7 @@ index e118829b3861..1ef54111434a 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 103d5ffcfe05..233f98cf79a9 100644
+index 089a1a45e301..233f98cf79a9 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -5174,7 +5497,7 @@ index 103d5ffcfe05..233f98cf79a9 100644
FINAL_LIBRARY = "xul"
-@@ -44,182 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -5283,6 +5606,10 @@ index 103d5ffcfe05..233f98cf79a9 100644
- 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
@@ -5364,7 +5691,7 @@ index 103d5ffcfe05..233f98cf79a9 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 de3909cda981..2d9efa02ffa4 100644
+index a51951b06a09..2d9efa02ffa4 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -5389,7 +5716,7 @@ index de3909cda981..2d9efa02ffa4 100644
FINAL_LIBRARY = "xul"
-@@ -48,171 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -48,175 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -5487,6 +5814,10 @@ index de3909cda981..2d9efa02ffa4 100644
- 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
@@ -5568,7 +5899,7 @@ index de3909cda981..2d9efa02ffa4 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 2579cbe7f8d4..1d68afeb665c 100644
+index 8b4a7d737129..1d68afeb665c 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -5592,7 +5923,7 @@ index 2579cbe7f8d4..1d68afeb665c 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -5705,6 +6036,10 @@ index 2579cbe7f8d4..1d68afeb665c 100644
- 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
@@ -5786,7 +6121,7 @@ index 2579cbe7f8d4..1d68afeb665c 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 6a00bc0eac21..a8566871ce2d 100644
+index 394c4633e5be..a8566871ce2d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -5810,7 +6145,7 @@ index 6a00bc0eac21..a8566871ce2d 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -5923,6 +6258,10 @@ index 6a00bc0eac21..a8566871ce2d 100644
- 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
@@ -6004,7 +6343,7 @@ index 6a00bc0eac21..a8566871ce2d 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 1ef9e1e010a6..c8cc49dfc388 100644
+index f3d9e0c5c619..c8cc49dfc388 100644
--- third_party/libwebrtc/api/audio_options_api_gn/moz.build
+++ third_party/libwebrtc/api/audio_options_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -6028,7 +6367,7 @@ index 1ef9e1e010a6..c8cc49dfc388 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -6130,6 +6469,10 @@ index 1ef9e1e010a6..c8cc49dfc388 100644
- 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
@@ -6211,7 +6554,7 @@ index 1ef9e1e010a6..c8cc49dfc388 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 1ed7f3f9a6e1..1125b25cc2fe 100644
+index 5afb81f93349..1125b25cc2fe 100644
--- third_party/libwebrtc/api/bitrate_allocation_gn/moz.build
+++ third_party/libwebrtc/api/bitrate_allocation_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -6235,7 +6578,7 @@ index 1ed7f3f9a6e1..1125b25cc2fe 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -6333,6 +6676,10 @@ index 1ed7f3f9a6e1..1125b25cc2fe 100644
- 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
@@ -6345,7 +6692,7 @@ index 1ed7f3f9a6e1..1125b25cc2fe 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -6398,7 +6745,7 @@ index 1ed7f3f9a6e1..1125b25cc2fe 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 6489b5f50786..abcfd171700e 100644
+index 87ce5be77f85..abcfd171700e 100644
--- third_party/libwebrtc/api/call_api_gn/moz.build
+++ third_party/libwebrtc/api/call_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -6422,7 +6769,7 @@ index 6489b5f50786..abcfd171700e 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -6516,6 +6863,10 @@ index 6489b5f50786..abcfd171700e 100644
- 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
@@ -6528,7 +6879,7 @@ index 6489b5f50786..abcfd171700e 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -6581,7 +6932,7 @@ index 6489b5f50786..abcfd171700e 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 d274248ca9bd..d7c73ce42b03 100644
+index f04389690b02..d7c73ce42b03 100644
--- third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build
+++ third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -6605,7 +6956,7 @@ index d274248ca9bd..d7c73ce42b03 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -6703,6 +7054,10 @@ index d274248ca9bd..d7c73ce42b03 100644
- 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
@@ -6715,7 +7070,7 @@ index d274248ca9bd..d7c73ce42b03 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -6768,7 +7123,7 @@ index d274248ca9bd..d7c73ce42b03 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 818fa9a815fb..2388275f9ba6 100644
+index 4085a759f65d..2388275f9ba6 100644
--- third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build
+++ third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -6792,7 +7147,7 @@ index 818fa9a815fb..2388275f9ba6 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -6890,6 +7245,10 @@ index 818fa9a815fb..2388275f9ba6 100644
- 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
@@ -6902,7 +7261,7 @@ index 818fa9a815fb..2388275f9ba6 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -6955,7 +7314,7 @@ index 818fa9a815fb..2388275f9ba6 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 7f5d4ff687ed..82a22cce2ccd 100644
+index 924a8c8bad70..82a22cce2ccd 100644
--- third_party/libwebrtc/api/crypto/options_gn/moz.build
+++ third_party/libwebrtc/api/crypto/options_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -6979,7 +7338,7 @@ index 7f5d4ff687ed..82a22cce2ccd 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -7081,6 +7440,10 @@ index 7f5d4ff687ed..82a22cce2ccd 100644
- 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
@@ -7162,7 +7525,7 @@ index 7f5d4ff687ed..82a22cce2ccd 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 b3fb7ffec1c9..debb1ddd5c3a 100644
+index 76d8ff92e999..debb1ddd5c3a 100644
--- third_party/libwebrtc/api/environment/environment_factory_gn/moz.build
+++ third_party/libwebrtc/api/environment/environment_factory_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -7186,7 +7549,7 @@ index b3fb7ffec1c9..debb1ddd5c3a 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -7299,6 +7662,10 @@ index b3fb7ffec1c9..debb1ddd5c3a 100644
- 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
@@ -7380,7 +7747,7 @@ index b3fb7ffec1c9..debb1ddd5c3a 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 d2dfe8d7a673..000242d51165 100644
+index 0bb75b315e5a..000242d51165 100644
--- third_party/libwebrtc/api/environment/environment_gn/moz.build
+++ third_party/libwebrtc/api/environment/environment_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -7404,7 +7771,7 @@ index d2dfe8d7a673..000242d51165 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -7498,6 +7865,10 @@ index d2dfe8d7a673..000242d51165 100644
- 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
@@ -7510,7 +7881,7 @@ index d2dfe8d7a673..000242d51165 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -7563,7 +7934,7 @@ index d2dfe8d7a673..000242d51165 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 16d29fad0737..d83eac28dd73 100644
+index fef918e83259..d83eac28dd73 100644
--- third_party/libwebrtc/api/fec_controller_api_gn/moz.build
+++ third_party/libwebrtc/api/fec_controller_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -7587,7 +7958,7 @@ index 16d29fad0737..d83eac28dd73 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -7685,6 +8056,10 @@ index 16d29fad0737..d83eac28dd73 100644
- 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
@@ -7697,7 +8072,7 @@ index 16d29fad0737..d83eac28dd73 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -7750,7 +8125,7 @@ index 16d29fad0737..d83eac28dd73 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 32487051452b..27d919a95bd9 100644
+index 8e25c5f0af23..27d919a95bd9 100644
--- third_party/libwebrtc/api/field_trials_registry_gn/moz.build
+++ third_party/libwebrtc/api/field_trials_registry_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -7774,7 +8149,7 @@ index 32487051452b..27d919a95bd9 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -7883,6 +8258,10 @@ index 32487051452b..27d919a95bd9 100644
- 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
@@ -7964,7 +8343,7 @@ index 32487051452b..27d919a95bd9 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 550bffb5840d..935aaf609f1e 100644
+index 3b251e442736..935aaf609f1e 100644
--- third_party/libwebrtc/api/field_trials_view_gn/moz.build
+++ third_party/libwebrtc/api/field_trials_view_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -7988,7 +8367,7 @@ index 550bffb5840d..935aaf609f1e 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -8082,6 +8461,10 @@ index 550bffb5840d..935aaf609f1e 100644
- 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
@@ -8094,7 +8477,7 @@ index 550bffb5840d..935aaf609f1e 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -8147,7 +8530,7 @@ index 550bffb5840d..935aaf609f1e 100644
-
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 e4dae03fd4ba..7bd0919f032f 100644
+index f4f1de37c757..7bd0919f032f 100644
--- third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build
+++ third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -8171,7 +8554,7 @@ index e4dae03fd4ba..7bd0919f032f 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -8280,6 +8663,10 @@ index e4dae03fd4ba..7bd0919f032f 100644
- 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
@@ -8361,7 +8748,7 @@ index e4dae03fd4ba..7bd0919f032f 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 26753bb2ae11..6f7ba527bf72 100644
+index ead33463bfc3..6f7ba527bf72 100644
--- third_party/libwebrtc/api/function_view_gn/moz.build
+++ third_party/libwebrtc/api/function_view_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -8385,7 +8772,7 @@ index 26753bb2ae11..6f7ba527bf72 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -8483,6 +8870,10 @@ index 26753bb2ae11..6f7ba527bf72 100644
- 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
@@ -8495,7 +8886,7 @@ index 26753bb2ae11..6f7ba527bf72 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -8548,7 +8939,7 @@ index 26753bb2ae11..6f7ba527bf72 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 ce0844e03a6a..451b3e815625 100644
+index d7611c9edebe..451b3e815625 100644
--- third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build
+++ third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -8572,7 +8963,7 @@ index ce0844e03a6a..451b3e815625 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -8666,6 +9057,10 @@ index ce0844e03a6a..451b3e815625 100644
- 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
@@ -8678,7 +9073,7 @@ index ce0844e03a6a..451b3e815625 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -8731,7 +9126,7 @@ index ce0844e03a6a..451b3e815625 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 6b19999e8b9f..381fb63fcfbf 100644
+index 8b5a49c259d0..381fb63fcfbf 100644
--- third_party/libwebrtc/api/libjingle_peerconnection_api_gn/moz.build
+++ third_party/libwebrtc/api/libjingle_peerconnection_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -8755,7 +9150,7 @@ index 6b19999e8b9f..381fb63fcfbf 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -8849,6 +9244,10 @@ index 6b19999e8b9f..381fb63fcfbf 100644
- 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
@@ -8861,7 +9260,7 @@ index 6b19999e8b9f..381fb63fcfbf 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -8914,7 +9313,7 @@ index 6b19999e8b9f..381fb63fcfbf 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 591dac50066c..9c6045f7715e 100644
+index cae29c6f01cd..9c6045f7715e 100644
--- third_party/libwebrtc/api/location_gn/moz.build
+++ third_party/libwebrtc/api/location_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -8938,7 +9337,7 @@ index 591dac50066c..9c6045f7715e 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -9032,6 +9431,10 @@ index 591dac50066c..9c6045f7715e 100644
- 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
@@ -9044,7 +9447,7 @@ index 591dac50066c..9c6045f7715e 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -9097,7 +9500,7 @@ index 591dac50066c..9c6045f7715e 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 8494cfdb2de4..23fb60720340 100644
+index e7975c529738..23fb60720340 100644
--- third_party/libwebrtc/api/make_ref_counted_gn/moz.build
+++ third_party/libwebrtc/api/make_ref_counted_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -9121,7 +9524,7 @@ index 8494cfdb2de4..23fb60720340 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -9215,6 +9618,10 @@ index 8494cfdb2de4..23fb60720340 100644
- 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
@@ -9227,7 +9634,7 @@ index 8494cfdb2de4..23fb60720340 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -9280,7 +9687,7 @@ index 8494cfdb2de4..23fb60720340 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 ee75970953e7..a29d14c3f815 100644
+index 5b64e7f79ad8..a29d14c3f815 100644
--- third_party/libwebrtc/api/media_stream_interface_gn/moz.build
+++ third_party/libwebrtc/api/media_stream_interface_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -9304,7 +9711,7 @@ index ee75970953e7..a29d14c3f815 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -9413,6 +9820,10 @@ index ee75970953e7..a29d14c3f815 100644
- 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
@@ -9494,7 +9905,7 @@ index ee75970953e7..a29d14c3f815 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 dc91d8587b3b..de97bbbba76f 100644
+index dcd60714813d..de97bbbba76f 100644
--- third_party/libwebrtc/api/metronome/metronome_gn/moz.build
+++ third_party/libwebrtc/api/metronome/metronome_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -9518,7 +9929,7 @@ index dc91d8587b3b..de97bbbba76f 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -9616,6 +10027,10 @@ index dc91d8587b3b..de97bbbba76f 100644
- 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
@@ -9628,7 +10043,7 @@ index dc91d8587b3b..de97bbbba76f 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -9681,7 +10096,7 @@ index dc91d8587b3b..de97bbbba76f 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 24dfe847b745..2a03f232a3f2 100644
+index ebb57e97affb..2a03f232a3f2 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -9705,7 +10120,7 @@ index 24dfe847b745..2a03f232a3f2 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -9818,6 +10233,10 @@ index 24dfe847b745..2a03f232a3f2 100644
- 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
@@ -9899,7 +10318,7 @@ index 24dfe847b745..2a03f232a3f2 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 1a0743f608e3..02e6017182d4 100644
+index 96f2fffa5e33..02e6017182d4 100644
--- third_party/libwebrtc/api/neteq/default_neteq_factory_gn/moz.build
+++ third_party/libwebrtc/api/neteq/default_neteq_factory_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -9923,7 +10342,7 @@ index 1a0743f608e3..02e6017182d4 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -10036,6 +10455,10 @@ index 1a0743f608e3..02e6017182d4 100644
- 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
@@ -10117,7 +10540,7 @@ index 1a0743f608e3..02e6017182d4 100644
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 bf109c0750b4..b4bd72fd9699 100644
+index e619d4fb5ab9..b4bd72fd9699 100644
--- third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build
+++ third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -10141,7 +10564,7 @@ index bf109c0750b4..b4bd72fd9699 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -10250,6 +10673,10 @@ index bf109c0750b4..b4bd72fd9699 100644
- 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
@@ -10331,7 +10758,7 @@ index bf109c0750b4..b4bd72fd9699 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 6c9c7e83a278..32fc005477ae 100644
+index 9baed43dc5ab..32fc005477ae 100644
--- third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build
+++ third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -10355,7 +10782,7 @@ index 6c9c7e83a278..32fc005477ae 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -10460,6 +10887,10 @@ index 6c9c7e83a278..32fc005477ae 100644
- 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
@@ -10472,7 +10903,7 @@ index 6c9c7e83a278..32fc005477ae 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -10525,7 +10956,7 @@ index 6c9c7e83a278..32fc005477ae 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 ec476535c82d..df6cea066912 100644
+index a0ca1dd76f9a..df6cea066912 100644
--- third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build
+++ third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -10549,7 +10980,7 @@ index ec476535c82d..df6cea066912 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -10651,6 +11082,10 @@ index ec476535c82d..df6cea066912 100644
- 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
@@ -10732,7 +11167,7 @@ index ec476535c82d..df6cea066912 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 ef3abcb4e453..9c5e0ac36215 100644
+index 348bf16eecf1..9c5e0ac36215 100644
--- third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build
+++ third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -10756,7 +11191,7 @@ index ef3abcb4e453..9c5e0ac36215 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -10850,6 +11285,10 @@ index ef3abcb4e453..9c5e0ac36215 100644
- 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
@@ -10862,7 +11301,7 @@ index ef3abcb4e453..9c5e0ac36215 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -10915,7 +11354,7 @@ index ef3abcb4e453..9c5e0ac36215 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 6dbab628c8b5..81b1938a5747 100644
+index bae63c2cb1cc..81b1938a5747 100644
--- third_party/libwebrtc/api/priority_gn/moz.build
+++ third_party/libwebrtc/api/priority_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -10939,7 +11378,7 @@ index 6dbab628c8b5..81b1938a5747 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -11037,6 +11476,10 @@ index 6dbab628c8b5..81b1938a5747 100644
- 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
@@ -11049,7 +11492,7 @@ index 6dbab628c8b5..81b1938a5747 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -11102,7 +11545,7 @@ index 6dbab628c8b5..81b1938a5747 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 03722c2f1170..dc07e0f1d07f 100644
+index 02086e698dc8..dc07e0f1d07f 100644
--- third_party/libwebrtc/api/ref_count_gn/moz.build
+++ third_party/libwebrtc/api/ref_count_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -11126,7 +11569,7 @@ index 03722c2f1170..dc07e0f1d07f 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -11220,6 +11663,10 @@ index 03722c2f1170..dc07e0f1d07f 100644
- 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
@@ -11232,7 +11679,7 @@ index 03722c2f1170..dc07e0f1d07f 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -11285,7 +11732,7 @@ index 03722c2f1170..dc07e0f1d07f 100644
-
Library("ref_count_gn")
diff --git third_party/libwebrtc/api/refcountedbase_gn/moz.build third_party/libwebrtc/api/refcountedbase_gn/moz.build
-index 393d437bf612..bc3c0a28cb23 100644
+index 52fcc299027f..bc3c0a28cb23 100644
--- third_party/libwebrtc/api/refcountedbase_gn/moz.build
+++ third_party/libwebrtc/api/refcountedbase_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -11309,7 +11756,7 @@ index 393d437bf612..bc3c0a28cb23 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -11403,6 +11850,10 @@ index 393d437bf612..bc3c0a28cb23 100644
- 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
@@ -11415,7 +11866,7 @@ index 393d437bf612..bc3c0a28cb23 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -11468,7 +11919,7 @@ index 393d437bf612..bc3c0a28cb23 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 76c3a2dcfaac..14dc0fc7363c 100644
+index 236d348fb3da..14dc0fc7363c 100644
--- third_party/libwebrtc/api/rtc_error_gn/moz.build
+++ third_party/libwebrtc/api/rtc_error_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -11492,7 +11943,7 @@ index 76c3a2dcfaac..14dc0fc7363c 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -11601,6 +12052,10 @@ index 76c3a2dcfaac..14dc0fc7363c 100644
- 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
@@ -11682,7 +12137,7 @@ index 76c3a2dcfaac..14dc0fc7363c 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 f7f70d5d31ec..729beed1bc12 100644
+index 711bf9c77efb..729beed1bc12 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -11706,7 +12161,7 @@ index f7f70d5d31ec..729beed1bc12 100644
FINAL_LIBRARY = "xul"
-@@ -44,182 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -11815,6 +12270,10 @@ index f7f70d5d31ec..729beed1bc12 100644
- 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
@@ -11896,7 +12355,7 @@ index f7f70d5d31ec..729beed1bc12 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 030007c62918..8336baf5c775 100644
+index 41c4e99db55e..8336baf5c775 100644
--- third_party/libwebrtc/api/rtp_headers_gn/moz.build
+++ third_party/libwebrtc/api/rtp_headers_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -11920,7 +12379,7 @@ index 030007c62918..8336baf5c775 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -12029,6 +12488,10 @@ index 030007c62918..8336baf5c775 100644
- 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
@@ -12110,7 +12573,7 @@ index 030007c62918..8336baf5c775 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 72e4029ec026..49697fe94030 100644
+index 9c1735f23770..49697fe94030 100644
--- third_party/libwebrtc/api/rtp_packet_info_gn/moz.build
+++ third_party/libwebrtc/api/rtp_packet_info_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -12134,7 +12597,7 @@ index 72e4029ec026..49697fe94030 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -12243,6 +12706,10 @@ index 72e4029ec026..49697fe94030 100644
- 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
@@ -12324,7 +12791,7 @@ index 72e4029ec026..49697fe94030 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 61c7b71eb043..00fa8cacf263 100644
+index 0496394c6b64..00fa8cacf263 100644
--- third_party/libwebrtc/api/rtp_packet_sender_gn/moz.build
+++ third_party/libwebrtc/api/rtp_packet_sender_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -12348,7 +12815,7 @@ index 61c7b71eb043..00fa8cacf263 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -12442,6 +12909,10 @@ index 61c7b71eb043..00fa8cacf263 100644
- 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
@@ -12454,7 +12925,7 @@ index 61c7b71eb043..00fa8cacf263 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -12507,7 +12978,7 @@ index 61c7b71eb043..00fa8cacf263 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 d41a3d480f0c..c163c9cf05b9 100644
+index 08553627768d..c163c9cf05b9 100644
--- third_party/libwebrtc/api/rtp_parameters_gn/moz.build
+++ third_party/libwebrtc/api/rtp_parameters_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -12531,7 +13002,7 @@ index d41a3d480f0c..c163c9cf05b9 100644
FINAL_LIBRARY = "xul"
-@@ -44,175 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,179 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -12633,6 +13104,10 @@ index d41a3d480f0c..c163c9cf05b9 100644
- 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
@@ -12714,7 +13189,7 @@ index d41a3d480f0c..c163c9cf05b9 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 12d98cc46987..362c773c7fd2 100644
+index 3b12029bdc36..362c773c7fd2 100644
--- third_party/libwebrtc/api/rtp_sender_interface_gn/moz.build
+++ third_party/libwebrtc/api/rtp_sender_interface_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -12738,7 +13213,7 @@ index 12d98cc46987..362c773c7fd2 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -12832,6 +13307,10 @@ index 12d98cc46987..362c773c7fd2 100644
- 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
@@ -12844,7 +13323,7 @@ index 12d98cc46987..362c773c7fd2 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -12897,7 +13376,7 @@ index 12d98cc46987..362c773c7fd2 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 890cfb7df025..ea214198799a 100644
+index cea07d6922c0..ea214198799a 100644
--- third_party/libwebrtc/api/rtp_sender_setparameters_callback_gn/moz.build
+++ third_party/libwebrtc/api/rtp_sender_setparameters_callback_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -12921,7 +13400,7 @@ index 890cfb7df025..ea214198799a 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -13030,6 +13509,10 @@ index 890cfb7df025..ea214198799a 100644
- 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
@@ -13111,7 +13594,7 @@ index 890cfb7df025..ea214198799a 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 412223b12caa..1090214b4d41 100644
+index b80b352927ed..1090214b4d41 100644
--- third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build
+++ third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -13135,7 +13618,7 @@ index 412223b12caa..1090214b4d41 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -13229,6 +13712,10 @@ index 412223b12caa..1090214b4d41 100644
- 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
@@ -13241,7 +13728,7 @@ index 412223b12caa..1090214b4d41 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -13294,7 +13781,7 @@ index 412223b12caa..1090214b4d41 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 8b738f77061d..05723cb68f60 100644
+index 562cb4ae55f8..05723cb68f60 100644
--- third_party/libwebrtc/api/scoped_refptr_gn/moz.build
+++ third_party/libwebrtc/api/scoped_refptr_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -13318,7 +13805,7 @@ index 8b738f77061d..05723cb68f60 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -13412,6 +13899,10 @@ index 8b738f77061d..05723cb68f60 100644
- 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
@@ -13424,7 +13915,7 @@ index 8b738f77061d..05723cb68f60 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -13477,7 +13968,7 @@ index 8b738f77061d..05723cb68f60 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 33287277eb09..42cf01fa9d47 100644
+index 191ccae1f939..42cf01fa9d47 100644
--- third_party/libwebrtc/api/sequence_checker_gn/moz.build
+++ third_party/libwebrtc/api/sequence_checker_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -13501,7 +13992,7 @@ index 33287277eb09..42cf01fa9d47 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -13599,6 +14090,10 @@ index 33287277eb09..42cf01fa9d47 100644
- 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
@@ -13611,7 +14106,7 @@ index 33287277eb09..42cf01fa9d47 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -13664,7 +14159,7 @@ index 33287277eb09..42cf01fa9d47 100644
-
Library("sequence_checker_gn")
diff --git third_party/libwebrtc/api/simulated_network_api_gn/moz.build third_party/libwebrtc/api/simulated_network_api_gn/moz.build
-index 13cd4ab4804a..d5b1312c38f6 100644
+index 558f8ca50fda..d5b1312c38f6 100644
--- third_party/libwebrtc/api/simulated_network_api_gn/moz.build
+++ third_party/libwebrtc/api/simulated_network_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -13688,7 +14183,7 @@ index 13cd4ab4804a..d5b1312c38f6 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -13786,6 +14281,10 @@ index 13cd4ab4804a..d5b1312c38f6 100644
- 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
@@ -13798,7 +14297,7 @@ index 13cd4ab4804a..d5b1312c38f6 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -13851,7 +14350,7 @@ index 13cd4ab4804a..d5b1312c38f6 100644
-
Library("simulated_network_api_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 a24351f6f897..46673406c667 100644
+index 6a4453ac73ee..46673406c667 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -13875,7 +14374,7 @@ index a24351f6f897..46673406c667 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -13969,6 +14468,10 @@ index a24351f6f897..46673406c667 100644
- 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
@@ -13981,7 +14484,7 @@ index a24351f6f897..46673406c667 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -14034,7 +14537,7 @@ index a24351f6f897..46673406c667 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 203b904ca14e..c519cfaeab49 100644
+index beda60da9198..c519cfaeab49 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -14058,7 +14561,7 @@ index 203b904ca14e..c519cfaeab49 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -14160,6 +14663,10 @@ index 203b904ca14e..c519cfaeab49 100644
- 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
@@ -14241,7 +14748,7 @@ index 203b904ca14e..c519cfaeab49 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 4bfa92ca5bb4..7734743729b9 100644
+index 3ea55a8b7684..7734743729b9 100644
--- third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build
+++ third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -14265,7 +14772,7 @@ index 4bfa92ca5bb4..7734743729b9 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -14367,6 +14874,10 @@ index 4bfa92ca5bb4..7734743729b9 100644
- 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
@@ -14448,7 +14959,7 @@ index 4bfa92ca5bb4..7734743729b9 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 37a5138463ec..3c4c34510df6 100644
+index 63460f387b3a..3c4c34510df6 100644
--- third_party/libwebrtc/api/transport/bandwidth_estimation_settings_gn/moz.build
+++ third_party/libwebrtc/api/transport/bandwidth_estimation_settings_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -14472,7 +14983,7 @@ index 37a5138463ec..3c4c34510df6 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -14566,6 +15077,10 @@ index 37a5138463ec..3c4c34510df6 100644
- 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
@@ -14578,7 +15093,7 @@ index 37a5138463ec..3c4c34510df6 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -14631,7 +15146,7 @@ index 37a5138463ec..3c4c34510df6 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 5371775e5c04..8b2281068103 100644
+index 7e80ecfe46b3..8b2281068103 100644
--- third_party/libwebrtc/api/transport/bandwidth_usage_gn/moz.build
+++ third_party/libwebrtc/api/transport/bandwidth_usage_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -14655,7 +15170,7 @@ index 5371775e5c04..8b2281068103 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -14749,6 +15264,10 @@ index 5371775e5c04..8b2281068103 100644
- 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
@@ -14761,7 +15280,7 @@ index 5371775e5c04..8b2281068103 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -14814,7 +15333,7 @@ index 5371775e5c04..8b2281068103 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 546ef3df9c6c..c3027c3972c5 100644
+index 25a3c741839e..c3027c3972c5 100644
--- third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build
+++ third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -14838,7 +15357,7 @@ index 546ef3df9c6c..c3027c3972c5 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -14936,6 +15455,10 @@ index 546ef3df9c6c..c3027c3972c5 100644
- 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
@@ -15017,7 +15540,7 @@ index 546ef3df9c6c..c3027c3972c5 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 fd68a016d9c0..19c008c92ffe 100644
+index b11138679c25..19c008c92ffe 100644
--- third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build
+++ third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -15041,7 +15564,7 @@ index fd68a016d9c0..19c008c92ffe 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -15146,6 +15669,10 @@ index fd68a016d9c0..19c008c92ffe 100644
- 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
@@ -15158,7 +15685,7 @@ index fd68a016d9c0..19c008c92ffe 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -15211,7 +15738,7 @@ index fd68a016d9c0..19c008c92ffe 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 e143fc3b344e..bc515fc5c103 100644
+index 6c4cd224b98b..bc515fc5c103 100644
--- third_party/libwebrtc/api/transport/ecn_marking_gn/moz.build
+++ third_party/libwebrtc/api/transport/ecn_marking_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -15235,7 +15762,7 @@ index e143fc3b344e..bc515fc5c103 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -15329,6 +15856,10 @@ index e143fc3b344e..bc515fc5c103 100644
- 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
@@ -15341,7 +15872,7 @@ index e143fc3b344e..bc515fc5c103 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -15394,7 +15925,7 @@ index e143fc3b344e..bc515fc5c103 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 c6ea6555bdee..842473731ca0 100644
+index c47158aa87fe..842473731ca0 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -15418,7 +15949,7 @@ index c6ea6555bdee..842473731ca0 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -15527,6 +16058,10 @@ index c6ea6555bdee..842473731ca0 100644
- 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
@@ -15608,7 +16143,7 @@ index c6ea6555bdee..842473731ca0 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 4e5cc4043e40..6e7e204ba661 100644
+index 89be00e883b4..6e7e204ba661 100644
--- third_party/libwebrtc/api/transport/goog_cc_gn/moz.build
+++ third_party/libwebrtc/api/transport/goog_cc_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -15632,7 +16167,7 @@ index 4e5cc4043e40..6e7e204ba661 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -15746,6 +16281,10 @@ index 4e5cc4043e40..6e7e204ba661 100644
- 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
@@ -15827,7 +16366,7 @@ index 4e5cc4043e40..6e7e204ba661 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 405677c03cdd..d79bb6509222 100644
+index 7ae9e4b54679..d79bb6509222 100644
--- third_party/libwebrtc/api/transport/network_control_gn/moz.build
+++ third_party/libwebrtc/api/transport/network_control_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -15851,7 +16390,7 @@ index 405677c03cdd..d79bb6509222 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -15960,6 +16499,10 @@ index 405677c03cdd..d79bb6509222 100644
- 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
@@ -16041,7 +16584,7 @@ index 405677c03cdd..d79bb6509222 100644
Library("network_control_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 571df664b6d9..a2bad5bb1bca 100644
+index fa5f3fb195e6..a2bad5bb1bca 100644
--- third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build
+++ third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -16065,7 +16608,7 @@ index 571df664b6d9..a2bad5bb1bca 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -16167,6 +16710,10 @@ index 571df664b6d9..a2bad5bb1bca 100644
- 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
@@ -16248,7 +16795,7 @@ index 571df664b6d9..a2bad5bb1bca 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 bd462e15c453..8986e9975515 100644
+index 34b4824b5f54..8986e9975515 100644
--- third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build
+++ third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -16272,7 +16819,7 @@ index bd462e15c453..8986e9975515 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -16377,6 +16924,10 @@ index bd462e15c453..8986e9975515 100644
- 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
@@ -16389,7 +16940,7 @@ index bd462e15c453..8986e9975515 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -16442,7 +16993,7 @@ index bd462e15c453..8986e9975515 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 236799789f21..eb2eea46c3a1 100644
+index 865d9643a41c..eb2eea46c3a1 100644
--- third_party/libwebrtc/api/transport/stun_types_gn/moz.build
+++ third_party/libwebrtc/api/transport/stun_types_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -16466,7 +17017,7 @@ index 236799789f21..eb2eea46c3a1 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -16560,6 +17111,10 @@ index 236799789f21..eb2eea46c3a1 100644
- 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
@@ -16572,7 +17127,7 @@ index 236799789f21..eb2eea46c3a1 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -16625,7 +17180,7 @@ index 236799789f21..eb2eea46c3a1 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 fd6c47703205..d2dee618fe31 100644
+index 7f3192c2bcfd..d2dee618fe31 100644
--- third_party/libwebrtc/api/transport_api_gn/moz.build
+++ third_party/libwebrtc/api/transport_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -16649,7 +17204,7 @@ index fd6c47703205..d2dee618fe31 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -16751,6 +17306,10 @@ index fd6c47703205..d2dee618fe31 100644
- 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
@@ -16832,7 +17391,7 @@ index fd6c47703205..d2dee618fe31 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 41006145b925..40749dda50cc 100644
+index 720807906a65..40749dda50cc 100644
--- third_party/libwebrtc/api/units/data_rate_gn/moz.build
+++ third_party/libwebrtc/api/units/data_rate_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -16856,7 +17415,7 @@ index 41006145b925..40749dda50cc 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -16958,6 +17517,10 @@ index 41006145b925..40749dda50cc 100644
- 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
@@ -17039,7 +17602,7 @@ index 41006145b925..40749dda50cc 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 160343108513..861ba03b8ee4 100644
+index 3c005ff583f4..861ba03b8ee4 100644
--- third_party/libwebrtc/api/units/data_size_gn/moz.build
+++ third_party/libwebrtc/api/units/data_size_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -17063,7 +17626,7 @@ index 160343108513..861ba03b8ee4 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -17165,6 +17728,10 @@ index 160343108513..861ba03b8ee4 100644
- 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
@@ -17246,7 +17813,7 @@ index 160343108513..861ba03b8ee4 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 bc600cc4e875..df8a867d45be 100644
+index 7e1b55def133..df8a867d45be 100644
--- third_party/libwebrtc/api/units/frequency_gn/moz.build
+++ third_party/libwebrtc/api/units/frequency_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -17270,7 +17837,7 @@ index bc600cc4e875..df8a867d45be 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -17372,6 +17939,10 @@ index bc600cc4e875..df8a867d45be 100644
- 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
@@ -17453,7 +18024,7 @@ index bc600cc4e875..df8a867d45be 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 1fc089290fab..09ebe7ab3b88 100644
+index aebee68119cb..09ebe7ab3b88 100644
--- third_party/libwebrtc/api/units/time_delta_gn/moz.build
+++ third_party/libwebrtc/api/units/time_delta_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -17477,7 +18048,7 @@ index 1fc089290fab..09ebe7ab3b88 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -17579,6 +18150,10 @@ index 1fc089290fab..09ebe7ab3b88 100644
- 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
@@ -17660,7 +18235,7 @@ index 1fc089290fab..09ebe7ab3b88 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 e16a15586146..7b73258ae847 100644
+index d80b973f5ee3..7b73258ae847 100644
--- third_party/libwebrtc/api/units/timestamp_gn/moz.build
+++ third_party/libwebrtc/api/units/timestamp_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -17684,7 +18259,7 @@ index e16a15586146..7b73258ae847 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -17786,6 +18361,10 @@ index e16a15586146..7b73258ae847 100644
- 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
@@ -17867,7 +18446,7 @@ index e16a15586146..7b73258ae847 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 f87e82de30e8..383a9f5f8f65 100644
+index a4ec365080f6..383a9f5f8f65 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -17891,7 +18470,7 @@ index f87e82de30e8..383a9f5f8f65 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -18005,6 +18584,10 @@ index f87e82de30e8..383a9f5f8f65 100644
- 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
@@ -18085,8 +18668,195 @@ index f87e82de30e8..383a9f5f8f65 100644
+ DEFINES["USE_X11"] = "1"
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 5d7da48cc742..300e8ee3846f 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
+@@ -12,11 +12,20 @@ AllowCompilerWarnings()
+ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
+ 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["__STDC_CONSTANT_MACROS"] = True
++DEFINES["__STDC_FORMAT_MACROS"] = True
+
+ FINAL_LIBRARY = "xul"
+
+@@ -39,108 +48,17 @@ 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"] = "r22_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["__STDC_CONSTANT_MACROS"] = True
+- DEFINES["__STDC_FORMAT_MACROS"] = True
+-
+-if CONFIG["OS_TARGET"] == "Darwin":
+-
+- DEFINES["WEBRTC_MAC"] = True
+- DEFINES["WEBRTC_POSIX"] = True
+- DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
+- DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
+- 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_NSS_CERTS"] = "1"
+- DEFINES["USE_OZONE"] = "1"
+- DEFINES["USE_UDEV"] = True
+- DEFINES["WEBRTC_LINUX"] = 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"] == "OpenBSD":
+-
+- DEFINES["USE_GLIB"] = "1"
+- DEFINES["USE_OZONE"] = "1"
+- DEFINES["USE_X11"] = "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_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["__STD_C"] = True
++ DEFINES["_DEBUG"] = True
+
+ if CONFIG["TARGET_CPU"] == "aarch64":
+
+ DEFINES["WEBRTC_ARCH_ARM64"] = True
+ DEFINES["WEBRTC_HAS_NEON"] = True
+
+-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":
+
+@@ -150,50 +68,8 @@ 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["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
++if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
+
+ DEFINES["USE_X11"] = "1"
+
+-if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "arm":
+-
+- OS_LIBS += [
+- "unwind"
+- ]
+-
+-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("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 5ed6278b5d83..6ce825420c3d 100644
+index 1727272f7e0f..6ce825420c3d 100644
--- third_party/libwebrtc/api/video/encoded_frame_gn/moz.build
+++ third_party/libwebrtc/api/video/encoded_frame_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -18110,7 +18880,7 @@ index 5ed6278b5d83..6ce825420c3d 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -18219,6 +18989,10 @@ index 5ed6278b5d83..6ce825420c3d 100644
- 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
@@ -18300,7 +19074,7 @@ index 5ed6278b5d83..6ce825420c3d 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 ff946d65fd63..0213de1b0ebb 100644
+index 52b2c556a941..0213de1b0ebb 100644
--- third_party/libwebrtc/api/video/encoded_image_gn/moz.build
+++ third_party/libwebrtc/api/video/encoded_image_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -18324,7 +19098,7 @@ index ff946d65fd63..0213de1b0ebb 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -18433,6 +19207,10 @@ index ff946d65fd63..0213de1b0ebb 100644
- 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
@@ -18514,7 +19292,7 @@ index ff946d65fd63..0213de1b0ebb 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 79bdd813a027..d2f349ceca3b 100644
+index 384cb719cb2f..d2f349ceca3b 100644
--- third_party/libwebrtc/api/video/frame_buffer_gn/moz.build
+++ third_party/libwebrtc/api/video/frame_buffer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -18538,7 +19316,7 @@ index 79bdd813a027..d2f349ceca3b 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -18652,6 +19430,10 @@ index 79bdd813a027..d2f349ceca3b 100644
- 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
@@ -18733,7 +19515,7 @@ index 79bdd813a027..d2f349ceca3b 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 8541f8940efa..c56e910a6a20 100644
+index b0f0ce639337..c56e910a6a20 100644
--- third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build
+++ third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -18757,7 +19539,7 @@ index 8541f8940efa..c56e910a6a20 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -18862,6 +19644,10 @@ index 8541f8940efa..c56e910a6a20 100644
- 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
@@ -18874,7 +19660,7 @@ index 8541f8940efa..c56e910a6a20 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -18927,7 +19713,7 @@ index 8541f8940efa..c56e910a6a20 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 3c6d24b1af84..136648ce930d 100644
+index 0af4d7d36209..136648ce930d 100644
--- third_party/libwebrtc/api/video/render_resolution_gn/moz.build
+++ third_party/libwebrtc/api/video/render_resolution_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -18951,7 +19737,7 @@ index 3c6d24b1af84..136648ce930d 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -19045,6 +19831,10 @@ index 3c6d24b1af84..136648ce930d 100644
- 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
@@ -19057,7 +19847,7 @@ index 3c6d24b1af84..136648ce930d 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -19110,7 +19900,7 @@ index 3c6d24b1af84..136648ce930d 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 cc886ec4db61..aa69c5c25fd4 100644
+index 74a183e25263..aa69c5c25fd4 100644
--- third_party/libwebrtc/api/video/resolution_gn/moz.build
+++ third_party/libwebrtc/api/video/resolution_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -19134,7 +19924,7 @@ index cc886ec4db61..aa69c5c25fd4 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -19228,6 +20018,10 @@ index cc886ec4db61..aa69c5c25fd4 100644
- 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
@@ -19240,7 +20034,7 @@ index cc886ec4db61..aa69c5c25fd4 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -19293,7 +20087,7 @@ index cc886ec4db61..aa69c5c25fd4 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 2865b09d7199..5118a4fd59c2 100644
+index cf8c377621aa..5118a4fd59c2 100644
--- third_party/libwebrtc/api/video/video_adaptation_gn/moz.build
+++ third_party/libwebrtc/api/video/video_adaptation_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -19317,7 +20111,7 @@ index 2865b09d7199..5118a4fd59c2 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -19419,6 +20213,10 @@ index 2865b09d7199..5118a4fd59c2 100644
- 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
@@ -19500,7 +20298,7 @@ index 2865b09d7199..5118a4fd59c2 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 1c89b66d81eb..71b911ecfde6 100644
+index 6f16ff5da34f..71b911ecfde6 100644
--- third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build
+++ third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -19524,7 +20322,7 @@ index 1c89b66d81eb..71b911ecfde6 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -19626,6 +20424,10 @@ index 1c89b66d81eb..71b911ecfde6 100644
- 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
@@ -19707,7 +20509,7 @@ index 1c89b66d81eb..71b911ecfde6 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 ba63c4617370..77a13b931813 100644
+index 1ff1aaa06a61..77a13b931813 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -19731,7 +20533,7 @@ index ba63c4617370..77a13b931813 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -19836,6 +20638,10 @@ index ba63c4617370..77a13b931813 100644
- 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
@@ -19848,7 +20654,7 @@ index ba63c4617370..77a13b931813 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -19901,7 +20707,7 @@ index ba63c4617370..77a13b931813 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 2b73f70373b3..2280ad344922 100644
+index bd4e602db36e..2280ad344922 100644
--- third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build
+++ third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -19925,7 +20731,7 @@ index 2b73f70373b3..2280ad344922 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -20027,6 +20833,10 @@ index 2b73f70373b3..2280ad344922 100644
- 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
@@ -20108,7 +20918,7 @@ index 2b73f70373b3..2280ad344922 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 12abc9b02c95..bd3794236930 100644
+index 0b0d1a059d94..bd3794236930 100644
--- third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build
+++ third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -20132,7 +20942,7 @@ index 12abc9b02c95..bd3794236930 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -20226,6 +21036,10 @@ index 12abc9b02c95..bd3794236930 100644
- 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
@@ -20238,7 +21052,7 @@ index 12abc9b02c95..bd3794236930 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -20291,7 +21105,7 @@ index 12abc9b02c95..bd3794236930 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 49ce8c842d84..7fc4f4ab76f0 100644
+index 5c42b97b37a9..7fc4f4ab76f0 100644
--- third_party/libwebrtc/api/video/video_frame_gn/moz.build
+++ third_party/libwebrtc/api/video/video_frame_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -20315,7 +21129,7 @@ index 49ce8c842d84..7fc4f4ab76f0 100644
FINAL_LIBRARY = "xul"
-@@ -54,182 +63,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -54,186 +63,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -20424,6 +21238,10 @@ index 49ce8c842d84..7fc4f4ab76f0 100644
- 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
@@ -20505,7 +21323,7 @@ index 49ce8c842d84..7fc4f4ab76f0 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 3c42917a7bf4..4cfb3cc01351 100644
+index 961ffc81e65b..4cfb3cc01351 100644
--- third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build
+++ third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -20529,7 +21347,7 @@ index 3c42917a7bf4..4cfb3cc01351 100644
FINAL_LIBRARY = "xul"
-@@ -50,182 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -50,186 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -20638,6 +21456,10 @@ index 3c42917a7bf4..4cfb3cc01351 100644
- 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
@@ -20719,7 +21541,7 @@ index 3c42917a7bf4..4cfb3cc01351 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 00e9ac717ee7..6f1776416d79 100644
+index d81fad8e90ec..6f1776416d79 100644
--- third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build
+++ third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -20743,7 +21565,7 @@ index 00e9ac717ee7..6f1776416d79 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -20852,6 +21674,10 @@ index 00e9ac717ee7..6f1776416d79 100644
- 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
@@ -20933,7 +21759,7 @@ index 00e9ac717ee7..6f1776416d79 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 df4f2515a9f7..72dadbd449b5 100644
+index 35cbbb6faf29..72dadbd449b5 100644
--- third_party/libwebrtc/api/video/video_frame_type_gn/moz.build
+++ third_party/libwebrtc/api/video/video_frame_type_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -20957,7 +21783,7 @@ index df4f2515a9f7..72dadbd449b5 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -21055,6 +21881,10 @@ index df4f2515a9f7..72dadbd449b5 100644
- 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
@@ -21067,7 +21897,7 @@ index df4f2515a9f7..72dadbd449b5 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -21120,7 +21950,7 @@ index df4f2515a9f7..72dadbd449b5 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 a2f6e5d80fd2..00846604156c 100644
+index 087e4d2b3b38..00846604156c 100644
--- third_party/libwebrtc/api/video/video_layers_allocation_gn/moz.build
+++ third_party/libwebrtc/api/video/video_layers_allocation_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -21144,7 +21974,7 @@ index a2f6e5d80fd2..00846604156c 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -21242,6 +22072,10 @@ index a2f6e5d80fd2..00846604156c 100644
- 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
@@ -21254,7 +22088,7 @@ index a2f6e5d80fd2..00846604156c 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -21307,7 +22141,7 @@ index a2f6e5d80fd2..00846604156c 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 cee210f81a20..67af495f375a 100644
+index 9795785a7286..67af495f375a 100644
--- third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build
+++ third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -21331,7 +22165,7 @@ index cee210f81a20..67af495f375a 100644
FINAL_LIBRARY = "xul"
-@@ -46,182 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -21440,6 +22274,10 @@ index cee210f81a20..67af495f375a 100644
- 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
@@ -21521,7 +22359,7 @@ index cee210f81a20..67af495f375a 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 52ece0234c3b..98abab04b82a 100644
+index e35fcc49d5aa..98abab04b82a 100644
--- third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build
+++ third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -21545,7 +22383,7 @@ index 52ece0234c3b..98abab04b82a 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -21650,6 +22488,10 @@ index 52ece0234c3b..98abab04b82a 100644
- 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
@@ -21662,7 +22504,7 @@ index 52ece0234c3b..98abab04b82a 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -21715,7 +22557,7 @@ index 52ece0234c3b..98abab04b82a 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 2a2652d25809..b9317d51313f 100644
+index 298a78c8a844..b9317d51313f 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -21739,7 +22581,7 @@ index 2a2652d25809..b9317d51313f 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -21837,6 +22679,10 @@ index 2a2652d25809..b9317d51313f 100644
- 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
@@ -21849,7 +22695,7 @@ index 2a2652d25809..b9317d51313f 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -21902,7 +22748,7 @@ index 2a2652d25809..b9317d51313f 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 39ebc147a0f1..d4dfd0c7a10b 100644
+index e79ca13c7d5b..d4dfd0c7a10b 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -21926,7 +22772,7 @@ index 39ebc147a0f1..d4dfd0c7a10b 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -22040,6 +22886,10 @@ index 39ebc147a0f1..d4dfd0c7a10b 100644
- 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
@@ -22121,7 +22971,7 @@ index 39ebc147a0f1..d4dfd0c7a10b 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 1f75ce9bbb39..e50a808f3a90 100644
+index f503a3b205df..e50a808f3a90 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -22145,7 +22995,7 @@ index 1f75ce9bbb39..e50a808f3a90 100644
FINAL_LIBRARY = "xul"
-@@ -44,187 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,191 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -22259,6 +23109,10 @@ index 1f75ce9bbb39..e50a808f3a90 100644
- 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
@@ -22340,7 +23194,7 @@ index 1f75ce9bbb39..e50a808f3a90 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 8d986676c497..7e8b6e8cfa6c 100644
+index 15814eeed8b6..7e8b6e8cfa6c 100644
--- third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build
+++ third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -22364,7 +23218,7 @@ index 8d986676c497..7e8b6e8cfa6c 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -22466,6 +23320,10 @@ index 8d986676c497..7e8b6e8cfa6c 100644
- 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
@@ -22547,7 +23405,7 @@ index 8d986676c497..7e8b6e8cfa6c 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 5eee86605c4d..04ad9ac19993 100644
+index 7e065afaab4e..04ad9ac19993 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -22571,7 +23429,7 @@ index 5eee86605c4d..04ad9ac19993 100644
FINAL_LIBRARY = "xul"
-@@ -53,182 +62,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -53,186 +62,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -22680,6 +23538,10 @@ index 5eee86605c4d..04ad9ac19993 100644
- 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
@@ -22761,7 +23623,7 @@ index 5eee86605c4d..04ad9ac19993 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 7b82268539e1..bb5aeb6b5d3d 100644
+index 5dad1e3674d2..bb5aeb6b5d3d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -22785,7 +23647,7 @@ index 7b82268539e1..bb5aeb6b5d3d 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -22890,6 +23752,10 @@ index 7b82268539e1..bb5aeb6b5d3d 100644
- 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
@@ -22902,7 +23768,7 @@ index 7b82268539e1..bb5aeb6b5d3d 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -22955,7 +23821,7 @@ index 7b82268539e1..bb5aeb6b5d3d 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 9b4826d6387b..b8e0b45c28a2 100644
+index 70cf72d1ea8f..b8e0b45c28a2 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -22979,7 +23845,7 @@ index 9b4826d6387b..b8e0b45c28a2 100644
FINAL_LIBRARY = "xul"
-@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,123 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -23088,6 +23954,10 @@ index 9b4826d6387b..b8e0b45c28a2 100644
- 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
@@ -23100,7 +23970,7 @@ index 9b4826d6387b..b8e0b45c28a2 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -165,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -23153,7 +24023,7 @@ index 9b4826d6387b..b8e0b45c28a2 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 ce79eb359ad8..57f83fc9486b 100644
+index 5a44aee34808..57f83fc9486b 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -23177,7 +24047,7 @@ index ce79eb359ad8..57f83fc9486b 100644
FINAL_LIBRARY = "xul"
-@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,124 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -23287,6 +24157,10 @@ index ce79eb359ad8..57f83fc9486b 100644
- 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
@@ -23299,7 +24173,7 @@ index ce79eb359ad8..57f83fc9486b 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -166,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -23352,7 +24226,7 @@ index ce79eb359ad8..57f83fc9486b 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 39ea1c90a3f1..c0ffd9aab90f 100644
+index 268c7c01b2dd..c0ffd9aab90f 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -23376,7 +24250,7 @@ index 39ea1c90a3f1..c0ffd9aab90f 100644
FINAL_LIBRARY = "xul"
-@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,124 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -23486,6 +24360,10 @@ index 39ea1c90a3f1..c0ffd9aab90f 100644
- 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
@@ -23498,7 +24376,7 @@ index 39ea1c90a3f1..c0ffd9aab90f 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -166,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -23551,7 +24429,7 @@ index 39ea1c90a3f1..c0ffd9aab90f 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 cb5bef223acb..7237fb0ba38b 100644
+index 3046da6a470f..7237fb0ba38b 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -23575,7 +24453,7 @@ index cb5bef223acb..7237fb0ba38b 100644
FINAL_LIBRARY = "xul"
-@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,124 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -23685,6 +24563,10 @@ index cb5bef223acb..7237fb0ba38b 100644
- 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
@@ -23697,7 +24579,7 @@ index cb5bef223acb..7237fb0ba38b 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -166,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -23750,7 +24632,7 @@ index cb5bef223acb..7237fb0ba38b 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 8ce733a785ff..2fe2304cb942 100644
+index 487c0d9471e1..2fe2304cb942 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -23774,7 +24656,7 @@ index 8ce733a785ff..2fe2304cb942 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -23888,6 +24770,10 @@ index 8ce733a785ff..2fe2304cb942 100644
- 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
@@ -23969,7 +24855,7 @@ index 8ce733a785ff..2fe2304cb942 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 1266e221a450..a9bb083e07d3 100644
+index eed553ce968c..a9bb083e07d3 100644
--- third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build
+++ third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -23993,7 +24879,7 @@ index 1266e221a450..a9bb083e07d3 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -24087,6 +24973,10 @@ index 1266e221a450..a9bb083e07d3 100644
- 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
@@ -24099,7 +24989,7 @@ index 1266e221a450..a9bb083e07d3 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -24152,7 +25042,7 @@ index 1266e221a450..a9bb083e07d3 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 a48a96b230f5..570c4597d2ab 100644
+index c52d2d8ec5d5..570c4597d2ab 100644
--- third_party/libwebrtc/audio/audio_gn/moz.build
+++ third_party/libwebrtc/audio/audio_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -24176,7 +25066,7 @@ index a48a96b230f5..570c4597d2ab 100644
FINAL_LIBRARY = "xul"
-@@ -55,187 +64,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -55,191 +64,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -24290,6 +25180,10 @@ index a48a96b230f5..570c4597d2ab 100644
- 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
@@ -24371,7 +25265,7 @@ index a48a96b230f5..570c4597d2ab 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 ba769595e3a2..80914acd5839 100644
+index 41ec2166f76b..80914acd5839 100644
--- third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build
+++ third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -24395,7 +25289,7 @@ index ba769595e3a2..80914acd5839 100644
FINAL_LIBRARY = "xul"
-@@ -45,186 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,190 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -24508,6 +25402,10 @@ index ba769595e3a2..80914acd5839 100644
- 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
@@ -24589,7 +25487,7 @@ index ba769595e3a2..80914acd5839 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 a141c723e16a..0115d47e0857 100644
+index b47b7f67124e..0115d47e0857 100644
--- third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build
+++ third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -24613,7 +25511,7 @@ index a141c723e16a..0115d47e0857 100644
FINAL_LIBRARY = "xul"
-@@ -52,187 +61,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -52,191 +61,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -24727,6 +25625,10 @@ index a141c723e16a..0115d47e0857 100644
- 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
@@ -24808,7 +25710,7 @@ index a141c723e16a..0115d47e0857 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 60b1d4d180d2..1e65cb180fd1 100644
+index 64613d5febf2..1e65cb180fd1 100644
--- third_party/libwebrtc/call/audio_sender_interface_gn/moz.build
+++ third_party/libwebrtc/call/audio_sender_interface_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -24832,7 +25734,7 @@ index 60b1d4d180d2..1e65cb180fd1 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -24937,6 +25839,10 @@ index 60b1d4d180d2..1e65cb180fd1 100644
- 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
@@ -24949,7 +25855,7 @@ index 60b1d4d180d2..1e65cb180fd1 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -25002,7 +25908,7 @@ index 60b1d4d180d2..1e65cb180fd1 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 cf934c740ef4..0f207f759b9d 100644
+index f881adeec2c7..0f207f759b9d 100644
--- third_party/libwebrtc/call/bitrate_allocator_gn/moz.build
+++ third_party/libwebrtc/call/bitrate_allocator_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -25026,7 +25932,7 @@ index cf934c740ef4..0f207f759b9d 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -25139,6 +26045,10 @@ index cf934c740ef4..0f207f759b9d 100644
- 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
@@ -25220,7 +26130,7 @@ index cf934c740ef4..0f207f759b9d 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 c9e04ea78802..9d7cd391892f 100644
+index 1c8d60c87c7d..9d7cd391892f 100644
--- third_party/libwebrtc/call/bitrate_configurator_gn/moz.build
+++ third_party/libwebrtc/call/bitrate_configurator_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -25244,7 +26154,7 @@ index c9e04ea78802..9d7cd391892f 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -25357,6 +26267,10 @@ index c9e04ea78802..9d7cd391892f 100644
- 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
@@ -25438,7 +26352,7 @@ index c9e04ea78802..9d7cd391892f 100644
Library("bitrate_configurator_gn")
diff --git third_party/libwebrtc/call/call_gn/moz.build third_party/libwebrtc/call/call_gn/moz.build
-index d6494e1c2448..b1723ba1715c 100644
+index 554f25cfb490..b1723ba1715c 100644
--- third_party/libwebrtc/call/call_gn/moz.build
+++ third_party/libwebrtc/call/call_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -25462,7 +26376,7 @@ index d6494e1c2448..b1723ba1715c 100644
FINAL_LIBRARY = "xul"
-@@ -45,187 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,191 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -25576,6 +26490,10 @@ index d6494e1c2448..b1723ba1715c 100644
- 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
@@ -25657,7 +26575,7 @@ index d6494e1c2448..b1723ba1715c 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 86d4a86725d7..1f5bb9bae089 100644
+index 01a07308c01b..1f5bb9bae089 100644
--- third_party/libwebrtc/call/call_interfaces_gn/moz.build
+++ third_party/libwebrtc/call/call_interfaces_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -25681,7 +26599,7 @@ index 86d4a86725d7..1f5bb9bae089 100644
FINAL_LIBRARY = "xul"
-@@ -49,187 +58,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -49,191 +58,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -25795,6 +26713,10 @@ index 86d4a86725d7..1f5bb9bae089 100644
- 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
@@ -25876,7 +26798,7 @@ index 86d4a86725d7..1f5bb9bae089 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 4c566ddd34b3..a56032559c58 100644
+index 4ee6afa8af43..a56032559c58 100644
--- third_party/libwebrtc/call/payload_type_gn/moz.build
+++ third_party/libwebrtc/call/payload_type_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -25900,7 +26822,7 @@ index 4c566ddd34b3..a56032559c58 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -26005,6 +26927,10 @@ index 4c566ddd34b3..a56032559c58 100644
- 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
@@ -26017,7 +26943,7 @@ index 4c566ddd34b3..a56032559c58 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -26070,7 +26996,7 @@ index 4c566ddd34b3..a56032559c58 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 a05901f90b3e..7c7bf3c21180 100644
+index 9882d5dcd22c..7c7bf3c21180 100644
--- third_party/libwebrtc/call/payload_type_picker_gn/moz.build
+++ third_party/libwebrtc/call/payload_type_picker_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -26094,7 +27020,7 @@ index a05901f90b3e..7c7bf3c21180 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -26203,6 +27129,10 @@ index a05901f90b3e..7c7bf3c21180 100644
- 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
@@ -26284,7 +27214,7 @@ index a05901f90b3e..7c7bf3c21180 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 cdb233a7b858..19c896a21aa4 100644
+index c7fa9954fd8a..19c896a21aa4 100644
--- third_party/libwebrtc/call/receive_stream_interface_gn/moz.build
+++ third_party/libwebrtc/call/receive_stream_interface_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -26308,7 +27238,7 @@ index cdb233a7b858..19c896a21aa4 100644
FINAL_LIBRARY = "xul"
-@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,123 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -26417,6 +27347,10 @@ index cdb233a7b858..19c896a21aa4 100644
- 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
@@ -26429,7 +27363,7 @@ index cdb233a7b858..19c896a21aa4 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -165,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -26482,7 +27416,7 @@ index cdb233a7b858..19c896a21aa4 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 4a2592e10236..20ac430288cf 100644
+index 6fb2e359fbd9..20ac430288cf 100644
--- third_party/libwebrtc/call/rtp_interfaces_gn/moz.build
+++ third_party/libwebrtc/call/rtp_interfaces_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -26506,7 +27440,7 @@ index 4a2592e10236..20ac430288cf 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -26619,6 +27553,10 @@ index 4a2592e10236..20ac430288cf 100644
- 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
@@ -26700,7 +27638,7 @@ index 4a2592e10236..20ac430288cf 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 29c6d7e8dc45..824177307e7b 100644
+index 2541c2cae1b1..824177307e7b 100644
--- third_party/libwebrtc/call/rtp_receiver_gn/moz.build
+++ third_party/libwebrtc/call/rtp_receiver_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -26724,7 +27662,7 @@ index 29c6d7e8dc45..824177307e7b 100644
FINAL_LIBRARY = "xul"
-@@ -45,187 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,191 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -26838,6 +27776,10 @@ index 29c6d7e8dc45..824177307e7b 100644
- 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
@@ -26919,7 +27861,7 @@ index 29c6d7e8dc45..824177307e7b 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 4a311ea46bc7..399904c3e24e 100644
+index aa3c0bba6685..399904c3e24e 100644
--- third_party/libwebrtc/call/rtp_sender_gn/moz.build
+++ third_party/libwebrtc/call/rtp_sender_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -26943,7 +27885,7 @@ index 4a311ea46bc7..399904c3e24e 100644
FINAL_LIBRARY = "xul"
-@@ -45,187 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,191 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -27057,6 +27999,10 @@ index 4a311ea46bc7..399904c3e24e 100644
- 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
@@ -27138,7 +28084,7 @@ index 4a311ea46bc7..399904c3e24e 100644
Library("rtp_sender_gn")
diff --git third_party/libwebrtc/call/version_gn/moz.build third_party/libwebrtc/call/version_gn/moz.build
-index ed2b5ac1d914..4eec2fd5233b 100644
+index e7398c80eac7..4eec2fd5233b 100644
--- third_party/libwebrtc/call/version_gn/moz.build
+++ third_party/libwebrtc/call/version_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -27162,7 +28108,7 @@ index ed2b5ac1d914..4eec2fd5233b 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -27260,6 +28206,10 @@ index ed2b5ac1d914..4eec2fd5233b 100644
- 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
@@ -27341,7 +28291,7 @@ index ed2b5ac1d914..4eec2fd5233b 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 f359b8b7b83c..f5eea9cb37bc 100644
+index 51f7c9ac299d..f5eea9cb37bc 100644
--- third_party/libwebrtc/call/video_receive_stream_api_gn/moz.build
+++ third_party/libwebrtc/call/video_receive_stream_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -27365,7 +28315,7 @@ index f359b8b7b83c..f5eea9cb37bc 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -27478,6 +28428,10 @@ index f359b8b7b83c..f5eea9cb37bc 100644
- 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
@@ -27559,7 +28513,7 @@ index f359b8b7b83c..f5eea9cb37bc 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 136f19b696d1..f509a3a7a968 100644
+index 0742e20b1bd4..f509a3a7a968 100644
--- third_party/libwebrtc/call/video_send_stream_api_gn/moz.build
+++ third_party/libwebrtc/call/video_send_stream_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -27583,7 +28537,7 @@ index 136f19b696d1..f509a3a7a968 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -27696,6 +28650,10 @@ index 136f19b696d1..f509a3a7a968 100644
- 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
@@ -27941,7 +28899,7 @@ index 4c10d5cbee0e..8ba51fa2944b 100644
Library("common_audio_avx2_gn")
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 de634ef22a0c..76bf1b4c5a97 100644
+index 0707d29fb62f..76bf1b4c5a97 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -27965,7 +28923,7 @@ index de634ef22a0c..76bf1b4c5a97 100644
FINAL_LIBRARY = "xul"
-@@ -39,109 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,113 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -28064,6 +29022,10 @@ index de634ef22a0c..76bf1b4c5a97 100644
- "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12_armv7.S"
- ]
-
+-if CONFIG["TARGET_CPU"] == "loongarch64":
+-
+- DEFINES["_GNU_SOURCE"] = True
+-
if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["MIPS32_LE"] = True
@@ -28076,7 +29038,7 @@ index de634ef22a0c..76bf1b4c5a97 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -151,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -155,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -28129,7 +29091,7 @@ index de634ef22a0c..76bf1b4c5a97 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 3dd5b47ef00c..c369f0505e58 100644
+index d3ade0886cb0..1c75c3e95d87 100644
--- third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build
+++ third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -28272,7 +29234,7 @@ index 3dd5b47ef00c..c369f0505e58 100644
UNIFIED_SOURCES += [
"/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
-@@ -195,26 +102,10 @@ if CONFIG["OS_TARGET"] == "WINNT":
+@@ -195,25 +102,8 @@ if CONFIG["OS_TARGET"] == "WINNT":
"/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
]
@@ -28291,7 +29253,14 @@ index 3dd5b47ef00c..c369f0505e58 100644
- DEFINES["WEBRTC_ARCH_ARM_V7"] = True
- DEFINES["WEBRTC_HAS_NEON"] = True
-
- if CONFIG["TARGET_CPU"] == "mips32":
+ if CONFIG["TARGET_CPU"] == "loongarch64":
+
+- DEFINES["_GNU_SOURCE"] = True
+-
+ UNIFIED_SOURCES += [
+ "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
+ "/third_party/libwebrtc/common_audio/signal_processing/complex_fft.c",
+@@ -224,7 +114,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["MIPS32_LE"] = True
DEFINES["MIPS_FPU_LE"] = True
@@ -28299,7 +29268,7 @@ index 3dd5b47ef00c..c369f0505e58 100644
SOURCES += [
"/third_party/libwebrtc/common_audio/signal_processing/resample_by_2_mips.c"
-@@ -231,8 +122,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
+@@ -241,8 +130,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
if CONFIG["TARGET_CPU"] == "mips64":
@@ -28308,7 +29277,7 @@ index 3dd5b47ef00c..c369f0505e58 100644
UNIFIED_SOURCES += [
"/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
"/third_party/libwebrtc/common_audio/signal_processing/complex_fft.c",
-@@ -247,88 +136,21 @@ if CONFIG["TARGET_CPU"] == "ppc64":
+@@ -257,88 +144,21 @@ if CONFIG["TARGET_CPU"] == "ppc64":
"/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
]
@@ -28401,7 +29370,7 @@ index 3dd5b47ef00c..c369f0505e58 100644
UNIFIED_SOURCES += [
"/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
-@@ -336,13 +158,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "riscv64":
+@@ -346,13 +166,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "riscv64":
"/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
]
@@ -28417,7 +29386,7 @@ index 3dd5b47ef00c..c369f0505e58 100644
UNIFIED_SOURCES += [
"/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
-@@ -350,14 +168,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
+@@ -360,14 +176,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
"/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
]
@@ -28435,7 +29404,7 @@ index 3dd5b47ef00c..c369f0505e58 100644
Library("common_audio_c_gn")
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 8ae2488b3f71..b4d70cc2f54e 100644
+index c023b7c150b1..b4d70cc2f54e 100644
--- third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build
+++ third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -28459,7 +29428,7 @@ index 8ae2488b3f71..b4d70cc2f54e 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -28572,6 +29541,10 @@ index 8ae2488b3f71..b4d70cc2f54e 100644
- 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
@@ -28653,7 +29626,7 @@ index 8ae2488b3f71..b4d70cc2f54e 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 2adb05db1da2..3b2da1e0df87 100644
+index 8a6ffa09aba0..3b2da1e0df87 100644
--- third_party/libwebrtc/common_audio/common_audio_gn/moz.build
+++ third_party/libwebrtc/common_audio/common_audio_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -28677,7 +29650,7 @@ index 2adb05db1da2..3b2da1e0df87 100644
FINAL_LIBRARY = "xul"
-@@ -56,186 +65,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -56,190 +65,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -28790,6 +29763,10 @@ index 2adb05db1da2..3b2da1e0df87 100644
- 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
@@ -29412,7 +30389,7 @@ index 51912d444a2a..3cbf748ca212 100644
Library("common_audio_sse2_gn")
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 7feb4c9425a7..2e23cff0927c 100644
+index 2e171bb7a6e1..2e23cff0927c 100644
--- third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build
+++ third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -29436,7 +30413,7 @@ index 7feb4c9425a7..2e23cff0927c 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -29549,6 +30526,10 @@ index 7feb4c9425a7..2e23cff0927c 100644
- 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
@@ -29630,7 +30611,7 @@ index 7feb4c9425a7..2e23cff0927c 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 737328806dee..1c7ccb98989b 100644
+index 5ecdb1c5a628..1c7ccb98989b 100644
--- third_party/libwebrtc/common_audio/fir_filter_gn/moz.build
+++ third_party/libwebrtc/common_audio/fir_filter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -29654,7 +30635,7 @@ index 737328806dee..1c7ccb98989b 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -29748,6 +30729,10 @@ index 737328806dee..1c7ccb98989b 100644
- 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
@@ -29760,7 +30745,7 @@ index 737328806dee..1c7ccb98989b 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -29813,7 +30798,7 @@ index 737328806dee..1c7ccb98989b 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 30b5d4b7f2ba..2ddc2629d15a 100644
+index 7119bb2e4faf..2ddc2629d15a 100644
--- third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build
+++ third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -29837,7 +30822,7 @@ index 30b5d4b7f2ba..2ddc2629d15a 100644
FINAL_LIBRARY = "xul"
-@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,123 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -29946,6 +30931,10 @@ index 30b5d4b7f2ba..2ddc2629d15a 100644
- 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
@@ -29958,7 +30947,7 @@ index 30b5d4b7f2ba..2ddc2629d15a 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -165,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -30011,7 +31000,7 @@ index 30b5d4b7f2ba..2ddc2629d15a 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 97936c8f4634..94878277903b 100644
+index 61b2490a0073..94878277903b 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -30135,7 +31124,7 @@ index 97936c8f4634..94878277903b 100644
if CONFIG["TARGET_CPU"] == "aarch64":
-@@ -145,128 +63,42 @@ if CONFIG["TARGET_CPU"] == "aarch64":
+@@ -145,132 +63,42 @@ if CONFIG["TARGET_CPU"] == "aarch64":
"/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_neon.cc"
]
@@ -30153,6 +31142,10 @@ index 97936c8f4634..94878277903b 100644
- "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_neon.cc"
- ]
-
+-if CONFIG["TARGET_CPU"] == "loongarch64":
+-
+- DEFINES["_GNU_SOURCE"] = True
+-
if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["MIPS32_LE"] = True
@@ -30274,7 +31267,7 @@ index 97936c8f4634..94878277903b 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 71d18f809068..93632857ca94 100644
+index 78925ad820e1..93632857ca94 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -30298,7 +31291,7 @@ index 71d18f809068..93632857ca94 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -30396,6 +31389,10 @@ index 71d18f809068..93632857ca94 100644
- 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
@@ -30477,7 +31474,7 @@ index 71d18f809068..93632857ca94 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 57536e5ed91f..a1cf748e22fd 100644
+index a6269cbd5a3f..7c59eb325f1f 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -30501,7 +31498,7 @@ index 57536e5ed91f..a1cf748e22fd 100644
FINAL_LIBRARY = "xul"
-@@ -39,116 +48,21 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,115 +48,19 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -30613,7 +31610,14 @@ index 57536e5ed91f..a1cf748e22fd 100644
+ "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
]
- if CONFIG["TARGET_CPU"] == "mips32":
+ if CONFIG["TARGET_CPU"] == "loongarch64":
+
+- DEFINES["_GNU_SOURCE"] = True
+-
+ UNIFIED_SOURCES += [
+ "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
+ ]
+@@ -156,7 +69,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["MIPS32_LE"] = True
DEFINES["MIPS_FPU_LE"] = True
@@ -30621,7 +31625,7 @@ index 57536e5ed91f..a1cf748e22fd 100644
UNIFIED_SOURCES += [
"/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_mips.c"
-@@ -156,8 +70,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
+@@ -164,8 +76,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
if CONFIG["TARGET_CPU"] == "mips64":
@@ -30630,7 +31634,7 @@ index 57536e5ed91f..a1cf748e22fd 100644
UNIFIED_SOURCES += [
"/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
]
-@@ -168,102 +80,34 @@ if CONFIG["TARGET_CPU"] == "ppc64":
+@@ -176,102 +86,34 @@ if CONFIG["TARGET_CPU"] == "ppc64":
"/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
]
@@ -30741,7 +31745,7 @@ index 57536e5ed91f..a1cf748e22fd 100644
Library("spl_sqrt_floor_gn")
diff --git third_party/libwebrtc/common_video/common_video_gn/moz.build third_party/libwebrtc/common_video/common_video_gn/moz.build
-index 04e8ee331779..611b579b4f25 100644
+index cb40e064282d..611b579b4f25 100644
--- third_party/libwebrtc/common_video/common_video_gn/moz.build
+++ third_party/libwebrtc/common_video/common_video_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -30765,7 +31769,7 @@ index 04e8ee331779..611b579b4f25 100644
FINAL_LIBRARY = "xul"
-@@ -55,182 +64,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -55,186 +64,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -30874,6 +31878,10 @@ index 04e8ee331779..611b579b4f25 100644
- 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
@@ -30955,7 +31963,7 @@ index 04e8ee331779..611b579b4f25 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 733c0e05c2ef..0db4ddb79920 100644
+index 9cb9225a87fc..0db4ddb79920 100644
--- third_party/libwebrtc/common_video/corruption_detection_converters_gn/moz.build
+++ third_party/libwebrtc/common_video/corruption_detection_converters_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -30979,7 +31987,7 @@ index 733c0e05c2ef..0db4ddb79920 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -31081,6 +32089,10 @@ index 733c0e05c2ef..0db4ddb79920 100644
- 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
@@ -31162,7 +32174,7 @@ index 733c0e05c2ef..0db4ddb79920 100644
Library("corruption_detection_converters_gn")
diff --git third_party/libwebrtc/common_video/corruption_detection_message_gn/moz.build third_party/libwebrtc/common_video/corruption_detection_message_gn/moz.build
-index a471c6b88e84..915f17ef72d7 100644
+index 5c94efb78495..915f17ef72d7 100644
--- third_party/libwebrtc/common_video/corruption_detection_message_gn/moz.build
+++ third_party/libwebrtc/common_video/corruption_detection_message_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -31186,7 +32198,7 @@ index a471c6b88e84..915f17ef72d7 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -31284,6 +32296,10 @@ index a471c6b88e84..915f17ef72d7 100644
- 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
@@ -31296,7 +32312,7 @@ index a471c6b88e84..915f17ef72d7 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -31349,7 +32365,7 @@ index a471c6b88e84..915f17ef72d7 100644
-
Library("corruption_detection_message_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 96efd5afee04..7581bd78b6c5 100644
+index fc3bafbb64b4..7581bd78b6c5 100644
--- third_party/libwebrtc/common_video/corruption_score_calculator_gn/moz.build
+++ third_party/libwebrtc/common_video/corruption_score_calculator_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -31373,7 +32389,7 @@ index 96efd5afee04..7581bd78b6c5 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -31478,6 +32494,10 @@ index 96efd5afee04..7581bd78b6c5 100644
- 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
@@ -31490,7 +32510,7 @@ index 96efd5afee04..7581bd78b6c5 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -31543,7 +32563,7 @@ index 96efd5afee04..7581bd78b6c5 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 c8a0214f9730..9a2f65ea66c5 100644
+index 8fc0726fff58..9a2f65ea66c5 100644
--- third_party/libwebrtc/common_video/frame_counts_gn/moz.build
+++ third_party/libwebrtc/common_video/frame_counts_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -31567,7 +32587,7 @@ index c8a0214f9730..9a2f65ea66c5 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -31661,6 +32681,10 @@ index c8a0214f9730..9a2f65ea66c5 100644
- 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
@@ -31673,7 +32697,7 @@ index c8a0214f9730..9a2f65ea66c5 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -31726,7 +32750,7 @@ index c8a0214f9730..9a2f65ea66c5 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 e168f9ab348c..2e666f70cf8c 100644
+index 6f415251ad95..2e666f70cf8c 100644
--- third_party/libwebrtc/common_video/frame_instrumentation_data_gn/moz.build
+++ third_party/libwebrtc/common_video/frame_instrumentation_data_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -31750,7 +32774,7 @@ index e168f9ab348c..2e666f70cf8c 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -31844,6 +32868,10 @@ index e168f9ab348c..2e666f70cf8c 100644
- 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
@@ -31856,7 +32884,7 @@ index e168f9ab348c..2e666f70cf8c 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -31909,7 +32937,7 @@ index e168f9ab348c..2e666f70cf8c 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 228f15d136c9..7652e895de75 100644
+index d36cf57dacd5..7652e895de75 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -31933,7 +32961,7 @@ index 228f15d136c9..7652e895de75 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -32035,6 +33063,10 @@ index 228f15d136c9..7652e895de75 100644
- 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
@@ -32116,7 +33148,7 @@ index 228f15d136c9..7652e895de75 100644
Library("generic_frame_descriptor_gn")
diff --git third_party/libwebrtc/dcsctp_gn/moz.build third_party/libwebrtc/dcsctp_gn/moz.build
-index e7fd89aa1df3..b555230e9bce 100644
+index 2f940fd7bec3..b555230e9bce 100644
--- third_party/libwebrtc/dcsctp_gn/moz.build
+++ third_party/libwebrtc/dcsctp_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -32140,7 +33172,7 @@ index e7fd89aa1df3..b555230e9bce 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -32245,6 +33277,10 @@ index e7fd89aa1df3..b555230e9bce 100644
- 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
@@ -32257,7 +33293,7 @@ index e7fd89aa1df3..b555230e9bce 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -32310,7 +33346,7 @@ index e7fd89aa1df3..b555230e9bce 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 da682dbf4cc8..679a78a96f89 100644
+index 216472255063..679a78a96f89 100644
--- third_party/libwebrtc/experiments/registered_field_trials_gn/moz.build
+++ third_party/libwebrtc/experiments/registered_field_trials_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -32334,7 +33370,7 @@ index da682dbf4cc8..679a78a96f89 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -32428,6 +33464,10 @@ index da682dbf4cc8..679a78a96f89 100644
- 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
@@ -32440,7 +33480,7 @@ index da682dbf4cc8..679a78a96f89 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -32507,7 +33547,7 @@ index 6c29dea76a50..3ae54a950c46 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 f697998dc03a..0da1f97cbafd 100644
+index a6629977f400..0da1f97cbafd 100644
--- third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build
+++ third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -32531,7 +33571,7 @@ index f697998dc03a..0da1f97cbafd 100644
FINAL_LIBRARY = "xul"
-@@ -47,182 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -47,186 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -32640,6 +33680,10 @@ index f697998dc03a..0da1f97cbafd 100644
- 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
@@ -32721,7 +33765,7 @@ index f697998dc03a..0da1f97cbafd 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 7cc2e6f4578a..aca9e63b106b 100644
+index f5dbb588ce9d..aca9e63b106b 100644
--- third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build
+++ third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -32745,7 +33789,7 @@ index 7cc2e6f4578a..aca9e63b106b 100644
FINAL_LIBRARY = "xul"
-@@ -48,182 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -48,186 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -32854,6 +33898,10 @@ index 7cc2e6f4578a..aca9e63b106b 100644
- 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
@@ -32935,7 +33983,7 @@ index 7cc2e6f4578a..aca9e63b106b 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 091619887ac0..4a8b29c731a2 100644
+index f121198a0800..4a8b29c731a2 100644
--- third_party/libwebrtc/logging/rtc_event_field_gn/moz.build
+++ third_party/libwebrtc/logging/rtc_event_field_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -32959,7 +34007,7 @@ index 091619887ac0..4a8b29c731a2 100644
FINAL_LIBRARY = "xul"
-@@ -46,182 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -33068,6 +34116,10 @@ index 091619887ac0..4a8b29c731a2 100644
- 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
@@ -33149,7 +34201,7 @@ index 091619887ac0..4a8b29c731a2 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 c8a88a8c0dc7..7288ed35abad 100644
+index 2348f29e3310..7288ed35abad 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -33173,7 +34225,7 @@ index c8a88a8c0dc7..7288ed35abad 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -33271,6 +34323,10 @@ index c8a88a8c0dc7..7288ed35abad 100644
- 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
@@ -33283,7 +34339,7 @@ index c8a88a8c0dc7..7288ed35abad 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -33336,7 +34392,7 @@ index c8a88a8c0dc7..7288ed35abad 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 e6e2fbc11a2c..ee2f0cd421d7 100644
+index 524cb78d4918..ee2f0cd421d7 100644
--- third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build
+++ third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -33360,7 +34416,7 @@ index e6e2fbc11a2c..ee2f0cd421d7 100644
FINAL_LIBRARY = "xul"
-@@ -45,175 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,179 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -33462,6 +34518,10 @@ index e6e2fbc11a2c..ee2f0cd421d7 100644
- 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
@@ -33543,7 +34603,7 @@ index e6e2fbc11a2c..ee2f0cd421d7 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 48ee880d88bd..824c9abdf3d0 100644
+index 6dc6484494da..824c9abdf3d0 100644
--- third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build
+++ third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -33567,7 +34627,7 @@ index 48ee880d88bd..824c9abdf3d0 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -33676,6 +34736,10 @@ index 48ee880d88bd..824c9abdf3d0 100644
- 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
@@ -33757,7 +34821,7 @@ index 48ee880d88bd..824c9abdf3d0 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 edc863915cb9..0ba912e5dbeb 100644
+index 8cc1177e82ef..0ba912e5dbeb 100644
--- third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build
+++ third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -33781,7 +34845,7 @@ index edc863915cb9..0ba912e5dbeb 100644
FINAL_LIBRARY = "xul"
-@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,190 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -33894,6 +34958,10 @@ index edc863915cb9..0ba912e5dbeb 100644
- 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
@@ -33975,7 +35043,7 @@ index edc863915cb9..0ba912e5dbeb 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 f1836eb8d6a5..5dfce62b3b3e 100644
+index 3f8e25f66cf1..5dfce62b3b3e 100644
--- third_party/libwebrtc/logging/rtc_event_video_gn/moz.build
+++ third_party/libwebrtc/logging/rtc_event_video_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -33999,7 +35067,7 @@ index f1836eb8d6a5..5dfce62b3b3e 100644
FINAL_LIBRARY = "xul"
-@@ -44,182 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -34108,6 +35176,10 @@ index f1836eb8d6a5..5dfce62b3b3e 100644
- 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
@@ -34189,7 +35261,7 @@ index f1836eb8d6a5..5dfce62b3b3e 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 0f31a36f300d..abd1c123b85a 100644
+index 604a99340ea1..abd1c123b85a 100644
--- third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build
+++ third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -34213,7 +35285,7 @@ index 0f31a36f300d..abd1c123b85a 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -34322,6 +35394,10 @@ index 0f31a36f300d..abd1c123b85a 100644
- 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
@@ -34403,7 +35479,7 @@ index 0f31a36f300d..abd1c123b85a 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 5c5a8393220a..bdfcd97c39a7 100644
+index 9cd35674dc77..bdfcd97c39a7 100644
--- third_party/libwebrtc/media/adapted_video_track_source_gn/moz.build
+++ third_party/libwebrtc/media/adapted_video_track_source_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -34427,7 +35503,7 @@ index 5c5a8393220a..bdfcd97c39a7 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -34536,6 +35612,10 @@ index 5c5a8393220a..bdfcd97c39a7 100644
- 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
@@ -34617,7 +35697,7 @@ index 5c5a8393220a..bdfcd97c39a7 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 fb289118f9d5..c62c06c2e274 100644
+index 1241f267c6b3..c62c06c2e274 100644
--- third_party/libwebrtc/media/audio_source_gn/moz.build
+++ third_party/libwebrtc/media/audio_source_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -34641,7 +35721,7 @@ index fb289118f9d5..c62c06c2e274 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -34735,6 +35815,10 @@ index fb289118f9d5..c62c06c2e274 100644
- 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
@@ -34747,7 +35831,7 @@ index fb289118f9d5..c62c06c2e274 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -34800,7 +35884,7 @@ index fb289118f9d5..c62c06c2e274 100644
-
Library("audio_source_gn")
diff --git third_party/libwebrtc/media/codec_gn/moz.build third_party/libwebrtc/media/codec_gn/moz.build
-index 6812d637e583..6123ce9afcd7 100644
+index 51c9e2fdf274..6123ce9afcd7 100644
--- third_party/libwebrtc/media/codec_gn/moz.build
+++ third_party/libwebrtc/media/codec_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -34824,7 +35908,7 @@ index 6812d637e583..6123ce9afcd7 100644
FINAL_LIBRARY = "xul"
-@@ -44,182 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -34933,6 +36017,10 @@ index 6812d637e583..6123ce9afcd7 100644
- 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
@@ -35014,7 +36102,7 @@ index 6812d637e583..6123ce9afcd7 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 4854c0cba2d2..2b0ddb90290f 100644
+index 948e34ca808b..2b0ddb90290f 100644
--- third_party/libwebrtc/media/media_channel_gn/moz.build
+++ third_party/libwebrtc/media/media_channel_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -35038,7 +36126,7 @@ index 4854c0cba2d2..2b0ddb90290f 100644
FINAL_LIBRARY = "xul"
-@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,124 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -35148,6 +36236,10 @@ index 4854c0cba2d2..2b0ddb90290f 100644
- 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
@@ -35160,7 +36252,7 @@ index 4854c0cba2d2..2b0ddb90290f 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -166,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -35213,7 +36305,7 @@ index 4854c0cba2d2..2b0ddb90290f 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 00553c09863b..52f88e43cc57 100644
+index fc55532a8011..52f88e43cc57 100644
--- third_party/libwebrtc/media/media_channel_impl_gn/moz.build
+++ third_party/libwebrtc/media/media_channel_impl_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -35237,7 +36329,7 @@ index 00553c09863b..52f88e43cc57 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -35331,6 +36423,10 @@ index 00553c09863b..52f88e43cc57 100644
- 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
@@ -35343,7 +36439,7 @@ index 00553c09863b..52f88e43cc57 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -35396,7 +36492,7 @@ index 00553c09863b..52f88e43cc57 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 e5e108aaa416..423d08736d64 100644
+index 513ae136c7c4..423d08736d64 100644
--- third_party/libwebrtc/media/media_constants_gn/moz.build
+++ third_party/libwebrtc/media/media_constants_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -35420,7 +36516,7 @@ index e5e108aaa416..423d08736d64 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -35518,6 +36614,10 @@ index e5e108aaa416..423d08736d64 100644
- 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
@@ -35599,7 +36699,7 @@ index e5e108aaa416..423d08736d64 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 86697b490e75..5c5db0c2817b 100644
+index f2f90903dcce..5c5db0c2817b 100644
--- third_party/libwebrtc/media/media_engine_gn/moz.build
+++ third_party/libwebrtc/media/media_engine_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -35623,7 +36723,7 @@ index 86697b490e75..5c5db0c2817b 100644
FINAL_LIBRARY = "xul"
-@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,124 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -35733,6 +36833,10 @@ index 86697b490e75..5c5db0c2817b 100644
- 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
@@ -35745,7 +36849,7 @@ index 86697b490e75..5c5db0c2817b 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -166,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -35798,7 +36902,7 @@ index 86697b490e75..5c5db0c2817b 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 82a78e20a626..cc43c08f4956 100644
+index 1985b87ded83..cc43c08f4956 100644
--- third_party/libwebrtc/media/rid_description_gn/moz.build
+++ third_party/libwebrtc/media/rid_description_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -35822,7 +36926,7 @@ index 82a78e20a626..cc43c08f4956 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -35920,6 +37024,10 @@ index 82a78e20a626..cc43c08f4956 100644
- 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
@@ -36001,7 +37109,7 @@ index 82a78e20a626..cc43c08f4956 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 098fdf4d6b73..06a37c4a10e1 100644
+index 90168a773453..06a37c4a10e1 100644
--- third_party/libwebrtc/media/rtc_audio_video_gn/moz.build
+++ third_party/libwebrtc/media/rtc_audio_video_gn/moz.build
@@ -13,11 +13,20 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
@@ -36025,7 +37133,7 @@ index 098fdf4d6b73..06a37c4a10e1 100644
FINAL_LIBRARY = "xul"
-@@ -45,125 +54,23 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,129 +54,23 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -36146,6 +37254,10 @@ index 098fdf4d6b73..06a37c4a10e1 100644
- 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
@@ -36155,7 +37267,7 @@ index 098fdf4d6b73..06a37c4a10e1 100644
LOCAL_INCLUDES += [
"/third_party/pipewire/"
-@@ -172,7 +79,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
+@@ -176,7 +79,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
if CONFIG["TARGET_CPU"] == "mips64":
DEFINES["WEBRTC_USE_PIPEWIRE"] = True
@@ -36163,7 +37275,7 @@ index 098fdf4d6b73..06a37c4a10e1 100644
LOCAL_INCLUDES += [
"/third_party/pipewire/"
-@@ -180,86 +86,28 @@ if CONFIG["TARGET_CPU"] == "mips64":
+@@ -184,86 +86,28 @@ if CONFIG["TARGET_CPU"] == "mips64":
if CONFIG["TARGET_CPU"] == "x86":
@@ -36256,7 +37368,7 @@ index 098fdf4d6b73..06a37c4a10e1 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 4c6e3dc5cc88..2c9bb96060fb 100644
+index 1adaccb51489..2c9bb96060fb 100644
--- third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build
+++ third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build
@@ -13,11 +13,20 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
@@ -36280,7 +37392,7 @@ index 4c6e3dc5cc88..2c9bb96060fb 100644
FINAL_LIBRARY = "xul"
-@@ -44,187 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,191 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -36394,6 +37506,10 @@ index 4c6e3dc5cc88..2c9bb96060fb 100644
- 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
@@ -36475,7 +37591,7 @@ index 4c6e3dc5cc88..2c9bb96060fb 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 b762b960213d..a857149705a7 100644
+index 64266d40b4d4..a857149705a7 100644
--- third_party/libwebrtc/media/rtc_media_base_gn/moz.build
+++ third_party/libwebrtc/media/rtc_media_base_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -36499,7 +37615,7 @@ index b762b960213d..a857149705a7 100644
FINAL_LIBRARY = "xul"
-@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,124 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -36609,6 +37725,10 @@ index b762b960213d..a857149705a7 100644
- 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
@@ -36621,7 +37741,7 @@ index b762b960213d..a857149705a7 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -166,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -36674,7 +37794,7 @@ index b762b960213d..a857149705a7 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 dd16a773fd4d..dd752363d357 100644
+index 1b6f1e5f819e..dd752363d357 100644
--- third_party/libwebrtc/media/rtc_media_config_gn/moz.build
+++ third_party/libwebrtc/media/rtc_media_config_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -36698,7 +37818,7 @@ index dd16a773fd4d..dd752363d357 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -36792,6 +37912,10 @@ index dd16a773fd4d..dd752363d357 100644
- 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
@@ -36804,7 +37928,7 @@ index dd16a773fd4d..dd752363d357 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -36857,7 +37981,7 @@ index dd16a773fd4d..dd752363d357 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 1b269b89cbf6..2a6276fa89f1 100644
+index d1ab590e0b6a..2a6276fa89f1 100644
--- third_party/libwebrtc/media/rtc_media_gn/moz.build
+++ third_party/libwebrtc/media/rtc_media_gn/moz.build
@@ -13,11 +13,20 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
@@ -36881,7 +38005,7 @@ index 1b269b89cbf6..2a6276fa89f1 100644
FINAL_LIBRARY = "xul"
-@@ -40,124 +49,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -40,128 +49,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -36995,6 +38119,10 @@ index 1b269b89cbf6..2a6276fa89f1 100644
- 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
@@ -37007,7 +38135,7 @@ index 1b269b89cbf6..2a6276fa89f1 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -167,50 +69,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -171,50 +69,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -37060,7 +38188,7 @@ index 1b269b89cbf6..2a6276fa89f1 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 786f085bf8c4..fe3ca3871764 100644
+index 1e630fef1e9c..fe3ca3871764 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -37084,7 +38212,7 @@ index 786f085bf8c4..fe3ca3871764 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -37193,6 +38321,10 @@ index 786f085bf8c4..fe3ca3871764 100644
- 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
@@ -37274,7 +38406,7 @@ index 786f085bf8c4..fe3ca3871764 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 c5defab97e42..f610f31e77da 100644
+index 28bddfa3df6c..f610f31e77da 100644
--- third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build
+++ third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -37298,7 +38430,7 @@ index c5defab97e42..f610f31e77da 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -37412,6 +38544,10 @@ index c5defab97e42..f610f31e77da 100644
- 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
@@ -37493,7 +38629,7 @@ index c5defab97e42..f610f31e77da 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 75d0cfe84b4f..3de425bdbccc 100644
+index fb6bf035b541..3de425bdbccc 100644
--- third_party/libwebrtc/media/rtp_utils_gn/moz.build
+++ third_party/libwebrtc/media/rtp_utils_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -37517,7 +38653,7 @@ index 75d0cfe84b4f..3de425bdbccc 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -37611,6 +38747,10 @@ index 75d0cfe84b4f..3de425bdbccc 100644
- 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
@@ -37623,7 +38763,7 @@ index 75d0cfe84b4f..3de425bdbccc 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -37676,7 +38816,7 @@ index 75d0cfe84b4f..3de425bdbccc 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 d18746b1a1d6..04e834b5bc39 100644
+index fc9cfc7fec48..04e834b5bc39 100644
--- third_party/libwebrtc/media/stream_params_gn/moz.build
+++ third_party/libwebrtc/media/stream_params_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -37700,7 +38840,7 @@ index d18746b1a1d6..04e834b5bc39 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -37794,6 +38934,10 @@ index d18746b1a1d6..04e834b5bc39 100644
- 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
@@ -37806,7 +38950,7 @@ index d18746b1a1d6..04e834b5bc39 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -37859,7 +39003,7 @@ index d18746b1a1d6..04e834b5bc39 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 d2959771455c..0ed1988aa44e 100644
+index 01d68b1953aa..0ed1988aa44e 100644
--- third_party/libwebrtc/media/video_adapter_gn/moz.build
+++ third_party/libwebrtc/media/video_adapter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -37883,7 +39027,7 @@ index d2959771455c..0ed1988aa44e 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -37992,6 +39136,10 @@ index d2959771455c..0ed1988aa44e 100644
- 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
@@ -38073,7 +39221,7 @@ index d2959771455c..0ed1988aa44e 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 94ab6f7e96e2..f3a9666e381e 100644
+index c009305537a3..f3a9666e381e 100644
--- third_party/libwebrtc/media/video_broadcaster_gn/moz.build
+++ third_party/libwebrtc/media/video_broadcaster_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -38097,7 +39245,7 @@ index 94ab6f7e96e2..f3a9666e381e 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -38206,6 +39354,10 @@ index 94ab6f7e96e2..f3a9666e381e 100644
- 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
@@ -38287,7 +39439,7 @@ index 94ab6f7e96e2..f3a9666e381e 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 3f00d449dddf..157142b5b25e 100644
+index 9fdf90d2eab1..157142b5b25e 100644
--- third_party/libwebrtc/media/video_common_gn/moz.build
+++ third_party/libwebrtc/media/video_common_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -38311,7 +39463,7 @@ index 3f00d449dddf..157142b5b25e 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -38420,6 +39572,10 @@ index 3f00d449dddf..157142b5b25e 100644
- 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
@@ -38501,7 +39657,7 @@ index 3f00d449dddf..157142b5b25e 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 963a423a88bd..81956c111ea3 100644
+index 98060ff1d3a0..81956c111ea3 100644
--- third_party/libwebrtc/media/video_source_base_gn/moz.build
+++ third_party/libwebrtc/media/video_source_base_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -38525,7 +39681,7 @@ index 963a423a88bd..81956c111ea3 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -38634,6 +39790,10 @@ index 963a423a88bd..81956c111ea3 100644
- 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
@@ -38715,7 +39875,7 @@ index 963a423a88bd..81956c111ea3 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 7762bf605bbb..e5fc71a9fce0 100644
+index fa5724cd7b6d..e5fc71a9fce0 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -38739,7 +39899,7 @@ index 7762bf605bbb..e5fc71a9fce0 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -38848,6 +40008,10 @@ index 7762bf605bbb..e5fc71a9fce0 100644
- 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
@@ -38929,7 +40093,7 @@ index 7762bf605bbb..e5fc71a9fce0 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 9f1cf10559c6..56ace0cdef4a 100644
+index 942ca391253e..56ace0cdef4a 100644
--- third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -38953,7 +40117,7 @@ index 9f1cf10559c6..56ace0cdef4a 100644
FINAL_LIBRARY = "xul"
-@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,190 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -39066,6 +40230,10 @@ index 9f1cf10559c6..56ace0cdef4a 100644
- 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
@@ -39147,7 +40315,7 @@ index 9f1cf10559c6..56ace0cdef4a 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 6dd063805166..07bc360e04be 100644
+index 722f61ffeb62..07bc360e04be 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -39171,7 +40339,7 @@ index 6dd063805166..07bc360e04be 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -39265,6 +40433,10 @@ index 6dd063805166..07bc360e04be 100644
- 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
@@ -39277,7 +40449,7 @@ index 6dd063805166..07bc360e04be 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -39330,7 +40502,7 @@ index 6dd063805166..07bc360e04be 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 0aa3a5c13a02..836cd7d4259d 100644
+index 3179e363d16c..836cd7d4259d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -39354,7 +40526,7 @@ index 0aa3a5c13a02..836cd7d4259d 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -39463,6 +40635,10 @@ index 0aa3a5c13a02..836cd7d4259d 100644
- 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
@@ -39544,7 +40720,7 @@ index 0aa3a5c13a02..836cd7d4259d 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 0067c3f98e48..dfd43bdcc3ab 100644
+index 29c2f1ad4f99..dfd43bdcc3ab 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -39568,7 +40744,7 @@ index 0067c3f98e48..dfd43bdcc3ab 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -39681,6 +40857,10 @@ index 0067c3f98e48..dfd43bdcc3ab 100644
- 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
@@ -39762,7 +40942,7 @@ index 0067c3f98e48..dfd43bdcc3ab 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 b2d1b4dc33b5..c23d12cc0979 100644
+index 469146e9acdc..c23d12cc0979 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -39786,7 +40966,7 @@ index b2d1b4dc33b5..c23d12cc0979 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -39884,6 +41064,10 @@ index b2d1b4dc33b5..c23d12cc0979 100644
- 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
@@ -39965,7 +41149,7 @@ index b2d1b4dc33b5..c23d12cc0979 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 9d528d53ef4d..d4173377c188 100644
+index 520c1d24293a..d4173377c188 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -39989,7 +41173,7 @@ index 9d528d53ef4d..d4173377c188 100644
FINAL_LIBRARY = "xul"
-@@ -53,186 +62,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -53,190 +62,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -40102,6 +41286,10 @@ index 9d528d53ef4d..d4173377c188 100644
- 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
@@ -40183,7 +41371,7 @@ index 9d528d53ef4d..d4173377c188 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 a6410efb20d4..80b14354a709 100644
+index 0093dc4e6a29..80b14354a709 100644
--- third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -40207,7 +41395,7 @@ index a6410efb20d4..80b14354a709 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -40305,6 +41493,10 @@ index a6410efb20d4..80b14354a709 100644
- 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
@@ -40386,7 +41578,7 @@ index a6410efb20d4..80b14354a709 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 7a05e0fef8e9..5ea9245960d3 100644
+index 1883839bf2f6..5ea9245960d3 100644
--- third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -40410,7 +41602,7 @@ index 7a05e0fef8e9..5ea9245960d3 100644
FINAL_LIBRARY = "xul"
-@@ -44,182 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -40519,6 +41711,10 @@ index 7a05e0fef8e9..5ea9245960d3 100644
- 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
@@ -40600,7 +41796,7 @@ index 7a05e0fef8e9..5ea9245960d3 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 50d116f354ed..36607b5052fe 100644
+index e529107882e3..36607b5052fe 100644
--- third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -40624,7 +41820,7 @@ index 50d116f354ed..36607b5052fe 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -40722,6 +41918,10 @@ index 50d116f354ed..36607b5052fe 100644
- 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
@@ -40803,7 +42003,7 @@ index 50d116f354ed..36607b5052fe 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 11b9938daa8a..7b6097e2aed1 100644
+index 1edb33c02700..7b6097e2aed1 100644
--- third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -40827,7 +42027,7 @@ index 11b9938daa8a..7b6097e2aed1 100644
FINAL_LIBRARY = "xul"
-@@ -44,182 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -40936,6 +42136,10 @@ index 11b9938daa8a..7b6097e2aed1 100644
- 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
@@ -41017,7 +42221,7 @@ index 11b9938daa8a..7b6097e2aed1 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 288572236170..48d6a8238c65 100644
+index 9b461b1c25af..48d6a8238c65 100644
--- third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -41041,7 +42245,7 @@ index 288572236170..48d6a8238c65 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -41135,6 +42339,10 @@ index 288572236170..48d6a8238c65 100644
- 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
@@ -41147,7 +42355,7 @@ index 288572236170..48d6a8238c65 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -41200,7 +42408,7 @@ index 288572236170..48d6a8238c65 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 fe126a48ae75..74726ce2c3fa 100644
+index 4aa8ad903cb2..74726ce2c3fa 100644
--- third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -41224,7 +42432,7 @@ index fe126a48ae75..74726ce2c3fa 100644
FINAL_LIBRARY = "xul"
-@@ -46,171 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,175 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -41322,6 +42530,10 @@ index fe126a48ae75..74726ce2c3fa 100644
- 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
@@ -41403,7 +42615,7 @@ index fe126a48ae75..74726ce2c3fa 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 0b9286ae510a..059cbe1c221b 100644
+index 1dfa3e67f353..059cbe1c221b 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -41427,7 +42639,7 @@ index 0b9286ae510a..059cbe1c221b 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -41536,6 +42748,10 @@ index 0b9286ae510a..059cbe1c221b 100644
- 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
@@ -41617,7 +42833,7 @@ index 0b9286ae510a..059cbe1c221b 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 9805e561dcb2..38c391c65bcd 100644
+index 08f8439eb07b..38c391c65bcd 100644
--- third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -41641,7 +42857,7 @@ index 9805e561dcb2..38c391c65bcd 100644
FINAL_LIBRARY = "xul"
-@@ -78,186 +87,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -78,190 +87,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -41754,6 +42970,10 @@ index 9805e561dcb2..38c391c65bcd 100644
- 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
@@ -41835,7 +43055,7 @@ index 9805e561dcb2..38c391c65bcd 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 04415c3d81c9..0e172820621f 100644
+index 1f357c4fb65d..0e172820621f 100644
--- third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -41859,7 +43079,7 @@ index 04415c3d81c9..0e172820621f 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -41957,6 +43177,10 @@ index 04415c3d81c9..0e172820621f 100644
- 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
@@ -42038,7 +43262,7 @@ index 04415c3d81c9..0e172820621f 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 973b836b33f7..437ca5438b62 100644
+index 3ea40d6df74d..437ca5438b62 100644
--- third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -42062,7 +43286,7 @@ index 973b836b33f7..437ca5438b62 100644
FINAL_LIBRARY = "xul"
-@@ -45,182 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,186 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -42171,6 +43395,10 @@ index 973b836b33f7..437ca5438b62 100644
- 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
@@ -42252,7 +43480,7 @@ index 973b836b33f7..437ca5438b62 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 4c73b57a9078..8d208793ff79 100644
+index 90cfee8f5214..8d208793ff79 100644
--- third_party/libwebrtc/modules/audio_coding/red_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/red_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -42276,7 +43504,7 @@ index 4c73b57a9078..8d208793ff79 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -42389,6 +43617,10 @@ index 4c73b57a9078..8d208793ff79 100644
- 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
@@ -42470,7 +43702,7 @@ index 4c73b57a9078..8d208793ff79 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 c8ae0caf04f3..1feff6421a4c 100644
+index 9a4452803747..1feff6421a4c 100644
--- third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -42494,7 +43726,7 @@ index c8ae0caf04f3..1feff6421a4c 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -42607,6 +43839,10 @@ index c8ae0caf04f3..1feff6421a4c 100644
- 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
@@ -42688,7 +43924,7 @@ index c8ae0caf04f3..1feff6421a4c 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 71be9125e7f7..bb4eca518817 100644
+index 62e6d99b0499..bb4eca518817 100644
--- third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build
@@ -12,13 +12,22 @@ AllowCompilerWarnings()
@@ -42714,7 +43950,7 @@ index 71be9125e7f7..bb4eca518817 100644
FINAL_LIBRARY = "xul"
-@@ -47,182 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -47,186 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -42823,6 +44059,10 @@ index 71be9125e7f7..bb4eca518817 100644
- 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
@@ -42904,7 +44144,7 @@ index 71be9125e7f7..bb4eca518817 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 b8d07f941646..90011b5c16e2 100644
+index a540a00469f3..90011b5c16e2 100644
--- third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build
+++ third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build
@@ -12,13 +12,22 @@ AllowCompilerWarnings()
@@ -42930,7 +44170,7 @@ index b8d07f941646..90011b5c16e2 100644
FINAL_LIBRARY = "xul"
-@@ -47,186 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -47,190 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -43043,6 +44283,10 @@ index b8d07f941646..90011b5c16e2 100644
- 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
@@ -43124,7 +44368,7 @@ index b8d07f941646..90011b5c16e2 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 8589e2deba3f..64721c4655fb 100644
+index 8970c596ba17..64721c4655fb 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
@@ -12,13 +12,22 @@ AllowCompilerWarnings()
@@ -43150,7 +44394,7 @@ index 8589e2deba3f..64721c4655fb 100644
FINAL_LIBRARY = "xul"
-@@ -46,175 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,179 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -43252,6 +44496,10 @@ index 8589e2deba3f..64721c4655fb 100644
- 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
@@ -43333,7 +44581,7 @@ index 8589e2deba3f..64721c4655fb 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 461a79c230d0..956114463750 100644
+index 0bd773f44928..956114463750 100644
--- third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build
+++ third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -43357,7 +44605,7 @@ index 461a79c230d0..956114463750 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -43451,6 +44699,10 @@ index 461a79c230d0..956114463750 100644
- 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
@@ -43463,7 +44715,7 @@ index 461a79c230d0..956114463750 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -43516,7 +44768,7 @@ index 461a79c230d0..956114463750 100644
-
Library("audio_device_gn")
diff --git third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build
-index 68d0cbc635aa..b7a55333da6b 100644
+index ec77b35b94a4..b7a55333da6b 100644
--- third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build
+++ third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -43540,7 +44792,7 @@ index 68d0cbc635aa..b7a55333da6b 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -43634,6 +44886,10 @@ index 68d0cbc635aa..b7a55333da6b 100644
- 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
@@ -43646,7 +44902,7 @@ index 68d0cbc635aa..b7a55333da6b 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -43699,7 +44955,7 @@ index 68d0cbc635aa..b7a55333da6b 100644
-
Library("audio_device_impl_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 e0dbde0dec34..c7a666de4c41 100644
+index 1a1300027eb4..c7a666de4c41 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -43723,7 +44979,7 @@ index e0dbde0dec34..c7a666de4c41 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -43836,6 +45092,10 @@ index e0dbde0dec34..c7a666de4c41 100644
- 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
@@ -43917,7 +45177,7 @@ index e0dbde0dec34..c7a666de4c41 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 3f24bc615d5a..77161a5e662b 100644
+index 1f38d95be5ec..77161a5e662b 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -43942,7 +45202,7 @@ index 3f24bc615d5a..77161a5e662b 100644
FINAL_LIBRARY = "xul"
-@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,190 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -44055,6 +45315,10 @@ index 3f24bc615d5a..77161a5e662b 100644
- 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
@@ -44136,7 +45400,7 @@ index 3f24bc615d5a..77161a5e662b 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 3f4cb13e3208..8b643a359c70 100644
+index 5cf655eb9246..8b643a359c70 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -44160,7 +45424,7 @@ index 3f4cb13e3208..8b643a359c70 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -44258,6 +45522,10 @@ index 3f4cb13e3208..8b643a359c70 100644
- 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
@@ -44270,7 +45538,7 @@ index 3f4cb13e3208..8b643a359c70 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -44323,7 +45591,7 @@ index 3f4cb13e3208..8b643a359c70 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 ede73916b98a..fe1e34fdfc49 100644
+index 497676ffe622..fe1e34fdfc49 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -44347,7 +45615,7 @@ index ede73916b98a..fe1e34fdfc49 100644
FINAL_LIBRARY = "xul"
-@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,123 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -44456,6 +45724,10 @@ index ede73916b98a..fe1e34fdfc49 100644
- 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
@@ -44468,7 +45740,7 @@ index ede73916b98a..fe1e34fdfc49 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -165,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -44686,7 +45958,7 @@ index ed02ca92381c..46c86f3568d0 100644
Library("aec3_avx2_gn")
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 95a0a39a6cea..281b817e914c 100644
+index 3fb0ea8a2c6a..281b817e914c 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -44710,7 +45982,7 @@ index 95a0a39a6cea..281b817e914c 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -44804,6 +46076,10 @@ index 95a0a39a6cea..281b817e914c 100644
- 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
@@ -44816,7 +46092,7 @@ index 95a0a39a6cea..281b817e914c 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -44869,7 +46145,7 @@ index 95a0a39a6cea..281b817e914c 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 97d1e13178a2..b7ed821a08d2 100644
+index 4900eca9532f..b7ed821a08d2 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -44893,7 +46169,7 @@ index 97d1e13178a2..b7ed821a08d2 100644
FINAL_LIBRARY = "xul"
-@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,123 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -45002,6 +46278,10 @@ index 97d1e13178a2..b7ed821a08d2 100644
- 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
@@ -45014,7 +46294,7 @@ index 97d1e13178a2..b7ed821a08d2 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -165,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -45067,7 +46347,7 @@ index 97d1e13178a2..b7ed821a08d2 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 9134c2257cf2..45252f2e5ce8 100644
+index 53b983a22fa7..45252f2e5ce8 100644
--- third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -45092,7 +46372,7 @@ index 9134c2257cf2..45252f2e5ce8 100644
FINAL_LIBRARY = "xul"
-@@ -100,186 +109,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -100,190 +109,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -45205,6 +46485,10 @@ index 9134c2257cf2..45252f2e5ce8 100644
- 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
@@ -45286,7 +46570,7 @@ index 9134c2257cf2..45252f2e5ce8 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 1bf09532e613..0c9cc569430d 100644
+index 5310e43a1d89..0c9cc569430d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -45310,7 +46594,7 @@ index 1bf09532e613..0c9cc569430d 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -45408,6 +46692,10 @@ index 1bf09532e613..0c9cc569430d 100644
- 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
@@ -45420,7 +46708,7 @@ index 1bf09532e613..0c9cc569430d 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -45473,7 +46761,7 @@ index 1bf09532e613..0c9cc569430d 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 f045aab9c5bf..433d161cb781 100644
+index 16305e915fb6..433d161cb781 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -45497,7 +46785,7 @@ index f045aab9c5bf..433d161cb781 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -45595,6 +46883,10 @@ index f045aab9c5bf..433d161cb781 100644
- 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
@@ -45607,7 +46899,7 @@ index f045aab9c5bf..433d161cb781 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -45660,7 +46952,7 @@ index f045aab9c5bf..433d161cb781 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 e29b99df43b0..ee2869af9930 100644
+index 107439b1d3d8..ee2869af9930 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -45684,7 +46976,7 @@ index e29b99df43b0..ee2869af9930 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -45782,6 +47074,10 @@ index e29b99df43b0..ee2869af9930 100644
- 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
@@ -45794,7 +47090,7 @@ index e29b99df43b0..ee2869af9930 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -45847,7 +47143,7 @@ index e29b99df43b0..ee2869af9930 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 6679b52489bc..8420c2a67ee0 100644
+index 727984504717..8420c2a67ee0 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -45871,7 +47167,7 @@ index 6679b52489bc..8420c2a67ee0 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -45969,6 +47265,10 @@ index 6679b52489bc..8420c2a67ee0 100644
- 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
@@ -45981,7 +47281,7 @@ index 6679b52489bc..8420c2a67ee0 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -46034,7 +47334,7 @@ index 6679b52489bc..8420c2a67ee0 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 550a88477169..2426c14c0008 100644
+index 2fa8e61caaf6..2426c14c0008 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -46058,7 +47358,7 @@ index 550a88477169..2426c14c0008 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -46163,6 +47463,10 @@ index 550a88477169..2426c14c0008 100644
- 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
@@ -46175,7 +47479,7 @@ index 550a88477169..2426c14c0008 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -46228,7 +47532,7 @@ index 550a88477169..2426c14c0008 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 36f213d21439..b3959e4726fd 100644
+index f4a57f1fbac8..b3959e4726fd 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -46252,7 +47556,7 @@ index 36f213d21439..b3959e4726fd 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -46361,6 +47665,10 @@ index 36f213d21439..b3959e4726fd 100644
- 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
@@ -46442,7 +47750,7 @@ index 36f213d21439..b3959e4726fd 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 2ae72fd85979..91b70f2ef1b6 100644
+index 6196d6ff4ff0..91b70f2ef1b6 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -46466,7 +47774,7 @@ index 2ae72fd85979..91b70f2ef1b6 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -46575,6 +47883,10 @@ index 2ae72fd85979..91b70f2ef1b6 100644
- 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
@@ -46656,7 +47968,7 @@ index 2ae72fd85979..91b70f2ef1b6 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 00b431d1e029..6115a80adc3a 100644
+index a884cffa8f5f..2d6f110d04dc 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -46796,7 +48108,7 @@ index 00b431d1e029..6115a80adc3a 100644
if CONFIG["TARGET_CPU"] == "aarch64":
-@@ -159,20 +61,7 @@ if CONFIG["TARGET_CPU"] == "aarch64":
+@@ -159,27 +61,12 @@ if CONFIG["TARGET_CPU"] == "aarch64":
DEFINES["WEBRTC_HAS_NEON"] = True
SOURCES += [
@@ -46818,7 +48130,14 @@ index 00b431d1e029..6115a80adc3a 100644
"/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_neon.cc"
]
-@@ -180,7 +69,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
+ if CONFIG["TARGET_CPU"] == "loongarch64":
+
+- DEFINES["_GNU_SOURCE"] = True
+-
+ SOURCES += [
+ "/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc"
+ ]
+@@ -188,7 +75,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["MIPS32_LE"] = True
DEFINES["MIPS_FPU_LE"] = True
@@ -46826,7 +48145,7 @@ index 00b431d1e029..6115a80adc3a 100644
SOURCES += [
"/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_mips.cc"
-@@ -188,8 +76,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
+@@ -196,8 +82,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
if CONFIG["TARGET_CPU"] == "mips64":
@@ -46835,7 +48154,7 @@ index 00b431d1e029..6115a80adc3a 100644
SOURCES += [
"/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc"
]
-@@ -200,90 +86,34 @@ if CONFIG["TARGET_CPU"] == "ppc64":
+@@ -208,90 +92,34 @@ if CONFIG["TARGET_CPU"] == "ppc64":
"/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc"
]
@@ -46894,18 +48213,18 @@ index 00b431d1e029..6115a80adc3a 100644
-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
-
- DEFINES["_GNU_SOURCE"] = True
--
-- SOURCES += [
-- "/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc"
-- ]
--
--if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "riscv64":
+if CONFIG["TARGET_CPU"] == "riscv64":
SOURCES += [
"/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc"
]
+-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "riscv64":
+-
+- SOURCES += [
+- "/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_c.cc"
+- ]
+-
-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
+if CONFIG["TARGET_CPU"] == "x86":
@@ -46936,7 +48255,7 @@ index 00b431d1e029..6115a80adc3a 100644
+
Library("aecm_core_gn")
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 0c04fca7ed30..ac4803f3488f 100644
+index c456275f855a..ac4803f3488f 100644
--- third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -46961,7 +48280,7 @@ index 0c04fca7ed30..ac4803f3488f 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -47074,6 +48393,10 @@ index 0c04fca7ed30..ac4803f3488f 100644
- 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
@@ -47155,7 +48478,7 @@ index 0c04fca7ed30..ac4803f3488f 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 d407622a9dbc..e18a5ed5f14e 100644
+index 456421e167ea..e18a5ed5f14e 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -47179,7 +48502,7 @@ index d407622a9dbc..e18a5ed5f14e 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -47273,6 +48596,10 @@ index d407622a9dbc..e18a5ed5f14e 100644
- 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
@@ -47285,7 +48612,7 @@ index d407622a9dbc..e18a5ed5f14e 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -47338,7 +48665,7 @@ index d407622a9dbc..e18a5ed5f14e 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 dfcf770d48b7..38bee0b95eaa 100644
+index ab1285e34d37..38bee0b95eaa 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -47362,7 +48689,7 @@ index dfcf770d48b7..38bee0b95eaa 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -47475,6 +48802,10 @@ index dfcf770d48b7..38bee0b95eaa 100644
- 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
@@ -47556,7 +48887,7 @@ index dfcf770d48b7..38bee0b95eaa 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 0a7c634fae9f..bacac4da045d 100644
+index 14e35c2e0246..bacac4da045d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -47580,7 +48911,7 @@ index 0a7c634fae9f..bacac4da045d 100644
FINAL_LIBRARY = "xul"
-@@ -45,186 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,190 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -47693,6 +49024,10 @@ index 0a7c634fae9f..bacac4da045d 100644
- 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
@@ -47774,7 +49109,7 @@ index 0a7c634fae9f..bacac4da045d 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 e0d4933eda47..ec062dd8dcca 100644
+index a926bba44729..ec062dd8dcca 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -47799,7 +49134,7 @@ index e0d4933eda47..ec062dd8dcca 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -47912,6 +49247,10 @@ index e0d4933eda47..ec062dd8dcca 100644
- 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
@@ -47993,7 +49332,7 @@ index e0d4933eda47..ec062dd8dcca 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 4793841f0a02..4c4aea313a76 100644
+index 2ccf23b32856..4c4aea313a76 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -48017,7 +49356,7 @@ index 4793841f0a02..4c4aea313a76 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -48119,6 +49458,10 @@ index 4793841f0a02..4c4aea313a76 100644
- 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
@@ -48200,7 +49543,7 @@ index 4793841f0a02..4c4aea313a76 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 2d23932bca05..978fca187767 100644
+index b7bfe444b7fb..978fca187767 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -48224,7 +49567,7 @@ index 2d23932bca05..978fca187767 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -48337,6 +49680,10 @@ index 2d23932bca05..978fca187767 100644
- 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
@@ -48418,7 +49765,7 @@ index 2d23932bca05..978fca187767 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 65c439c2312c..1d1718c4a270 100644
+index 138354dbc46a..1d1718c4a270 100644
--- third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -48442,7 +49789,7 @@ index 65c439c2312c..1d1718c4a270 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -48536,6 +49883,10 @@ index 65c439c2312c..1d1718c4a270 100644
- 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
@@ -48548,7 +49899,7 @@ index 65c439c2312c..1d1718c4a270 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -48601,7 +49952,7 @@ index 65c439c2312c..1d1718c4a270 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 c8b21bb6ad6b..50c4819481af 100644
+index 2f40304afaee..50c4819481af 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -48625,7 +49976,7 @@ index c8b21bb6ad6b..50c4819481af 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -48738,6 +50089,10 @@ index c8b21bb6ad6b..50c4819481af 100644
- 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
@@ -48819,7 +50174,7 @@ index c8b21bb6ad6b..50c4819481af 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 f860fd328ddd..edbdcc79c315 100644
+index f5c615e7c144..edbdcc79c315 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -48844,7 +50199,7 @@ index f860fd328ddd..edbdcc79c315 100644
FINAL_LIBRARY = "xul"
-@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,190 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -48957,6 +50312,10 @@ index f860fd328ddd..edbdcc79c315 100644
- 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
@@ -49038,7 +50397,7 @@ index f860fd328ddd..edbdcc79c315 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 f7812fce9d53..16bd1dcb8f4d 100644
+index 336fbad968e3..16bd1dcb8f4d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -49062,7 +50421,7 @@ index f7812fce9d53..16bd1dcb8f4d 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -49171,6 +50530,10 @@ index f7812fce9d53..16bd1dcb8f4d 100644
- 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
@@ -49252,7 +50615,7 @@ index f7812fce9d53..16bd1dcb8f4d 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 b5f7a1f95fd9..205ef2fa8610 100644
+index a542386830ea..205ef2fa8610 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -49276,7 +50639,7 @@ index b5f7a1f95fd9..205ef2fa8610 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -49370,6 +50733,10 @@ index b5f7a1f95fd9..205ef2fa8610 100644
- 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
@@ -49382,7 +50749,7 @@ index b5f7a1f95fd9..205ef2fa8610 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -49435,7 +50802,7 @@ index b5f7a1f95fd9..205ef2fa8610 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 1fa533024516..a953fa94c99a 100644
+index f5be716a8bc5..a953fa94c99a 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -49460,7 +50827,7 @@ index 1fa533024516..a953fa94c99a 100644
FINAL_LIBRARY = "xul"
-@@ -45,186 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,190 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -49573,6 +50940,10 @@ index 1fa533024516..a953fa94c99a 100644
- 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
@@ -49654,7 +51025,7 @@ index 1fa533024516..a953fa94c99a 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 6cd3184136d9..d06082663d6a 100644
+index feb82f3997c9..d06082663d6a 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -49678,7 +51049,7 @@ index 6cd3184136d9..d06082663d6a 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -49787,6 +51158,10 @@ index 6cd3184136d9..d06082663d6a 100644
- 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
@@ -49868,7 +51243,7 @@ index 6cd3184136d9..d06082663d6a 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 448d79a8013e..82e5e8f4333b 100644
+index e90d9910bf62..82e5e8f4333b 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -49893,7 +51268,7 @@ index 448d79a8013e..82e5e8f4333b 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -50006,6 +51381,10 @@ index 448d79a8013e..82e5e8f4333b 100644
- 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
@@ -50087,7 +51466,7 @@ index 448d79a8013e..82e5e8f4333b 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 b73e7d948d1b..171732e1f557 100644
+index 24079e9ae6d1..171732e1f557 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -50111,7 +51490,7 @@ index b73e7d948d1b..171732e1f557 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -50224,6 +51603,10 @@ index b73e7d948d1b..171732e1f557 100644
- 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
@@ -50305,7 +51688,7 @@ index b73e7d948d1b..171732e1f557 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 972ca8adce4a..32c5af366c7d 100644
+index 49c7c7762c63..32c5af366c7d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -50329,7 +51712,7 @@ index 972ca8adce4a..32c5af366c7d 100644
FINAL_LIBRARY = "xul"
-@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,123 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -50438,6 +51821,10 @@ index 972ca8adce4a..32c5af366c7d 100644
- 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
@@ -50450,7 +51837,7 @@ index 972ca8adce4a..32c5af366c7d 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -165,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -50503,7 +51890,7 @@ index 972ca8adce4a..32c5af366c7d 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 cc8f174d720b..696f0ee96b59 100644
+index 26a7d3b891a7..696f0ee96b59 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -50527,7 +51914,7 @@ index cc8f174d720b..696f0ee96b59 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -50640,6 +52027,10 @@ index cc8f174d720b..696f0ee96b59 100644
- 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
@@ -50721,7 +52112,7 @@ index cc8f174d720b..696f0ee96b59 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 25a5c06ea9d1..413755876901 100644
+index 04a1e7cc555a..413755876901 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -50745,7 +52136,7 @@ index 25a5c06ea9d1..413755876901 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -50858,6 +52249,10 @@ index 25a5c06ea9d1..413755876901 100644
- 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
@@ -50939,7 +52334,7 @@ index 25a5c06ea9d1..413755876901 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 1e2ab7fc16e4..58978d7f3e35 100644
+index 98019531c7f9..58978d7f3e35 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -50963,7 +52358,7 @@ index 1e2ab7fc16e4..58978d7f3e35 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -51065,6 +52460,10 @@ index 1e2ab7fc16e4..58978d7f3e35 100644
- 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
@@ -51146,7 +52545,7 @@ index 1e2ab7fc16e4..58978d7f3e35 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 c6be5c632c28..56c167cc8561 100644
+index 7d650f259e13..56c167cc8561 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -51170,7 +52569,7 @@ index c6be5c632c28..56c167cc8561 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -51283,6 +52682,10 @@ index c6be5c632c28..56c167cc8561 100644
- 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
@@ -51364,7 +52767,7 @@ index c6be5c632c28..56c167cc8561 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 10138f6acafd..4591b6d57ed8 100644
+index 0eb74a400fb0..4591b6d57ed8 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -51388,7 +52791,7 @@ index 10138f6acafd..4591b6d57ed8 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -51486,6 +52889,10 @@ index 10138f6acafd..4591b6d57ed8 100644
- 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
@@ -51498,7 +52905,7 @@ index 10138f6acafd..4591b6d57ed8 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -51551,7 +52958,7 @@ index 10138f6acafd..4591b6d57ed8 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 901f9fb816ec..0fa750093bb2 100644
+index 2df8bb1943ed..0fa750093bb2 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -51575,7 +52982,7 @@ index 901f9fb816ec..0fa750093bb2 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -51673,6 +53080,10 @@ index 901f9fb816ec..0fa750093bb2 100644
- 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
@@ -51685,7 +53096,7 @@ index 901f9fb816ec..0fa750093bb2 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -51738,7 +53149,7 @@ index 901f9fb816ec..0fa750093bb2 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 fde639fb8e2a..4936229921d9 100644
+index be92010f91fa..4936229921d9 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -51762,7 +53173,7 @@ index fde639fb8e2a..4936229921d9 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -51875,6 +53286,10 @@ index fde639fb8e2a..4936229921d9 100644
- 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
@@ -51956,7 +53371,7 @@ index fde639fb8e2a..4936229921d9 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 ed0646b64e62..0976324eb70d 100644
+index 709fac2fabc4..0976324eb70d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -51980,7 +53395,7 @@ index ed0646b64e62..0976324eb70d 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -52078,6 +53493,10 @@ index ed0646b64e62..0976324eb70d 100644
- 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
@@ -52090,7 +53509,7 @@ index ed0646b64e62..0976324eb70d 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -52307,7 +53726,7 @@ index b24d7b4742f2..c956363856eb 100644
Library("vector_math_avx2_gn")
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 20fc3cd717c3..8420c2a67ee0 100644
+index edc37cfec66d..8420c2a67ee0 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -52331,7 +53750,7 @@ index 20fc3cd717c3..8420c2a67ee0 100644
FINAL_LIBRARY = "xul"
-@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,123 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -52440,6 +53859,10 @@ index 20fc3cd717c3..8420c2a67ee0 100644
- 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
@@ -52452,7 +53875,7 @@ index 20fc3cd717c3..8420c2a67ee0 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -165,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -52505,7 +53928,7 @@ index 20fc3cd717c3..8420c2a67ee0 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 6498b2c8411e..795d8ebb9737 100644
+index d71b31c270e2..795d8ebb9737 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -52530,7 +53953,7 @@ index 6498b2c8411e..795d8ebb9737 100644
FINAL_LIBRARY = "xul"
-@@ -45,186 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,190 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -52643,6 +54066,10 @@ index 6498b2c8411e..795d8ebb9737 100644
- 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
@@ -52724,7 +54151,7 @@ index 6498b2c8411e..795d8ebb9737 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 317475790b9f..c87eec7a75bd 100644
+index 1e8ce8cdd78c..c87eec7a75bd 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
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -52749,7 +54176,7 @@ index 317475790b9f..c87eec7a75bd 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -52862,6 +54289,10 @@ index 317475790b9f..c87eec7a75bd 100644
- 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
@@ -52943,7 +54374,7 @@ index 317475790b9f..c87eec7a75bd 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 a4db725932c1..5c95e03997df 100644
+index ef605c387ad5..5c95e03997df 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -52967,7 +54398,7 @@ index a4db725932c1..5c95e03997df 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -53080,6 +54511,10 @@ index a4db725932c1..5c95e03997df 100644
- 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
@@ -53161,7 +54596,7 @@ index a4db725932c1..5c95e03997df 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 ee282cd0ce76..5be7419cee20 100644
+index f74ce8a70dc4..5be7419cee20 100644
--- third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -53186,7 +54621,7 @@ index ee282cd0ce76..5be7419cee20 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -53299,6 +54734,10 @@ index ee282cd0ce76..5be7419cee20 100644
- 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
@@ -53380,7 +54819,7 @@ index ee282cd0ce76..5be7419cee20 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 84b06af35b8b..bd926084a6ce 100644
+index 17db8ead56a7..bd926084a6ce 100644
--- third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -53405,7 +54844,7 @@ index 84b06af35b8b..bd926084a6ce 100644
FINAL_LIBRARY = "xul"
-@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,190 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -53518,6 +54957,10 @@ index 84b06af35b8b..bd926084a6ce 100644
- 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
@@ -53599,7 +55042,7 @@ index 84b06af35b8b..bd926084a6ce 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 c06465293bfd..a21ed67082b0 100644
+index 8c5816304747..a21ed67082b0 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -53623,7 +55066,7 @@ index c06465293bfd..a21ed67082b0 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -53732,6 +55175,10 @@ index c06465293bfd..a21ed67082b0 100644
- 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
@@ -53813,7 +55260,7 @@ index c06465293bfd..a21ed67082b0 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 32c531779586..cd71f405e9a4 100644
+index f011e41ad837..cd71f405e9a4 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -53837,7 +55284,7 @@ index 32c531779586..cd71f405e9a4 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -53942,6 +55389,10 @@ index 32c531779586..cd71f405e9a4 100644
- 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
@@ -53954,7 +55405,7 @@ index 32c531779586..cd71f405e9a4 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -54007,7 +55458,7 @@ index 32c531779586..cd71f405e9a4 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 6fab98d6612a..55349fa226b6 100644
+index 95c38f0a6293..bf2444058ce4 100644
--- third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -54032,7 +55483,7 @@ index 6fab98d6612a..55349fa226b6 100644
FINAL_LIBRARY = "xul"
-@@ -50,186 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -49,190 +58,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -54145,6 +55596,10 @@ index 6fab98d6612a..55349fa226b6 100644
- 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
@@ -54226,7 +55681,7 @@ index 6fab98d6612a..55349fa226b6 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 cea193ed2de6..057ed5008fe2 100644
+index bfb581bfc19a..057ed5008fe2 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -54250,7 +55705,7 @@ index cea193ed2de6..057ed5008fe2 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -54363,6 +55818,10 @@ index cea193ed2de6..057ed5008fe2 100644
- 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
@@ -54444,7 +55903,7 @@ index cea193ed2de6..057ed5008fe2 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 1fe4be81df00..4190f76f185c 100644
+index 04d5bf230b3e..4190f76f185c 100644
--- third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/gain_controller2_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -54469,7 +55928,7 @@ index 1fe4be81df00..4190f76f185c 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -54582,6 +56041,10 @@ index 1fe4be81df00..4190f76f185c 100644
- 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
@@ -54663,7 +56126,7 @@ index 1fe4be81df00..4190f76f185c 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 91df727896eb..44c2749058fa 100644
+index d8f32b688d0b..44c2749058fa 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -54687,7 +56150,7 @@ index 91df727896eb..44c2749058fa 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -54800,6 +56263,10 @@ index 91df727896eb..44c2749058fa 100644
- 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
@@ -54881,7 +56348,7 @@ index 91df727896eb..44c2749058fa 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 6ba4f90ef51e..4d8edc876b34 100644
+index cdb283be4f2b..4d8edc876b34 100644
--- third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -54906,7 +56373,7 @@ index 6ba4f90ef51e..4d8edc876b34 100644
FINAL_LIBRARY = "xul"
-@@ -56,186 +65,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -56,190 +65,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -55019,6 +56486,10 @@ index 6ba4f90ef51e..4d8edc876b34 100644
- 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
@@ -55100,7 +56571,7 @@ index 6ba4f90ef51e..4d8edc876b34 100644
Library("ns_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 f2be2db9bb3e..5cec24215df9 100644
+index 35578fe55223..5cec24215df9 100644
--- third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -55124,7 +56595,7 @@ index f2be2db9bb3e..5cec24215df9 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -55226,6 +56697,10 @@ index f2be2db9bb3e..5cec24215df9 100644
- 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
@@ -55307,7 +56782,7 @@ index f2be2db9bb3e..5cec24215df9 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 461c8e3493fd..cc9aa8a23789 100644
+index 21cda458a6ce..cc9aa8a23789 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -55331,7 +56806,7 @@ index 461c8e3493fd..cc9aa8a23789 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -55433,6 +56908,10 @@ index 461c8e3493fd..cc9aa8a23789 100644
- 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
@@ -55514,7 +56993,7 @@ index 461c8e3493fd..cc9aa8a23789 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 f5b33d513b32..334ae5fcb19e 100644
+index f3d2ab4734e6..334ae5fcb19e 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -55538,7 +57017,7 @@ index f5b33d513b32..334ae5fcb19e 100644
FINAL_LIBRARY = "xul"
-@@ -44,175 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,179 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -55640,6 +57119,10 @@ index f5b33d513b32..334ae5fcb19e 100644
- 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
@@ -55721,7 +57204,7 @@ index f5b33d513b32..334ae5fcb19e 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 e2be6bcbe388..614e69397e87 100644
+index f56c3da34118..614e69397e87 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -55745,7 +57228,7 @@ index e2be6bcbe388..614e69397e87 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -55847,6 +57330,10 @@ index e2be6bcbe388..614e69397e87 100644
- 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
@@ -55928,7 +57415,7 @@ index e2be6bcbe388..614e69397e87 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 c3240758c1a9..970ceced4e0c 100644
+index bbef9ef6246b..970ceced4e0c 100644
--- third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build
+++ third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -55952,7 +57439,7 @@ index c3240758c1a9..970ceced4e0c 100644
FINAL_LIBRARY = "xul"
-@@ -50,186 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -50,190 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -56065,6 +57552,10 @@ index c3240758c1a9..970ceced4e0c 100644
- 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
@@ -56146,7 +57637,7 @@ index c3240758c1a9..970ceced4e0c 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 f236c2472bf0..539536626c14 100644
+index 4389423238bc..539536626c14 100644
--- third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build
+++ third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -56170,7 +57661,7 @@ index f236c2472bf0..539536626c14 100644
FINAL_LIBRARY = "xul"
-@@ -44,187 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,191 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -56284,6 +57775,10 @@ index f236c2472bf0..539536626c14 100644
- 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
@@ -56365,7 +57860,7 @@ index f236c2472bf0..539536626c14 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 b31018b430f7..00d812745382 100644
+index c4ea2411dd35..00d812745382 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -56389,7 +57884,7 @@ index b31018b430f7..00d812745382 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -56498,6 +57993,10 @@ index b31018b430f7..00d812745382 100644
- 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
@@ -56579,7 +58078,7 @@ index b31018b430f7..00d812745382 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 85a0fb08f484..b299425379f1 100644
+index b6288b8b9dba..b299425379f1 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -56603,7 +58102,7 @@ index 85a0fb08f484..b299425379f1 100644
FINAL_LIBRARY = "xul"
-@@ -44,187 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,191 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -56717,6 +58216,10 @@ index 85a0fb08f484..b299425379f1 100644
- 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
@@ -56798,7 +58301,7 @@ index 85a0fb08f484..b299425379f1 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 a626c945ab32..c7ad21c9a567 100644
+index 7b91bffbc132..c7ad21c9a567 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -56822,7 +58325,7 @@ index a626c945ab32..c7ad21c9a567 100644
FINAL_LIBRARY = "xul"
-@@ -48,186 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -48,190 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -56935,6 +58438,10 @@ index a626c945ab32..c7ad21c9a567 100644
- 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
@@ -57016,7 +58523,7 @@ index a626c945ab32..c7ad21c9a567 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 16443891a0a8..252a984262aa 100644
+index 31f5270f937c..252a984262aa 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -57040,7 +58547,7 @@ index 16443891a0a8..252a984262aa 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -57154,6 +58661,10 @@ index 16443891a0a8..252a984262aa 100644
- 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
@@ -57235,7 +58746,7 @@ index 16443891a0a8..252a984262aa 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 1acbe66d2d59..809519d72971 100644
+index d34cc09be9ab..809519d72971 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -57259,7 +58770,7 @@ index 1acbe66d2d59..809519d72971 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -57361,6 +58872,10 @@ index 1acbe66d2d59..809519d72971 100644
- 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
@@ -57442,7 +58957,7 @@ index 1acbe66d2d59..809519d72971 100644
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 2b18aff56d85..50730ce0d2ae 100644
+index 6be492d21600..50730ce0d2ae 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -57466,7 +58981,7 @@ index 2b18aff56d85..50730ce0d2ae 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -57575,6 +59090,10 @@ index 2b18aff56d85..50730ce0d2ae 100644
- 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
@@ -57656,7 +59175,7 @@ index 2b18aff56d85..50730ce0d2ae 100644
Library("loss_based_bwe_v1_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 c5104757054d..faba241a563f 100644
+index cc47dffd8409..faba241a563f 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -57680,7 +59199,7 @@ index c5104757054d..faba241a563f 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -57793,6 +59312,10 @@ index c5104757054d..faba241a563f 100644
- 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
@@ -57874,7 +59397,7 @@ index c5104757054d..faba241a563f 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 b7f3486f5b44..f22d4ec35dad 100644
+index 342ac79b6a57..f22d4ec35dad 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -57898,7 +59421,7 @@ index b7f3486f5b44..f22d4ec35dad 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -58007,6 +59530,10 @@ index b7f3486f5b44..f22d4ec35dad 100644
- 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
@@ -58088,7 +59615,7 @@ index b7f3486f5b44..f22d4ec35dad 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 c819080f7c7e..011e410cf1ee 100644
+index b04648d2b179..011e410cf1ee 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -58112,7 +59639,7 @@ index c819080f7c7e..011e410cf1ee 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -58221,6 +59748,10 @@ index c819080f7c7e..011e410cf1ee 100644
- 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
@@ -58302,7 +59833,7 @@ index c819080f7c7e..011e410cf1ee 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 797d8fe170ac..c8199d07d582 100644
+index fd539cda7a7c..c8199d07d582 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -58326,7 +59857,7 @@ index 797d8fe170ac..c8199d07d582 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -58439,6 +59970,10 @@ index 797d8fe170ac..c8199d07d582 100644
- 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
@@ -58520,7 +60055,7 @@ index 797d8fe170ac..c8199d07d582 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 bf977b77c904..66924e80dc84 100644
+index d749ed805f5f..66924e80dc84 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -58544,7 +60079,7 @@ index bf977b77c904..66924e80dc84 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -58658,6 +60193,10 @@ index bf977b77c904..66924e80dc84 100644
- 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
@@ -58739,7 +60278,7 @@ index bf977b77c904..66924e80dc84 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 ac7e0dc89aac..b1b80eca85cc 100644
+index 28fb2063158d..b1b80eca85cc 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -58763,7 +60302,7 @@ index ac7e0dc89aac..b1b80eca85cc 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -58876,6 +60415,10 @@ index ac7e0dc89aac..b1b80eca85cc 100644
- 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
@@ -59100,7 +60643,7 @@ index 9cbeb68d6f40..0feadf987590 100644
-
Library("desktop_capture_differ_sse2_gn")
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 28583632f9e3..8bf8764ac914 100644
+index 60ff9cd6526d..c14bbe8d54c3 100644
--- third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
+++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
@@ -14,11 +14,20 @@ AllowCompilerWarnings()
@@ -59322,18 +60865,47 @@ index 28583632f9e3..8bf8764ac914 100644
]
UNIFIED_SOURCES += [
-@@ -272,7 +109,9 @@ if CONFIG["TARGET_CPU"] == "arm":
+@@ -272,36 +109,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",
- "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc"
+- ]
+-
+-if CONFIG["TARGET_CPU"] == "loongarch64":
+-
+- DEFINES["USE_X11"] = "1"
+- DEFINES["WEBRTC_USE_X11"] = True
+- DEFINES["_GNU_SOURCE"] = True
+-
+- OS_LIBS += [
+- "X11",
+- "Xcomposite",
+- "Xdamage",
+- "Xext",
+- "Xfixes",
+- "Xrandr",
+- "Xrender"
+- ]
+-
+- UNIFIED_SOURCES += [
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/mouse_cursor_monitor_x11.cc",
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/screen_capturer_x11.cc",
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/shared_x_display.cc",
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/window_capturer_x11.cc",
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/window_finder_x11.cc",
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/window_list_utils.cc",
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_atom_cache.cc",
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_error_trap.cc",
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc",
+- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_window_property.cc"
+ "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc",
+ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_linux.cc",
+ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_linux.cc"
]
if CONFIG["TARGET_CPU"] == "mips32":
-@@ -280,7 +119,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
+@@ -309,7 +119,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["MIPS32_LE"] = True
DEFINES["MIPS_FPU_LE"] = True
DEFINES["WEBRTC_USE_PIPEWIRE"] = True
@@ -59341,7 +60913,7 @@ index 28583632f9e3..8bf8764ac914 100644
LOCAL_INCLUDES += [
"/gfx/angle/checkout/include/",
-@@ -293,7 +131,8 @@ if CONFIG["TARGET_CPU"] == "mips32":
+@@ -322,7 +131,8 @@ if CONFIG["TARGET_CPU"] == "mips32":
]
SOURCES += [
@@ -59351,7 +60923,7 @@ index 28583632f9e3..8bf8764ac914 100644
]
UNIFIED_SOURCES += [
-@@ -303,13 +142,14 @@ if CONFIG["TARGET_CPU"] == "mips32":
+@@ -332,13 +142,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",
@@ -59368,7 +60940,7 @@ index 28583632f9e3..8bf8764ac914 100644
LOCAL_INCLUDES += [
"/gfx/angle/checkout/include/",
-@@ -322,7 +162,8 @@ if CONFIG["TARGET_CPU"] == "mips64":
+@@ -351,7 +162,8 @@ if CONFIG["TARGET_CPU"] == "mips64":
]
SOURCES += [
@@ -59378,7 +60950,7 @@ index 28583632f9e3..8bf8764ac914 100644
]
UNIFIED_SOURCES += [
-@@ -332,126 +173,19 @@ if CONFIG["TARGET_CPU"] == "mips64":
+@@ -361,126 +173,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",
@@ -59509,7 +61081,7 @@ index 28583632f9e3..8bf8764ac914 100644
LOCAL_INCLUDES += [
"/gfx/angle/checkout/include/",
-@@ -464,7 +198,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
+@@ -493,7 +198,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
]
SOURCES += [
@@ -59519,7 +61091,7 @@ index 28583632f9e3..8bf8764ac914 100644
]
UNIFIED_SOURCES += [
-@@ -474,13 +209,15 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
+@@ -503,13 +209,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",
@@ -59538,7 +61110,7 @@ index 28583632f9e3..8bf8764ac914 100644
LOCAL_INCLUDES += [
"/gfx/angle/checkout/include/",
-@@ -493,7 +230,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
+@@ -522,7 +230,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
]
SOURCES += [
@@ -59548,14 +61120,26 @@ index 28583632f9e3..8bf8764ac914 100644
]
UNIFIED_SOURCES += [
-@@ -503,38 +241,12 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
+@@ -532,10 +241,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",
- "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc"
-- ]
--
++ "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_linux.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_linux.cc"
+ ]
+
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
++if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
+
+ DEFINES["USE_X11"] = "1"
+ DEFINES["WEBRTC_USE_X11"] = True
+@@ -563,144 +274,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"
+ ]
+
+-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
-
- DEFINES["USE_X11"] = "1"
- DEFINES["WEBRTC_USE_X11"] = True
@@ -59569,8 +61153,9 @@ index 28583632f9e3..8bf8764ac914 100644
- "Xrandr",
- "Xrender"
- ]
--
-- UNIFIED_SOURCES += [
++if not CONFIG["MOZ_X11"] and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "loongarch64":
+
+ UNIFIED_SOURCES += [
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/mouse_cursor_monitor_x11.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/screen_capturer_x11.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/shared_x_display.cc",
@@ -59581,25 +61166,17 @@ index 28583632f9e3..8bf8764ac914 100644
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_error_trap.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_window_property.cc"
-+ "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc",
-+ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_linux.cc",
-+ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_linux.cc"
- ]
-
--if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
-+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
-
- DEFINES["USE_X11"] = "1"
- DEFINES["WEBRTC_USE_X11"] = True
-@@ -562,116 +274,42 @@ 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"
++ "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_null.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_null.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_null.cc"
]
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "mips32":
-
- DEFINES["USE_X11"] = "1"
- DEFINES["WEBRTC_USE_X11"] = True
--
++if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "loongarch64":
+
- OS_LIBS += [
- "X11",
- "Xcomposite",
@@ -59608,8 +61185,9 @@ index 28583632f9e3..8bf8764ac914 100644
- "Xfixes",
- "Xrandr",
- "Xrender"
-- ]
-+if not CONFIG["MOZ_X11"] and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "ppc64":
++ SOURCES += [
++ "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_linux.cc"
+ ]
UNIFIED_SOURCES += [
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/mouse_cursor_monitor_x11.cc",
@@ -59622,17 +61200,15 @@ index 28583632f9e3..8bf8764ac914 100644
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_error_trap.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_window_property.cc"
-+ "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_null.cc",
-+ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_null.cc",
-+ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_null.cc"
++ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_linux.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_linux.cc"
]
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "mips64":
-
- DEFINES["USE_X11"] = "1"
- DEFINES["WEBRTC_USE_X11"] = True
-+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "ppc64":
-
+-
- OS_LIBS += [
- "X11",
- "Xcomposite",
@@ -59641,9 +61217,8 @@ index 28583632f9e3..8bf8764ac914 100644
- "Xfixes",
- "Xrandr",
- "Xrender"
-+ SOURCES += [
-+ "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_linux.cc"
- ]
+- ]
++if not CONFIG["MOZ_X11"] and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "ppc64":
UNIFIED_SOURCES += [
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/mouse_cursor_monitor_x11.cc",
@@ -59656,12 +61231,14 @@ index 28583632f9e3..8bf8764ac914 100644
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_error_trap.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_window_property.cc"
-+ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_linux.cc",
-+ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_linux.cc"
++ "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_null.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_null.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_null.cc"
]
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
--
++if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "ppc64":
+
- DEFINES["USE_X11"] = "1"
- DEFINES["WEBRTC_USE_X11"] = True
-
@@ -59673,8 +61250,9 @@ index 28583632f9e3..8bf8764ac914 100644
- "Xfixes",
- "Xrandr",
- "Xrender"
-- ]
-+if not CONFIG["MOZ_X11"] and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "riscv64":
++ SOURCES += [
++ "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_linux.cc"
+ ]
UNIFIED_SOURCES += [
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/mouse_cursor_monitor_x11.cc",
@@ -59687,17 +61265,21 @@ index 28583632f9e3..8bf8764ac914 100644
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_error_trap.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_server_pixel_buffer.cc",
- "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_window_property.cc"
-+ "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_null.cc",
-+ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_null.cc",
-+ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_null.cc"
++ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_linux.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_linux.cc"
]
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
-+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "riscv64":
++if not CONFIG["MOZ_X11"] and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "riscv64":
- DEFINES["USE_X11"] = "1"
- DEFINES["WEBRTC_USE_X11"] = True
--
++ UNIFIED_SOURCES += [
++ "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_null.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_null.cc",
++ "/third_party/libwebrtc/modules/desktop_capture/window_capturer_null.cc"
++ ]
+
- OS_LIBS += [
- "X11",
- "Xcomposite",
@@ -59706,6 +61288,8 @@ index 28583632f9e3..8bf8764ac914 100644
- "Xfixes",
- "Xrandr",
- "Xrender"
++if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "riscv64":
++
+ SOURCES += [
+ "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_linux.cc"
]
@@ -59812,7 +61396,7 @@ index a8051a1743d1..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 a756a75542b0..4b4aca6ade46 100644
+index 6795abb4c898..4b4aca6ade46 100644
--- third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build
+++ third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -59836,7 +61420,7 @@ index a756a75542b0..4b4aca6ade46 100644
FINAL_LIBRARY = "xul"
-@@ -49,166 +58,31 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -49,171 +58,31 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -59922,6 +61506,11 @@ index a756a75542b0..4b4aca6ade46 100644
- DEFINES["WEBRTC_HAS_NEON"] = True
- DEFINES["_GNU_SOURCE"] = True
-
+-if CONFIG["TARGET_CPU"] == "loongarch64":
+-
+- DEFINES["USE_X11"] = "1"
+- DEFINES["_GNU_SOURCE"] = True
+-
if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["MIPS32_LE"] = True
@@ -60009,7 +61598,7 @@ index a756a75542b0..4b4aca6ade46 100644
DEFINES["USE_X11"] = "1"
diff --git third_party/libwebrtc/modules/module_api_gn/moz.build third_party/libwebrtc/modules/module_api_gn/moz.build
-index 93138efc2a2c..ab93d8e54775 100644
+index 60c0ed877863..ab93d8e54775 100644
--- third_party/libwebrtc/modules/module_api_gn/moz.build
+++ third_party/libwebrtc/modules/module_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -60033,7 +61622,7 @@ index 93138efc2a2c..ab93d8e54775 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -60127,6 +61716,10 @@ index 93138efc2a2c..ab93d8e54775 100644
- 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
@@ -60139,7 +61732,7 @@ index 93138efc2a2c..ab93d8e54775 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -60192,7 +61785,7 @@ index 93138efc2a2c..ab93d8e54775 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 a223bb79ac0a..b0af3d0bc389 100644
+index 2c28b0b1c0ff..b0af3d0bc389 100644
--- third_party/libwebrtc/modules/module_api_public_gn/moz.build
+++ third_party/libwebrtc/modules/module_api_public_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -60216,7 +61809,7 @@ index a223bb79ac0a..b0af3d0bc389 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -60310,6 +61903,10 @@ index a223bb79ac0a..b0af3d0bc389 100644
- 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
@@ -60322,7 +61919,7 @@ index a223bb79ac0a..b0af3d0bc389 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -60375,7 +61972,7 @@ index a223bb79ac0a..b0af3d0bc389 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 8587ac914e7c..f8b949dcfe2c 100644
+index a1eca74eaad1..f8b949dcfe2c 100644
--- third_party/libwebrtc/modules/module_fec_api_gn/moz.build
+++ third_party/libwebrtc/modules/module_fec_api_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -60399,7 +61996,7 @@ index 8587ac914e7c..f8b949dcfe2c 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -60493,6 +62090,10 @@ index 8587ac914e7c..f8b949dcfe2c 100644
- 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
@@ -60505,7 +62106,7 @@ index 8587ac914e7c..f8b949dcfe2c 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -60558,7 +62159,7 @@ index 8587ac914e7c..f8b949dcfe2c 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 98d3648d09de..c22978c6f96c 100644
+index 0300737e26a4..c22978c6f96c 100644
--- third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build
+++ third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -60582,7 +62183,7 @@ index 98d3648d09de..c22978c6f96c 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -60684,6 +62285,10 @@ index 98d3648d09de..c22978c6f96c 100644
- 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
@@ -60765,7 +62370,7 @@ index 98d3648d09de..c22978c6f96c 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 cbacd73d3f89..70e970c7d0ce 100644
+index 484e8af1dfc6..70e970c7d0ce 100644
--- third_party/libwebrtc/modules/pacing/pacing_gn/moz.build
+++ third_party/libwebrtc/modules/pacing/pacing_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -60789,7 +62394,7 @@ index cbacd73d3f89..70e970c7d0ce 100644
FINAL_LIBRARY = "xul"
-@@ -50,187 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -50,191 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -60903,6 +62508,10 @@ index cbacd73d3f89..70e970c7d0ce 100644
- 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
@@ -61037,7 +62646,7 @@ index 350aa34cf13c..33c52d953465 100644
DEFINES["USE_X11"] = "1"
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 41954c702313..701fdd16c845 100644
+index 01de5cae11d8..701fdd16c845 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -61061,7 +62670,7 @@ index 41954c702313..701fdd16c845 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -61174,6 +62783,10 @@ index 41954c702313..701fdd16c845 100644
- 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
@@ -61255,7 +62868,7 @@ index 41954c702313..701fdd16c845 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 c520803e2fac..b11ca0609ad3 100644
+index 4047187d2640..b11ca0609ad3 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -61279,7 +62892,7 @@ index c520803e2fac..b11ca0609ad3 100644
FINAL_LIBRARY = "xul"
-@@ -52,186 +61,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -52,190 +61,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -61392,6 +63005,10 @@ index c520803e2fac..b11ca0609ad3 100644
- 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
@@ -61473,7 +63090,7 @@ index c520803e2fac..b11ca0609ad3 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 faa3e1197f02..f8ce7a164c83 100644
+index 81ce4981cd66..f8ce7a164c83 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -61497,7 +63114,7 @@ index faa3e1197f02..f8ce7a164c83 100644
FINAL_LIBRARY = "xul"
-@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,123 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -61606,6 +63223,10 @@ index faa3e1197f02..f8ce7a164c83 100644
- 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
@@ -61618,7 +63239,7 @@ index faa3e1197f02..f8ce7a164c83 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -165,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -61671,7 +63292,7 @@ index faa3e1197f02..f8ce7a164c83 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 f6beca0fa664..b6549d94ffe7 100644
+index aeea39d87702..b6549d94ffe7 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -61695,7 +63316,7 @@ index f6beca0fa664..b6549d94ffe7 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -61808,6 +63429,10 @@ index f6beca0fa664..b6549d94ffe7 100644
- 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
@@ -61889,7 +63514,7 @@ index f6beca0fa664..b6549d94ffe7 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 767d52dd28c4..f5a2c0675194 100644
+index 2af40d70ebee..f5a2c0675194 100644
--- third_party/libwebrtc/modules/rtp_rtcp/leb128_gn/moz.build
+++ third_party/libwebrtc/modules/rtp_rtcp/leb128_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -61913,7 +63538,7 @@ index 767d52dd28c4..f5a2c0675194 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -62011,6 +63636,10 @@ index 767d52dd28c4..f5a2c0675194 100644
- 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
@@ -62092,7 +63721,7 @@ index 767d52dd28c4..f5a2c0675194 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 f45d6b25a010..b6e083c4dd5f 100644
+index 7fd7cad470d6..b6e083c4dd5f 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -62116,7 +63745,7 @@ index f45d6b25a010..b6e083c4dd5f 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -62229,6 +63858,10 @@ index f45d6b25a010..b6e083c4dd5f 100644
- 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
@@ -62310,7 +63943,7 @@ index f45d6b25a010..b6e083c4dd5f 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 2b4a66be3381..04b0635746d7 100644
+index 55763bfa6b82..04b0635746d7 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -62334,7 +63967,7 @@ index 2b4a66be3381..04b0635746d7 100644
FINAL_LIBRARY = "xul"
-@@ -87,186 +96,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -87,190 +96,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -62447,6 +64080,10 @@ index 2b4a66be3381..04b0635746d7 100644
- 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
@@ -62528,7 +64165,7 @@ index 2b4a66be3381..04b0635746d7 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 0247d1e1cb5c..829a5495c9a4 100644
+index b0c5446ca7be..829a5495c9a4 100644
--- third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build
+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -62552,7 +64189,7 @@ index 0247d1e1cb5c..829a5495c9a4 100644
FINAL_LIBRARY = "xul"
-@@ -97,187 +106,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -97,191 +106,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -62666,6 +64303,10 @@ index 0247d1e1cb5c..829a5495c9a4 100644
- 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
@@ -62747,7 +64388,7 @@ index 0247d1e1cb5c..829a5495c9a4 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 7c7e31600f31..6dc16af33610 100644
+index ac0783597427..6dc16af33610 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -62771,7 +64412,7 @@ index 7c7e31600f31..6dc16af33610 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -62880,6 +64521,10 @@ index 7c7e31600f31..6dc16af33610 100644
- 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
@@ -62961,7 +64606,7 @@ index 7c7e31600f31..6dc16af33610 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 3d224d494818..7e457e9c7fff 100644
+index 0d6fa06ae4ab..7e457e9c7fff 100644
--- third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build
+++ third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -62985,7 +64630,7 @@ index 3d224d494818..7e457e9c7fff 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -63083,6 +64728,10 @@ index 3d224d494818..7e457e9c7fff 100644
- 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
@@ -63164,7 +64813,7 @@ index 3d224d494818..7e457e9c7fff 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 7abf56af7261..0148ce7f583f 100644
+index 212ac260ac44..0148ce7f583f 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -63188,7 +64837,7 @@ index 7abf56af7261..0148ce7f583f 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -63286,6 +64935,10 @@ index 7abf56af7261..0148ce7f583f 100644
- 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
@@ -63367,7 +65020,7 @@ index 7abf56af7261..0148ce7f583f 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 0a7c16047ee6..7d993f90b813 100644
+index 4058bb9c623b..7d993f90b813 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -63391,7 +65044,7 @@ index 0a7c16047ee6..7d993f90b813 100644
FINAL_LIBRARY = "xul"
-@@ -47,171 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -47,175 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -63489,6 +65142,10 @@ index 0a7c16047ee6..7d993f90b813 100644
- 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
@@ -63570,7 +65227,7 @@ index 0a7c16047ee6..7d993f90b813 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 4f5c739ff70b..0bdce0baa056 100644
+index ff98afc45031..0bdce0baa056 100644
--- third_party/libwebrtc/modules/utility/utility_gn/moz.build
+++ third_party/libwebrtc/modules/utility/utility_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -63594,7 +65251,7 @@ index 4f5c739ff70b..0bdce0baa056 100644
FINAL_LIBRARY = "xul"
-@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,116 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -63696,6 +65353,10 @@ index 4f5c739ff70b..0bdce0baa056 100644
- 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
@@ -63708,7 +65369,7 @@ index 4f5c739ff70b..0bdce0baa056 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -154,60 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -158,60 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -63771,7 +65432,7 @@ index 4f5c739ff70b..0bdce0baa056 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 6a98f1cce521..2be170137cf5 100644
+index 2e93aea47676..2be170137cf5 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
@@ -14,11 +14,20 @@ AllowCompilerWarnings()
@@ -63806,7 +65467,7 @@ index 6a98f1cce521..2be170137cf5 100644
"/third_party/libwebrtc/modules/video_capture/video_capture_options.cc"
]
-@@ -45,149 +58,13 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,153 +58,13 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -63948,6 +65609,10 @@ index 6a98f1cce521..2be170137cf5 100644
- 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
@@ -63957,7 +65622,7 @@ index 6a98f1cce521..2be170137cf5 100644
LOCAL_INCLUDES += [
"/gfx/angle/checkout/include/",
-@@ -206,76 +83,11 @@ if CONFIG["TARGET_CPU"] == "mips32":
+@@ -210,76 +83,11 @@ if CONFIG["TARGET_CPU"] == "mips32":
"/third_party/libwebrtc/modules/video_capture/linux/video_capture_pipewire.cc"
]
@@ -64037,7 +65702,7 @@ index 6a98f1cce521..2be170137cf5 100644
LOCAL_INCLUDES += [
"/gfx/angle/checkout/include/",
-@@ -294,10 +106,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
+@@ -298,10 +106,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
"/third_party/libwebrtc/modules/video_capture/linux/video_capture_pipewire.cc"
]
@@ -64049,7 +65714,7 @@ index 6a98f1cce521..2be170137cf5 100644
LOCAL_INCLUDES += [
"/gfx/angle/checkout/include/",
-@@ -316,14 +127,14 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
+@@ -320,14 +127,14 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
"/third_party/libwebrtc/modules/video_capture/linux/video_capture_pipewire.cc"
]
@@ -64066,7 +65731,7 @@ index 6a98f1cce521..2be170137cf5 100644
LOCAL_INCLUDES += [
"/gfx/angle/checkout/include/",
-@@ -342,10 +153,10 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
+@@ -346,10 +153,10 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
"/third_party/libwebrtc/modules/video_capture/linux/video_capture_pipewire.cc"
]
@@ -64079,7 +65744,7 @@ index 6a98f1cce521..2be170137cf5 100644
LOCAL_INCLUDES += [
"/gfx/angle/checkout/include/",
-@@ -364,4 +175,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
+@@ -368,4 +175,8 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
"/third_party/libwebrtc/modules/video_capture/linux/video_capture_pipewire.cc"
]
@@ -64089,7 +65754,7 @@ index 6a98f1cce521..2be170137cf5 100644
+
Library("video_capture_internal_impl_gn")
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 88bf038c192c..7df621b28fa4 100644
+index 8eb64eb08f2b..7df621b28fa4 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -64113,7 +65778,7 @@ index 88bf038c192c..7df621b28fa4 100644
FINAL_LIBRARY = "xul"
-@@ -47,186 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -47,190 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -64226,6 +65891,10 @@ index 88bf038c192c..7df621b28fa4 100644
- 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
@@ -64307,7 +65976,7 @@ index 88bf038c192c..7df621b28fa4 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 4124cdd66406..f620f14e0914 100644
+index 5937538364f0..f620f14e0914 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -64331,7 +66000,7 @@ index 4124cdd66406..f620f14e0914 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -64440,6 +66109,10 @@ index 4124cdd66406..f620f14e0914 100644
- 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
@@ -64521,7 +66194,7 @@ index 4124cdd66406..f620f14e0914 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 5e3c7dc8bbdf..5b2293a8c2a6 100644
+index 0e376beeb43f..5b2293a8c2a6 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -64545,7 +66218,7 @@ index 5e3c7dc8bbdf..5b2293a8c2a6 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -64643,6 +66316,10 @@ index 5e3c7dc8bbdf..5b2293a8c2a6 100644
- 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
@@ -64655,7 +66332,7 @@ index 5e3c7dc8bbdf..5b2293a8c2a6 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -64708,7 +66385,7 @@ index 5e3c7dc8bbdf..5b2293a8c2a6 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 d5c1e9e6e5ec..bd504c7f3aab 100644
+index fada35453906..bd504c7f3aab 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -64732,7 +66409,7 @@ index d5c1e9e6e5ec..bd504c7f3aab 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -64841,6 +66518,10 @@ index d5c1e9e6e5ec..bd504c7f3aab 100644
- 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
@@ -64922,7 +66603,7 @@ index d5c1e9e6e5ec..bd504c7f3aab 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 33cb2757d7c1..a188413dc48b 100644
+index 24fa539a5cab..a188413dc48b 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
@@ -15,11 +15,20 @@ AllowCompilerWarnings()
@@ -64946,7 +66627,7 @@ index 33cb2757d7c1..a188413dc48b 100644
FINAL_LIBRARY = "xul"
-@@ -50,182 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -50,186 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -65055,6 +66736,10 @@ index 33cb2757d7c1..a188413dc48b 100644
- 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
@@ -65136,7 +66821,7 @@ index 33cb2757d7c1..a188413dc48b 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 d032911a1297..eff195ec2131 100644
+index 24ceefe34957..eff195ec2131 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
@@ -15,11 +15,20 @@ AllowCompilerWarnings()
@@ -65160,7 +66845,7 @@ index d032911a1297..eff195ec2131 100644
FINAL_LIBRARY = "xul"
-@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,190 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -65273,6 +66958,10 @@ index d032911a1297..eff195ec2131 100644
- 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
@@ -65354,7 +67043,7 @@ index d032911a1297..eff195ec2131 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 90ab84ba67f6..6782dfdfe553 100644
+index e58cb936c199..6782dfdfe553 100644
--- third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build
+++ third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -65378,7 +67067,7 @@ index 90ab84ba67f6..6782dfdfe553 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -65491,6 +67180,10 @@ index 90ab84ba67f6..6782dfdfe553 100644
- 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
@@ -65572,7 +67265,7 @@ index 90ab84ba67f6..6782dfdfe553 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 960bbd8eccbe..e5bb732bbb88 100644
+index 0f2412610dbf..e5bb732bbb88 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -65596,7 +67289,7 @@ index 960bbd8eccbe..e5bb732bbb88 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -65705,6 +67398,10 @@ index 960bbd8eccbe..e5bb732bbb88 100644
- 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
@@ -65786,7 +67483,7 @@ index 960bbd8eccbe..e5bb732bbb88 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 cdf7693e4158..61c30cb5584e 100644
+index 60b5c7b7ece6..61c30cb5584e 100644
--- third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build
+++ third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -65810,7 +67507,7 @@ index cdf7693e4158..61c30cb5584e 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -65919,6 +67616,10 @@ index cdf7693e4158..61c30cb5584e 100644
- 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
@@ -66000,7 +67701,7 @@ index cdf7693e4158..61c30cb5584e 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 44719f627d4c..533519d32835 100644
+index ade14f4e1b82..533519d32835 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -66024,7 +67725,7 @@ index 44719f627d4c..533519d32835 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -66133,6 +67834,10 @@ index 44719f627d4c..533519d32835 100644
- 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
@@ -66214,7 +67919,7 @@ index 44719f627d4c..533519d32835 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 6cd7418dd224..4c0a79157158 100644
+index 011e05c41a35..4c0a79157158 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -66238,7 +67943,7 @@ index 6cd7418dd224..4c0a79157158 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -66351,6 +68056,10 @@ index 6cd7418dd224..4c0a79157158 100644
- 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
@@ -66432,7 +68141,7 @@ index 6cd7418dd224..4c0a79157158 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 4c0798633aa5..876704e1108a 100644
+index bdb63a278c1a..876704e1108a 100644
--- third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build
+++ third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -66456,7 +68165,7 @@ index 4c0798633aa5..876704e1108a 100644
FINAL_LIBRARY = "xul"
-@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,190 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -66569,6 +68278,10 @@ index 4c0798633aa5..876704e1108a 100644
- 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
@@ -66650,7 +68363,7 @@ index 4c0798633aa5..876704e1108a 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 60d91b6f44c8..10def6584884 100644
+index cceabc3a79be..10def6584884 100644
--- third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build
+++ third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -66674,7 +68387,7 @@ index 60d91b6f44c8..10def6584884 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -66787,6 +68500,10 @@ index 60d91b6f44c8..10def6584884 100644
- 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
@@ -66868,7 +68585,7 @@ index 60d91b6f44c8..10def6584884 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 b32c7b5939ef..899b8b26696b 100644
+index bc20befd0715..899b8b26696b 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -66892,7 +68609,7 @@ index b32c7b5939ef..899b8b26696b 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -67001,6 +68718,10 @@ index b32c7b5939ef..899b8b26696b 100644
- 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
@@ -67082,7 +68803,7 @@ index b32c7b5939ef..899b8b26696b 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 d12b6a88a844..d6ba49e4f848 100644
+index a16034b3b02e..d6ba49e4f848 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -67106,7 +68827,7 @@ index d12b6a88a844..d6ba49e4f848 100644
FINAL_LIBRARY = "xul"
-@@ -50,182 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -50,186 +59,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -67215,6 +68936,10 @@ index d12b6a88a844..d6ba49e4f848 100644
- 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
@@ -67296,7 +69021,7 @@ index d12b6a88a844..d6ba49e4f848 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 aa7ebf0ac816..be3d0562194c 100644
+index 1217d027bd0c..be3d0562194c 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -67320,7 +69045,7 @@ index aa7ebf0ac816..be3d0562194c 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -67422,6 +69147,10 @@ index aa7ebf0ac816..be3d0562194c 100644
- 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
@@ -67503,7 +69232,7 @@ index aa7ebf0ac816..be3d0562194c 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 e8f35a815256..c542cfb06869 100644
+index 1c9b143c6d78..c542cfb06869 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -67527,7 +69256,7 @@ index e8f35a815256..c542cfb06869 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -67641,6 +69370,10 @@ index e8f35a815256..c542cfb06869 100644
- 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
@@ -67722,7 +69455,7 @@ index e8f35a815256..c542cfb06869 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 5c6a272ba9f6..0c39b0372a4c 100644
+index 1f4d5e0258d8..0c39b0372a4c 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -67746,7 +69479,7 @@ index 5c6a272ba9f6..0c39b0372a4c 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -67855,6 +69588,10 @@ index 5c6a272ba9f6..0c39b0372a4c 100644
- 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
@@ -67936,7 +69673,7 @@ index 5c6a272ba9f6..0c39b0372a4c 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 90e567b60121..46a3f3c27eb7 100644
+index a1f79bc336d3..46a3f3c27eb7 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -67960,7 +69697,7 @@ index 90e567b60121..46a3f3c27eb7 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -68062,6 +69799,10 @@ index 90e567b60121..46a3f3c27eb7 100644
- 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
@@ -68143,7 +69884,7 @@ index 90e567b60121..46a3f3c27eb7 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 7da8745ea0a5..cede417ed2c0 100644
+index 236158a0edad..cede417ed2c0 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -68167,7 +69908,7 @@ index 7da8745ea0a5..cede417ed2c0 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -68269,6 +70010,10 @@ index 7da8745ea0a5..cede417ed2c0 100644
- 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
@@ -68350,7 +70095,7 @@ index 7da8745ea0a5..cede417ed2c0 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 5f704b7d4b29..e680f19b417f 100644
+index 46b966db475b..e680f19b417f 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -68374,7 +70119,7 @@ index 5f704b7d4b29..e680f19b417f 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -68476,6 +70221,10 @@ index 5f704b7d4b29..e680f19b417f 100644
- 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
@@ -68557,7 +70306,7 @@ index 5f704b7d4b29..e680f19b417f 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 8c3628e33128..3956e5fb7141 100644
+index e5ab643a0837..3956e5fb7141 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -68581,7 +70330,7 @@ index 8c3628e33128..3956e5fb7141 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -68694,6 +70443,10 @@ index 8c3628e33128..3956e5fb7141 100644
- 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
@@ -68775,7 +70528,7 @@ index 8c3628e33128..3956e5fb7141 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 7c21826e42bc..e8117da97d09 100644
+index 018a8b4baf38..e8117da97d09 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -68799,7 +70552,7 @@ index 7c21826e42bc..e8117da97d09 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -68901,6 +70654,10 @@ index 7c21826e42bc..e8117da97d09 100644
- 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
@@ -68982,7 +70739,7 @@ index 7c21826e42bc..e8117da97d09 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 9a3d8625720f..62189b4f8b6f 100644
+index 6b0a5bd11fe1..62189b4f8b6f 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -69006,7 +70763,7 @@ index 9a3d8625720f..62189b4f8b6f 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -69108,6 +70865,10 @@ index 9a3d8625720f..62189b4f8b6f 100644
- 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
@@ -69189,7 +70950,7 @@ index 9a3d8625720f..62189b4f8b6f 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 6a279634bcfc..73a1afbc3010 100644
+index 2c399005d50a..73a1afbc3010 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -69213,7 +70974,7 @@ index 6a279634bcfc..73a1afbc3010 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -69326,6 +71087,10 @@ index 6a279634bcfc..73a1afbc3010 100644
- 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
@@ -69407,7 +71172,7 @@ index 6a279634bcfc..73a1afbc3010 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 7a9e8969bfa4..43a9bb659cbc 100644
+index 5f424f15c3eb..43a9bb659cbc 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -69431,7 +71196,7 @@ index 7a9e8969bfa4..43a9bb659cbc 100644
FINAL_LIBRARY = "xul"
-@@ -45,182 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,186 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -69540,6 +71305,10 @@ index 7a9e8969bfa4..43a9bb659cbc 100644
- 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
@@ -69621,7 +71390,7 @@ index 7a9e8969bfa4..43a9bb659cbc 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 26e4ea6b91c7..04bb63314cc3 100644
+index f12701855e1a..04bb63314cc3 100644
--- third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build
+++ third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -69645,7 +71414,7 @@ index 26e4ea6b91c7..04bb63314cc3 100644
FINAL_LIBRARY = "xul"
-@@ -56,187 +65,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -56,191 +65,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -69759,6 +71528,10 @@ index 26e4ea6b91c7..04bb63314cc3 100644
- 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
@@ -69840,7 +71613,7 @@ index 26e4ea6b91c7..04bb63314cc3 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 f40fcc2fb12a..8e7579511c2f 100644
+index 51f84c774238..c7cad0188c20 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -69864,7 +71637,7 @@ index f40fcc2fb12a..8e7579511c2f 100644
FINAL_LIBRARY = "xul"
-@@ -54,187 +63,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -55,191 +64,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -69978,6 +71751,10 @@ index f40fcc2fb12a..8e7579511c2f 100644
- 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
@@ -70059,7 +71836,7 @@ index f40fcc2fb12a..8e7579511c2f 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 a30c741be25d..2c584fade5d5 100644
+index c67f86066d95..2c584fade5d5 100644
--- third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build
+++ third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -70083,7 +71860,7 @@ index a30c741be25d..2c584fade5d5 100644
FINAL_LIBRARY = "xul"
-@@ -48,187 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -48,191 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -70197,6 +71974,10 @@ index a30c741be25d..2c584fade5d5 100644
- 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
@@ -70278,7 +72059,7 @@ index a30c741be25d..2c584fade5d5 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 c3b935fb8f8e..aa55521fb1a8 100644
+index 9272a224c583..aa55521fb1a8 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
@@ -15,11 +15,20 @@ AllowCompilerWarnings()
@@ -70302,7 +72083,7 @@ index c3b935fb8f8e..aa55521fb1a8 100644
FINAL_LIBRARY = "xul"
-@@ -46,175 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,179 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -70404,6 +72185,10 @@ index c3b935fb8f8e..aa55521fb1a8 100644
- 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
@@ -70485,7 +72270,7 @@ index c3b935fb8f8e..aa55521fb1a8 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 e0e0119f88d2..91d251da69da 100644
+index aea179a464fa..91d251da69da 100644
--- third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build
@@ -15,11 +15,20 @@ AllowCompilerWarnings()
@@ -70509,7 +72294,7 @@ index e0e0119f88d2..91d251da69da 100644
FINAL_LIBRARY = "xul"
-@@ -49,187 +58,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -49,191 +58,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -70623,6 +72408,10 @@ index e0e0119f88d2..91d251da69da 100644
- 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
@@ -70704,7 +72493,7 @@ index e0e0119f88d2..91d251da69da 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 bfdff3aa7528..f599b8e6fe2c 100644
+index 1e543688ce0a..f599b8e6fe2c 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -70728,7 +72517,7 @@ index bfdff3aa7528..f599b8e6fe2c 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -70830,6 +72619,10 @@ index bfdff3aa7528..f599b8e6fe2c 100644
- 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
@@ -70911,7 +72704,7 @@ index bfdff3aa7528..f599b8e6fe2c 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 7d0f00180c9a..7bcdfba72a3d 100644
+index 76d68e59a807..7bcdfba72a3d 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -70935,7 +72728,7 @@ index 7d0f00180c9a..7bcdfba72a3d 100644
FINAL_LIBRARY = "xul"
-@@ -48,187 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -48,191 +57,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -71049,6 +72842,10 @@ index 7d0f00180c9a..7bcdfba72a3d 100644
- 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
@@ -71130,7 +72927,7 @@ index 7d0f00180c9a..7bcdfba72a3d 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 5aa28b260d8b..69fea357b30b 100644
+index d807360bfdb9..69fea357b30b 100644
--- third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build
@@ -15,11 +15,20 @@ AllowCompilerWarnings()
@@ -71154,7 +72951,7 @@ index 5aa28b260d8b..69fea357b30b 100644
FINAL_LIBRARY = "xul"
-@@ -51,187 +60,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -51,191 +60,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -71268,6 +73065,10 @@ index 5aa28b260d8b..69fea357b30b 100644
- 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
@@ -71349,7 +73150,7 @@ index 5aa28b260d8b..69fea357b30b 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 2d6aa42a4f78..42f79acec164 100644
+index a734c18d2ccf..42f79acec164 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -71373,7 +73174,7 @@ index 2d6aa42a4f78..42f79acec164 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -71482,6 +73283,10 @@ index 2d6aa42a4f78..42f79acec164 100644
- 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
@@ -71563,10 +73368,10 @@ index 2d6aa42a4f78..42f79acec164 100644
Library("webrtc_vp9_helpers_gn")
diff --git third_party/libwebrtc/moz.build third_party/libwebrtc/moz.build
-index 27c58fba4339..1dd82a893d39 100644
+index 933b80f70d75..b92ee1039bce 100644
--- third_party/libwebrtc/moz.build
+++ third_party/libwebrtc/moz.build
-@@ -289,6 +289,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",
@@ -71575,7 +73380,7 @@ index 27c58fba4339..1dd82a893d39 100644
"/third_party/libwebrtc/modules/module_api_gn",
"/third_party/libwebrtc/modules/module_api_public_gn",
"/third_party/libwebrtc/modules/module_fec_api_gn",
-@@ -515,102 +517,11 @@ DIRS += [
+@@ -517,102 +519,11 @@ DIRS += [
"/third_party/libwebrtc/webrtc_gn"
]
@@ -71679,7 +73484,7 @@ index 27c58fba4339..1dd82a893d39 100644
"/third_party/libwebrtc/modules/portal/portal_gn",
"/third_party/libwebrtc/third_party/drm/drm_gn",
"/third_party/libwebrtc/third_party/gbm/gbm_gn",
-@@ -618,26 +529,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
+@@ -620,26 +531,19 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
"/third_party/libwebrtc/third_party/pipewire/pipewire_gn"
]
@@ -71691,27 +73496,15 @@ index 27c58fba4339..1dd82a893d39 100644
- "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
- "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
- "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
-- "/third_party/libwebrtc/modules/portal/portal_gn",
-- "/third_party/libwebrtc/rtc_base/system/asm_defines_gn",
-- "/third_party/libwebrtc/third_party/drm/drm_gn",
-- "/third_party/libwebrtc/third_party/gbm/gbm_gn",
-- "/third_party/libwebrtc/third_party/libepoxy/libepoxy_gn",
-- "/third_party/libwebrtc/third_party/pipewire/pipewire_gn"
-- ]
--
--if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "mips32":
--
-- DIRS += [
-- "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
-- "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
"/third_party/libwebrtc/modules/portal/portal_gn",
+- "/third_party/libwebrtc/rtc_base/system/asm_defines_gn",
"/third_party/libwebrtc/third_party/drm/drm_gn",
"/third_party/libwebrtc/third_party/gbm/gbm_gn",
-@@ -645,11 +539,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "mips32":
+ "/third_party/libwebrtc/third_party/libepoxy/libepoxy_gn",
"/third_party/libwebrtc/third_party/pipewire/pipewire_gn"
]
--if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "mips64":
+-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "mips32":
+if CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "mips64":
DIRS += [
@@ -71720,16 +73513,28 @@ index 27c58fba4339..1dd82a893d39 100644
"/third_party/libwebrtc/modules/portal/portal_gn",
"/third_party/libwebrtc/third_party/drm/drm_gn",
"/third_party/libwebrtc/third_party/gbm/gbm_gn",
-@@ -657,7 +549,7 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "mips64":
+@@ -647,19 +551,7 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "mips32":
"/third_party/libwebrtc/third_party/pipewire/pipewire_gn"
]
+-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "mips64":
+-
+- DIRS += [
+- "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
+- "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
+- "/third_party/libwebrtc/modules/portal/portal_gn",
+- "/third_party/libwebrtc/third_party/drm/drm_gn",
+- "/third_party/libwebrtc/third_party/gbm/gbm_gn",
+- "/third_party/libwebrtc/third_party/libepoxy/libepoxy_gn",
+- "/third_party/libwebrtc/third_party/pipewire/pipewire_gn"
+- ]
+-
-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
+if CONFIG["OS_TARGET"] == "FreeBSD" and CONFIG["TARGET_CPU"] == "x86":
DIRS += [
"/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
-@@ -665,8 +557,6 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
+@@ -667,8 +559,6 @@ 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",
@@ -71738,7 +73543,7 @@ index 27c58fba4339..1dd82a893d39 100644
"/third_party/libwebrtc/modules/portal/portal_gn",
"/third_party/libwebrtc/third_party/drm/drm_gn",
"/third_party/libwebrtc/third_party/gbm/gbm_gn",
-@@ -674,7 +564,7 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
+@@ -676,7 +566,7 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
"/third_party/libwebrtc/third_party/pipewire/pipewire_gn"
]
@@ -71747,7 +73552,7 @@ index 27c58fba4339..1dd82a893d39 100644
DIRS += [
"/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
-@@ -682,69 +572,9 @@ if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
+@@ -684,76 +574,9 @@ 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",
@@ -71804,6 +73609,13 @@ index 27c58fba4339..1dd82a893d39 100644
- "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn"
- ]
-
+-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "loongarch64":
+-
+- DIRS += [
+- "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
+- "/third_party/libwebrtc/modules/desktop_capture/primitives_gn"
+- ]
+-
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "ppc64":
-
- DIRS += [
@@ -71818,7 +73630,7 @@ index 27c58fba4339..1dd82a893d39 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 42c412e916b6..c528241420bd 100644
+index eca892f4b02e..c528241420bd 100644
--- third_party/libwebrtc/net/dcsctp/common/internal_types_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/common/internal_types_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -71842,7 +73654,7 @@ index 42c412e916b6..c528241420bd 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -71940,6 +73752,10 @@ index 42c412e916b6..c528241420bd 100644
- 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
@@ -71952,7 +73768,7 @@ index 42c412e916b6..c528241420bd 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -72005,7 +73821,7 @@ index 42c412e916b6..c528241420bd 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 45d4b2901a01..bf7cde0c5a6b 100644
+index 31a8282c2e53..bf7cde0c5a6b 100644
--- third_party/libwebrtc/net/dcsctp/common/math_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/common/math_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -72029,7 +73845,7 @@ index 45d4b2901a01..bf7cde0c5a6b 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -72123,6 +73939,10 @@ index 45d4b2901a01..bf7cde0c5a6b 100644
- 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
@@ -72135,7 +73955,7 @@ index 45d4b2901a01..bf7cde0c5a6b 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -72188,7 +74008,7 @@ index 45d4b2901a01..bf7cde0c5a6b 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 c7df0758cb5c..4c0fce5d6266 100644
+index a846f1a0d33d..4c0fce5d6266 100644
--- third_party/libwebrtc/net/dcsctp/common/sequence_numbers_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/common/sequence_numbers_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -72212,7 +74032,7 @@ index c7df0758cb5c..4c0fce5d6266 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -72310,6 +74130,10 @@ index c7df0758cb5c..4c0fce5d6266 100644
- 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
@@ -72322,7 +74146,7 @@ index c7df0758cb5c..4c0fce5d6266 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -72375,7 +74199,7 @@ index c7df0758cb5c..4c0fce5d6266 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 81bd3152dcea..6b6ba69cc8b2 100644
+index afa02fd16c4f..6b6ba69cc8b2 100644
--- third_party/libwebrtc/net/dcsctp/packet/bounded_io_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/packet/bounded_io_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -72399,7 +74223,7 @@ index 81bd3152dcea..6b6ba69cc8b2 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -72497,6 +74321,10 @@ index 81bd3152dcea..6b6ba69cc8b2 100644
- 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
@@ -72509,7 +74337,7 @@ index 81bd3152dcea..6b6ba69cc8b2 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -72562,7 +74390,7 @@ index 81bd3152dcea..6b6ba69cc8b2 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 b358f606a8ca..0b6864a3f398 100644
+index 0b444ee87f8f..0b6864a3f398 100644
--- third_party/libwebrtc/net/dcsctp/packet/chunk_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/packet/chunk_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -72586,7 +74414,7 @@ index b358f606a8ca..0b6864a3f398 100644
FINAL_LIBRARY = "xul"
-@@ -60,182 +69,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -60,186 +69,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -72695,6 +74523,10 @@ index b358f606a8ca..0b6864a3f398 100644
- 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
@@ -72776,7 +74608,7 @@ index b358f606a8ca..0b6864a3f398 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 39758d3ec9dd..c19e934effcf 100644
+index 98062c27066e..c19e934effcf 100644
--- third_party/libwebrtc/net/dcsctp/packet/chunk_validators_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/packet/chunk_validators_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -72800,7 +74632,7 @@ index 39758d3ec9dd..c19e934effcf 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -72909,6 +74741,10 @@ index 39758d3ec9dd..c19e934effcf 100644
- 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
@@ -72990,7 +74826,7 @@ index 39758d3ec9dd..c19e934effcf 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 12fc4018a27a..6db407d3c392 100644
+index 70f2f245242b..6db407d3c392 100644
--- third_party/libwebrtc/net/dcsctp/packet/crc32c_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/packet/crc32c_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -73014,7 +74850,7 @@ index 12fc4018a27a..6db407d3c392 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -73116,6 +74952,10 @@ index 12fc4018a27a..6db407d3c392 100644
- 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
@@ -73197,7 +75037,7 @@ index 12fc4018a27a..6db407d3c392 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 0fe7b7f3facf..a7bee1d658c9 100644
+index 7ecb713c4107..a7bee1d658c9 100644
--- third_party/libwebrtc/net/dcsctp/packet/data_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/packet/data_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -73221,7 +75061,7 @@ index 0fe7b7f3facf..a7bee1d658c9 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -73319,6 +75159,10 @@ index 0fe7b7f3facf..a7bee1d658c9 100644
- 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
@@ -73331,7 +75175,7 @@ index 0fe7b7f3facf..a7bee1d658c9 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -73384,7 +75228,7 @@ index 0fe7b7f3facf..a7bee1d658c9 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 7be82d459091..a4c0982bd786 100644
+index 6a16d627ed56..a4c0982bd786 100644
--- third_party/libwebrtc/net/dcsctp/packet/error_cause_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/packet/error_cause_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -73408,7 +75252,7 @@ index 7be82d459091..a4c0982bd786 100644
FINAL_LIBRARY = "xul"
-@@ -56,182 +65,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -56,186 +65,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -73517,6 +75361,10 @@ index 7be82d459091..a4c0982bd786 100644
- 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
@@ -73598,7 +75446,7 @@ index 7be82d459091..a4c0982bd786 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 e1e605f07ca7..0735d8a5c65b 100644
+index 4502dede2e9a..0735d8a5c65b 100644
--- third_party/libwebrtc/net/dcsctp/packet/parameter_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/packet/parameter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -73622,7 +75470,7 @@ index e1e605f07ca7..0735d8a5c65b 100644
FINAL_LIBRARY = "xul"
-@@ -54,182 +63,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -54,186 +63,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -73731,6 +75579,10 @@ index e1e605f07ca7..0735d8a5c65b 100644
- 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
@@ -73812,7 +75664,7 @@ index e1e605f07ca7..0735d8a5c65b 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 000fb68e8b69..1033c5c1c02c 100644
+index 3b65e2e1c551..1033c5c1c02c 100644
--- third_party/libwebrtc/net/dcsctp/packet/sctp_packet_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/packet/sctp_packet_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -73836,7 +75688,7 @@ index 000fb68e8b69..1033c5c1c02c 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -73945,6 +75797,10 @@ index 000fb68e8b69..1033c5c1c02c 100644
- 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
@@ -74026,7 +75882,7 @@ index 000fb68e8b69..1033c5c1c02c 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 92d9c791a3e5..785c32caee3d 100644
+index 7760bdab3371..785c32caee3d 100644
--- third_party/libwebrtc/net/dcsctp/packet/tlv_trait_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/packet/tlv_trait_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -74050,7 +75906,7 @@ index 92d9c791a3e5..785c32caee3d 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -74159,6 +76015,10 @@ index 92d9c791a3e5..785c32caee3d 100644
- 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
@@ -74240,7 +76100,7 @@ index 92d9c791a3e5..785c32caee3d 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 0ccf0b11b18b..8130510f9f5c 100644
+index d5c44cd7f55d..8130510f9f5c 100644
--- third_party/libwebrtc/net/dcsctp/public/factory_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/public/factory_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -74264,7 +76124,7 @@ index 0ccf0b11b18b..8130510f9f5c 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -74373,6 +76233,10 @@ index 0ccf0b11b18b..8130510f9f5c 100644
- 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
@@ -74454,7 +76318,7 @@ index 0ccf0b11b18b..8130510f9f5c 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 a5a1c383d784..e972e6822983 100644
+index 17e62497fbfd..e972e6822983 100644
--- third_party/libwebrtc/net/dcsctp/public/socket_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/public/socket_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -74478,7 +76342,7 @@ index a5a1c383d784..e972e6822983 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -74580,6 +76444,10 @@ index a5a1c383d784..e972e6822983 100644
- 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
@@ -74661,7 +76529,7 @@ index a5a1c383d784..e972e6822983 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 738f7d1c839c..0a2272a27689 100644
+index b7af89b0851d..0a2272a27689 100644
--- third_party/libwebrtc/net/dcsctp/public/types_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/public/types_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -74685,7 +76553,7 @@ index 738f7d1c839c..0a2272a27689 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -74783,6 +76651,10 @@ index 738f7d1c839c..0a2272a27689 100644
- 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
@@ -74795,7 +76667,7 @@ index 738f7d1c839c..0a2272a27689 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -74848,7 +76720,7 @@ index 738f7d1c839c..0a2272a27689 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 282b5b121a1e..312e54212c64 100644
+index ed06ee415f8e..312e54212c64 100644
--- third_party/libwebrtc/net/dcsctp/rx/data_tracker_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/rx/data_tracker_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -74872,7 +76744,7 @@ index 282b5b121a1e..312e54212c64 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -74981,6 +76853,10 @@ index 282b5b121a1e..312e54212c64 100644
- 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
@@ -75062,7 +76938,7 @@ index 282b5b121a1e..312e54212c64 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 7fe9c904e548..ed90dc7cc461 100644
+index 7db6319dfaa8..ed90dc7cc461 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -75086,7 +76962,7 @@ index 7fe9c904e548..ed90dc7cc461 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -75195,6 +77071,10 @@ index 7fe9c904e548..ed90dc7cc461 100644
- 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
@@ -75276,7 +77156,7 @@ index 7fe9c904e548..ed90dc7cc461 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 00d8612b5832..befef0bbe4f5 100644
+index efa360452257..befef0bbe4f5 100644
--- third_party/libwebrtc/net/dcsctp/rx/reassembly_queue_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/rx/reassembly_queue_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -75300,7 +77180,7 @@ index 00d8612b5832..befef0bbe4f5 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -75409,6 +77289,10 @@ index 00d8612b5832..befef0bbe4f5 100644
- 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
@@ -75490,7 +77374,7 @@ index 00d8612b5832..befef0bbe4f5 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 f45dd968365e..6363d35c7972 100644
+index b829e624d36a..6363d35c7972 100644
--- third_party/libwebrtc/net/dcsctp/rx/reassembly_streams_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/rx/reassembly_streams_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -75514,7 +77398,7 @@ index f45dd968365e..6363d35c7972 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -75619,6 +77503,10 @@ index f45dd968365e..6363d35c7972 100644
- 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
@@ -75631,7 +77519,7 @@ index f45dd968365e..6363d35c7972 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -75684,7 +77572,7 @@ index f45dd968365e..6363d35c7972 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 a5b2ca8dd294..c410a12e3122 100644
+index f8e03b62eb88..c410a12e3122 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -75708,7 +77596,7 @@ index a5b2ca8dd294..c410a12e3122 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -75817,6 +77705,10 @@ index a5b2ca8dd294..c410a12e3122 100644
- 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
@@ -75898,7 +77790,7 @@ index a5b2ca8dd294..c410a12e3122 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 b2c27a5a26a8..5c343e4e3e30 100644
+index d6ae65b02e63..5c343e4e3e30 100644
--- third_party/libwebrtc/net/dcsctp/socket/context_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/socket/context_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -75922,7 +77814,7 @@ index b2c27a5a26a8..5c343e4e3e30 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -76027,6 +77919,10 @@ index b2c27a5a26a8..5c343e4e3e30 100644
- 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
@@ -76039,7 +77935,7 @@ index b2c27a5a26a8..5c343e4e3e30 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -76092,7 +77988,7 @@ index b2c27a5a26a8..5c343e4e3e30 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 e5b83a693930..afac7802f8e3 100644
+index 5077ef17d6e3..afac7802f8e3 100644
--- third_party/libwebrtc/net/dcsctp/socket/dcsctp_socket_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/socket/dcsctp_socket_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -76116,7 +78012,7 @@ index e5b83a693930..afac7802f8e3 100644
FINAL_LIBRARY = "xul"
-@@ -45,182 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,186 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -76225,6 +78121,10 @@ index e5b83a693930..afac7802f8e3 100644
- 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
@@ -76306,7 +78206,7 @@ index e5b83a693930..afac7802f8e3 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 9e546003147c..43c70d03ca46 100644
+index 754c30dabf4b..43c70d03ca46 100644
--- third_party/libwebrtc/net/dcsctp/socket/heartbeat_handler_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/socket/heartbeat_handler_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -76330,7 +78230,7 @@ index 9e546003147c..43c70d03ca46 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -76439,6 +78339,10 @@ index 9e546003147c..43c70d03ca46 100644
- 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
@@ -76520,7 +78424,7 @@ index 9e546003147c..43c70d03ca46 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 9b825fd8b1eb..ef16a31312b8 100644
+index 4473e5cdb86d..ef16a31312b8 100644
--- third_party/libwebrtc/net/dcsctp/socket/packet_sender_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/socket/packet_sender_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -76544,7 +78448,7 @@ index 9b825fd8b1eb..ef16a31312b8 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -76653,6 +78557,10 @@ index 9b825fd8b1eb..ef16a31312b8 100644
- 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
@@ -76734,7 +78642,7 @@ index 9b825fd8b1eb..ef16a31312b8 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 ccd50a21d293..66d5e7387bb3 100644
+index f740f1e2814a..66d5e7387bb3 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -76758,7 +78666,7 @@ index ccd50a21d293..66d5e7387bb3 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -76867,6 +78775,10 @@ index ccd50a21d293..66d5e7387bb3 100644
- 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
@@ -76948,7 +78860,7 @@ index ccd50a21d293..66d5e7387bb3 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 0915a44c51fe..ab7a50de0e71 100644
+index 2f57383eed74..ab7a50de0e71 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -76972,7 +78884,7 @@ index 0915a44c51fe..ab7a50de0e71 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -77081,6 +78993,10 @@ index 0915a44c51fe..ab7a50de0e71 100644
- 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
@@ -77162,7 +79078,7 @@ index 0915a44c51fe..ab7a50de0e71 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 6b5f233aafea..b8f118fa70e9 100644
+index 92d96b5a4884..b8f118fa70e9 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -77186,7 +79102,7 @@ index 6b5f233aafea..b8f118fa70e9 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -77295,6 +79211,10 @@ index 6b5f233aafea..b8f118fa70e9 100644
- 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
@@ -77376,7 +79296,7 @@ index 6b5f233aafea..b8f118fa70e9 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 ec59f30a40eb..5e9b0f5f076e 100644
+index e72d318f368b..5e9b0f5f076e 100644
--- third_party/libwebrtc/net/dcsctp/timer/timer_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/timer/timer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -77400,7 +79320,7 @@ index ec59f30a40eb..5e9b0f5f076e 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -77502,6 +79422,10 @@ index ec59f30a40eb..5e9b0f5f076e 100644
- 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
@@ -77583,7 +79507,7 @@ index ec59f30a40eb..5e9b0f5f076e 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 f472b3e3c199..bee7fe1717f9 100644
+index db4877c0eb5a..bee7fe1717f9 100644
--- third_party/libwebrtc/net/dcsctp/tx/outstanding_data_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/tx/outstanding_data_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -77607,7 +79531,7 @@ index f472b3e3c199..bee7fe1717f9 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -77716,6 +79640,10 @@ index f472b3e3c199..bee7fe1717f9 100644
- 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
@@ -77797,7 +79725,7 @@ index f472b3e3c199..bee7fe1717f9 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 86208d5863de..633445df7694 100644
+index 1d65b2c48361..633445df7694 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -77821,7 +79749,7 @@ index 86208d5863de..633445df7694 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -77930,6 +79858,10 @@ index 86208d5863de..633445df7694 100644
- 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
@@ -78011,7 +79943,7 @@ index 86208d5863de..633445df7694 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 d7f7b6466d2d..1b8bec53706d 100644
+index 7b314599a9ba..1b8bec53706d 100644
--- third_party/libwebrtc/net/dcsctp/tx/retransmission_queue_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/tx/retransmission_queue_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -78035,7 +79967,7 @@ index d7f7b6466d2d..1b8bec53706d 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -78144,6 +80076,10 @@ index d7f7b6466d2d..1b8bec53706d 100644
- 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
@@ -78225,7 +80161,7 @@ index d7f7b6466d2d..1b8bec53706d 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 9b6c975c210f..c5164b6718d3 100644
+index 65d68e087729..c5164b6718d3 100644
--- third_party/libwebrtc/net/dcsctp/tx/retransmission_timeout_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/tx/retransmission_timeout_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -78249,7 +80185,7 @@ index 9b6c975c210f..c5164b6718d3 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -78351,6 +80287,10 @@ index 9b6c975c210f..c5164b6718d3 100644
- 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
@@ -78432,7 +80372,7 @@ index 9b6c975c210f..c5164b6718d3 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 c3f015664820..9ea25738de8c 100644
+index 1cb8bd431eaa..9ea25738de8c 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -78456,7 +80396,7 @@ index c3f015664820..9ea25738de8c 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -78565,6 +80505,10 @@ index c3f015664820..9ea25738de8c 100644
- 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
@@ -78646,7 +80590,7 @@ index c3f015664820..9ea25738de8c 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 963189857bd0..f78f753430a9 100644
+index 103522c30ecf..f78f753430a9 100644
--- third_party/libwebrtc/net/dcsctp/tx/send_queue_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/tx/send_queue_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -78670,7 +80614,7 @@ index 963189857bd0..f78f753430a9 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -78775,6 +80719,10 @@ index 963189857bd0..f78f753430a9 100644
- 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
@@ -78787,7 +80735,7 @@ index 963189857bd0..f78f753430a9 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -78840,7 +80788,7 @@ index 963189857bd0..f78f753430a9 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 ef026e0354f4..1918ce77f1a0 100644
+index 1617cd052cfb..1918ce77f1a0 100644
--- third_party/libwebrtc/net/dcsctp/tx/stream_scheduler_gn/moz.build
+++ third_party/libwebrtc/net/dcsctp/tx/stream_scheduler_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -78864,7 +80812,7 @@ index ef026e0354f4..1918ce77f1a0 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -78973,6 +80921,10 @@ index ef026e0354f4..1918ce77f1a0 100644
- 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
@@ -79054,7 +81006,7 @@ index ef026e0354f4..1918ce77f1a0 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 fc8abb07571d..2a5a0f61c3c3 100644
+index 07281aa318a7..2a5a0f61c3c3 100644
--- third_party/libwebrtc/rtc_base/async_dns_resolver_gn/moz.build
+++ third_party/libwebrtc/rtc_base/async_dns_resolver_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -79078,7 +81030,7 @@ index fc8abb07571d..2a5a0f61c3c3 100644
FINAL_LIBRARY = "xul"
-@@ -43,183 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -79188,6 +81140,10 @@ index fc8abb07571d..2a5a0f61c3c3 100644
- 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
@@ -79269,7 +81225,7 @@ index fc8abb07571d..2a5a0f61c3c3 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 1fa7ab348217..1dc426614ba0 100644
+index 59de36d84d9a..1dc426614ba0 100644
--- third_party/libwebrtc/rtc_base/async_packet_socket_gn/moz.build
+++ third_party/libwebrtc/rtc_base/async_packet_socket_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -79293,7 +81249,7 @@ index 1fa7ab348217..1dc426614ba0 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -79387,6 +81343,10 @@ index 1fa7ab348217..1dc426614ba0 100644
- 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
@@ -79399,7 +81359,7 @@ index 1fa7ab348217..1dc426614ba0 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -79452,7 +81412,7 @@ index 1fa7ab348217..1dc426614ba0 100644
-
Library("async_packet_socket_gn")
diff --git third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build
-index b2eea4230c4a..59b686b72228 100644
+index 2bb40d7b400d..59b686b72228 100644
--- third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build
+++ third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -79476,7 +81436,7 @@ index b2eea4230c4a..59b686b72228 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -79585,6 +81545,10 @@ index b2eea4230c4a..59b686b72228 100644
- 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
@@ -79666,7 +81630,7 @@ index b2eea4230c4a..59b686b72228 100644
Library("audio_format_to_string_gn")
diff --git third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build
-index 03e2b288bbd9..a183036f9f29 100644
+index a97cbd0f0e4b..a183036f9f29 100644
--- third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build
+++ third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -79690,7 +81654,7 @@ index 03e2b288bbd9..a183036f9f29 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -79792,6 +81756,10 @@ index 03e2b288bbd9..a183036f9f29 100644
- 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
@@ -79873,7 +81841,7 @@ index 03e2b288bbd9..a183036f9f29 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 a66b98177436..bb90b19b5ef7 100644
+index 48ec1d8b394a..bb90b19b5ef7 100644
--- third_party/libwebrtc/rtc_base/bitrate_tracker_gn/moz.build
+++ third_party/libwebrtc/rtc_base/bitrate_tracker_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -79897,7 +81865,7 @@ index a66b98177436..bb90b19b5ef7 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -80006,6 +81974,10 @@ index a66b98177436..bb90b19b5ef7 100644
- 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
@@ -80087,7 +82059,7 @@ index a66b98177436..bb90b19b5ef7 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 99a2dd108ecf..f2785c8a470b 100644
+index b6e5cdc25679..f2785c8a470b 100644
--- third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build
+++ third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -80111,7 +82083,7 @@ index 99a2dd108ecf..f2785c8a470b 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -80213,6 +82185,10 @@ index 99a2dd108ecf..f2785c8a470b 100644
- 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
@@ -80294,7 +82270,7 @@ index 99a2dd108ecf..f2785c8a470b 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 fcccc2b6fe10..627182b344f7 100644
+index cb8c70cd12d1..627182b344f7 100644
--- third_party/libwebrtc/rtc_base/buffer_gn/moz.build
+++ third_party/libwebrtc/rtc_base/buffer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -80318,7 +82294,7 @@ index fcccc2b6fe10..627182b344f7 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -80416,6 +82392,10 @@ index fcccc2b6fe10..627182b344f7 100644
- 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
@@ -80428,7 +82408,7 @@ index fcccc2b6fe10..627182b344f7 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -80481,7 +82461,7 @@ index fcccc2b6fe10..627182b344f7 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 6624cd3832b2..d57286760dc5 100644
+index 53412c151689..d57286760dc5 100644
--- third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build
+++ third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -80505,7 +82485,7 @@ index 6624cd3832b2..d57286760dc5 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -80607,6 +82587,10 @@ index 6624cd3832b2..d57286760dc5 100644
- 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
@@ -80688,7 +82672,7 @@ index 6624cd3832b2..d57286760dc5 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 127aeefe5e3a..b483351cb849 100644
+index eb8960e92dc5..b483351cb849 100644
--- third_party/libwebrtc/rtc_base/byte_order_gn/moz.build
+++ third_party/libwebrtc/rtc_base/byte_order_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -80712,7 +82696,7 @@ index 127aeefe5e3a..b483351cb849 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -80806,6 +82790,10 @@ index 127aeefe5e3a..b483351cb849 100644
- 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
@@ -80818,7 +82806,7 @@ index 127aeefe5e3a..b483351cb849 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -80871,7 +82859,7 @@ index 127aeefe5e3a..b483351cb849 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 3bd23545b4d5..bac79efc3909 100644
+index 4009fff6361f..bac79efc3909 100644
--- third_party/libwebrtc/rtc_base/checks_gn/moz.build
+++ third_party/libwebrtc/rtc_base/checks_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -80895,7 +82883,7 @@ index 3bd23545b4d5..bac79efc3909 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -80997,6 +82985,10 @@ index 3bd23545b4d5..bac79efc3909 100644
- 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
@@ -81078,7 +83070,7 @@ index 3bd23545b4d5..bac79efc3909 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 fe0b93757a84..e20bdf1570ff 100644
+index 758670919dc9..e20bdf1570ff 100644
--- third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build
+++ third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -81102,7 +83094,7 @@ index fe0b93757a84..e20bdf1570ff 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -81196,6 +83188,10 @@ index fe0b93757a84..e20bdf1570ff 100644
- 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
@@ -81208,7 +83204,7 @@ index fe0b93757a84..e20bdf1570ff 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -81261,7 +83257,7 @@ index fe0b93757a84..e20bdf1570ff 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 418b36c6eec8..0e1ee33fb9d3 100644
+index 29e2f794070b..0e1ee33fb9d3 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -81285,7 +83281,7 @@ index 418b36c6eec8..0e1ee33fb9d3 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -81387,6 +83383,10 @@ index 418b36c6eec8..0e1ee33fb9d3 100644
- 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
@@ -81468,7 +83468,7 @@ index 418b36c6eec8..0e1ee33fb9d3 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 3588529ba105..55eff7cde666 100644
+index 9bdb5b2ad824..55eff7cde666 100644
--- third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build
+++ third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -81492,7 +83492,7 @@ index 3588529ba105..55eff7cde666 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -81590,6 +83590,10 @@ index 3588529ba105..55eff7cde666 100644
- 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
@@ -81602,7 +83606,7 @@ index 3588529ba105..55eff7cde666 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -81655,7 +83659,7 @@ index 3588529ba105..55eff7cde666 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 77625fd5e21d..051e2d72bb5c 100644
+index 43ac4165fbd2..051e2d72bb5c 100644
--- third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build
+++ third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -81679,7 +83683,7 @@ index 77625fd5e21d..051e2d72bb5c 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -81777,6 +83781,10 @@ index 77625fd5e21d..051e2d72bb5c 100644
- 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
@@ -81789,7 +83797,7 @@ index 77625fd5e21d..051e2d72bb5c 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -81842,7 +83850,7 @@ index 77625fd5e21d..051e2d72bb5c 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 5ba7ca97f54c..f01886085505 100644
+index d35d1ab479c6..f01886085505 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -81866,7 +83874,7 @@ index 5ba7ca97f54c..f01886085505 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -81968,6 +83976,10 @@ index 5ba7ca97f54c..f01886085505 100644
- 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
@@ -82049,7 +84061,7 @@ index 5ba7ca97f54c..f01886085505 100644
Library("copy_on_write_buffer_gn")
diff --git third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build
-index cd78ad2a9dc3..1f93cdc117ab 100644
+index 544b3575f3af..1f93cdc117ab 100644
--- third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build
+++ third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -82073,7 +84085,7 @@ index cd78ad2a9dc3..1f93cdc117ab 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -82175,6 +84187,10 @@ index cd78ad2a9dc3..1f93cdc117ab 100644
- 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
@@ -82256,7 +84272,7 @@ index cd78ad2a9dc3..1f93cdc117ab 100644
Library("criticalsection_gn")
diff --git third_party/libwebrtc/rtc_base/divide_round_gn/moz.build third_party/libwebrtc/rtc_base/divide_round_gn/moz.build
-index 6d91aca5405c..1156dc035fd3 100644
+index 013c8ff94548..1156dc035fd3 100644
--- third_party/libwebrtc/rtc_base/divide_round_gn/moz.build
+++ third_party/libwebrtc/rtc_base/divide_round_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -82280,7 +84296,7 @@ index 6d91aca5405c..1156dc035fd3 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -82378,6 +84394,10 @@ index 6d91aca5405c..1156dc035fd3 100644
- 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
@@ -82390,7 +84410,7 @@ index 6d91aca5405c..1156dc035fd3 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -82443,7 +84463,7 @@ index 6d91aca5405c..1156dc035fd3 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 9ced9d433ba6..21675b22576d 100644
+index 8e779b7743dd..21675b22576d 100644
--- third_party/libwebrtc/rtc_base/dscp_gn/moz.build
+++ third_party/libwebrtc/rtc_base/dscp_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -82467,7 +84487,7 @@ index 9ced9d433ba6..21675b22576d 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -82561,6 +84581,10 @@ index 9ced9d433ba6..21675b22576d 100644
- 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
@@ -82573,7 +84597,7 @@ index 9ced9d433ba6..21675b22576d 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -82626,7 +84650,7 @@ index 9ced9d433ba6..21675b22576d 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 22031ad0c3f1..6d9dd30259ed 100644
+index 411fcbcd72da..cee2e6eedbcc 100644
--- third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build
+++ third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -82650,7 +84674,7 @@ index 22031ad0c3f1..6d9dd30259ed 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -82759,6 +84783,10 @@ index 22031ad0c3f1..6d9dd30259ed 100644
- 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
@@ -82840,7 +84868,7 @@ index 22031ad0c3f1..6d9dd30259ed 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 00754e71ca34..42435f27ca55 100644
+index 84ed89ed87e1..42435f27ca55 100644
--- third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build
+++ third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -82864,7 +84892,7 @@ index 00754e71ca34..42435f27ca55 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -82973,6 +85001,10 @@ index 00754e71ca34..42435f27ca55 100644
- 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
@@ -83054,7 +85086,7 @@ index 00754e71ca34..42435f27ca55 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 c07825d69632..effe36e6b677 100644
+index c9d63e7c296f..effe36e6b677 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -83078,7 +85110,7 @@ index c07825d69632..effe36e6b677 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -83187,6 +85219,10 @@ index c07825d69632..effe36e6b677 100644
- 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
@@ -83268,7 +85304,7 @@ index c07825d69632..effe36e6b677 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 7124a11537cb..a50e956523c8 100644
+index 3fe445b45d51..a50e956523c8 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -83292,7 +85328,7 @@ index 7124a11537cb..a50e956523c8 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -83401,6 +85437,10 @@ index 7124a11537cb..a50e956523c8 100644
- 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
@@ -83482,7 +85522,7 @@ index 7124a11537cb..a50e956523c8 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 26fbc8121222..1072fbd432a0 100644
+index 139b64b3d998..1072fbd432a0 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -83506,7 +85546,7 @@ index 26fbc8121222..1072fbd432a0 100644
FINAL_LIBRARY = "xul"
-@@ -46,182 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,186 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -83615,6 +85655,10 @@ index 26fbc8121222..1072fbd432a0 100644
- 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
@@ -83696,7 +85740,7 @@ index 26fbc8121222..1072fbd432a0 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 bead06448a0c..c1357e5111db 100644
+index 08398c40cf56..c1357e5111db 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -83720,7 +85764,7 @@ index bead06448a0c..c1357e5111db 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -83829,6 +85873,10 @@ index bead06448a0c..c1357e5111db 100644
- 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
@@ -83910,7 +85958,7 @@ index bead06448a0c..c1357e5111db 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 4b3cf366d3bb..bc080f3f2b04 100644
+index d8b7892933f0..bc080f3f2b04 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -83934,7 +85982,7 @@ index 4b3cf366d3bb..bc080f3f2b04 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -84043,6 +86091,10 @@ index 4b3cf366d3bb..bc080f3f2b04 100644
- 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
@@ -84124,7 +86176,7 @@ index 4b3cf366d3bb..bc080f3f2b04 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 0310b2c8f2e2..248222fdb89c 100644
+index 7e7af322ca00..248222fdb89c 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -84148,7 +86200,7 @@ index 0310b2c8f2e2..248222fdb89c 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -84257,6 +86309,10 @@ index 0310b2c8f2e2..248222fdb89c 100644
- 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
@@ -84338,7 +86394,7 @@ index 0310b2c8f2e2..248222fdb89c 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 fa4aebc9cdd6..96c027f57661 100644
+index 2ffaf07d5cea..96c027f57661 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -84362,7 +86418,7 @@ index fa4aebc9cdd6..96c027f57661 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -84471,6 +86527,10 @@ index fa4aebc9cdd6..96c027f57661 100644
- 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
@@ -84552,7 +86612,7 @@ index fa4aebc9cdd6..96c027f57661 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 b6b67370158c..f3dc32a385fe 100644
+index bc0db9b773f9..f3dc32a385fe 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -84576,7 +86636,7 @@ index b6b67370158c..f3dc32a385fe 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -84685,6 +86745,10 @@ index b6b67370158c..f3dc32a385fe 100644
- 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
@@ -84766,7 +86830,7 @@ index b6b67370158c..f3dc32a385fe 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 c3b8a9f19839..e704571afe9c 100644
+index 6c3dc1ed384f..e704571afe9c 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -84790,7 +86854,7 @@ index c3b8a9f19839..e704571afe9c 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -84899,6 +86963,10 @@ index c3b8a9f19839..e704571afe9c 100644
- 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
@@ -84980,7 +87048,7 @@ index c3b8a9f19839..e704571afe9c 100644
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 fe917e5d9f61..5a0edcd1347a 100644
+index a96bdf65536e..5a0edcd1347a 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -85004,7 +87072,7 @@ index fe917e5d9f61..5a0edcd1347a 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -85113,6 +87181,10 @@ index fe917e5d9f61..5a0edcd1347a 100644
- 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
@@ -85194,7 +87266,7 @@ index fe917e5d9f61..5a0edcd1347a 100644
Library("stable_target_rate_experiment_gn")
diff --git third_party/libwebrtc/rtc_base/frequency_tracker_gn/moz.build third_party/libwebrtc/rtc_base/frequency_tracker_gn/moz.build
-index 2330a67e2364..74059151d385 100644
+index fd45f36c268e..74059151d385 100644
--- third_party/libwebrtc/rtc_base/frequency_tracker_gn/moz.build
+++ third_party/libwebrtc/rtc_base/frequency_tracker_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -85218,7 +87290,7 @@ index 2330a67e2364..74059151d385 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -85327,6 +87399,10 @@ index 2330a67e2364..74059151d385 100644
- 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
@@ -85408,7 +87484,7 @@ index 2330a67e2364..74059151d385 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 023a1bfb463e..d1a4f3caee83 100644
+index b4199a311652..d1a4f3caee83 100644
--- third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build
+++ third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -85432,7 +87508,7 @@ index 023a1bfb463e..d1a4f3caee83 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -85526,6 +87602,10 @@ index 023a1bfb463e..d1a4f3caee83 100644
- 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
@@ -85538,7 +87618,7 @@ index 023a1bfb463e..d1a4f3caee83 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -85591,7 +87671,7 @@ index 023a1bfb463e..d1a4f3caee83 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 d9693a339c1c..7c1c2ed4eca6 100644
+index e235da2187aa..7c1c2ed4eca6 100644
--- third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build
+++ third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -85615,7 +87695,7 @@ index d9693a339c1c..7c1c2ed4eca6 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -85717,6 +87797,10 @@ index d9693a339c1c..7c1c2ed4eca6 100644
- 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
@@ -85898,7 +87982,7 @@ index bc2ed633f802..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 ccf57d243c64..267e43801deb 100644
+index a3761c664470..267e43801deb 100644
--- third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build
+++ third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -85922,7 +88006,7 @@ index ccf57d243c64..267e43801deb 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -86016,6 +88100,10 @@ index ccf57d243c64..267e43801deb 100644
- 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
@@ -86028,7 +88116,7 @@ index ccf57d243c64..267e43801deb 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -86081,7 +88169,7 @@ index ccf57d243c64..267e43801deb 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 599011b7880c..d5a8d4cae0ef 100644
+index 8591a3b9be6c..d5a8d4cae0ef 100644
--- third_party/libwebrtc/rtc_base/ip_address_gn/moz.build
+++ third_party/libwebrtc/rtc_base/ip_address_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -86105,7 +88193,7 @@ index 599011b7880c..d5a8d4cae0ef 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -86214,6 +88302,10 @@ index 599011b7880c..d5a8d4cae0ef 100644
- 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
@@ -86295,7 +88387,7 @@ index 599011b7880c..d5a8d4cae0ef 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 1bf8ad041f09..448a2e06255a 100644
+index 0121355ea171..448a2e06255a 100644
--- third_party/libwebrtc/rtc_base/logging_gn/moz.build
+++ third_party/libwebrtc/rtc_base/logging_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -86320,7 +88412,7 @@ index 1bf8ad041f09..448a2e06255a 100644
FINAL_LIBRARY = "xul"
-@@ -44,182 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,186 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -86429,6 +88521,10 @@ index 1bf8ad041f09..448a2e06255a 100644
- 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
@@ -86510,7 +88606,7 @@ index 1bf8ad041f09..448a2e06255a 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 fd6a7ed3583a..dd3d584195c0 100644
+index fb0141f9992f..dd3d584195c0 100644
--- third_party/libwebrtc/rtc_base/macromagic_gn/moz.build
+++ third_party/libwebrtc/rtc_base/macromagic_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -86534,7 +88630,7 @@ index fd6a7ed3583a..dd3d584195c0 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -86628,6 +88724,10 @@ index fd6a7ed3583a..dd3d584195c0 100644
- 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
@@ -86640,7 +88740,7 @@ index fd6a7ed3583a..dd3d584195c0 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -86693,7 +88793,7 @@ index fd6a7ed3583a..dd3d584195c0 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 4cdb7dc957bf..c2362607b3f3 100644
+index 1965f7ec53af..c2362607b3f3 100644
--- third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build
+++ third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -86717,7 +88817,7 @@ index 4cdb7dc957bf..c2362607b3f3 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -86819,6 +88919,10 @@ index 4cdb7dc957bf..c2362607b3f3 100644
- 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
@@ -86900,7 +89004,7 @@ index 4cdb7dc957bf..c2362607b3f3 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 8662881c50a2..2890fedddb9a 100644
+index 1b552f64a772..2890fedddb9a 100644
--- third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build
+++ third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -86924,7 +89028,7 @@ index 8662881c50a2..2890fedddb9a 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -87022,6 +89126,10 @@ index 8662881c50a2..2890fedddb9a 100644
- 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
@@ -87034,7 +89142,7 @@ index 8662881c50a2..2890fedddb9a 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -87087,7 +89195,7 @@ index 8662881c50a2..2890fedddb9a 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 8b77e8aef659..12388acab2b4 100644
+index c3715c2c6b20..12388acab2b4 100644
--- third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build
+++ third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -87111,7 +89219,7 @@ index 8b77e8aef659..12388acab2b4 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -87209,6 +89317,10 @@ index 8b77e8aef659..12388acab2b4 100644
- 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
@@ -87221,7 +89333,7 @@ index 8b77e8aef659..12388acab2b4 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -87274,7 +89386,7 @@ index 8b77e8aef659..12388acab2b4 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 75e553cc3298..ead57cd08a32 100644
+index 33488c655174..ead57cd08a32 100644
--- third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build
+++ third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -87298,7 +89410,7 @@ index 75e553cc3298..ead57cd08a32 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -87407,6 +89519,10 @@ index 75e553cc3298..ead57cd08a32 100644
- 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
@@ -87488,7 +89604,7 @@ index 75e553cc3298..ead57cd08a32 100644
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 e143fc3b344e..bc515fc5c103 100644
+index 6c4cd224b98b..bc515fc5c103 100644
--- third_party/libwebrtc/rtc_base/network/ecn_marking_gn/moz.build
+++ third_party/libwebrtc/rtc_base/network/ecn_marking_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -87512,7 +89628,7 @@ index e143fc3b344e..bc515fc5c103 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -87606,6 +89722,10 @@ index e143fc3b344e..bc515fc5c103 100644
- 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
@@ -87618,7 +89738,7 @@ index e143fc3b344e..bc515fc5c103 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -87671,7 +89791,7 @@ index e143fc3b344e..bc515fc5c103 100644
-
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 74a8daff5aea..abba0d8decc4 100644
+index 04b51f0502b3..abba0d8decc4 100644
--- third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build
+++ third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -87695,7 +89815,7 @@ index 74a8daff5aea..abba0d8decc4 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -87793,6 +89913,10 @@ index 74a8daff5aea..abba0d8decc4 100644
- 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
@@ -87874,7 +89998,7 @@ index 74a8daff5aea..abba0d8decc4 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 ee445594cc8f..a93a94841ac8 100644
+index b8fb244a8e99..a93a94841ac8 100644
--- third_party/libwebrtc/rtc_base/network_constants_gn/moz.build
+++ third_party/libwebrtc/rtc_base/network_constants_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -87898,7 +90022,7 @@ index ee445594cc8f..a93a94841ac8 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -88000,6 +90124,10 @@ index ee445594cc8f..a93a94841ac8 100644
- 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
@@ -88081,7 +90209,7 @@ index ee445594cc8f..a93a94841ac8 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 6a7a271b1a2e..3a16933c8e3d 100644
+index 2f552b99a2ba..3a16933c8e3d 100644
--- third_party/libwebrtc/rtc_base/network_route_gn/moz.build
+++ third_party/libwebrtc/rtc_base/network_route_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -88105,7 +90233,7 @@ index 6a7a271b1a2e..3a16933c8e3d 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -88207,6 +90335,10 @@ index 6a7a271b1a2e..3a16933c8e3d 100644
- 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
@@ -88288,7 +90420,7 @@ index 6a7a271b1a2e..3a16933c8e3d 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 fca2b0bcdb39..ca7dd6bb37c7 100644
+index c07ee42a4768..ca7dd6bb37c7 100644
--- third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build
+++ third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -88312,7 +90444,7 @@ index fca2b0bcdb39..ca7dd6bb37c7 100644
FINAL_LIBRARY = "xul"
-@@ -43,183 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -88422,6 +90554,10 @@ index fca2b0bcdb39..ca7dd6bb37c7 100644
- 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
@@ -88503,7 +90639,7 @@ index fca2b0bcdb39..ca7dd6bb37c7 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 e3f2feccacdc..9ef0efeb1338 100644
+index 11bbb05fa7c9..9ef0efeb1338 100644
--- third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build
+++ third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -88527,7 +90663,7 @@ index e3f2feccacdc..9ef0efeb1338 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -88625,6 +90761,10 @@ index e3f2feccacdc..9ef0efeb1338 100644
- 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
@@ -88637,7 +90777,7 @@ index e3f2feccacdc..9ef0efeb1338 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -88690,7 +90830,7 @@ index e3f2feccacdc..9ef0efeb1338 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 da1566f7a857..a541e3b4d5a2 100644
+index 945e2783d6ef..a541e3b4d5a2 100644
--- third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build
+++ third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -88714,7 +90854,7 @@ index da1566f7a857..a541e3b4d5a2 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -88823,6 +90963,10 @@ index da1566f7a857..a541e3b4d5a2 100644
- 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
@@ -88904,7 +91048,7 @@ index da1566f7a857..a541e3b4d5a2 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 7153b6235186..f23aca8108e2 100644
+index 48c27d813e17..f23aca8108e2 100644
--- third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build
+++ third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -88928,7 +91072,7 @@ index 7153b6235186..f23aca8108e2 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -89030,6 +91174,10 @@ index 7153b6235186..f23aca8108e2 100644
- 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
@@ -89111,7 +91259,7 @@ index 7153b6235186..f23aca8108e2 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 4a9ef9c77cbe..4d3ef5564a90 100644
+index 668f1d0a980d..4d3ef5564a90 100644
--- third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build
+++ third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -89135,7 +91283,7 @@ index 4a9ef9c77cbe..4d3ef5564a90 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -89229,6 +91377,10 @@ index 4a9ef9c77cbe..4d3ef5564a90 100644
- 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
@@ -89241,7 +91393,7 @@ index 4a9ef9c77cbe..4d3ef5564a90 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -89294,7 +91446,7 @@ index 4a9ef9c77cbe..4d3ef5564a90 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 7af463c609ea..6deeed359a2b 100644
+index 6d2ee3c0a0b4..6deeed359a2b 100644
--- third_party/libwebrtc/rtc_base/race_checker_gn/moz.build
+++ third_party/libwebrtc/rtc_base/race_checker_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -89318,7 +91470,7 @@ index 7af463c609ea..6deeed359a2b 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -89420,6 +91572,10 @@ index 7af463c609ea..6deeed359a2b 100644
- 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
@@ -89501,7 +91657,7 @@ index 7af463c609ea..6deeed359a2b 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 6ab96907812e..70cddc604dc3 100644
+index 38d713e123cd..70cddc604dc3 100644
--- third_party/libwebrtc/rtc_base/random_gn/moz.build
+++ third_party/libwebrtc/rtc_base/random_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -89525,7 +91681,7 @@ index 6ab96907812e..70cddc604dc3 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -89627,6 +91783,10 @@ index 6ab96907812e..70cddc604dc3 100644
- 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
@@ -89708,7 +91868,7 @@ index 6ab96907812e..70cddc604dc3 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 b251922a71ed..2ca7defd349f 100644
+index 8827194a0ddc..2ca7defd349f 100644
--- third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build
+++ third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -89732,7 +91892,7 @@ index b251922a71ed..2ca7defd349f 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -89845,6 +92005,10 @@ index b251922a71ed..2ca7defd349f 100644
- 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
@@ -89926,7 +92090,7 @@ index b251922a71ed..2ca7defd349f 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 9aaf50bca9db..98328fad3324 100644
+index 88038145cf15..98328fad3324 100644
--- third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build
+++ third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -89950,7 +92114,7 @@ index 9aaf50bca9db..98328fad3324 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -90059,6 +92223,10 @@ index 9aaf50bca9db..98328fad3324 100644
- 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
@@ -90140,7 +92308,7 @@ index 9aaf50bca9db..98328fad3324 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 5bc2da784eb9..dce869f89476 100644
+index bd0629bfa0db..dce869f89476 100644
--- third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build
+++ third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -90164,7 +92332,7 @@ index 5bc2da784eb9..dce869f89476 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -90273,6 +92441,10 @@ index 5bc2da784eb9..dce869f89476 100644
- 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
@@ -90354,7 +92526,7 @@ index 5bc2da784eb9..dce869f89476 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 bee5514f15f5..b23b29b3df2a 100644
+index 3595a7a13a2b..b23b29b3df2a 100644
--- third_party/libwebrtc/rtc_base/refcount_gn/moz.build
+++ third_party/libwebrtc/rtc_base/refcount_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -90378,7 +92550,7 @@ index bee5514f15f5..b23b29b3df2a 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -90472,6 +92644,10 @@ index bee5514f15f5..b23b29b3df2a 100644
- 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
@@ -90484,7 +92660,7 @@ index bee5514f15f5..b23b29b3df2a 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -90537,7 +92713,7 @@ index bee5514f15f5..b23b29b3df2a 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 803213005dbb..f83bf4191a50 100644
+index daf579df3533..f83bf4191a50 100644
--- third_party/libwebrtc/rtc_base/rolling_accumulator_gn/moz.build
+++ third_party/libwebrtc/rtc_base/rolling_accumulator_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -90561,7 +92737,7 @@ index 803213005dbb..f83bf4191a50 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -90659,6 +92835,10 @@ index 803213005dbb..f83bf4191a50 100644
- 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
@@ -90671,7 +92851,7 @@ index 803213005dbb..f83bf4191a50 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -90724,7 +92904,7 @@ index 803213005dbb..f83bf4191a50 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 063db2ee4708..61236b44fa64 100644
+index f01e48e21375..61236b44fa64 100644
--- third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build
+++ third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -90748,7 +92928,7 @@ index 063db2ee4708..61236b44fa64 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -90857,6 +93037,10 @@ index 063db2ee4708..61236b44fa64 100644
- 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
@@ -90938,7 +93122,7 @@ index 063db2ee4708..61236b44fa64 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 9f2243677b3c..a11937d5e09e 100644
+index 9c7b0c6d3f55..a11937d5e09e 100644
--- third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build
+++ third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -90962,7 +93146,7 @@ index 9f2243677b3c..a11937d5e09e 100644
FINAL_LIBRARY = "xul"
-@@ -45,175 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,179 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -91064,6 +93248,10 @@ index 9f2243677b3c..a11937d5e09e 100644
- 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
@@ -91145,7 +93333,7 @@ index 9f2243677b3c..a11937d5e09e 100644
Library("rtc_numerics_gn")
diff --git third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build
-index 108788359351..5674190b8fd3 100644
+index 80d295aa9d5d..5674190b8fd3 100644
--- third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build
+++ third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -91169,7 +93357,7 @@ index 108788359351..5674190b8fd3 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -91263,6 +93451,10 @@ index 108788359351..5674190b8fd3 100644
- 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
@@ -91275,7 +93467,7 @@ index 108788359351..5674190b8fd3 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -91328,7 +93520,7 @@ index 108788359351..5674190b8fd3 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 802047cc7723..614a50cc3677 100644
+index c9b97cb7ed49..614a50cc3677 100644
--- third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build
+++ third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -91352,7 +93544,7 @@ index 802047cc7723..614a50cc3677 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -91450,6 +93642,10 @@ index 802047cc7723..614a50cc3677 100644
- 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
@@ -91462,7 +93658,7 @@ index 802047cc7723..614a50cc3677 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -91515,7 +93711,7 @@ index 802047cc7723..614a50cc3677 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 51a8bccde5cc..dd120fb85232 100644
+index 50e6173fccd3..dd120fb85232 100644
--- third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build
+++ third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -91539,7 +93735,7 @@ index 51a8bccde5cc..dd120fb85232 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -91637,6 +93833,10 @@ index 51a8bccde5cc..dd120fb85232 100644
- 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
@@ -91649,7 +93849,7 @@ index 51a8bccde5cc..dd120fb85232 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -91702,7 +93902,7 @@ index 51a8bccde5cc..dd120fb85232 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 b6443c841795..5a19758cd0c1 100644
+index 4ffa48a120cb..5a19758cd0c1 100644
--- third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build
+++ third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -91726,7 +93926,7 @@ index b6443c841795..5a19758cd0c1 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -91828,6 +94028,10 @@ index b6443c841795..5a19758cd0c1 100644
- 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
@@ -91909,7 +94113,7 @@ index b6443c841795..5a19758cd0c1 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 9f21e2e72c60..65d7a7b001cc 100644
+index a860a9f7282b..65d7a7b001cc 100644
--- third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build
+++ third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -91933,7 +94137,7 @@ index 9f21e2e72c60..65d7a7b001cc 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -92027,6 +94231,10 @@ index 9f21e2e72c60..65d7a7b001cc 100644
- 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
@@ -92039,7 +94247,7 @@ index 9f21e2e72c60..65d7a7b001cc 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -92092,7 +94300,7 @@ index 9f21e2e72c60..65d7a7b001cc 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 4cdbbe0aaf09..b2c6204e306f 100644
+index 04cba77cbb9c..b2c6204e306f 100644
--- third_party/libwebrtc/rtc_base/socket_address_gn/moz.build
+++ third_party/libwebrtc/rtc_base/socket_address_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -92116,7 +94324,7 @@ index 4cdbbe0aaf09..b2c6204e306f 100644
FINAL_LIBRARY = "xul"
-@@ -43,183 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -92226,6 +94434,10 @@ index 4cdbbe0aaf09..b2c6204e306f 100644
- 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
@@ -92307,7 +94519,7 @@ index 4cdbbe0aaf09..b2c6204e306f 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 7e6b11eae177..591ac160c8cb 100644
+index f3356c04b441..591ac160c8cb 100644
--- third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build
+++ third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -92331,7 +94543,7 @@ index 7e6b11eae177..591ac160c8cb 100644
FINAL_LIBRARY = "xul"
-@@ -39,116 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -92437,6 +94649,10 @@ index 7e6b11eae177..591ac160c8cb 100644
- 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
@@ -92449,7 +94665,7 @@ index 7e6b11eae177..591ac160c8cb 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -158,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -92502,7 +94718,7 @@ index 7e6b11eae177..591ac160c8cb 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 7eaab676cfbc..483f18116d82 100644
+index edca3916c141..483f18116d82 100644
--- third_party/libwebrtc/rtc_base/socket_gn/moz.build
+++ third_party/libwebrtc/rtc_base/socket_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -92526,7 +94742,7 @@ index 7eaab676cfbc..483f18116d82 100644
FINAL_LIBRARY = "xul"
-@@ -43,183 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -92636,6 +94852,10 @@ index 7eaab676cfbc..483f18116d82 100644
- 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
@@ -92717,7 +94937,7 @@ index 7eaab676cfbc..483f18116d82 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 36a1cf9d6a34..b2c9e653415f 100644
+index 942e81926f06..b2c9e653415f 100644
--- third_party/libwebrtc/rtc_base/socket_server_gn/moz.build
+++ third_party/libwebrtc/rtc_base/socket_server_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -92741,7 +94961,7 @@ index 36a1cf9d6a34..b2c9e653415f 100644
FINAL_LIBRARY = "xul"
-@@ -39,116 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -92847,6 +95067,10 @@ index 36a1cf9d6a34..b2c9e653415f 100644
- 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
@@ -92859,7 +95083,7 @@ index 36a1cf9d6a34..b2c9e653415f 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -158,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -92912,7 +95136,7 @@ index 36a1cf9d6a34..b2c9e653415f 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 6038eb754953..61f586516d9a 100644
+index 75ac6a6be25d..61f586516d9a 100644
--- third_party/libwebrtc/rtc_base/ssl_adapter_gn/moz.build
+++ third_party/libwebrtc/rtc_base/ssl_adapter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -92936,7 +95160,7 @@ index 6038eb754953..61f586516d9a 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -93030,6 +95254,10 @@ index 6038eb754953..61f586516d9a 100644
- 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
@@ -93042,7 +95270,7 @@ index 6038eb754953..61f586516d9a 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -93095,7 +95323,7 @@ index 6038eb754953..61f586516d9a 100644
-
Library("ssl_adapter_gn")
diff --git third_party/libwebrtc/rtc_base/ssl_gn/moz.build third_party/libwebrtc/rtc_base/ssl_gn/moz.build
-index 588493046811..75f5872592d6 100644
+index e3472674ceed..75f5872592d6 100644
--- third_party/libwebrtc/rtc_base/ssl_gn/moz.build
+++ third_party/libwebrtc/rtc_base/ssl_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -93119,7 +95347,7 @@ index 588493046811..75f5872592d6 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -93213,6 +95441,10 @@ index 588493046811..75f5872592d6 100644
- 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
@@ -93225,7 +95457,7 @@ index 588493046811..75f5872592d6 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -93278,7 +95510,7 @@ index 588493046811..75f5872592d6 100644
-
Library("ssl_gn")
diff --git third_party/libwebrtc/rtc_base/stringutils_gn/moz.build third_party/libwebrtc/rtc_base/stringutils_gn/moz.build
-index 043cf1267826..5c8050faccb3 100644
+index 3a9379a6bc47..5c8050faccb3 100644
--- third_party/libwebrtc/rtc_base/stringutils_gn/moz.build
+++ third_party/libwebrtc/rtc_base/stringutils_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -93302,7 +95534,7 @@ index 043cf1267826..5c8050faccb3 100644
FINAL_LIBRARY = "xul"
-@@ -47,175 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -47,179 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -93404,6 +95636,10 @@ index 043cf1267826..5c8050faccb3 100644
- 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
@@ -93485,7 +95721,7 @@ index 043cf1267826..5c8050faccb3 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 1482128adf71..1d1169bf8b1c 100644
+index f095e4d464fa..1d1169bf8b1c 100644
--- third_party/libwebrtc/rtc_base/strong_alias_gn/moz.build
+++ third_party/libwebrtc/rtc_base/strong_alias_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -93509,7 +95745,7 @@ index 1482128adf71..1d1169bf8b1c 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -93603,6 +95839,10 @@ index 1482128adf71..1d1169bf8b1c 100644
- 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
@@ -93615,7 +95855,7 @@ index 1482128adf71..1d1169bf8b1c 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -93668,7 +95908,7 @@ index 1482128adf71..1d1169bf8b1c 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 02df0bc1e9d0..f8f4f5f791c7 100644
+index 3fc5f7cf3ddc..f8f4f5f791c7 100644
--- third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build
+++ third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -93692,7 +95932,7 @@ index 02df0bc1e9d0..f8f4f5f791c7 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -93790,6 +96030,10 @@ index 02df0bc1e9d0..f8f4f5f791c7 100644
- 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
@@ -93802,7 +96046,7 @@ index 02df0bc1e9d0..f8f4f5f791c7 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -93855,7 +96099,7 @@ index 02df0bc1e9d0..f8f4f5f791c7 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 c3a4d84e0118..0b02cb2f3fe4 100644
+index ba727290af65..0b02cb2f3fe4 100644
--- third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build
+++ third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -93879,7 +96123,7 @@ index c3a4d84e0118..0b02cb2f3fe4 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -93977,6 +96221,10 @@ index c3a4d84e0118..0b02cb2f3fe4 100644
- 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
@@ -93989,7 +96237,7 @@ index c3a4d84e0118..0b02cb2f3fe4 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -94042,7 +96290,7 @@ index c3a4d84e0118..0b02cb2f3fe4 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 6dbc32707222..ca17fd6c0ab5 100644
+index 570234e8e2b0..ca17fd6c0ab5 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -94066,7 +96314,7 @@ index 6dbc32707222..ca17fd6c0ab5 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -94168,6 +96416,10 @@ index 6dbc32707222..ca17fd6c0ab5 100644
- 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
@@ -94249,7 +96501,7 @@ index 6dbc32707222..ca17fd6c0ab5 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 abbfb7d88f0c..197cc9f03ae6 100644
+index 662dc4ca7ae1..197cc9f03ae6 100644
--- third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build
+++ third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -94273,7 +96525,7 @@ index abbfb7d88f0c..197cc9f03ae6 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -94371,6 +96623,10 @@ index abbfb7d88f0c..197cc9f03ae6 100644
- 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
@@ -94452,7 +96708,7 @@ index abbfb7d88f0c..197cc9f03ae6 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 431b04bd3e87..32deffc163e4 100644
+index 45cb36beecd3..32deffc163e4 100644
--- third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build
+++ third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -94476,7 +96732,7 @@ index 431b04bd3e87..32deffc163e4 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -94578,6 +96834,10 @@ index 431b04bd3e87..32deffc163e4 100644
- 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
@@ -94659,7 +96919,7 @@ index 431b04bd3e87..32deffc163e4 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 94147d238446..a2e813fa095d 100644
+index c3db5cb3ded8..a2e813fa095d 100644
--- third_party/libwebrtc/rtc_base/system/arch_gn/moz.build
+++ third_party/libwebrtc/rtc_base/system/arch_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -94683,7 +96943,7 @@ index 94147d238446..a2e813fa095d 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -94777,6 +97037,10 @@ index 94147d238446..a2e813fa095d 100644
- 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
@@ -94789,7 +97053,7 @@ index 94147d238446..a2e813fa095d 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -95000,7 +97264,7 @@ index 558f19324d33..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 872970190e43..f7eba12a6be4 100644
+index c5dee909a263..f7eba12a6be4 100644
--- third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build
+++ third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -95024,7 +97288,7 @@ index 872970190e43..f7eba12a6be4 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -95126,6 +97390,10 @@ index 872970190e43..f7eba12a6be4 100644
- 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
@@ -95280,7 +97548,7 @@ index ebb3552a5504..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 588adc9c5f98..b48a3638292c 100644
+index 5d57390d5397..b48a3638292c 100644
--- third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build
+++ third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -95304,7 +97572,7 @@ index 588adc9c5f98..b48a3638292c 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -95398,6 +97666,10 @@ index 588adc9c5f98..b48a3638292c 100644
- 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
@@ -95410,7 +97682,7 @@ index 588adc9c5f98..b48a3638292c 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -95463,7 +97735,7 @@ index 588adc9c5f98..b48a3638292c 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 3cd97d6312ac..4a835c05d986 100644
+index a7d22c9d0e49..4a835c05d986 100644
--- third_party/libwebrtc/rtc_base/system/inline_gn/moz.build
+++ third_party/libwebrtc/rtc_base/system/inline_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -95487,7 +97759,7 @@ index 3cd97d6312ac..4a835c05d986 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -95581,6 +97853,10 @@ index 3cd97d6312ac..4a835c05d986 100644
- 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
@@ -95593,7 +97869,7 @@ index 3cd97d6312ac..4a835c05d986 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -95646,7 +97922,7 @@ index 3cd97d6312ac..4a835c05d986 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 e7146144ea23..c2c0856a03a4 100644
+index 790097730f5b..c2c0856a03a4 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -95670,7 +97946,7 @@ index e7146144ea23..c2c0856a03a4 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -95764,6 +98040,10 @@ index e7146144ea23..c2c0856a03a4 100644
- 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
@@ -95776,7 +98056,7 @@ index e7146144ea23..c2c0856a03a4 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -95829,7 +98109,7 @@ index e7146144ea23..c2c0856a03a4 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 3b024cb8e16b..c60c915ab864 100644
+index 5fc704343e06..c60c915ab864 100644
--- third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build
+++ third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -95853,7 +98133,7 @@ index 3b024cb8e16b..c60c915ab864 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -95947,6 +98227,10 @@ index 3b024cb8e16b..c60c915ab864 100644
- 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
@@ -95959,7 +98243,7 @@ index 3b024cb8e16b..c60c915ab864 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -96012,7 +98296,7 @@ index 3b024cb8e16b..c60c915ab864 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 8d92ad4ae35b..55dff7ae76d6 100644
+index f7b9e968bc50..55dff7ae76d6 100644
--- third_party/libwebrtc/rtc_base/system/unused_gn/moz.build
+++ third_party/libwebrtc/rtc_base/system/unused_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -96036,7 +98320,7 @@ index 8d92ad4ae35b..55dff7ae76d6 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -96130,6 +98414,10 @@ index 8d92ad4ae35b..55dff7ae76d6 100644
- 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
@@ -96142,7 +98430,7 @@ index 8d92ad4ae35b..55dff7ae76d6 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -96195,7 +98483,7 @@ index 8d92ad4ae35b..55dff7ae76d6 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 7afddc34d91f..4a52fef8ab31 100644
+index 5fcc0bfdb857..4a52fef8ab31 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -96219,7 +98507,7 @@ index 7afddc34d91f..4a52fef8ab31 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -96313,6 +98601,10 @@ index 7afddc34d91f..4a52fef8ab31 100644
- 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
@@ -96325,7 +98617,7 @@ index 7afddc34d91f..4a52fef8ab31 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -96378,7 +98670,7 @@ index 7afddc34d91f..4a52fef8ab31 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 a08d15db631d..e4e1313c11ac 100644
+index 7cf1e2075a0f..e4e1313c11ac 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -96402,7 +98694,7 @@ index a08d15db631d..e4e1313c11ac 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -96515,6 +98807,10 @@ index a08d15db631d..e4e1313c11ac 100644
- 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
@@ -96596,7 +98892,7 @@ index a08d15db631d..e4e1313c11ac 100644
Library("repeating_task_gn")
diff --git third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build
-index 9066404bc9d4..17a7e7e1fd02 100644
+index 6450a0f93d9c..17a7e7e1fd02 100644
--- third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build
+++ third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -96620,7 +98916,7 @@ index 9066404bc9d4..17a7e7e1fd02 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -96722,6 +99018,10 @@ index 9066404bc9d4..17a7e7e1fd02 100644
- 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
@@ -96803,7 +99103,7 @@ index 9066404bc9d4..17a7e7e1fd02 100644
Library("base64_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 160751ed9c41..0ffbd2fcb7c5 100644
+index c49d14388071..0ffbd2fcb7c5 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -96827,7 +99127,7 @@ index 160751ed9c41..0ffbd2fcb7c5 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -96925,6 +99225,10 @@ index 160751ed9c41..0ffbd2fcb7c5 100644
- 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
@@ -97006,7 +99310,7 @@ index 160751ed9c41..0ffbd2fcb7c5 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 6568873a7ebf..f9660eb3f4bf 100644
+index e7736326f899..f9660eb3f4bf 100644
--- third_party/libwebrtc/rtc_base/threading_gn/moz.build
+++ third_party/libwebrtc/rtc_base/threading_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -97030,7 +99334,7 @@ index 6568873a7ebf..f9660eb3f4bf 100644
FINAL_LIBRARY = "xul"
-@@ -46,199 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -46,203 +55,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -97156,6 +99460,10 @@ index 6568873a7ebf..f9660eb3f4bf 100644
- 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
@@ -97237,7 +99545,7 @@ index 6568873a7ebf..f9660eb3f4bf 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 0c8184e3775b..b0b2d2ee8d11 100644
+index d0e0c964838e..b0b2d2ee8d11 100644
--- third_party/libwebrtc/rtc_base/timeutils_gn/moz.build
+++ third_party/libwebrtc/rtc_base/timeutils_gn/moz.build
@@ -12,12 +12,21 @@ AllowCompilerWarnings()
@@ -97262,7 +99570,7 @@ index 0c8184e3775b..b0b2d2ee8d11 100644
FINAL_LIBRARY = "xul"
-@@ -45,182 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -45,186 +54,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -97371,6 +99679,10 @@ index 0c8184e3775b..b0b2d2ee8d11 100644
- 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
@@ -97452,7 +99764,7 @@ index 0c8184e3775b..b0b2d2ee8d11 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 38efb9bc482c..3eaba3fb643a 100644
+index 53e285beefd0..3eaba3fb643a 100644
--- third_party/libwebrtc/rtc_base/type_traits_gn/moz.build
+++ third_party/libwebrtc/rtc_base/type_traits_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -97476,7 +99788,7 @@ index 38efb9bc482c..3eaba3fb643a 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -97570,6 +99882,10 @@ index 38efb9bc482c..3eaba3fb643a 100644
- 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
@@ -97582,7 +99898,7 @@ index 38efb9bc482c..3eaba3fb643a 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -97635,7 +99951,7 @@ index 38efb9bc482c..3eaba3fb643a 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 7b5ecf6a0ced..8adce8dc7f84 100644
+index 20c6f058f674..8adce8dc7f84 100644
--- third_party/libwebrtc/rtc_base/unique_id_generator_gn/moz.build
+++ third_party/libwebrtc/rtc_base/unique_id_generator_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -97659,7 +99975,7 @@ index 7b5ecf6a0ced..8adce8dc7f84 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -97753,6 +100069,10 @@ index 7b5ecf6a0ced..8adce8dc7f84 100644
- 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
@@ -97765,7 +100085,7 @@ index 7b5ecf6a0ced..8adce8dc7f84 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -97818,7 +100138,7 @@ index 7b5ecf6a0ced..8adce8dc7f84 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 d08129d5efdc..694cd6886a8f 100644
+index 8a5700f89120..694cd6886a8f 100644
--- third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build
+++ third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -97842,7 +100162,7 @@ index d08129d5efdc..694cd6886a8f 100644
FINAL_LIBRARY = "xul"
-@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,112 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -97940,6 +100260,10 @@ index d08129d5efdc..694cd6886a8f 100644
- 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
@@ -97952,7 +100276,7 @@ index d08129d5efdc..694cd6886a8f 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -154,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -98005,7 +100329,7 @@ index d08129d5efdc..694cd6886a8f 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 7cdfa4215e74..44308d06766c 100644
+index 037497b88501..44308d06766c 100644
--- third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build
+++ third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -98029,7 +100353,7 @@ index 7cdfa4215e74..44308d06766c 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -98131,6 +100455,10 @@ index 7cdfa4215e74..44308d06766c 100644
- 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
@@ -98674,7 +101002,7 @@ index 0c72f4850db5..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 6e9d4c6f26bc..8364eaec6364 100644
+index 6571d6610000..8364eaec6364 100644
--- third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build
+++ third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -98698,7 +101026,7 @@ index 6e9d4c6f26bc..8364eaec6364 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -98800,6 +101128,10 @@ index 6e9d4c6f26bc..8364eaec6364 100644
- 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
@@ -99203,7 +101535,7 @@ index f705e220de43..000000000000
-
-Library("videoframebuffer_objc_gn")
diff --git third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build
-index 121fdcf9ba99..6bd1fd6680b8 100644
+index 12ee5d255fe2..6bd1fd6680b8 100644
--- third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build
+++ third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -99227,7 +101559,7 @@ index 121fdcf9ba99..6bd1fd6680b8 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -99329,6 +101661,10 @@ index 121fdcf9ba99..6bd1fd6680b8 100644
- 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
@@ -99410,7 +101746,7 @@ index 121fdcf9ba99..6bd1fd6680b8 100644
Library("denormal_disabler_gn")
diff --git third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build
-index af17d92bd546..a701c73887a2 100644
+index 2c548ba00fb6..a701c73887a2 100644
--- third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build
+++ third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -99434,7 +101770,7 @@ index af17d92bd546..a701c73887a2 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -99543,6 +101879,10 @@ index af17d92bd546..a701c73887a2 100644
- 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
@@ -99624,7 +101964,7 @@ index af17d92bd546..a701c73887a2 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 5967d9b1a6d2..e2880acbca11 100644
+index 57f648c68c3e..e2880acbca11 100644
--- third_party/libwebrtc/system_wrappers/metrics_gn/moz.build
+++ third_party/libwebrtc/system_wrappers/metrics_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -99648,7 +101988,7 @@ index 5967d9b1a6d2..e2880acbca11 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -99750,6 +102090,10 @@ index 5967d9b1a6d2..e2880acbca11 100644
- 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
@@ -99831,7 +102175,7 @@ index 5967d9b1a6d2..e2880acbca11 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 ac84bace6eb9..ed99cf26c467 100644
+index 315dc3c5a19f..ed99cf26c467 100644
--- third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build
+++ third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -99855,7 +102199,7 @@ index ac84bace6eb9..ed99cf26c467 100644
FINAL_LIBRARY = "xul"
-@@ -47,196 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -47,200 +56,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -99978,6 +102322,10 @@ index ac84bace6eb9..ed99cf26c467 100644
- 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
@@ -100059,7 +102407,7 @@ index ac84bace6eb9..ed99cf26c467 100644
Library("system_wrappers_gn")
diff --git third_party/libwebrtc/test/network/simulated_network_gn/moz.build third_party/libwebrtc/test/network/simulated_network_gn/moz.build
-index a2f3761b98c9..40a957d79e39 100644
+index eef00c758907..40a957d79e39 100644
--- third_party/libwebrtc/test/network/simulated_network_gn/moz.build
+++ third_party/libwebrtc/test/network/simulated_network_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -100083,7 +102431,7 @@ index a2f3761b98c9..40a957d79e39 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -100185,6 +102533,10 @@ index a2f3761b98c9..40a957d79e39 100644
- 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
@@ -100266,7 +102618,7 @@ index a2f3761b98c9..40a957d79e39 100644
Library("simulated_network_gn")
diff --git third_party/libwebrtc/test/rtp_test_utils_gn/moz.build third_party/libwebrtc/test/rtp_test_utils_gn/moz.build
-index fc88c173de0d..647a18cc18ac 100644
+index 8ba53a95692c..647a18cc18ac 100644
--- third_party/libwebrtc/test/rtp_test_utils_gn/moz.build
+++ third_party/libwebrtc/test/rtp_test_utils_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -100290,7 +102642,7 @@ index fc88c173de0d..647a18cc18ac 100644
FINAL_LIBRARY = "xul"
-@@ -39,120 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,124 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -100400,6 +102752,10 @@ index fc88c173de0d..647a18cc18ac 100644
- 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
@@ -100412,7 +102768,7 @@ index fc88c173de0d..647a18cc18ac 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -162,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -166,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -100465,7 +102821,7 @@ index fc88c173de0d..647a18cc18ac 100644
-
Library("rtp_test_utils_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 0da83a9219f4..97b58e494521 100644
+index d98bce783d99..8f144a997544 100644
--- third_party/libwebrtc/third_party/crc32c/crc32c_arm64_gn/moz.build
+++ third_party/libwebrtc/third_party/crc32c/crc32c_arm64_gn/moz.build
@@ -14,6 +14,15 @@ DEFINES["CRC32C_TESTS_BUILT_WITH_GLOG"] = "0"
@@ -100484,7 +102840,7 @@ index 0da83a9219f4..97b58e494521 100644
FINAL_LIBRARY = "xul"
-@@ -41,102 +50,19 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -41,107 +50,23 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -100576,6 +102932,11 @@ index 0da83a9219f4..97b58e494521 100644
-
- DEFINES["HAVE_MM_PREFETCH"] = "0"
-
+ if CONFIG["TARGET_CPU"] == "loongarch64":
+
+ DEFINES["HAVE_MM_PREFETCH"] = "0"
+- DEFINES["_GNU_SOURCE"] = True
+
if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["HAVE_MM_PREFETCH"] = "0"
@@ -100588,7 +102949,7 @@ index 0da83a9219f4..97b58e494521 100644
if CONFIG["TARGET_CPU"] == "ppc64":
-@@ -148,66 +74,18 @@ if CONFIG["TARGET_CPU"] == "riscv64":
+@@ -153,66 +78,18 @@ if CONFIG["TARGET_CPU"] == "riscv64":
if CONFIG["TARGET_CPU"] == "x86":
@@ -100661,7 +103022,7 @@ index 0da83a9219f4..97b58e494521 100644
Library("crc32c_arm64_gn")
diff --git third_party/libwebrtc/third_party/crc32c/crc32c_gn/moz.build third_party/libwebrtc/third_party/crc32c/crc32c_gn/moz.build
-index 02bd56fbd454..4be91cd5ce24 100644
+index 54cb56e40a71..ea59cd60aa8b 100644
--- third_party/libwebrtc/third_party/crc32c/crc32c_gn/moz.build
+++ third_party/libwebrtc/third_party/crc32c/crc32c_gn/moz.build
@@ -14,6 +14,15 @@ DEFINES["CRC32C_TESTS_BUILT_WITH_GLOG"] = "0"
@@ -100680,7 +103041,7 @@ index 02bd56fbd454..4be91cd5ce24 100644
FINAL_LIBRARY = "xul"
-@@ -42,102 +51,19 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -42,107 +51,23 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -100772,6 +103133,11 @@ index 02bd56fbd454..4be91cd5ce24 100644
-
- DEFINES["HAVE_MM_PREFETCH"] = "0"
-
+ if CONFIG["TARGET_CPU"] == "loongarch64":
+
+ DEFINES["HAVE_MM_PREFETCH"] = "0"
+- DEFINES["_GNU_SOURCE"] = True
+
if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["HAVE_MM_PREFETCH"] = "0"
@@ -100784,7 +103150,7 @@ index 02bd56fbd454..4be91cd5ce24 100644
if CONFIG["TARGET_CPU"] == "ppc64":
-@@ -149,66 +75,18 @@ if CONFIG["TARGET_CPU"] == "riscv64":
+@@ -154,66 +79,18 @@ if CONFIG["TARGET_CPU"] == "riscv64":
if CONFIG["TARGET_CPU"] == "x86":
@@ -100857,7 +103223,7 @@ index 02bd56fbd454..4be91cd5ce24 100644
Library("crc32c_gn")
diff --git third_party/libwebrtc/third_party/crc32c/crc32c_internal_headers_gn/moz.build third_party/libwebrtc/third_party/crc32c/crc32c_internal_headers_gn/moz.build
-index 86c319ca059d..f7a92bd53658 100644
+index 80580f19b47c..f7a92bd53658 100644
--- third_party/libwebrtc/third_party/crc32c/crc32c_internal_headers_gn/moz.build
+++ third_party/libwebrtc/third_party/crc32c/crc32c_internal_headers_gn/moz.build
@@ -9,6 +9,14 @@
@@ -100875,7 +103241,7 @@ index 86c319ca059d..f7a92bd53658 100644
FINAL_LIBRARY = "xul"
-@@ -29,123 +37,10 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -29,127 +37,10 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -100944,6 +103310,10 @@ index 86c319ca059d..f7a92bd53658 100644
- DEFINES["_WINDOWS"] = True
- DEFINES["__STD_C"] = True
-
+-if CONFIG["TARGET_CPU"] == "loongarch64":
+-
+- DEFINES["_GNU_SOURCE"] = True
+-
-if CONFIG["TARGET_CPU"] == "mips32":
-
- DEFINES["_GNU_SOURCE"] = True
@@ -101001,7 +103371,7 @@ index 86c319ca059d..f7a92bd53658 100644
-
Library("crc32c_internal_headers_gn")
diff --git third_party/libwebrtc/third_party/crc32c/crc32c_sse42_gn/moz.build third_party/libwebrtc/third_party/crc32c/crc32c_sse42_gn/moz.build
-index 6d124a37625c..603361341c04 100644
+index d06b3dade25e..4208f752cbc2 100644
--- third_party/libwebrtc/third_party/crc32c/crc32c_sse42_gn/moz.build
+++ third_party/libwebrtc/third_party/crc32c/crc32c_sse42_gn/moz.build
@@ -14,6 +14,15 @@ DEFINES["CRC32C_TESTS_BUILT_WITH_GLOG"] = "0"
@@ -101020,7 +103390,7 @@ index 6d124a37625c..603361341c04 100644
FINAL_LIBRARY = "xul"
-@@ -41,102 +50,19 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -41,107 +50,23 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -101112,6 +103482,11 @@ index 6d124a37625c..603361341c04 100644
-
- DEFINES["HAVE_MM_PREFETCH"] = "0"
-
+ if CONFIG["TARGET_CPU"] == "loongarch64":
+
+ DEFINES["HAVE_MM_PREFETCH"] = "0"
+- DEFINES["_GNU_SOURCE"] = True
+
if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["HAVE_MM_PREFETCH"] = "0"
@@ -101124,7 +103499,7 @@ index 6d124a37625c..603361341c04 100644
if CONFIG["TARGET_CPU"] == "ppc64":
-@@ -148,66 +74,18 @@ if CONFIG["TARGET_CPU"] == "riscv64":
+@@ -153,66 +78,18 @@ if CONFIG["TARGET_CPU"] == "riscv64":
if CONFIG["TARGET_CPU"] == "x86":
@@ -101197,7 +103572,7 @@ index 6d124a37625c..603361341c04 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 b7e4f6fe3f5d..05dfadacfca8 100644
+index 3773aea3b30c..05dfadacfca8 100644
--- third_party/libwebrtc/third_party/dav1d/dav1d_gn/moz.build
+++ third_party/libwebrtc/third_party/dav1d/dav1d_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -101221,7 +103596,7 @@ index b7e4f6fe3f5d..05dfadacfca8 100644
FINAL_LIBRARY = "xul"
-@@ -41,104 +50,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -41,108 +50,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -101315,6 +103690,10 @@ index b7e4f6fe3f5d..05dfadacfca8 100644
- 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
@@ -101327,7 +103706,7 @@ index b7e4f6fe3f5d..05dfadacfca8 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -148,50 +70,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -152,50 +70,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -101476,7 +103855,7 @@ index 5334af6f6d3e..8ac69036fd19 100644
DEFINES["USE_X11"] = "1"
diff --git third_party/libwebrtc/third_party/libaom/libaom_gn/moz.build third_party/libwebrtc/third_party/libaom/libaom_gn/moz.build
-index a05efa9c4a68..93fd56af47e5 100644
+index 8a8fc71f17af..93fd56af47e5 100644
--- third_party/libwebrtc/third_party/libaom/libaom_gn/moz.build
+++ third_party/libwebrtc/third_party/libaom/libaom_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -101500,7 +103879,7 @@ index a05efa9c4a68..93fd56af47e5 100644
FINAL_LIBRARY = "xul"
-@@ -39,104 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,108 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -101594,6 +103973,10 @@ index a05efa9c4a68..93fd56af47e5 100644
- 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
@@ -101606,7 +103989,7 @@ index a05efa9c4a68..93fd56af47e5 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -146,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -150,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -101707,7 +104090,7 @@ index 22ab191e5227..a27cb940a7c6 100644
DEFINES["USE_X11"] = "1"
diff --git third_party/libwebrtc/third_party/libyuv/libyuv_gn/moz.build third_party/libwebrtc/third_party/libyuv/libyuv_gn/moz.build
-index 0684aa253592..0536f67f8865 100644
+index 4a72444177d6..0536f67f8865 100644
--- third_party/libwebrtc/third_party/libyuv/libyuv_gn/moz.build
+++ third_party/libwebrtc/third_party/libyuv/libyuv_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -101731,7 +104114,7 @@ index 0684aa253592..0536f67f8865 100644
FINAL_LIBRARY = "xul"
-@@ -41,104 +50,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -41,108 +50,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -101825,6 +104208,10 @@ index 0684aa253592..0536f67f8865 100644
- 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
@@ -101837,7 +104224,7 @@ index 0684aa253592..0536f67f8865 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -148,50 +70,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -152,50 +70,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -101890,7 +104277,7 @@ index 0684aa253592..0536f67f8865 100644
-
Library("yuv_gn")
diff --git third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build
-index 836a04a7c723..4adcdaca807c 100644
+index dc7c06ffc21f..1617e9c2e1bb 100644
--- third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build
+++ third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build
@@ -9,6 +9,14 @@
@@ -101908,7 +104295,7 @@ index 836a04a7c723..4adcdaca807c 100644
FINAL_LIBRARY = "xul"
-@@ -33,87 +41,15 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -33,92 +41,19 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -101985,6 +104372,11 @@ index 836a04a7c723..4adcdaca807c 100644
- ]
+ DEFINES["_DEBUG"] = True
+ if CONFIG["TARGET_CPU"] == "loongarch64":
+
+ DEFINES["PFFFT_SIMD_DISABLE"] = True
+- DEFINES["_GNU_SOURCE"] = True
+
if CONFIG["TARGET_CPU"] == "mips32":
DEFINES["PFFFT_SIMD_DISABLE"] = True
@@ -101997,7 +104389,7 @@ index 836a04a7c723..4adcdaca807c 100644
if CONFIG["TARGET_CPU"] == "ppc64":
-@@ -123,60 +59,14 @@ if CONFIG["TARGET_CPU"] == "riscv64":
+@@ -128,60 +63,14 @@ if CONFIG["TARGET_CPU"] == "riscv64":
DEFINES["PFFFT_SIMD_DISABLE"] = True
@@ -102111,7 +104503,7 @@ index 7ee6d71247e1..e5048d9d598c 100644
DEFINES["USE_X11"] = "1"
diff --git third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build
-index b10b4c330ef8..3703f7ef3366 100644
+index 2dfd79a68cf7..3703f7ef3366 100644
--- third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build
+++ third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build
@@ -9,6 +9,14 @@
@@ -102129,7 +104521,7 @@ index b10b4c330ef8..3703f7ef3366 100644
FINAL_LIBRARY = "xul"
-@@ -33,139 +41,16 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -33,143 +41,16 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -102204,6 +104596,10 @@ index b10b4c330ef8..3703f7ef3366 100644
- "-mfpu=neon"
- ]
-
+-if CONFIG["TARGET_CPU"] == "loongarch64":
+-
+- DEFINES["_GNU_SOURCE"] = True
+-
-if CONFIG["TARGET_CPU"] == "mips32":
-
- DEFINES["_GNU_SOURCE"] = True
@@ -102243,15 +104639,13 @@ index b10b4c330ef8..3703f7ef3366 100644
- ]
-
-if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86":
-+if CONFIG["TARGET_CPU"] == "x86":
-
- CXXFLAGS += [
- "-msse2"
- ]
-
+-
+- CXXFLAGS += [
+- "-msse2"
+- ]
+-
-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
-+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
-
+-
- DEFINES["_GNU_SOURCE"] = True
-
-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
@@ -102259,21 +104653,23 @@ index b10b4c330ef8..3703f7ef3366 100644
- DEFINES["_GNU_SOURCE"] = True
-
-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
--
-- CXXFLAGS += [
-- "-msse2"
-- ]
--
++if CONFIG["TARGET_CPU"] == "x86":
+
+ CXXFLAGS += [
+ "-msse2"
+ ]
+
- DEFINES["_GNU_SOURCE"] = True
-
-if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
--
++if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
+
- DEFINES["_GNU_SOURCE"] = True
+ DEFINES["USE_X11"] = "1"
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 7872540d1534..393215e34c1e 100644
+index 07c16154f97d..393215e34c1e 100644
--- third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build
+++ third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -102297,7 +104693,7 @@ index 7872540d1534..393215e34c1e 100644
FINAL_LIBRARY = "xul"
-@@ -51,187 +60,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -51,191 +60,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -102411,6 +104807,10 @@ index 7872540d1534..393215e34c1e 100644
- 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
@@ -102492,7 +104892,7 @@ index 7872540d1534..393215e34c1e 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 f7222a0442b9..eebc89a69ef7 100644
+index b48b001014bc..eebc89a69ef7 100644
--- third_party/libwebrtc/video/config/encoder_config_gn/moz.build
+++ third_party/libwebrtc/video/config/encoder_config_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -102516,7 +104916,7 @@ index f7222a0442b9..eebc89a69ef7 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -102625,6 +105025,10 @@ index f7222a0442b9..eebc89a69ef7 100644
- 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
@@ -102706,7 +105110,7 @@ index f7222a0442b9..eebc89a69ef7 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 314bbfae9c23..02e9a43bc366 100644
+index b3f38848dde8..02e9a43bc366 100644
--- third_party/libwebrtc/video/config/streams_config_gn/moz.build
+++ third_party/libwebrtc/video/config/streams_config_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -102730,7 +105134,7 @@ index 314bbfae9c23..02e9a43bc366 100644
FINAL_LIBRARY = "xul"
-@@ -44,187 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -44,191 +53,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -102844,6 +105248,10 @@ index 314bbfae9c23..02e9a43bc366 100644
- 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
@@ -102925,7 +105333,7 @@ index 314bbfae9c23..02e9a43bc366 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 ea767b9d0c5b..670e89595328 100644
+index 6aeed8259081..670e89595328 100644
--- third_party/libwebrtc/video/corruption_detection/corruption_classifier_gn/moz.build
+++ third_party/libwebrtc/video/corruption_detection/corruption_classifier_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -102949,7 +105357,7 @@ index ea767b9d0c5b..670e89595328 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -103058,6 +105466,10 @@ index ea767b9d0c5b..670e89595328 100644
- 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
@@ -103139,7 +105551,7 @@ index ea767b9d0c5b..670e89595328 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 a7e1e8b5611a..a79ced32f2f1 100644
+index 9e7ad18b2421..a79ced32f2f1 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -103163,7 +105575,7 @@ index a7e1e8b5611a..a79ced32f2f1 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -103272,6 +105684,10 @@ index a7e1e8b5611a..a79ced32f2f1 100644
- 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
@@ -103353,7 +105769,7 @@ index a7e1e8b5611a..a79ced32f2f1 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 ed6bd46f000e..0cfa6950a537 100644
+index 5a1b79701b0b..0cfa6950a537 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -103377,7 +105793,7 @@ index ed6bd46f000e..0cfa6950a537 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -103491,6 +105907,10 @@ index ed6bd46f000e..0cfa6950a537 100644
- 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
@@ -103572,7 +105992,7 @@ index ed6bd46f000e..0cfa6950a537 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 f646a6f79981..2a396481ef05 100644
+index 0e7ce07afba2..2a396481ef05 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -103596,7 +106016,7 @@ index f646a6f79981..2a396481ef05 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -103705,6 +106125,10 @@ index f646a6f79981..2a396481ef05 100644
- 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
@@ -103786,7 +106210,7 @@ index f646a6f79981..2a396481ef05 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 0b1c0347e5a9..6a61f9a394da 100644
+index 99c1fae3146f..6a61f9a394da 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -103810,7 +106234,7 @@ index 0b1c0347e5a9..6a61f9a394da 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -103919,6 +106343,10 @@ index 0b1c0347e5a9..6a61f9a394da 100644
- 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
@@ -104000,7 +106428,7 @@ index 0b1c0347e5a9..6a61f9a394da 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 f384019ab5f0..968541539a49 100644
+index ffcf6099f6c0..968541539a49 100644
--- third_party/libwebrtc/video/corruption_detection/halton_sequence_gn/moz.build
+++ third_party/libwebrtc/video/corruption_detection/halton_sequence_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -104024,7 +106452,7 @@ index f384019ab5f0..968541539a49 100644
FINAL_LIBRARY = "xul"
-@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,179 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -104126,6 +106554,10 @@ index f384019ab5f0..968541539a49 100644
- 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
@@ -104207,7 +106639,7 @@ index f384019ab5f0..968541539a49 100644
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 1e0e61b85b9a..014608d80234 100644
+index d41c0c6b2925..014608d80234 100644
--- third_party/libwebrtc/video/decode_synchronizer_gn/moz.build
+++ third_party/libwebrtc/video/decode_synchronizer_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -104231,7 +106663,7 @@ index 1e0e61b85b9a..014608d80234 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -104344,6 +106776,10 @@ index 1e0e61b85b9a..014608d80234 100644
- 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
@@ -104425,7 +106861,7 @@ index 1e0e61b85b9a..014608d80234 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 c0f6ea86207b..7ed9a69b2f88 100644
+index 5b2a99954cc4..7ed9a69b2f88 100644
--- third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build
+++ third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -104449,7 +106885,7 @@ index c0f6ea86207b..7ed9a69b2f88 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -104562,6 +106998,10 @@ index c0f6ea86207b..7ed9a69b2f88 100644
- 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
@@ -104643,7 +107083,7 @@ index c0f6ea86207b..7ed9a69b2f88 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 703aefc182fe..b07b1298bb9a 100644
+index 6859cfa6b9d4..b07b1298bb9a 100644
--- third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build
+++ third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -104667,7 +107107,7 @@ index 703aefc182fe..b07b1298bb9a 100644
FINAL_LIBRARY = "xul"
-@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,123 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -104776,6 +107216,10 @@ index 703aefc182fe..b07b1298bb9a 100644
- 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
@@ -104788,7 +107232,7 @@ index 703aefc182fe..b07b1298bb9a 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -165,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -104841,7 +107285,7 @@ index 703aefc182fe..b07b1298bb9a 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 6f573eb0d345..c60e05070dc5 100644
+index 8ef09f2eec94..c60e05070dc5 100644
--- third_party/libwebrtc/video/frame_decode_timing_gn/moz.build
+++ third_party/libwebrtc/video/frame_decode_timing_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -104865,7 +107309,7 @@ index 6f573eb0d345..c60e05070dc5 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -104978,6 +107422,10 @@ index 6f573eb0d345..c60e05070dc5 100644
- 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
@@ -105059,7 +107507,7 @@ index 6f573eb0d345..c60e05070dc5 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 f729fb715587..66b7669f9d5f 100644
+index f76bfc61db99..66b7669f9d5f 100644
--- third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build
+++ third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -105083,7 +107531,7 @@ index f729fb715587..66b7669f9d5f 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -105197,6 +107645,10 @@ index f729fb715587..66b7669f9d5f 100644
- 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
@@ -105278,7 +107730,7 @@ index f729fb715587..66b7669f9d5f 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 e28ac4d4fb97..18ffb380392c 100644
+index c4bad706172c..18ffb380392c 100644
--- third_party/libwebrtc/video/frame_dumping_encoder_gn/moz.build
+++ third_party/libwebrtc/video/frame_dumping_encoder_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -105302,7 +107754,7 @@ index e28ac4d4fb97..18ffb380392c 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -105416,6 +107868,10 @@ index e28ac4d4fb97..18ffb380392c 100644
- 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
@@ -105497,7 +107953,7 @@ index e28ac4d4fb97..18ffb380392c 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 3c7c921b7b24..f1c6ded0f367 100644
+index 092bbc95e288..f1c6ded0f367 100644
--- third_party/libwebrtc/video/render/incoming_video_stream_gn/moz.build
+++ third_party/libwebrtc/video/render/incoming_video_stream_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -105521,7 +107977,7 @@ index 3c7c921b7b24..f1c6ded0f367 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -105630,6 +108086,10 @@ index 3c7c921b7b24..f1c6ded0f367 100644
- 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
@@ -105711,7 +108171,7 @@ index 3c7c921b7b24..f1c6ded0f367 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 44fc03ce4873..c1df4e9bd177 100644
+index 39558b4b3e5b..c1df4e9bd177 100644
--- third_party/libwebrtc/video/render/video_render_frames_gn/moz.build
+++ third_party/libwebrtc/video/render/video_render_frames_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -105735,7 +108195,7 @@ index 44fc03ce4873..c1df4e9bd177 100644
FINAL_LIBRARY = "xul"
-@@ -43,182 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -105844,6 +108304,10 @@ index 44fc03ce4873..c1df4e9bd177 100644
- 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
@@ -105925,7 +108389,7 @@ index 44fc03ce4873..c1df4e9bd177 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 66ecc9990cf9..7dc1d04b59ba 100644
+index f4f66565f437..7dc1d04b59ba 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -105949,7 +108413,7 @@ index 66ecc9990cf9..7dc1d04b59ba 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -106062,6 +108526,10 @@ index 66ecc9990cf9..7dc1d04b59ba 100644
- 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
@@ -106143,7 +108611,7 @@ index 66ecc9990cf9..7dc1d04b59ba 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 bb2500407d5c..95d109725a60 100644
+index 29ff4759b500..95d109725a60 100644
--- third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build
+++ third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -106167,7 +108635,7 @@ index bb2500407d5c..95d109725a60 100644
FINAL_LIBRARY = "xul"
-@@ -43,171 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,175 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -106265,6 +108733,10 @@ index bb2500407d5c..95d109725a60 100644
- 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
@@ -106346,7 +108818,7 @@ index bb2500407d5c..95d109725a60 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 f975c867315a..bb85d9269feb 100644
+index edf7a88ed789..bb85d9269feb 100644
--- third_party/libwebrtc/video/video_gn/moz.build
+++ third_party/libwebrtc/video/video_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -106370,7 +108842,7 @@ index f975c867315a..bb85d9269feb 100644
FINAL_LIBRARY = "xul"
-@@ -62,187 +71,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -62,191 +71,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -106484,6 +108956,10 @@ index f975c867315a..bb85d9269feb 100644
- 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
@@ -106565,7 +109041,7 @@ index f975c867315a..bb85d9269feb 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 c60919935a8b..239678e8ec81 100644
+index d530ed77f21f..239678e8ec81 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
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -106589,7 +109065,7 @@ index c60919935a8b..239678e8ec81 100644
FINAL_LIBRARY = "xul"
-@@ -43,186 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,190 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -106702,6 +109178,10 @@ index c60919935a8b..239678e8ec81 100644
- 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
@@ -106783,7 +109263,7 @@ index c60919935a8b..239678e8ec81 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 9ff1fa1f4224..e2abf01eacce 100644
+index c53b093328e9..e2abf01eacce 100644
--- third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build
+++ third_party/libwebrtc/video/video_stream_buffer_controller_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -106807,7 +109287,7 @@ index 9ff1fa1f4224..e2abf01eacce 100644
FINAL_LIBRARY = "xul"
-@@ -43,187 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -43,191 +52,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -106921,6 +109401,10 @@ index 9ff1fa1f4224..e2abf01eacce 100644
- 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
@@ -107002,7 +109486,7 @@ index 9ff1fa1f4224..e2abf01eacce 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 7719614925dc..e988fef7d80f 100644
+index f971adeadf17..e988fef7d80f 100644
--- third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build
+++ third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -107026,7 +109510,7 @@ index 7719614925dc..e988fef7d80f 100644
FINAL_LIBRARY = "xul"
-@@ -51,187 +60,32 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -51,191 +60,32 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -107140,6 +109624,10 @@ index 7719614925dc..e988fef7d80f 100644
- 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
@@ -107221,7 +109709,7 @@ index 7719614925dc..e988fef7d80f 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 1159fe744e19..30518fdfa2be 100644
+index 5d1297f9aa4e..30518fdfa2be 100644
--- third_party/libwebrtc/video/video_stream_encoder_interface_gn/moz.build
+++ third_party/libwebrtc/video/video_stream_encoder_interface_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -107245,7 +109733,7 @@ index 1159fe744e19..30518fdfa2be 100644
FINAL_LIBRARY = "xul"
-@@ -39,115 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,119 +48,17 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -107350,6 +109838,10 @@ index 1159fe744e19..30518fdfa2be 100644
- 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
@@ -107362,7 +109854,7 @@ index 1159fe744e19..30518fdfa2be 100644
if CONFIG["TARGET_CPU"] == "x86":
-@@ -157,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
+@@ -161,50 +68,8 @@ if CONFIG["TARGET_CPU"] == "x86_64":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -107415,7 +109907,7 @@ index 1159fe744e19..30518fdfa2be 100644
-
Library("video_stream_encoder_interface_gn")
diff --git third_party/libwebrtc/webrtc_gn/moz.build third_party/libwebrtc/webrtc_gn/moz.build
-index 2fa347eccef5..0fbfe6858f2a 100644
+index affa5998b64e..0fbfe6858f2a 100644
--- third_party/libwebrtc/webrtc_gn/moz.build
+++ third_party/libwebrtc/webrtc_gn/moz.build
@@ -12,11 +12,20 @@ AllowCompilerWarnings()
@@ -107439,7 +109931,7 @@ index 2fa347eccef5..0fbfe6858f2a 100644
FINAL_LIBRARY = "xul"
-@@ -39,140 +48,23 @@ if not CONFIG["MOZ_DEBUG"]:
+@@ -39,144 +48,23 @@ if not CONFIG["MOZ_DEBUG"]:
if CONFIG["MOZ_DEBUG"] == "1":
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
@@ -107572,6 +110064,10 @@ index 2fa347eccef5..0fbfe6858f2a 100644
- 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
+ LOCAL_INCLUDES += [
+ "/third_party/pipewire/"
+ ]
@@ -107585,7 +110081,7 @@ index 2fa347eccef5..0fbfe6858f2a 100644
LOCAL_INCLUDES += [
"/third_party/pipewire/"
-@@ -181,7 +73,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
+@@ -185,7 +73,6 @@ if CONFIG["TARGET_CPU"] == "mips32":
if CONFIG["TARGET_CPU"] == "mips64":
DEFINES["WEBRTC_USE_PIPEWIRE"] = True
@@ -107593,7 +110089,7 @@ index 2fa347eccef5..0fbfe6858f2a 100644
LOCAL_INCLUDES += [
"/third_party/pipewire/"
-@@ -190,32 +81,22 @@ if CONFIG["TARGET_CPU"] == "mips64":
+@@ -194,32 +81,22 @@ if CONFIG["TARGET_CPU"] == "mips64":
if CONFIG["TARGET_CPU"] == "x86":
DEFINES["WEBRTC_ENABLE_AVX2"] = True
@@ -107636,7 +110132,7 @@ index 2fa347eccef5..0fbfe6858f2a 100644
DEFINES["USE_X11"] = "1"
-@@ -229,46 +110,4 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
+@@ -233,46 +110,4 @@ if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
"Xrender"
]