View | Details | Raw Unified | Return to bug 269092 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/librewolf/Makefile (-3 / +3 lines)
Lines 1-12 Link Here
1
PORTNAME=	librewolf
1
PORTNAME=	librewolf
2
DISTVERSION=	108.0.1-1
2
DISTVERSION=	109.0-1
3
CATEGORIES=	www wayland
3
CATEGORIES=	www wayland
4
MASTER_SITES=	https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/${DISTVERSION}/
4
MASTER_SITES=	https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/${DISTVERSION}/
5
DISTNAME=	${PORTNAME}-${DISTVERSION}.source.
5
DISTNAME=	${PORTNAME}-${DISTVERSION}.source.
6
EXTRACT_SUFX=	tar.gz
6
EXTRACT_SUFX=	tar.gz
7
7
8
PATCH_SITES=	https://gitlab.com/librewolf-community/browser/source/-/raw/${DISTVERSION}/
8
PATCH_SITES=	https://raw.githubusercontent.com/jsm222/unity-menubar/main/
9
PATCHFILES=	patches/unity-menubar.patch?inline=false:-p1
9
PATCHFILES=	unity-menubar.patch:-p1
10
10
11
MAINTAINER=	freebsd@sysctl.cz
11
MAINTAINER=	freebsd@sysctl.cz
12
COMMENT=	Custom version of Firefox, focused on privacy, security and freedom
12
COMMENT=	Custom version of Firefox, focused on privacy, security and freedom
(-)b/www/librewolf/distinfo (-5 / +5 lines)
Lines 1-5 Link Here
1
TIMESTAMP = 1671892824
1
TIMESTAMP = 1675523728
2
SHA256 (librewolf-108.0.1-1.source.tar.gz) = d1978f870ebddbcb71e92da9887e6de99818c4d8045642c46a5b3d2e2b970e81
2
SHA256 (librewolf-109.0-1.source.tar.gz) = c549b7f6e6b407c128578b2c9c59a6ddec7bd79dc1d5563d26b9f21547c133f8
3
SIZE (librewolf-108.0.1-1.source.tar.gz) = 828438372
3
SIZE (librewolf-109.0-1.source.tar.gz) = 820929021
4
SHA256 (patches/unity-menubar.patch?inline=false) = 84c03a4eb5dcc1bb9e2cfc343e0b98bbbc8dc791647747082d3f50ba638de965
4
SHA256 (unity-menubar.patch) = 3320a5387ca513a7b3bb153f1355867781efbfc3a477b46d2b0dbc9a14e38eda
5
SIZE (patches/unity-menubar.patch?inline=false) = 163635
5
SIZE (unity-menubar.patch) = 163559
(-)b/www/librewolf/files/patch-bug847568 (-7 / +3 lines)
Lines 97-109 index b91d9c1..a97e6eb 100755 Link Here
97
 echo If gfx/graphite2/src/files.mk has changed, please make corresponding
97
 echo If gfx/graphite2/src/files.mk has changed, please make corresponding
98
diff --git gfx/harfbuzz/README-mozilla gfx/harfbuzz/README-mozilla
98
diff --git gfx/harfbuzz/README-mozilla gfx/harfbuzz/README-mozilla
99
index 3180257..4587a3b 100644
99
index 3180257..4587a3b 100644
100
--- gfx/harfbuzz/README-mozilla
100
--- /dev/null
101
+++ gfx/harfbuzz/README-mozilla
101
+++ gfx/harfbuzz/README-mozilla.fbsd
102
@@ -21,3 +21,8 @@ from within the gfx/harfbuzz directory.
102
@@ -0,0 +1,4 @@
103
 
104
 If the collection of source files changes, manual updates to moz.build may be
105
 needed as we don't use the upstream makefiles.
106
+
107
+The in-tree copy may be omitted during build by --with-system-harfbuzz.
103
+The in-tree copy may be omitted during build by --with-system-harfbuzz.
108
+Make sure to keep pkg-config version check within toolkit/moz.configure in sync
104
+Make sure to keep pkg-config version check within toolkit/moz.configure in sync
109
+with checkout version or increment latest tag by one if it's not based
105
+with checkout version or increment latest tag by one if it's not based
(-)b/www/librewolf/files/patch-libwebrtc-generated (-6304 / +7264 lines)
Lines 1-8 Link Here
1
commit 3dd423be3774ef9e3e9e9a8f0252a378520918fd
1
commit b3770d8e7f0d6fc220353356066c4c1021f37bde
2
Author: Christoph Moench-Tegeder <cmt@FreeBSD.org>
2
Author: Christoph Moench-Tegeder <cmt@FreeBSD.org>
3
Date:   Sun Dec 4 21:38:16 2022 +0000
4
3
5
    regenerate libwebrtc patch for Firefox 108
4
    regenerate FreeBSD libwebrtc patch for Firefox 109
6
5
7
diff --git third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build
6
diff --git third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build
8
index 8fbfa680375d..ae63fb378f55 100644
7
index 8fbfa680375d..ae63fb378f55 100644
Lines 8583-8588 index 24c1fe3c203d..e9b919471baa 100644 Link Here
8583
-    DEFINES["_GNU_SOURCE"] = True
8582
-    DEFINES["_GNU_SOURCE"] = True
8584
-
8583
-
8585
 Library("jingle_logging_api_gn")
8584
 Library("jingle_logging_api_gn")
8585
diff --git third_party/libwebrtc/api/make_ref_counted_gn/moz.build third_party/libwebrtc/api/make_ref_counted_gn/moz.build
8586
index 2fafcbf37fb0..091db6cf5490 100644
8587
--- third_party/libwebrtc/api/make_ref_counted_gn/moz.build
8588
+++ third_party/libwebrtc/api/make_ref_counted_gn/moz.build
8589
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
8590
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
8591
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
8592
 DEFINES["RTC_ENABLE_VP9"] = True
8593
+DEFINES["USE_GLIB"] = "1"
8594
+DEFINES["USE_OZONE"] = "1"
8595
+DEFINES["WEBRTC_BSD"] = True
8596
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
8597
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
8598
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
8599
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
8600
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
8601
+DEFINES["WEBRTC_POSIX"] = True
8602
+DEFINES["_FILE_OFFSET_BITS"] = "64"
8603
+DEFINES["_LARGEFILE64_SOURCE"] = True
8604
+DEFINES["_LARGEFILE_SOURCE"] = True
8605
+DEFINES["__STDC_CONSTANT_MACROS"] = True
8606
+DEFINES["__STDC_FORMAT_MACROS"] = True
8607
 
8608
 FINAL_LIBRARY = "webrtc"
8609
 
8610
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
8611
 if CONFIG["MOZ_DEBUG"] == "1":
8612
 
8613
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
8614
-
8615
-if CONFIG["OS_TARGET"] == "Android":
8616
-
8617
-    DEFINES["ANDROID"] = True
8618
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
8619
-    DEFINES["HAVE_SYS_UIO_H"] = True
8620
-    DEFINES["WEBRTC_ANDROID"] = True
8621
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
8622
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
8623
-    DEFINES["WEBRTC_LINUX"] = True
8624
-    DEFINES["WEBRTC_POSIX"] = True
8625
-    DEFINES["_GNU_SOURCE"] = True
8626
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
8627
-    DEFINES["__STDC_FORMAT_MACROS"] = True
8628
-
8629
-if CONFIG["OS_TARGET"] == "Darwin":
8630
-
8631
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
8632
-    DEFINES["WEBRTC_MAC"] = True
8633
-    DEFINES["WEBRTC_POSIX"] = True
8634
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
8635
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
8636
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
8637
-    DEFINES["__STDC_FORMAT_MACROS"] = True
8638
-
8639
-if CONFIG["OS_TARGET"] == "Linux":
8640
-
8641
-    DEFINES["USE_AURA"] = "1"
8642
-    DEFINES["USE_GLIB"] = "1"
8643
-    DEFINES["USE_NSS_CERTS"] = "1"
8644
-    DEFINES["USE_OZONE"] = "1"
8645
-    DEFINES["USE_UDEV"] = True
8646
-    DEFINES["WEBRTC_LINUX"] = True
8647
-    DEFINES["WEBRTC_POSIX"] = True
8648
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
8649
-    DEFINES["_LARGEFILE64_SOURCE"] = True
8650
-    DEFINES["_LARGEFILE_SOURCE"] = True
8651
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
8652
-    DEFINES["__STDC_FORMAT_MACROS"] = True
8653
-
8654
-if CONFIG["OS_TARGET"] == "OpenBSD":
8655
-
8656
-    DEFINES["USE_GLIB"] = "1"
8657
-    DEFINES["USE_OZONE"] = "1"
8658
-    DEFINES["USE_X11"] = "1"
8659
-    DEFINES["WEBRTC_BSD"] = True
8660
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
8661
-    DEFINES["WEBRTC_POSIX"] = True
8662
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
8663
-    DEFINES["_LARGEFILE64_SOURCE"] = True
8664
-    DEFINES["_LARGEFILE_SOURCE"] = True
8665
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
8666
-    DEFINES["__STDC_FORMAT_MACROS"] = True
8667
-
8668
-if CONFIG["OS_TARGET"] == "WINNT":
8669
-
8670
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
8671
-    DEFINES["NOMINMAX"] = True
8672
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
8673
-    DEFINES["PSAPI_VERSION"] = "2"
8674
-    DEFINES["UNICODE"] = True
8675
-    DEFINES["USE_AURA"] = "1"
8676
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
8677
-    DEFINES["WEBRTC_WIN"] = True
8678
-    DEFINES["WIN32"] = True
8679
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
8680
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
8681
-    DEFINES["WINVER"] = "0x0A00"
8682
-    DEFINES["_ATL_NO_OPENGL"] = True
8683
-    DEFINES["_CRT_RAND_S"] = True
8684
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
8685
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
8686
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
8687
-    DEFINES["_HAS_NODISCARD"] = True
8688
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
8689
-    DEFINES["_SECURE_ATL"] = True
8690
-    DEFINES["_UNICODE"] = True
8691
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
8692
-    DEFINES["_WINDOWS"] = True
8693
-    DEFINES["__STD_C"] = True
8694
+    DEFINES["_DEBUG"] = True
8695
 
8696
 if CONFIG["CPU_ARCH"] == "aarch64":
8697
 
8698
     DEFINES["WEBRTC_ARCH_ARM64"] = True
8699
     DEFINES["WEBRTC_HAS_NEON"] = True
8700
 
8701
-if CONFIG["CPU_ARCH"] == "arm":
8702
-
8703
-    DEFINES["WEBRTC_ARCH_ARM"] = True
8704
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
8705
-    DEFINES["WEBRTC_HAS_NEON"] = True
8706
-
8707
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
8708
-
8709
-    DEFINES["_DEBUG"] = True
8710
-
8711
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
8712
-
8713
-    DEFINES["_DEBUG"] = True
8714
-
8715
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
8716
-
8717
-    DEFINES["_DEBUG"] = True
8718
-
8719
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
8720
-
8721
-    DEFINES["_DEBUG"] = True
8722
-
8723
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
8724
-
8725
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
8726
-
8727
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
8728
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
8729
 
8730
     DEFINES["USE_X11"] = "1"
8731
 
8732
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
8733
-
8734
-    OS_LIBS += [
8735
-        "android_support",
8736
-        "unwind"
8737
-    ]
8738
-
8739
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
8740
-
8741
-    OS_LIBS += [
8742
-        "android_support"
8743
-    ]
8744
-
8745
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
8746
-
8747
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
8748
-    DEFINES["_GNU_SOURCE"] = True
8749
-
8750
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
8751
-
8752
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
8753
-    DEFINES["_GNU_SOURCE"] = True
8754
-
8755
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
8756
-
8757
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
8758
-    DEFINES["_GNU_SOURCE"] = True
8759
-
8760
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
8761
-
8762
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
8763
-    DEFINES["_GNU_SOURCE"] = True
8764
-
8765
 Library("make_ref_counted_gn")
8586
diff --git third_party/libwebrtc/api/media_stream_interface_gn/moz.build third_party/libwebrtc/api/media_stream_interface_gn/moz.build
8766
diff --git third_party/libwebrtc/api/media_stream_interface_gn/moz.build third_party/libwebrtc/api/media_stream_interface_gn/moz.build
8587
index 841bc83b09cd..d367856e783e 100644
8767
index 841bc83b09cd..d367856e783e 100644
8588
--- third_party/libwebrtc/api/media_stream_interface_gn/moz.build
8768
--- third_party/libwebrtc/api/media_stream_interface_gn/moz.build
Lines 12188-12197 index edd79b3ce1a9..4c338c4a44c9 100644 Link Here
12188
-    DEFINES["_GNU_SOURCE"] = True
12368
-    DEFINES["_GNU_SOURCE"] = True
12189
-
12369
-
12190
 Library("simulated_network_api_gn")
12370
 Library("simulated_network_api_gn")
12191
diff --git third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build
12371
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
12192
index caf50afe35c1..fbf2388bdbfe 100644
12372
index c3887b4f2edd..f911e6bcc323 100644
12193
--- third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build
12373
--- third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build
12194
+++ third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build
12374
+++ third_party/libwebrtc/api/task_queue/pending_task_safety_flag_gn/moz.build
12195
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
12375
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
12196
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
12376
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
12197
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
12377
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 12376-12386 index caf50afe35c1..fbf2388bdbfe 100644 Link Here
12376
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
12556
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
12377
-    DEFINES["_GNU_SOURCE"] = True
12557
-    DEFINES["_GNU_SOURCE"] = True
12378
-
12558
-
12379
 Library("task_queue_gn")
12559
 Library("pending_task_safety_flag_gn")
12380
diff --git third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build
12560
diff --git third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build
12381
index 9ebe97971a49..42be461044e1 100644
12561
index caf50afe35c1..fbf2388bdbfe 100644
12382
--- third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build
12562
--- third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build
12383
+++ third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build
12563
+++ third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build
12384
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
12564
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
12385
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
12565
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
12386
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
12566
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 12402-12408 index 9ebe97971a49..42be461044e1 100644 Link Here
12402
 
12582
 
12403
 FINAL_LIBRARY = "webrtc"
12583
 FINAL_LIBRARY = "webrtc"
12404
 
12584
 
12405
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
12585
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
12406
 if CONFIG["MOZ_DEBUG"] == "1":
12586
 if CONFIG["MOZ_DEBUG"] == "1":
12407
 
12587
 
12408
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
12588
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 12421-12426 index 9ebe97971a49..42be461044e1 100644 Link Here
12421
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
12601
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
12422
-    DEFINES["__STDC_FORMAT_MACROS"] = True
12602
-    DEFINES["__STDC_FORMAT_MACROS"] = True
12423
-
12603
-
12604
-    OS_LIBS += [
12605
-        "log"
12606
-    ]
12607
-
12424
-if CONFIG["OS_TARGET"] == "Darwin":
12608
-if CONFIG["OS_TARGET"] == "Darwin":
12425
-
12609
-
12426
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
12610
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 12561-12571 index 9ebe97971a49..42be461044e1 100644 Link Here
12561
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
12745
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
12562
-    DEFINES["_GNU_SOURCE"] = True
12746
-    DEFINES["_GNU_SOURCE"] = True
12563
-
12747
-
12564
 Library("bitrate_settings_gn")
12748
 Library("task_queue_gn")
12565
diff --git third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build
12749
diff --git third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build
12566
index 74133ed40fef..51fd54da9869 100644
12750
index 9ebe97971a49..42be461044e1 100644
12567
--- third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build
12751
--- third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build
12568
+++ third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build
12752
+++ third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build
12569
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
12753
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
12570
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
12754
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
12571
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
12755
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 12587-12593 index 74133ed40fef..51fd54da9869 100644 Link Here
12587
 
12771
 
12588
 FINAL_LIBRARY = "webrtc"
12772
 FINAL_LIBRARY = "webrtc"
12589
 
12773
 
12590
@@ -37,161 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
12774
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
12591
 if CONFIG["MOZ_DEBUG"] == "1":
12775
 if CONFIG["MOZ_DEBUG"] == "1":
12592
 
12776
 
12593
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
12777
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 12606-12615 index 74133ed40fef..51fd54da9869 100644 Link Here
12606
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
12790
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
12607
-    DEFINES["__STDC_FORMAT_MACROS"] = True
12791
-    DEFINES["__STDC_FORMAT_MACROS"] = True
12608
-
12792
-
12609
-    OS_LIBS += [
12610
-        "log"
12611
-    ]
12612
-
12613
-if CONFIG["OS_TARGET"] == "Darwin":
12793
-if CONFIG["OS_TARGET"] == "Darwin":
12614
-
12794
-
12615
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
12795
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 12675-12684 index 74133ed40fef..51fd54da9869 100644 Link Here
12675
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
12855
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
12676
-    DEFINES["_WINDOWS"] = True
12856
-    DEFINES["_WINDOWS"] = True
12677
-    DEFINES["__STD_C"] = True
12857
-    DEFINES["__STD_C"] = True
12678
-
12679
-    OS_LIBS += [
12680
-        "winmm"
12681
-    ]
12682
+    DEFINES["_DEBUG"] = True
12858
+    DEFINES["_DEBUG"] = True
12683
 
12859
 
12684
 if CONFIG["CPU_ARCH"] == "aarch64":
12860
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 12688-12693 index 74133ed40fef..51fd54da9869 100644 Link Here
12688
 
12864
 
12689
-if CONFIG["CPU_ARCH"] == "arm":
12865
-if CONFIG["CPU_ARCH"] == "arm":
12690
-
12866
-
12867
-    CXXFLAGS += [
12868
-        "-mfpu=neon"
12869
-    ]
12870
-
12691
-    DEFINES["WEBRTC_ARCH_ARM"] = True
12871
-    DEFINES["WEBRTC_ARCH_ARM"] = True
12692
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
12872
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
12693
-    DEFINES["WEBRTC_HAS_NEON"] = True
12873
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 12750-12760 index 74133ed40fef..51fd54da9869 100644 Link Here
12750
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
12930
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
12751
-    DEFINES["_GNU_SOURCE"] = True
12931
-    DEFINES["_GNU_SOURCE"] = True
12752
-
12932
-
12753
 Library("datagram_transport_interface_gn")
12933
 Library("bitrate_settings_gn")
12754
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
12934
diff --git third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build
12755
index 700b5a83f026..0ec2d0d307f7 100644
12935
index 74133ed40fef..51fd54da9869 100644
12756
--- third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build
12936
--- third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build
12757
+++ third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build
12937
+++ third_party/libwebrtc/api/transport/datagram_transport_interface_gn/moz.build
12758
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
12938
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
12759
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
12939
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
12760
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
12940
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 12776-12782 index 700b5a83f026..0ec2d0d307f7 100644 Link Here
12776
 
12956
 
12777
 FINAL_LIBRARY = "webrtc"
12957
 FINAL_LIBRARY = "webrtc"
12778
 
12958
 
12779
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
12959
@@ -37,161 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
12780
 if CONFIG["MOZ_DEBUG"] == "1":
12960
 if CONFIG["MOZ_DEBUG"] == "1":
12781
 
12961
 
12782
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
12962
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 12877-12886 index 700b5a83f026..0ec2d0d307f7 100644 Link Here
12877
 
13057
 
12878
-if CONFIG["CPU_ARCH"] == "arm":
13058
-if CONFIG["CPU_ARCH"] == "arm":
12879
-
13059
-
12880
-    CXXFLAGS += [
12881
-        "-mfpu=neon"
12882
-    ]
12883
-
12884
-    DEFINES["WEBRTC_ARCH_ARM"] = True
13060
-    DEFINES["WEBRTC_ARCH_ARM"] = True
12885
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
13061
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
12886
-    DEFINES["WEBRTC_HAS_NEON"] = True
13062
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 12943-12953 index 700b5a83f026..0ec2d0d307f7 100644 Link Here
12943
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
13119
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
12944
-    DEFINES["_GNU_SOURCE"] = True
13120
-    DEFINES["_GNU_SOURCE"] = True
12945
-
13121
-
12946
 Library("field_trial_based_config_gn")
13122
 Library("datagram_transport_interface_gn")
12947
diff --git third_party/libwebrtc/api/transport/goog_cc_gn/moz.build third_party/libwebrtc/api/transport/goog_cc_gn/moz.build
13123
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
12948
index 15ad8475cee5..c998590d30dc 100644
13124
index 700b5a83f026..0ec2d0d307f7 100644
12949
--- third_party/libwebrtc/api/transport/goog_cc_gn/moz.build
13125
--- third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build
12950
+++ third_party/libwebrtc/api/transport/goog_cc_gn/moz.build
13126
+++ third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build
12951
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
13127
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
12952
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
13128
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
12953
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
13129
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 12969-12975 index 15ad8475cee5..c998590d30dc 100644 Link Here
12969
 
13145
 
12970
 FINAL_LIBRARY = "webrtc"
13146
 FINAL_LIBRARY = "webrtc"
12971
 
13147
 
12972
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
13148
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
12973
 if CONFIG["MOZ_DEBUG"] == "1":
13149
 if CONFIG["MOZ_DEBUG"] == "1":
12974
 
13150
 
12975
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
13151
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 12989-12995 index 15ad8475cee5..c998590d30dc 100644 Link Here
12989
-    DEFINES["__STDC_FORMAT_MACROS"] = True
13165
-    DEFINES["__STDC_FORMAT_MACROS"] = True
12990
-
13166
-
12991
-    OS_LIBS += [
13167
-    OS_LIBS += [
12992
-        "GLESv2",
12993
-        "log"
13168
-        "log"
12994
-    ]
13169
-    ]
12995
-
13170
-
Lines 13018-13028 index 15ad8475cee5..c998590d30dc 100644 Link Here
13018
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
13193
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
13019
-    DEFINES["__STDC_FORMAT_MACROS"] = True
13194
-    DEFINES["__STDC_FORMAT_MACROS"] = True
13020
-
13195
-
13021
-    OS_LIBS += [
13022
-        "dl",
13023
-        "rt"
13024
-    ]
13025
-
13026
-if CONFIG["OS_TARGET"] == "OpenBSD":
13196
-if CONFIG["OS_TARGET"] == "OpenBSD":
13027
-
13197
-
13028
-    DEFINES["USE_GLIB"] = "1"
13198
-    DEFINES["USE_GLIB"] = "1"
Lines 13065-13073 index 15ad8475cee5..c998590d30dc 100644 Link Here
13065
-    DEFINES["__STD_C"] = True
13235
-    DEFINES["__STD_C"] = True
13066
-
13236
-
13067
-    OS_LIBS += [
13237
-    OS_LIBS += [
13068
-        "crypt32",
13238
-        "winmm"
13069
-        "iphlpapi",
13239
-    ]
13070
-        "secur32",
13240
+    DEFINES["_DEBUG"] = True
13241
 
13242
 if CONFIG["CPU_ARCH"] == "aarch64":
13243
 
13244
     DEFINES["WEBRTC_ARCH_ARM64"] = True
13245
     DEFINES["WEBRTC_HAS_NEON"] = True
13246
 
13247
-if CONFIG["CPU_ARCH"] == "arm":
13248
-
13249
-    CXXFLAGS += [
13250
-        "-mfpu=neon"
13251
-    ]
13252
-
13253
-    DEFINES["WEBRTC_ARCH_ARM"] = True
13254
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
13255
-    DEFINES["WEBRTC_HAS_NEON"] = True
13256
-
13257
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
13258
-
13259
-    DEFINES["_DEBUG"] = True
13260
-
13261
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
13262
-
13263
-    DEFINES["_DEBUG"] = True
13264
-
13265
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
13266
-
13267
-    DEFINES["_DEBUG"] = True
13268
-
13269
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
13270
-
13271
-    DEFINES["_DEBUG"] = True
13272
-
13273
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
13274
-
13275
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
13276
-
13277
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
13278
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
13279
 
13280
     DEFINES["USE_X11"] = "1"
13281
 
13282
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
13283
-
13284
-    OS_LIBS += [
13285
-        "android_support",
13286
-        "unwind"
13287
-    ]
13288
-
13289
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
13290
-
13291
-    OS_LIBS += [
13292
-        "android_support"
13293
-    ]
13294
-
13295
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
13296
-
13297
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
13298
-    DEFINES["_GNU_SOURCE"] = True
13299
-
13300
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
13301
-
13302
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
13303
-    DEFINES["_GNU_SOURCE"] = True
13304
-
13305
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
13306
-
13307
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
13308
-    DEFINES["_GNU_SOURCE"] = True
13309
-
13310
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
13311
-
13312
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
13313
-    DEFINES["_GNU_SOURCE"] = True
13314
-
13315
 Library("field_trial_based_config_gn")
13316
diff --git third_party/libwebrtc/api/transport/goog_cc_gn/moz.build third_party/libwebrtc/api/transport/goog_cc_gn/moz.build
13317
index 15ad8475cee5..c998590d30dc 100644
13318
--- third_party/libwebrtc/api/transport/goog_cc_gn/moz.build
13319
+++ third_party/libwebrtc/api/transport/goog_cc_gn/moz.build
13320
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
13321
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
13322
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
13323
 DEFINES["RTC_ENABLE_VP9"] = True
13324
+DEFINES["USE_GLIB"] = "1"
13325
+DEFINES["USE_OZONE"] = "1"
13326
+DEFINES["WEBRTC_BSD"] = True
13327
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
13328
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
13329
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
13330
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
13331
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
13332
+DEFINES["WEBRTC_POSIX"] = True
13333
+DEFINES["_FILE_OFFSET_BITS"] = "64"
13334
+DEFINES["_LARGEFILE64_SOURCE"] = True
13335
+DEFINES["_LARGEFILE_SOURCE"] = True
13336
+DEFINES["__STDC_CONSTANT_MACROS"] = True
13337
+DEFINES["__STDC_FORMAT_MACROS"] = True
13338
 
13339
 FINAL_LIBRARY = "webrtc"
13340
 
13341
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
13342
 if CONFIG["MOZ_DEBUG"] == "1":
13343
 
13344
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
13345
-
13346
-if CONFIG["OS_TARGET"] == "Android":
13347
-
13348
-    DEFINES["ANDROID"] = True
13349
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
13350
-    DEFINES["HAVE_SYS_UIO_H"] = True
13351
-    DEFINES["WEBRTC_ANDROID"] = True
13352
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
13353
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
13354
-    DEFINES["WEBRTC_LINUX"] = True
13355
-    DEFINES["WEBRTC_POSIX"] = True
13356
-    DEFINES["_GNU_SOURCE"] = True
13357
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
13358
-    DEFINES["__STDC_FORMAT_MACROS"] = True
13359
-
13360
-    OS_LIBS += [
13361
-        "GLESv2",
13362
-        "log"
13363
-    ]
13364
-
13365
-if CONFIG["OS_TARGET"] == "Darwin":
13366
-
13367
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
13368
-    DEFINES["WEBRTC_MAC"] = True
13369
-    DEFINES["WEBRTC_POSIX"] = True
13370
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
13371
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
13372
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
13373
-    DEFINES["__STDC_FORMAT_MACROS"] = True
13374
-
13375
-if CONFIG["OS_TARGET"] == "Linux":
13376
-
13377
-    DEFINES["USE_AURA"] = "1"
13378
-    DEFINES["USE_GLIB"] = "1"
13379
-    DEFINES["USE_NSS_CERTS"] = "1"
13380
-    DEFINES["USE_OZONE"] = "1"
13381
-    DEFINES["USE_UDEV"] = True
13382
-    DEFINES["WEBRTC_LINUX"] = True
13383
-    DEFINES["WEBRTC_POSIX"] = True
13384
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
13385
-    DEFINES["_LARGEFILE64_SOURCE"] = True
13386
-    DEFINES["_LARGEFILE_SOURCE"] = True
13387
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
13388
-    DEFINES["__STDC_FORMAT_MACROS"] = True
13389
-
13390
-    OS_LIBS += [
13391
-        "dl",
13392
-        "rt"
13393
-    ]
13394
-
13395
-if CONFIG["OS_TARGET"] == "OpenBSD":
13396
-
13397
-    DEFINES["USE_GLIB"] = "1"
13398
-    DEFINES["USE_OZONE"] = "1"
13399
-    DEFINES["USE_X11"] = "1"
13400
-    DEFINES["WEBRTC_BSD"] = True
13401
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
13402
-    DEFINES["WEBRTC_POSIX"] = True
13403
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
13404
-    DEFINES["_LARGEFILE64_SOURCE"] = True
13405
-    DEFINES["_LARGEFILE_SOURCE"] = True
13406
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
13407
-    DEFINES["__STDC_FORMAT_MACROS"] = True
13408
-
13409
-if CONFIG["OS_TARGET"] == "WINNT":
13410
-
13411
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
13412
-    DEFINES["NOMINMAX"] = True
13413
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
13414
-    DEFINES["PSAPI_VERSION"] = "2"
13415
-    DEFINES["UNICODE"] = True
13416
-    DEFINES["USE_AURA"] = "1"
13417
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
13418
-    DEFINES["WEBRTC_WIN"] = True
13419
-    DEFINES["WIN32"] = True
13420
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
13421
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
13422
-    DEFINES["WINVER"] = "0x0A00"
13423
-    DEFINES["_ATL_NO_OPENGL"] = True
13424
-    DEFINES["_CRT_RAND_S"] = True
13425
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
13426
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
13427
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
13428
-    DEFINES["_HAS_NODISCARD"] = True
13429
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
13430
-    DEFINES["_SECURE_ATL"] = True
13431
-    DEFINES["_UNICODE"] = True
13432
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
13433
-    DEFINES["_WINDOWS"] = True
13434
-    DEFINES["__STD_C"] = True
13435
-
13436
-    OS_LIBS += [
13437
-        "crypt32",
13438
-        "iphlpapi",
13439
-        "secur32",
13071
-        "winmm"
13440
-        "winmm"
13072
-    ]
13441
-    ]
13073
+    DEFINES["_DEBUG"] = True
13442
+    DEFINES["_DEBUG"] = True
Lines 17147-17153 index 0eef21be59c9..18c24c05b243 100644 Link Here
17147
-
17516
-
17148
 Library("video_frame_gn")
17517
 Library("video_frame_gn")
17149
diff --git third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build
17518
diff --git third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build
17150
index ebe06a2cc5b2..fecceee6a855 100644
17519
index 9c539a9e235d..8472c95023d5 100644
17151
--- third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build
17520
--- third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build
17152
+++ third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build
17521
+++ third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build
17153
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
17522
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
Lines 17171-17177 index ebe06a2cc5b2..fecceee6a855 100644 Link Here
17171
 
17540
 
17172
 FINAL_LIBRARY = "webrtc"
17541
 FINAL_LIBRARY = "webrtc"
17173
 
17542
 
17174
@@ -43,174 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
17543
@@ -47,174 +57,15 @@ if not CONFIG["MOZ_DEBUG"]:
17175
 if CONFIG["MOZ_DEBUG"] == "1":
17544
 if CONFIG["MOZ_DEBUG"] == "1":
17176
 
17545
 
17177
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
17546
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 19081-19087 index 005c7222357d..cdc30aa176db 100644 Link Here
19081
-
19450
-
19082
 Library("rtc_software_fallback_wrappers_gn")
19451
 Library("rtc_software_fallback_wrappers_gn")
19083
diff --git third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build
19452
diff --git third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build
19084
index 3b8aee86312b..574d68c4f54e 100644
19453
index 3a93583c1626..6aed057ed10b 100644
19085
--- third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build
19454
--- third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build
19086
+++ third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build
19455
+++ third_party/libwebrtc/api/video_codecs/scalability_mode_gn/moz.build
19087
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
19456
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
Lines 19105-19111 index 3b8aee86312b..574d68c4f54e 100644 Link Here
19105
 
19474
 
19106
 FINAL_LIBRARY = "webrtc"
19475
 FINAL_LIBRARY = "webrtc"
19107
 
19476
 
19108
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
19477
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
19109
 if CONFIG["MOZ_DEBUG"] == "1":
19478
 if CONFIG["MOZ_DEBUG"] == "1":
19110
 
19479
 
19111
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
19480
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 19124-19129 index 3b8aee86312b..574d68c4f54e 100644 Link Here
19124
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
19493
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
19125
-    DEFINES["__STDC_FORMAT_MACROS"] = True
19494
-    DEFINES["__STDC_FORMAT_MACROS"] = True
19126
-
19495
-
19496
-    OS_LIBS += [
19497
-        "log"
19498
-    ]
19499
-
19127
-if CONFIG["OS_TARGET"] == "Darwin":
19500
-if CONFIG["OS_TARGET"] == "Darwin":
19128
-
19501
-
19129
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
19502
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 19198-19203 index 3b8aee86312b..574d68c4f54e 100644 Link Here
19198
 
19571
 
19199
-if CONFIG["CPU_ARCH"] == "arm":
19572
-if CONFIG["CPU_ARCH"] == "arm":
19200
-
19573
-
19574
-    CXXFLAGS += [
19575
-        "-mfpu=neon"
19576
-    ]
19577
-
19201
-    DEFINES["WEBRTC_ARCH_ARM"] = True
19578
-    DEFINES["WEBRTC_ARCH_ARM"] = True
19202
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
19579
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
19203
-    DEFINES["WEBRTC_HAS_NEON"] = True
19580
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 19262-19268 index 3b8aee86312b..574d68c4f54e 100644 Link Here
19262
-
19639
-
19263
 Library("scalability_mode_gn")
19640
 Library("scalability_mode_gn")
19264
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
19641
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
19265
index 071f18ce405a..716778253e78 100644
19642
index 3a056cb30770..511508ae346e 100644
19266
--- third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build
19643
--- third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build
19267
+++ third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build
19644
+++ third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build
19268
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
19645
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
Lines 19286-19292 index 071f18ce405a..716778253e78 100644 Link Here
19286
 
19663
 
19287
 FINAL_LIBRARY = "webrtc"
19664
 FINAL_LIBRARY = "webrtc"
19288
 
19665
 
19289
@@ -50,165 +60,15 @@ if not CONFIG["MOZ_DEBUG"]:
19666
@@ -52,165 +62,15 @@ if not CONFIG["MOZ_DEBUG"]:
19290
 if CONFIG["MOZ_DEBUG"] == "1":
19667
 if CONFIG["MOZ_DEBUG"] == "1":
19291
 
19668
 
19292
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
19669
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 19454-19463 index 071f18ce405a..716778253e78 100644 Link Here
19454
-    DEFINES["_GNU_SOURCE"] = True
19831
-    DEFINES["_GNU_SOURCE"] = True
19455
-
19832
-
19456
 Library("video_codecs_api_gn")
19833
 Library("video_codecs_api_gn")
19457
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
19834
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
19458
index 7be7d67bee33..621ce78b9680 100644
19835
index 660d73625a3f..64f7fb530ab0 100644
19459
--- third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build
19836
--- third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_gn/moz.build
19460
+++ third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build
19837
+++ third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_gn/moz.build
19461
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
19838
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
19462
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
19839
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
19463
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
19840
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 19479-19485 index 7be7d67bee33..621ce78b9680 100644 Link Here
19479
 
19856
 
19480
 FINAL_LIBRARY = "webrtc"
19857
 FINAL_LIBRARY = "webrtc"
19481
 
19858
 
19482
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
19859
@@ -37,161 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
19483
 if CONFIG["MOZ_DEBUG"] == "1":
19860
 if CONFIG["MOZ_DEBUG"] == "1":
19484
 
19861
 
19485
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
19862
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 19499-19505 index 7be7d67bee33..621ce78b9680 100644 Link Here
19499
-    DEFINES["__STDC_FORMAT_MACROS"] = True
19876
-    DEFINES["__STDC_FORMAT_MACROS"] = True
19500
-
19877
-
19501
-    OS_LIBS += [
19878
-    OS_LIBS += [
19502
-        "GLESv2",
19503
-        "log"
19879
-        "log"
19504
-    ]
19880
-    ]
19505
-
19881
-
Lines 19528-19538 index 7be7d67bee33..621ce78b9680 100644 Link Here
19528
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
19904
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
19529
-    DEFINES["__STDC_FORMAT_MACROS"] = True
19905
-    DEFINES["__STDC_FORMAT_MACROS"] = True
19530
-
19906
-
19531
-    OS_LIBS += [
19532
-        "dl",
19533
-        "rt"
19534
-    ]
19535
-
19536
-if CONFIG["OS_TARGET"] == "OpenBSD":
19907
-if CONFIG["OS_TARGET"] == "OpenBSD":
19537
-
19908
-
19538
-    DEFINES["USE_GLIB"] = "1"
19909
-    DEFINES["USE_GLIB"] = "1"
Lines 19575-19583 index 7be7d67bee33..621ce78b9680 100644 Link Here
19575
-    DEFINES["__STD_C"] = True
19946
-    DEFINES["__STD_C"] = True
19576
-
19947
-
19577
-    OS_LIBS += [
19948
-    OS_LIBS += [
19578
-        "crypt32",
19579
-        "iphlpapi",
19580
-        "secur32",
19581
-        "winmm"
19949
-        "winmm"
19582
-    ]
19950
-    ]
19583
+    DEFINES["_DEBUG"] = True
19951
+    DEFINES["_DEBUG"] = True
Lines 19589-19598 index 7be7d67bee33..621ce78b9680 100644 Link Here
19589
 
19957
 
19590
-if CONFIG["CPU_ARCH"] == "arm":
19958
-if CONFIG["CPU_ARCH"] == "arm":
19591
-
19959
-
19592
-    CXXFLAGS += [
19593
-        "-mfpu=neon"
19594
-    ]
19595
-
19596
-    DEFINES["WEBRTC_ARCH_ARM"] = True
19960
-    DEFINES["WEBRTC_ARCH_ARM"] = True
19597
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
19961
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
19598
-    DEFINES["WEBRTC_HAS_NEON"] = True
19962
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 19655-19665 index 7be7d67bee33..621ce78b9680 100644 Link Here
19655
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20019
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
19656
-    DEFINES["_GNU_SOURCE"] = True
20020
-    DEFINES["_GNU_SOURCE"] = True
19657
-
20021
-
19658
 Library("vp8_temporal_layers_factory_gn")
20022
 Library("video_encoder_factory_template_gn")
19659
diff --git third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build
20023
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
19660
index c588b3ce0e8f..ded6e4680a88 100644
20024
index 5c1538f12c71..d56482c79d48 100644
19661
--- third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build
20025
--- third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter_gn/moz.build
19662
+++ third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build
20026
+++ third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp8_adapter_gn/moz.build
19663
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20027
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
19664
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20028
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
19665
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
20029
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 19681-19687 index c588b3ce0e8f..ded6e4680a88 100644 Link Here
19681
 
20045
 
19682
 FINAL_LIBRARY = "webrtc"
20046
 FINAL_LIBRARY = "webrtc"
19683
 
20047
 
19684
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
20048
@@ -37,170 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
19685
 if CONFIG["MOZ_DEBUG"] == "1":
20049
 if CONFIG["MOZ_DEBUG"] == "1":
19686
 
20050
 
19687
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
20051
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 19700-19705 index c588b3ce0e8f..ded6e4680a88 100644 Link Here
19700
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
20064
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
19701
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20065
-    DEFINES["__STDC_FORMAT_MACROS"] = True
19702
-
20066
-
20067
-    OS_LIBS += [
20068
-        "GLESv2",
20069
-        "log"
20070
-    ]
20071
-
19703
-if CONFIG["OS_TARGET"] == "Darwin":
20072
-if CONFIG["OS_TARGET"] == "Darwin":
19704
-
20073
-
19705
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20074
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 19725-19730 index c588b3ce0e8f..ded6e4680a88 100644 Link Here
19725
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
20094
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
19726
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20095
-    DEFINES["__STDC_FORMAT_MACROS"] = True
19727
-
20096
-
20097
-    OS_LIBS += [
20098
-        "dl",
20099
-        "rt"
20100
-    ]
20101
-
19728
-if CONFIG["OS_TARGET"] == "OpenBSD":
20102
-if CONFIG["OS_TARGET"] == "OpenBSD":
19729
-
20103
-
19730
-    DEFINES["USE_GLIB"] = "1"
20104
-    DEFINES["USE_GLIB"] = "1"
Lines 19765-19770 index c588b3ce0e8f..ded6e4680a88 100644 Link Here
19765
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
20139
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
19766
-    DEFINES["_WINDOWS"] = True
20140
-    DEFINES["_WINDOWS"] = True
19767
-    DEFINES["__STD_C"] = True
20141
-    DEFINES["__STD_C"] = True
20142
-
20143
-    OS_LIBS += [
20144
-        "crypt32",
20145
-        "iphlpapi",
20146
-        "secur32",
20147
-        "winmm"
20148
-    ]
19768
+    DEFINES["_DEBUG"] = True
20149
+    DEFINES["_DEBUG"] = True
19769
 
20150
 
19770
 if CONFIG["CPU_ARCH"] == "aarch64":
20151
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 19836-19846 index c588b3ce0e8f..ded6e4680a88 100644 Link Here
19836
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20217
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
19837
-    DEFINES["_GNU_SOURCE"] = True
20218
-    DEFINES["_GNU_SOURCE"] = True
19838
-
20219
-
19839
 Library("video_track_source_constraints_gn")
20220
 Library("video_encoder_factory_template_libvpx_vp8_adapter_gn")
19840
diff --git third_party/libwebrtc/audio/audio_gn/moz.build third_party/libwebrtc/audio/audio_gn/moz.build
20221
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
19841
index 333c77706b0d..7b9c37cd58af 100644
20222
index 4535eb0ef68d..fae75a782896 100644
19842
--- third_party/libwebrtc/audio/audio_gn/moz.build
20223
--- third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp9_adapter_gn/moz.build
19843
+++ third_party/libwebrtc/audio/audio_gn/moz.build
20224
+++ third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_libvpx_vp9_adapter_gn/moz.build
19844
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20225
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
19845
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20226
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
19846
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
20227
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 19862-19868 index 333c77706b0d..7b9c37cd58af 100644 Link Here
19862
 
20243
 
19863
 FINAL_LIBRARY = "webrtc"
20244
 FINAL_LIBRARY = "webrtc"
19864
 
20245
 
19865
@@ -54,174 +64,15 @@ if not CONFIG["MOZ_DEBUG"]:
20246
@@ -37,170 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
19866
 if CONFIG["MOZ_DEBUG"] == "1":
20247
 if CONFIG["MOZ_DEBUG"] == "1":
19867
 
20248
 
19868
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
20249
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 19972-19981 index 333c77706b0d..7b9c37cd58af 100644 Link Here
19972
 
20353
 
19973
-if CONFIG["CPU_ARCH"] == "arm":
20354
-if CONFIG["CPU_ARCH"] == "arm":
19974
-
20355
-
19975
-    CXXFLAGS += [
19976
-        "-mfpu=neon"
19977
-    ]
19978
-
19979
-    DEFINES["WEBRTC_ARCH_ARM"] = True
20356
-    DEFINES["WEBRTC_ARCH_ARM"] = True
19980
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
20357
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
19981
-    DEFINES["WEBRTC_HAS_NEON"] = True
20358
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 20038-20048 index 333c77706b0d..7b9c37cd58af 100644 Link Here
20038
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20415
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20039
-    DEFINES["_GNU_SOURCE"] = True
20416
-    DEFINES["_GNU_SOURCE"] = True
20040
-
20417
-
20041
 Library("audio_gn")
20418
 Library("video_encoder_factory_template_libvpx_vp9_adapter_gn")
20042
diff --git third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build
20419
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
20043
index ef559b9bc6ee..cbfaaadb7d89 100644
20420
index 710652e8bc49..eabb80269a3c 100644
20044
--- third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build
20421
--- third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_open_h264_adapter_gn/moz.build
20045
+++ third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build
20422
+++ third_party/libwebrtc/api/video_codecs/video_encoder_factory_template_open_h264_adapter_gn/moz.build
20046
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20423
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20047
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20424
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20048
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
20425
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 20064-20070 index ef559b9bc6ee..cbfaaadb7d89 100644 Link Here
20064
 
20441
 
20065
 FINAL_LIBRARY = "webrtc"
20442
 FINAL_LIBRARY = "webrtc"
20066
 
20443
 
20067
@@ -43,172 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
20444
@@ -37,170 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
20068
 if CONFIG["MOZ_DEBUG"] == "1":
20445
 if CONFIG["MOZ_DEBUG"] == "1":
20069
 
20446
 
20070
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
20447
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 20084-20089 index ef559b9bc6ee..cbfaaadb7d89 100644 Link Here
20084
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20461
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20085
-
20462
-
20086
-    OS_LIBS += [
20463
-    OS_LIBS += [
20464
-        "GLESv2",
20087
-        "log"
20465
-        "log"
20088
-    ]
20466
-    ]
20089
-
20467
-
Lines 20113-20118 index ef559b9bc6ee..cbfaaadb7d89 100644 Link Here
20113
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20491
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20114
-
20492
-
20115
-    OS_LIBS += [
20493
-    OS_LIBS += [
20494
-        "dl",
20116
-        "rt"
20495
-        "rt"
20117
-    ]
20496
-    ]
20118
-
20497
-
Lines 20172-20181 index ef559b9bc6ee..cbfaaadb7d89 100644 Link Here
20172
 
20551
 
20173
-if CONFIG["CPU_ARCH"] == "arm":
20552
-if CONFIG["CPU_ARCH"] == "arm":
20174
-
20553
-
20175
-    CXXFLAGS += [
20176
-        "-mfpu=neon"
20177
-    ]
20178
-
20179
-    DEFINES["WEBRTC_ARCH_ARM"] = True
20554
-    DEFINES["WEBRTC_ARCH_ARM"] = True
20180
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
20555
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
20181
-    DEFINES["WEBRTC_HAS_NEON"] = True
20556
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 20238-20248 index ef559b9bc6ee..cbfaaadb7d89 100644 Link Here
20238
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20613
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20239
-    DEFINES["_GNU_SOURCE"] = True
20614
-    DEFINES["_GNU_SOURCE"] = True
20240
-
20615
-
20241
 Library("audio_frame_operations_gn")
20616
 Library("video_encoder_factory_template_open_h264_adapter_gn")
20242
diff --git third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build
20617
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
20243
index 3c1d8cc5e85a..f975048caa6c 100644
20618
index 7be7d67bee33..621ce78b9680 100644
20244
--- third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build
20619
--- third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build
20245
+++ third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build
20620
+++ third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build
20246
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20621
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20247
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20622
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20248
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
20623
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 20264-20270 index 3c1d8cc5e85a..f975048caa6c 100644 Link Here
20264
 
20639
 
20265
 FINAL_LIBRARY = "webrtc"
20640
 FINAL_LIBRARY = "webrtc"
20266
 
20641
 
20267
@@ -50,174 +60,15 @@ if not CONFIG["MOZ_DEBUG"]:
20642
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
20268
 if CONFIG["MOZ_DEBUG"] == "1":
20643
 if CONFIG["MOZ_DEBUG"] == "1":
20269
 
20644
 
20270
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
20645
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 20440-20450 index 3c1d8cc5e85a..f975048caa6c 100644 Link Here
20440
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20815
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20441
-    DEFINES["_GNU_SOURCE"] = True
20816
-    DEFINES["_GNU_SOURCE"] = True
20442
-
20817
-
20443
 Library("resource_adaptation_gn")
20818
 Library("vp8_temporal_layers_factory_gn")
20444
diff --git third_party/libwebrtc/call/audio_sender_interface_gn/moz.build third_party/libwebrtc/call/audio_sender_interface_gn/moz.build
20819
diff --git third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build
20445
index 8e41f2704f3c..f8d69690a873 100644
20820
index c588b3ce0e8f..ded6e4680a88 100644
20446
--- third_party/libwebrtc/call/audio_sender_interface_gn/moz.build
20821
--- third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build
20447
+++ third_party/libwebrtc/call/audio_sender_interface_gn/moz.build
20822
+++ third_party/libwebrtc/api/video_track_source_constraints_gn/moz.build
20448
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20823
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20449
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20824
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20450
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
20825
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 20466-20472 index 8e41f2704f3c..f8d69690a873 100644 Link Here
20466
 
20841
 
20467
 FINAL_LIBRARY = "webrtc"
20842
 FINAL_LIBRARY = "webrtc"
20468
 
20843
 
20469
@@ -37,161 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
20844
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
20470
 if CONFIG["MOZ_DEBUG"] == "1":
20845
 if CONFIG["MOZ_DEBUG"] == "1":
20471
 
20846
 
20472
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
20847
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 20485-20494 index 8e41f2704f3c..f8d69690a873 100644 Link Here
20485
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
20860
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
20486
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20861
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20487
-
20862
-
20488
-    OS_LIBS += [
20489
-        "log"
20490
-    ]
20491
-
20492
-if CONFIG["OS_TARGET"] == "Darwin":
20863
-if CONFIG["OS_TARGET"] == "Darwin":
20493
-
20864
-
20494
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20865
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 20554-20563 index 8e41f2704f3c..f8d69690a873 100644 Link Here
20554
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
20925
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
20555
-    DEFINES["_WINDOWS"] = True
20926
-    DEFINES["_WINDOWS"] = True
20556
-    DEFINES["__STD_C"] = True
20927
-    DEFINES["__STD_C"] = True
20557
-
20558
-    OS_LIBS += [
20559
-        "winmm"
20560
-    ]
20561
+    DEFINES["_DEBUG"] = True
20928
+    DEFINES["_DEBUG"] = True
20562
 
20929
 
20563
 if CONFIG["CPU_ARCH"] == "aarch64":
20930
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 20629-20639 index 8e41f2704f3c..f8d69690a873 100644 Link Here
20629
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20996
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20630
-    DEFINES["_GNU_SOURCE"] = True
20997
-    DEFINES["_GNU_SOURCE"] = True
20631
-
20998
-
20632
 Library("audio_sender_interface_gn")
20999
 Library("video_track_source_constraints_gn")
20633
diff --git third_party/libwebrtc/call/bitrate_allocator_gn/moz.build third_party/libwebrtc/call/bitrate_allocator_gn/moz.build
21000
diff --git third_party/libwebrtc/audio/audio_gn/moz.build third_party/libwebrtc/audio/audio_gn/moz.build
20634
index 0e14a5d16836..81e9778691b7 100644
21001
index 333c77706b0d..7b9c37cd58af 100644
20635
--- third_party/libwebrtc/call/bitrate_allocator_gn/moz.build
21002
--- third_party/libwebrtc/audio/audio_gn/moz.build
20636
+++ third_party/libwebrtc/call/bitrate_allocator_gn/moz.build
21003
+++ third_party/libwebrtc/audio/audio_gn/moz.build
20637
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21004
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20638
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21005
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20639
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
21006
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 20655-20661 index 0e14a5d16836..81e9778691b7 100644 Link Here
20655
 
21022
 
20656
 FINAL_LIBRARY = "webrtc"
21023
 FINAL_LIBRARY = "webrtc"
20657
 
21024
 
20658
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
21025
@@ -54,174 +64,15 @@ if not CONFIG["MOZ_DEBUG"]:
20659
 if CONFIG["MOZ_DEBUG"] == "1":
21026
 if CONFIG["MOZ_DEBUG"] == "1":
20660
 
21027
 
20661
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
21028
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 20675-20680 index 0e14a5d16836..81e9778691b7 100644 Link Here
20675
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21042
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20676
-
21043
-
20677
-    OS_LIBS += [
21044
-    OS_LIBS += [
21045
-        "GLESv2",
20678
-        "log"
21046
-        "log"
20679
-    ]
21047
-    ]
20680
-
21048
-
Lines 20704-20709 index 0e14a5d16836..81e9778691b7 100644 Link Here
20704
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21072
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20705
-
21073
-
20706
-    OS_LIBS += [
21074
-    OS_LIBS += [
21075
-        "dl",
20707
-        "rt"
21076
-        "rt"
20708
-    ]
21077
-    ]
20709
-
21078
-
Lines 20829-20839 index 0e14a5d16836..81e9778691b7 100644 Link Here
20829
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21198
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
20830
-    DEFINES["_GNU_SOURCE"] = True
21199
-    DEFINES["_GNU_SOURCE"] = True
20831
-
21200
-
20832
 Library("bitrate_allocator_gn")
21201
 Library("audio_gn")
20833
diff --git third_party/libwebrtc/call/bitrate_configurator_gn/moz.build third_party/libwebrtc/call/bitrate_configurator_gn/moz.build
21202
diff --git third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build
20834
index 4e17c8a7a6e4..4031e4169cf6 100644
21203
index ef559b9bc6ee..cbfaaadb7d89 100644
20835
--- third_party/libwebrtc/call/bitrate_configurator_gn/moz.build
21204
--- third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build
20836
+++ third_party/libwebrtc/call/bitrate_configurator_gn/moz.build
21205
+++ third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build
20837
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21206
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
20838
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21207
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
20839
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
21208
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 20855-20861 index 4e17c8a7a6e4..4031e4169cf6 100644 Link Here
20855
 
21224
 
20856
 FINAL_LIBRARY = "webrtc"
21225
 FINAL_LIBRARY = "webrtc"
20857
 
21226
 
20858
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
21227
@@ -43,172 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
20859
 if CONFIG["MOZ_DEBUG"] == "1":
21228
 if CONFIG["MOZ_DEBUG"] == "1":
20860
 
21229
 
20861
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
21230
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 20875-20881 index 4e17c8a7a6e4..4031e4169cf6 100644 Link Here
20875
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21244
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20876
-
21245
-
20877
-    OS_LIBS += [
21246
-    OS_LIBS += [
20878
-        "GLESv2",
20879
-        "log"
21247
-        "log"
20880
-    ]
21248
-    ]
20881
-
21249
-
Lines 20905-20911 index 4e17c8a7a6e4..4031e4169cf6 100644 Link Here
20905
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21273
-    DEFINES["__STDC_FORMAT_MACROS"] = True
20906
-
21274
-
20907
-    OS_LIBS += [
21275
-    OS_LIBS += [
20908
-        "dl",
20909
-        "rt"
21276
-        "rt"
20910
-    ]
21277
-    ]
20911
-
21278
-
Lines 21031-21041 index 4e17c8a7a6e4..4031e4169cf6 100644 Link Here
21031
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21398
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21032
-    DEFINES["_GNU_SOURCE"] = True
21399
-    DEFINES["_GNU_SOURCE"] = True
21033
-
21400
-
21034
 Library("bitrate_configurator_gn")
21401
 Library("audio_frame_operations_gn")
21035
diff --git third_party/libwebrtc/call/call_gn/moz.build third_party/libwebrtc/call/call_gn/moz.build
21402
diff --git third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build
21036
index 8a43be523080..efd9bf279328 100644
21403
index 3c1d8cc5e85a..f975048caa6c 100644
21037
--- third_party/libwebrtc/call/call_gn/moz.build
21404
--- third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build
21038
+++ third_party/libwebrtc/call/call_gn/moz.build
21405
+++ third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build
21039
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21406
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21040
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21407
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21041
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
21408
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 21057-21063 index 8a43be523080..efd9bf279328 100644 Link Here
21057
 
21424
 
21058
 FINAL_LIBRARY = "webrtc"
21425
 FINAL_LIBRARY = "webrtc"
21059
 
21426
 
21060
@@ -45,174 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
21427
@@ -50,174 +60,15 @@ if not CONFIG["MOZ_DEBUG"]:
21061
 if CONFIG["MOZ_DEBUG"] == "1":
21428
 if CONFIG["MOZ_DEBUG"] == "1":
21062
 
21429
 
21063
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
21430
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 21233-21243 index 8a43be523080..efd9bf279328 100644 Link Here
21233
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21600
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21234
-    DEFINES["_GNU_SOURCE"] = True
21601
-    DEFINES["_GNU_SOURCE"] = True
21235
-
21602
-
21236
 Library("call_gn")
21603
 Library("resource_adaptation_gn")
21237
diff --git third_party/libwebrtc/call/call_interfaces_gn/moz.build third_party/libwebrtc/call/call_interfaces_gn/moz.build
21604
diff --git third_party/libwebrtc/call/audio_sender_interface_gn/moz.build third_party/libwebrtc/call/audio_sender_interface_gn/moz.build
21238
index fa81c96c30ba..811eabde6332 100644
21605
index 8e41f2704f3c..f8d69690a873 100644
21239
--- third_party/libwebrtc/call/call_interfaces_gn/moz.build
21606
--- third_party/libwebrtc/call/audio_sender_interface_gn/moz.build
21240
+++ third_party/libwebrtc/call/call_interfaces_gn/moz.build
21607
+++ third_party/libwebrtc/call/audio_sender_interface_gn/moz.build
21241
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21608
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21242
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21609
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21243
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
21610
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 21259-21265 index fa81c96c30ba..811eabde6332 100644 Link Here
21259
 
21626
 
21260
 FINAL_LIBRARY = "webrtc"
21627
 FINAL_LIBRARY = "webrtc"
21261
 
21628
 
21262
@@ -47,174 +57,15 @@ if not CONFIG["MOZ_DEBUG"]:
21629
@@ -37,161 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
21263
 if CONFIG["MOZ_DEBUG"] == "1":
21630
 if CONFIG["MOZ_DEBUG"] == "1":
21264
 
21631
 
21265
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
21632
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 21279-21285 index fa81c96c30ba..811eabde6332 100644 Link Here
21279
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21646
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21280
-
21647
-
21281
-    OS_LIBS += [
21648
-    OS_LIBS += [
21282
-        "GLESv2",
21283
-        "log"
21649
-        "log"
21284
-    ]
21650
-    ]
21285
-
21651
-
Lines 21308-21318 index fa81c96c30ba..811eabde6332 100644 Link Here
21308
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
21674
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
21309
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21675
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21310
-
21676
-
21311
-    OS_LIBS += [
21312
-        "dl",
21313
-        "rt"
21314
-    ]
21315
-
21316
-if CONFIG["OS_TARGET"] == "OpenBSD":
21677
-if CONFIG["OS_TARGET"] == "OpenBSD":
21317
-
21678
-
21318
-    DEFINES["USE_GLIB"] = "1"
21679
-    DEFINES["USE_GLIB"] = "1"
Lines 21355-21363 index fa81c96c30ba..811eabde6332 100644 Link Here
21355
-    DEFINES["__STD_C"] = True
21716
-    DEFINES["__STD_C"] = True
21356
-
21717
-
21357
-    OS_LIBS += [
21718
-    OS_LIBS += [
21358
-        "crypt32",
21359
-        "iphlpapi",
21360
-        "secur32",
21361
-        "winmm"
21719
-        "winmm"
21362
-    ]
21720
-    ]
21363
+    DEFINES["_DEBUG"] = True
21721
+    DEFINES["_DEBUG"] = True
Lines 21369-21378 index fa81c96c30ba..811eabde6332 100644 Link Here
21369
 
21727
 
21370
-if CONFIG["CPU_ARCH"] == "arm":
21728
-if CONFIG["CPU_ARCH"] == "arm":
21371
-
21729
-
21372
-    CXXFLAGS += [
21373
-        "-mfpu=neon"
21374
-    ]
21375
-
21376
-    DEFINES["WEBRTC_ARCH_ARM"] = True
21730
-    DEFINES["WEBRTC_ARCH_ARM"] = True
21377
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
21731
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
21378
-    DEFINES["WEBRTC_HAS_NEON"] = True
21732
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 21435-21445 index fa81c96c30ba..811eabde6332 100644 Link Here
21435
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21789
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21436
-    DEFINES["_GNU_SOURCE"] = True
21790
-    DEFINES["_GNU_SOURCE"] = True
21437
-
21791
-
21438
 Library("call_interfaces_gn")
21792
 Library("audio_sender_interface_gn")
21439
diff --git third_party/libwebrtc/call/fake_network_gn/moz.build third_party/libwebrtc/call/fake_network_gn/moz.build
21793
diff --git third_party/libwebrtc/call/bitrate_allocator_gn/moz.build third_party/libwebrtc/call/bitrate_allocator_gn/moz.build
21440
index 6641aaf07204..e8dd8acc81b8 100644
21794
index 0e14a5d16836..81e9778691b7 100644
21441
--- third_party/libwebrtc/call/fake_network_gn/moz.build
21795
--- third_party/libwebrtc/call/bitrate_allocator_gn/moz.build
21442
+++ third_party/libwebrtc/call/fake_network_gn/moz.build
21796
+++ third_party/libwebrtc/call/bitrate_allocator_gn/moz.build
21443
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21797
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21444
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21798
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21445
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
21799
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 21461-21467 index 6641aaf07204..e8dd8acc81b8 100644 Link Here
21461
 
21815
 
21462
 FINAL_LIBRARY = "webrtc"
21816
 FINAL_LIBRARY = "webrtc"
21463
 
21817
 
21464
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
21818
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
21465
 if CONFIG["MOZ_DEBUG"] == "1":
21819
 if CONFIG["MOZ_DEBUG"] == "1":
21466
 
21820
 
21467
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
21821
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 21481-21487 index 6641aaf07204..e8dd8acc81b8 100644 Link Here
21481
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21835
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21482
-
21836
-
21483
-    OS_LIBS += [
21837
-    OS_LIBS += [
21484
-        "GLESv2",
21485
-        "log"
21838
-        "log"
21486
-    ]
21839
-    ]
21487
-
21840
-
Lines 21511-21517 index 6641aaf07204..e8dd8acc81b8 100644 Link Here
21511
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21864
-    DEFINES["__STDC_FORMAT_MACROS"] = True
21512
-
21865
-
21513
-    OS_LIBS += [
21866
-    OS_LIBS += [
21514
-        "dl",
21515
-        "rt"
21867
-        "rt"
21516
-    ]
21868
-    ]
21517
-
21869
-
Lines 21637-21647 index 6641aaf07204..e8dd8acc81b8 100644 Link Here
21637
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21989
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21638
-    DEFINES["_GNU_SOURCE"] = True
21990
-    DEFINES["_GNU_SOURCE"] = True
21639
-
21991
-
21640
 Library("fake_network_gn")
21992
 Library("bitrate_allocator_gn")
21641
diff --git third_party/libwebrtc/call/receive_stream_interface_gn/moz.build third_party/libwebrtc/call/receive_stream_interface_gn/moz.build
21993
diff --git third_party/libwebrtc/call/bitrate_configurator_gn/moz.build third_party/libwebrtc/call/bitrate_configurator_gn/moz.build
21642
index a7006906326a..3dc41cf90cd8 100644
21994
index 4e17c8a7a6e4..4031e4169cf6 100644
21643
--- third_party/libwebrtc/call/receive_stream_interface_gn/moz.build
21995
--- third_party/libwebrtc/call/bitrate_configurator_gn/moz.build
21644
+++ third_party/libwebrtc/call/receive_stream_interface_gn/moz.build
21996
+++ third_party/libwebrtc/call/bitrate_configurator_gn/moz.build
21645
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21997
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21646
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21998
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21647
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
21999
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 21663-21669 index a7006906326a..3dc41cf90cd8 100644 Link Here
21663
 
22015
 
21664
 FINAL_LIBRARY = "webrtc"
22016
 FINAL_LIBRARY = "webrtc"
21665
 
22017
 
21666
@@ -37,170 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
22018
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
21667
 if CONFIG["MOZ_DEBUG"] == "1":
22019
 if CONFIG["MOZ_DEBUG"] == "1":
21668
 
22020
 
21669
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
22021
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 21773-21778 index a7006906326a..3dc41cf90cd8 100644 Link Here
21773
 
22125
 
21774
-if CONFIG["CPU_ARCH"] == "arm":
22126
-if CONFIG["CPU_ARCH"] == "arm":
21775
-
22127
-
22128
-    CXXFLAGS += [
22129
-        "-mfpu=neon"
22130
-    ]
22131
-
21776
-    DEFINES["WEBRTC_ARCH_ARM"] = True
22132
-    DEFINES["WEBRTC_ARCH_ARM"] = True
21777
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
22133
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
21778
-    DEFINES["WEBRTC_HAS_NEON"] = True
22134
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 21835-21845 index a7006906326a..3dc41cf90cd8 100644 Link Here
21835
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22191
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
21836
-    DEFINES["_GNU_SOURCE"] = True
22192
-    DEFINES["_GNU_SOURCE"] = True
21837
-
22193
-
21838
 Library("receive_stream_interface_gn")
22194
 Library("bitrate_configurator_gn")
21839
diff --git third_party/libwebrtc/call/rtp_interfaces_gn/moz.build third_party/libwebrtc/call/rtp_interfaces_gn/moz.build
22195
diff --git third_party/libwebrtc/call/call_gn/moz.build third_party/libwebrtc/call/call_gn/moz.build
21840
index 9a4504208de8..8de25ccf5453 100644
22196
index 8a43be523080..efd9bf279328 100644
21841
--- third_party/libwebrtc/call/rtp_interfaces_gn/moz.build
22197
--- third_party/libwebrtc/call/call_gn/moz.build
21842
+++ third_party/libwebrtc/call/rtp_interfaces_gn/moz.build
22198
+++ third_party/libwebrtc/call/call_gn/moz.build
21843
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
22199
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
21844
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
22200
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
21845
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
22201
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 21861-21867 index 9a4504208de8..8de25ccf5453 100644 Link Here
21861
 
22217
 
21862
 FINAL_LIBRARY = "webrtc"
22218
 FINAL_LIBRARY = "webrtc"
21863
 
22219
 
21864
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
22220
@@ -45,174 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
21865
 if CONFIG["MOZ_DEBUG"] == "1":
22221
 if CONFIG["MOZ_DEBUG"] == "1":
21866
 
22222
 
21867
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
22223
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 22037-22047 index 9a4504208de8..8de25ccf5453 100644 Link Here
22037
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22393
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22038
-    DEFINES["_GNU_SOURCE"] = True
22394
-    DEFINES["_GNU_SOURCE"] = True
22039
-
22395
-
22040
 Library("rtp_interfaces_gn")
22396
 Library("call_gn")
22041
diff --git third_party/libwebrtc/call/rtp_receiver_gn/moz.build third_party/libwebrtc/call/rtp_receiver_gn/moz.build
22397
diff --git third_party/libwebrtc/call/call_interfaces_gn/moz.build third_party/libwebrtc/call/call_interfaces_gn/moz.build
22042
index f245b8fe8a5f..f57bb730b3c9 100644
22398
index fa81c96c30ba..811eabde6332 100644
22043
--- third_party/libwebrtc/call/rtp_receiver_gn/moz.build
22399
--- third_party/libwebrtc/call/call_interfaces_gn/moz.build
22044
+++ third_party/libwebrtc/call/rtp_receiver_gn/moz.build
22400
+++ third_party/libwebrtc/call/call_interfaces_gn/moz.build
22045
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
22401
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
22046
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
22402
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
22047
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
22403
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 22063-22069 index f245b8fe8a5f..f57bb730b3c9 100644 Link Here
22063
 
22419
 
22064
 FINAL_LIBRARY = "webrtc"
22420
 FINAL_LIBRARY = "webrtc"
22065
 
22421
 
22066
@@ -43,174 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
22422
@@ -47,174 +57,15 @@ if not CONFIG["MOZ_DEBUG"]:
22067
 if CONFIG["MOZ_DEBUG"] == "1":
22423
 if CONFIG["MOZ_DEBUG"] == "1":
22068
 
22424
 
22069
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
22425
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 22239-22249 index f245b8fe8a5f..f57bb730b3c9 100644 Link Here
22239
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22595
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22240
-    DEFINES["_GNU_SOURCE"] = True
22596
-    DEFINES["_GNU_SOURCE"] = True
22241
-
22597
-
22242
 Library("rtp_receiver_gn")
22598
 Library("call_interfaces_gn")
22243
diff --git third_party/libwebrtc/call/rtp_sender_gn/moz.build third_party/libwebrtc/call/rtp_sender_gn/moz.build
22599
diff --git third_party/libwebrtc/call/fake_network_gn/moz.build third_party/libwebrtc/call/fake_network_gn/moz.build
22244
index 56e1d8324603..4f93f4988594 100644
22600
index 6641aaf07204..e8dd8acc81b8 100644
22245
--- third_party/libwebrtc/call/rtp_sender_gn/moz.build
22601
--- third_party/libwebrtc/call/fake_network_gn/moz.build
22246
+++ third_party/libwebrtc/call/rtp_sender_gn/moz.build
22602
+++ third_party/libwebrtc/call/fake_network_gn/moz.build
22247
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
22603
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
22248
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
22604
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
22249
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
22605
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 22265-22271 index 56e1d8324603..4f93f4988594 100644 Link Here
22265
 
22621
 
22266
 FINAL_LIBRARY = "webrtc"
22622
 FINAL_LIBRARY = "webrtc"
22267
 
22623
 
22268
@@ -43,174 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
22624
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
22269
 if CONFIG["MOZ_DEBUG"] == "1":
22625
 if CONFIG["MOZ_DEBUG"] == "1":
22270
 
22626
 
22271
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
22627
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 22441-22451 index 56e1d8324603..4f93f4988594 100644 Link Here
22441
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22797
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22442
-    DEFINES["_GNU_SOURCE"] = True
22798
-    DEFINES["_GNU_SOURCE"] = True
22443
-
22799
-
22444
 Library("rtp_sender_gn")
22800
 Library("fake_network_gn")
22445
diff --git third_party/libwebrtc/call/simulated_network_gn/moz.build third_party/libwebrtc/call/simulated_network_gn/moz.build
22801
diff --git third_party/libwebrtc/call/receive_stream_interface_gn/moz.build third_party/libwebrtc/call/receive_stream_interface_gn/moz.build
22446
index dc88d9e8c718..0d858916f24b 100644
22802
index a7006906326a..3dc41cf90cd8 100644
22447
--- third_party/libwebrtc/call/simulated_network_gn/moz.build
22803
--- third_party/libwebrtc/call/receive_stream_interface_gn/moz.build
22448
+++ third_party/libwebrtc/call/simulated_network_gn/moz.build
22804
+++ third_party/libwebrtc/call/receive_stream_interface_gn/moz.build
22449
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
22805
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
22450
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
22806
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
22451
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
22807
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 22467-22473 index dc88d9e8c718..0d858916f24b 100644 Link Here
22467
 
22823
 
22468
 FINAL_LIBRARY = "webrtc"
22824
 FINAL_LIBRARY = "webrtc"
22469
 
22825
 
22470
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
22826
@@ -37,170 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
22471
 if CONFIG["MOZ_DEBUG"] == "1":
22827
 if CONFIG["MOZ_DEBUG"] == "1":
22472
 
22828
 
22473
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
22829
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 22577-22586 index dc88d9e8c718..0d858916f24b 100644 Link Here
22577
 
22933
 
22578
-if CONFIG["CPU_ARCH"] == "arm":
22934
-if CONFIG["CPU_ARCH"] == "arm":
22579
-
22935
-
22580
-    CXXFLAGS += [
22581
-        "-mfpu=neon"
22582
-    ]
22583
-
22584
-    DEFINES["WEBRTC_ARCH_ARM"] = True
22936
-    DEFINES["WEBRTC_ARCH_ARM"] = True
22585
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
22937
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
22586
-    DEFINES["WEBRTC_HAS_NEON"] = True
22938
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 22643-22653 index dc88d9e8c718..0d858916f24b 100644 Link Here
22643
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22995
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22644
-    DEFINES["_GNU_SOURCE"] = True
22996
-    DEFINES["_GNU_SOURCE"] = True
22645
-
22997
-
22646
 Library("simulated_network_gn")
22998
 Library("receive_stream_interface_gn")
22647
diff --git third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build
22999
diff --git third_party/libwebrtc/call/rtp_interfaces_gn/moz.build third_party/libwebrtc/call/rtp_interfaces_gn/moz.build
22648
index 08140f915b20..46df12c957ef 100644
23000
index 9a4504208de8..8de25ccf5453 100644
22649
--- third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build
23001
--- third_party/libwebrtc/call/rtp_interfaces_gn/moz.build
22650
+++ third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build
23002
+++ third_party/libwebrtc/call/rtp_interfaces_gn/moz.build
22651
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
23003
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
22652
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23004
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
22653
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
23005
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 22669-22675 index 08140f915b20..46df12c957ef 100644 Link Here
22669
 
23021
 
22670
 FINAL_LIBRARY = "webrtc"
23022
 FINAL_LIBRARY = "webrtc"
22671
 
23023
 
22672
@@ -37,170 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
23024
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
22673
 if CONFIG["MOZ_DEBUG"] == "1":
23025
 if CONFIG["MOZ_DEBUG"] == "1":
22674
 
23026
 
22675
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
23027
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 22779-22784 index 08140f915b20..46df12c957ef 100644 Link Here
22779
 
23131
 
22780
-if CONFIG["CPU_ARCH"] == "arm":
23132
-if CONFIG["CPU_ARCH"] == "arm":
22781
-
23133
-
23134
-    CXXFLAGS += [
23135
-        "-mfpu=neon"
23136
-    ]
23137
-
22782
-    DEFINES["WEBRTC_ARCH_ARM"] = True
23138
-    DEFINES["WEBRTC_ARCH_ARM"] = True
22783
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
23139
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
22784
-    DEFINES["WEBRTC_HAS_NEON"] = True
23140
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 22841-22851 index 08140f915b20..46df12c957ef 100644 Link Here
22841
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23197
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
22842
-    DEFINES["_GNU_SOURCE"] = True
23198
-    DEFINES["_GNU_SOURCE"] = True
22843
-
23199
-
22844
 Library("simulated_packet_receiver_gn")
23200
 Library("rtp_interfaces_gn")
22845
diff --git third_party/libwebrtc/call/version_gn/moz.build third_party/libwebrtc/call/version_gn/moz.build
23201
diff --git third_party/libwebrtc/call/rtp_receiver_gn/moz.build third_party/libwebrtc/call/rtp_receiver_gn/moz.build
22846
index 6f82bc3c2801..b0a2d081546a 100644
23202
index f245b8fe8a5f..f57bb730b3c9 100644
22847
--- third_party/libwebrtc/call/version_gn/moz.build
23203
--- third_party/libwebrtc/call/rtp_receiver_gn/moz.build
22848
+++ third_party/libwebrtc/call/version_gn/moz.build
23204
+++ third_party/libwebrtc/call/rtp_receiver_gn/moz.build
22849
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
23205
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
22850
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23206
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
22851
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
23207
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 22867-22873 index 6f82bc3c2801..b0a2d081546a 100644 Link Here
22867
 
23223
 
22868
 FINAL_LIBRARY = "webrtc"
23224
 FINAL_LIBRARY = "webrtc"
22869
 
23225
 
22870
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
23226
@@ -43,174 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
22871
 if CONFIG["MOZ_DEBUG"] == "1":
23227
 if CONFIG["MOZ_DEBUG"] == "1":
22872
 
23228
 
22873
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
23229
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 22886-22891 index 6f82bc3c2801..b0a2d081546a 100644 Link Here
22886
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23242
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
22887
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23243
-    DEFINES["__STDC_FORMAT_MACROS"] = True
22888
-
23244
-
23245
-    OS_LIBS += [
23246
-        "GLESv2",
23247
-        "log"
23248
-    ]
23249
-
22889
-if CONFIG["OS_TARGET"] == "Darwin":
23250
-if CONFIG["OS_TARGET"] == "Darwin":
22890
-
23251
-
22891
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23252
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 22911-22916 index 6f82bc3c2801..b0a2d081546a 100644 Link Here
22911
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23272
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
22912
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23273
-    DEFINES["__STDC_FORMAT_MACROS"] = True
22913
-
23274
-
23275
-    OS_LIBS += [
23276
-        "dl",
23277
-        "rt"
23278
-    ]
23279
-
22914
-if CONFIG["OS_TARGET"] == "OpenBSD":
23280
-if CONFIG["OS_TARGET"] == "OpenBSD":
22915
-
23281
-
22916
-    DEFINES["USE_GLIB"] = "1"
23282
-    DEFINES["USE_GLIB"] = "1"
Lines 22951-22956 index 6f82bc3c2801..b0a2d081546a 100644 Link Here
22951
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
23317
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
22952
-    DEFINES["_WINDOWS"] = True
23318
-    DEFINES["_WINDOWS"] = True
22953
-    DEFINES["__STD_C"] = True
23319
-    DEFINES["__STD_C"] = True
23320
-
23321
-    OS_LIBS += [
23322
-        "crypt32",
23323
-        "iphlpapi",
23324
-        "secur32",
23325
-        "winmm"
23326
-    ]
22954
+    DEFINES["_DEBUG"] = True
23327
+    DEFINES["_DEBUG"] = True
22955
 
23328
 
22956
 if CONFIG["CPU_ARCH"] == "aarch64":
23329
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 23026-23036 index 6f82bc3c2801..b0a2d081546a 100644 Link Here
23026
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23399
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23027
-    DEFINES["_GNU_SOURCE"] = True
23400
-    DEFINES["_GNU_SOURCE"] = True
23028
-
23401
-
23029
 Library("version_gn")
23402
 Library("rtp_receiver_gn")
23030
diff --git third_party/libwebrtc/call/video_stream_api_gn/moz.build third_party/libwebrtc/call/video_stream_api_gn/moz.build
23403
diff --git third_party/libwebrtc/call/rtp_sender_gn/moz.build third_party/libwebrtc/call/rtp_sender_gn/moz.build
23031
index ee981f9452bc..162f225011f8 100644
23404
index 56e1d8324603..4f93f4988594 100644
23032
--- third_party/libwebrtc/call/video_stream_api_gn/moz.build
23405
--- third_party/libwebrtc/call/rtp_sender_gn/moz.build
23033
+++ third_party/libwebrtc/call/video_stream_api_gn/moz.build
23406
+++ third_party/libwebrtc/call/rtp_sender_gn/moz.build
23034
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
23407
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
23035
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23408
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23036
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
23409
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 23052-23058 index ee981f9452bc..162f225011f8 100644 Link Here
23052
 
23425
 
23053
 FINAL_LIBRARY = "webrtc"
23426
 FINAL_LIBRARY = "webrtc"
23054
 
23427
 
23055
@@ -42,174 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
23428
@@ -43,174 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
23056
 if CONFIG["MOZ_DEBUG"] == "1":
23429
 if CONFIG["MOZ_DEBUG"] == "1":
23057
 
23430
 
23058
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
23431
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 23228-23246 index ee981f9452bc..162f225011f8 100644 Link Here
23228
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23601
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23229
-    DEFINES["_GNU_SOURCE"] = True
23602
-    DEFINES["_GNU_SOURCE"] = True
23230
-
23603
-
23231
 Library("video_stream_api_gn")
23604
 Library("rtp_sender_gn")
23232
diff --git third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build
23605
diff --git third_party/libwebrtc/call/simulated_network_gn/moz.build third_party/libwebrtc/call/simulated_network_gn/moz.build
23233
index df7f52b4c647..4d14cdd35d47 100644
23606
index dc88d9e8c718..0d858916f24b 100644
23234
--- third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build
23607
--- third_party/libwebrtc/call/simulated_network_gn/moz.build
23235
+++ third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build
23608
+++ third_party/libwebrtc/call/simulated_network_gn/moz.build
23236
@@ -17,11 +17,20 @@ CXXFLAGS += [
23609
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
23237
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23610
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23238
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
23611
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
23239
 DEFINES["RTC_ENABLE_VP9"] = True
23612
 DEFINES["RTC_ENABLE_VP9"] = True
23240
+DEFINES["USE_GLIB"] = "1"
23613
+DEFINES["USE_GLIB"] = "1"
23241
+DEFINES["USE_OZONE"] = "1"
23614
+DEFINES["USE_OZONE"] = "1"
23242
+DEFINES["WEBRTC_BSD"] = True
23615
+DEFINES["WEBRTC_BSD"] = True
23243
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
23616
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
23244
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
23617
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
23245
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
23618
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
23246
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
23619
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
Lines 23254-23260 index df7f52b4c647..4d14cdd35d47 100644 Link Here
23254
 
23627
 
23255
 FINAL_LIBRARY = "webrtc"
23628
 FINAL_LIBRARY = "webrtc"
23256
 
23629
 
23257
@@ -48,127 +57,10 @@ if not CONFIG["MOZ_DEBUG"]:
23630
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
23258
 if CONFIG["MOZ_DEBUG"] == "1":
23631
 if CONFIG["MOZ_DEBUG"] == "1":
23259
 
23632
 
23260
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
23633
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 23266-23271 index df7f52b4c647..4d14cdd35d47 100644 Link Here
23266
-    DEFINES["HAVE_SYS_UIO_H"] = True
23639
-    DEFINES["HAVE_SYS_UIO_H"] = True
23267
-    DEFINES["WEBRTC_ANDROID"] = True
23640
-    DEFINES["WEBRTC_ANDROID"] = True
23268
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
23641
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
23642
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23269
-    DEFINES["WEBRTC_LINUX"] = True
23643
-    DEFINES["WEBRTC_LINUX"] = True
23270
-    DEFINES["WEBRTC_POSIX"] = True
23644
-    DEFINES["WEBRTC_POSIX"] = True
23271
-    DEFINES["_GNU_SOURCE"] = True
23645
-    DEFINES["_GNU_SOURCE"] = True
Lines 23273-23283 index df7f52b4c647..4d14cdd35d47 100644 Link Here
23273
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23647
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23274
-
23648
-
23275
-    OS_LIBS += [
23649
-    OS_LIBS += [
23650
-        "GLESv2",
23276
-        "log"
23651
-        "log"
23277
-    ]
23652
-    ]
23278
-
23653
-
23279
-if CONFIG["OS_TARGET"] == "Darwin":
23654
-if CONFIG["OS_TARGET"] == "Darwin":
23280
-
23655
-
23656
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23281
-    DEFINES["WEBRTC_MAC"] = True
23657
-    DEFINES["WEBRTC_MAC"] = True
23282
-    DEFINES["WEBRTC_POSIX"] = True
23658
-    DEFINES["WEBRTC_POSIX"] = True
23283
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
23659
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 23295-23307 index df7f52b4c647..4d14cdd35d47 100644 Link Here
23295
-    DEFINES["WEBRTC_LINUX"] = True
23671
-    DEFINES["WEBRTC_LINUX"] = True
23296
-    DEFINES["WEBRTC_POSIX"] = True
23672
-    DEFINES["WEBRTC_POSIX"] = True
23297
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
23673
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
23298
-    DEFINES["_GNU_SOURCE"] = True
23299
-    DEFINES["_LARGEFILE64_SOURCE"] = True
23674
-    DEFINES["_LARGEFILE64_SOURCE"] = True
23300
-    DEFINES["_LARGEFILE_SOURCE"] = True
23675
-    DEFINES["_LARGEFILE_SOURCE"] = True
23301
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23676
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23302
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23677
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23303
-
23678
-
23304
-    OS_LIBS += [
23679
-    OS_LIBS += [
23680
-        "dl",
23305
-        "rt"
23681
-        "rt"
23306
-    ]
23682
-    ]
23307
-
23683
-
Lines 23311-23316 index df7f52b4c647..4d14cdd35d47 100644 Link Here
23311
-    DEFINES["USE_OZONE"] = "1"
23687
-    DEFINES["USE_OZONE"] = "1"
23312
-    DEFINES["USE_X11"] = "1"
23688
-    DEFINES["USE_X11"] = "1"
23313
-    DEFINES["WEBRTC_BSD"] = True
23689
-    DEFINES["WEBRTC_BSD"] = True
23690
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23314
-    DEFINES["WEBRTC_POSIX"] = True
23691
-    DEFINES["WEBRTC_POSIX"] = True
23315
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
23692
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
23316
-    DEFINES["_LARGEFILE64_SOURCE"] = True
23693
-    DEFINES["_LARGEFILE64_SOURCE"] = True
Lines 23326-23331 index df7f52b4c647..4d14cdd35d47 100644 Link Here
23326
-    DEFINES["PSAPI_VERSION"] = "2"
23703
-    DEFINES["PSAPI_VERSION"] = "2"
23327
-    DEFINES["UNICODE"] = True
23704
-    DEFINES["UNICODE"] = True
23328
-    DEFINES["USE_AURA"] = "1"
23705
-    DEFINES["USE_AURA"] = "1"
23706
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23329
-    DEFINES["WEBRTC_WIN"] = True
23707
-    DEFINES["WEBRTC_WIN"] = True
23330
-    DEFINES["WIN32"] = True
23708
-    DEFINES["WIN32"] = True
23331
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
23709
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 23350-23497 index df7f52b4c647..4d14cdd35d47 100644 Link Here
23350
-        "secur32",
23728
-        "secur32",
23351
-        "winmm"
23729
-        "winmm"
23352
-    ]
23730
-    ]
23353
-
23354
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
23355
-
23356
-    DEFINES["_DEBUG"] = True
23357
-
23358
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
23359
-
23360
-    DEFINES["_DEBUG"] = True
23361
-
23362
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
23363
-
23364
-    DEFINES["_DEBUG"] = True
23365
-
23366
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
23367
-
23368
     DEFINES["_DEBUG"] = True
23369
 
23370
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
23371
-
23372
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
23373
-
23374
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
23375
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
23376
 
23377
     DEFINES["USE_X11"] = "1"
23378
 
23379
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
23380
-
23381
-    OS_LIBS += [
23382
-        "android_support"
23383
-    ]
23384
-
23385
 Library("common_audio_avx2_gn")
23386
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
23387
index 9a7a8fa7cc91..263d4c990206 100644
23388
--- third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build
23389
+++ third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build
23390
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
23391
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23392
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
23393
 DEFINES["RTC_ENABLE_VP9"] = True
23394
+DEFINES["USE_GLIB"] = "1"
23395
+DEFINES["USE_OZONE"] = "1"
23396
+DEFINES["WEBRTC_BSD"] = True
23397
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
23398
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
23399
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
23400
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
23401
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
23402
+DEFINES["WEBRTC_POSIX"] = True
23403
+DEFINES["_FILE_OFFSET_BITS"] = "64"
23404
+DEFINES["_LARGEFILE64_SOURCE"] = True
23405
+DEFINES["_LARGEFILE_SOURCE"] = True
23406
+DEFINES["__STDC_CONSTANT_MACROS"] = True
23407
+DEFINES["__STDC_FORMAT_MACROS"] = True
23408
 
23409
 FINAL_LIBRARY = "webrtc"
23410
 
23411
@@ -37,158 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
23412
 if CONFIG["MOZ_DEBUG"] == "1":
23413
 
23414
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
23415
-
23416
-if CONFIG["OS_TARGET"] == "Android":
23417
-
23418
-    DEFINES["ANDROID"] = True
23419
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
23420
-    DEFINES["HAVE_SYS_UIO_H"] = True
23421
-    DEFINES["WEBRTC_ANDROID"] = True
23422
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
23423
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23424
-    DEFINES["WEBRTC_LINUX"] = True
23425
-    DEFINES["WEBRTC_POSIX"] = True
23426
-    DEFINES["_GNU_SOURCE"] = True
23427
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23428
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23429
-
23430
-if CONFIG["OS_TARGET"] == "Darwin":
23431
-
23432
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23433
-    DEFINES["WEBRTC_MAC"] = True
23434
-    DEFINES["WEBRTC_POSIX"] = True
23435
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
23436
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
23437
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23438
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23439
-
23440
-if CONFIG["OS_TARGET"] == "Linux":
23441
-
23442
-    DEFINES["USE_AURA"] = "1"
23443
-    DEFINES["USE_GLIB"] = "1"
23444
-    DEFINES["USE_NSS_CERTS"] = "1"
23445
-    DEFINES["USE_OZONE"] = "1"
23446
-    DEFINES["USE_UDEV"] = True
23447
-    DEFINES["WEBRTC_LINUX"] = True
23448
-    DEFINES["WEBRTC_POSIX"] = True
23449
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
23450
-    DEFINES["_LARGEFILE64_SOURCE"] = True
23451
-    DEFINES["_LARGEFILE_SOURCE"] = True
23452
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23453
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23454
-
23455
-if CONFIG["OS_TARGET"] == "OpenBSD":
23456
-
23457
-    DEFINES["USE_GLIB"] = "1"
23458
-    DEFINES["USE_OZONE"] = "1"
23459
-    DEFINES["USE_X11"] = "1"
23460
-    DEFINES["WEBRTC_BSD"] = True
23461
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23462
-    DEFINES["WEBRTC_POSIX"] = True
23463
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
23464
-    DEFINES["_LARGEFILE64_SOURCE"] = True
23465
-    DEFINES["_LARGEFILE_SOURCE"] = True
23466
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23467
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23468
-
23469
-if CONFIG["OS_TARGET"] == "WINNT":
23470
-
23471
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
23472
-    DEFINES["NOMINMAX"] = True
23473
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
23474
-    DEFINES["PSAPI_VERSION"] = "2"
23475
-    DEFINES["UNICODE"] = True
23476
-    DEFINES["USE_AURA"] = "1"
23477
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23478
-    DEFINES["WEBRTC_WIN"] = True
23479
-    DEFINES["WIN32"] = True
23480
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
23481
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
23482
-    DEFINES["WINVER"] = "0x0A00"
23483
-    DEFINES["_ATL_NO_OPENGL"] = True
23484
-    DEFINES["_CRT_RAND_S"] = True
23485
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
23486
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
23487
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
23488
-    DEFINES["_HAS_NODISCARD"] = True
23489
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
23490
-    DEFINES["_SECURE_ATL"] = True
23491
-    DEFINES["_UNICODE"] = True
23492
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
23493
-    DEFINES["_WINDOWS"] = True
23494
-    DEFINES["__STD_C"] = True
23495
+    DEFINES["_DEBUG"] = True
23731
+    DEFINES["_DEBUG"] = True
23496
 
23732
 
23497
 if CONFIG["CPU_ARCH"] == "aarch64":
23733
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 23501-23515 index 9a7a8fa7cc91..263d4c990206 100644 Link Here
23501
 
23737
 
23502
-if CONFIG["CPU_ARCH"] == "arm":
23738
-if CONFIG["CPU_ARCH"] == "arm":
23503
-
23739
-
23740
-    CXXFLAGS += [
23741
-        "-mfpu=neon"
23742
-    ]
23743
-
23504
-    DEFINES["WEBRTC_ARCH_ARM"] = True
23744
-    DEFINES["WEBRTC_ARCH_ARM"] = True
23505
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
23745
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
23506
-    DEFINES["WEBRTC_HAS_NEON"] = True
23746
-    DEFINES["WEBRTC_HAS_NEON"] = True
23507
-
23747
-
23508
-    SOURCES += [
23509
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse_arm.S",
23510
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12_armv7.S"
23511
-    ]
23512
-
23513
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
23748
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
23514
-
23749
-
23515
-    DEFINES["_DEBUG"] = True
23750
-    DEFINES["_DEBUG"] = True
Lines 23568-23578 index 9a7a8fa7cc91..263d4c990206 100644 Link Here
23568
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23803
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23569
-    DEFINES["_GNU_SOURCE"] = True
23804
-    DEFINES["_GNU_SOURCE"] = True
23570
-
23805
-
23571
 Library("common_audio_c_arm_asm_gn")
23806
 Library("simulated_network_gn")
23572
diff --git third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build
23807
diff --git third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build
23573
index 625fcd103a7b..b243ab2af3be 100644
23808
index 08140f915b20..46df12c957ef 100644
23574
--- third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build
23809
--- third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build
23575
+++ third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build
23810
+++ third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build
23576
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
23811
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
23577
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23812
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23578
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
23813
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 23594-23616 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23594
 
23829
 
23595
 FINAL_LIBRARY = "webrtc"
23830
 FINAL_LIBRARY = "webrtc"
23596
 
23831
 
23597
@@ -37,6 +47,7 @@ UNIFIED_SOURCES += [
23832
@@ -37,170 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
23598
     "/third_party/libwebrtc/common_audio/ring_buffer.c",
23599
     "/third_party/libwebrtc/common_audio/signal_processing/auto_corr_to_refl_coef.c",
23600
     "/third_party/libwebrtc/common_audio/signal_processing/auto_correlation.c",
23601
+    "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23602
     "/third_party/libwebrtc/common_audio/signal_processing/complex_fft.c",
23603
     "/third_party/libwebrtc/common_audio/signal_processing/copy_set_operations.c",
23604
     "/third_party/libwebrtc/common_audio/signal_processing/cross_correlation.c",
23605
@@ -44,6 +55,7 @@ UNIFIED_SOURCES += [
23606
     "/third_party/libwebrtc/common_audio/signal_processing/downsample_fast.c",
23607
     "/third_party/libwebrtc/common_audio/signal_processing/energy.c",
23608
     "/third_party/libwebrtc/common_audio/signal_processing/filter_ar.c",
23609
+    "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
23610
     "/third_party/libwebrtc/common_audio/signal_processing/filter_ma_fast_q12.c",
23611
     "/third_party/libwebrtc/common_audio/signal_processing/get_hanning_window.c",
23612
     "/third_party/libwebrtc/common_audio/signal_processing/get_scaling_square.c",
23613
@@ -79,228 +91,15 @@ if not CONFIG["MOZ_DEBUG"]:
23614
 if CONFIG["MOZ_DEBUG"] == "1":
23833
 if CONFIG["MOZ_DEBUG"] == "1":
23615
 
23834
 
23616
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
23835
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 23630-23635 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23630
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23849
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23631
-
23850
-
23632
-    OS_LIBS += [
23851
-    OS_LIBS += [
23852
-        "GLESv2",
23633
-        "log"
23853
-        "log"
23634
-    ]
23854
-    ]
23635
-
23855
-
Lines 23643-23653 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23643
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23863
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23644
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23864
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23645
-
23865
-
23646
-    UNIFIED_SOURCES += [
23647
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23648
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
23649
-    ]
23650
-
23651
-if CONFIG["OS_TARGET"] == "Linux":
23866
-if CONFIG["OS_TARGET"] == "Linux":
23652
-
23867
-
23653
-    DEFINES["USE_AURA"] = "1"
23868
-    DEFINES["USE_AURA"] = "1"
Lines 23664-23669 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23664
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23879
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23665
-
23880
-
23666
-    OS_LIBS += [
23881
-    OS_LIBS += [
23882
-        "dl",
23667
-        "rt"
23883
-        "rt"
23668
-    ]
23884
-    ]
23669
-
23885
-
Lines 23681-23691 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23681
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23897
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23682
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23898
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23683
-
23899
-
23684
-    UNIFIED_SOURCES += [
23685
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23686
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
23687
-    ]
23688
-
23689
-if CONFIG["OS_TARGET"] == "WINNT":
23900
-if CONFIG["OS_TARGET"] == "WINNT":
23690
-
23901
-
23691
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
23902
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
Lines 23719-23729 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23719
-        "secur32",
23930
-        "secur32",
23720
-        "winmm"
23931
-        "winmm"
23721
-    ]
23932
-    ]
23722
-
23723
-    UNIFIED_SOURCES += [
23724
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23725
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
23726
-    ]
23727
+    DEFINES["_DEBUG"] = True
23933
+    DEFINES["_DEBUG"] = True
23728
 
23934
 
23729
 if CONFIG["CPU_ARCH"] == "aarch64":
23935
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 23733-23753 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23733
 
23939
 
23734
-if CONFIG["CPU_ARCH"] == "arm":
23940
-if CONFIG["CPU_ARCH"] == "arm":
23735
-
23941
-
23736
-    CFLAGS += [
23737
-        "-mfpu=neon"
23738
-    ]
23739
-
23740
-    DEFINES["WEBRTC_ARCH_ARM"] = True
23942
-    DEFINES["WEBRTC_ARCH_ARM"] = True
23741
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
23943
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
23742
-    DEFINES["WEBRTC_HAS_NEON"] = True
23944
-    DEFINES["WEBRTC_HAS_NEON"] = True
23743
-
23945
-
23744
-if CONFIG["CPU_ARCH"] == "ppc64":
23745
-
23746
-    UNIFIED_SOURCES += [
23747
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23748
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
23749
-    ]
23750
-
23751
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
23946
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
23752
-
23947
-
23753
-    DEFINES["_DEBUG"] = True
23948
-    DEFINES["_DEBUG"] = True
Lines 23773-23785 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23773
 
23968
 
23774
     DEFINES["USE_X11"] = "1"
23969
     DEFINES["USE_X11"] = "1"
23775
 
23970
 
23776
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
23777
-
23778
-    UNIFIED_SOURCES += [
23779
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23780
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
23781
-    ]
23782
-
23783
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
23971
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
23784
-
23972
-
23785
-    OS_LIBS += [
23973
-    OS_LIBS += [
Lines 23793-23820 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23793
-        "android_support"
23981
-        "android_support"
23794
-    ]
23982
-    ]
23795
-
23983
-
23796
-    UNIFIED_SOURCES += [
23797
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23798
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
23799
-    ]
23800
-
23801
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android":
23802
-
23803
-    UNIFIED_SOURCES += [
23804
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23805
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
23806
-    ]
23807
-
23808
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
23984
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
23809
-
23985
-
23810
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23986
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23811
-    DEFINES["_GNU_SOURCE"] = True
23987
-    DEFINES["_GNU_SOURCE"] = True
23812
-
23988
-
23813
-    UNIFIED_SOURCES += [
23814
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23815
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
23816
-    ]
23817
-
23818
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
23989
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
23819
-
23990
-
23820
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23991
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 23825-23850 index 625fcd103a7b..b243ab2af3be 100644 Link Here
23825
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23996
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23826
-    DEFINES["_GNU_SOURCE"] = True
23997
-    DEFINES["_GNU_SOURCE"] = True
23827
-
23998
-
23828
-    UNIFIED_SOURCES += [
23829
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
23830
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
23831
-    ]
23832
-
23833
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
23999
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
23834
-
24000
-
23835
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24001
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
23836
-    DEFINES["_GNU_SOURCE"] = True
24002
-    DEFINES["_GNU_SOURCE"] = True
23837
-
24003
-
23838
-    UNIFIED_SOURCES += [
24004
 Library("simulated_packet_receiver_gn")
23839
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24005
diff --git third_party/libwebrtc/call/version_gn/moz.build third_party/libwebrtc/call/version_gn/moz.build
23840
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24006
index 6f82bc3c2801..b0a2d081546a 100644
23841
-    ]
24007
--- third_party/libwebrtc/call/version_gn/moz.build
23842
-
24008
+++ third_party/libwebrtc/call/version_gn/moz.build
23843
 Library("common_audio_c_gn")
23844
diff --git third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build
23845
index 241c8788eb2f..c2d49a2321a2 100644
23846
--- third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build
23847
+++ third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build
23848
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
24009
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
23849
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24010
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
23850
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
24011
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 23866-23872 index 241c8788eb2f..c2d49a2321a2 100644 Link Here
23866
 
24027
 
23867
 FINAL_LIBRARY = "webrtc"
24028
 FINAL_LIBRARY = "webrtc"
23868
 
24029
 
23869
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
24030
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
23870
 if CONFIG["MOZ_DEBUG"] == "1":
24031
 if CONFIG["MOZ_DEBUG"] == "1":
23871
 
24032
 
23872
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
24033
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 23885-23894 index 241c8788eb2f..c2d49a2321a2 100644 Link Here
23885
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24046
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23886
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24047
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23887
-
24048
-
23888
-    OS_LIBS += [
23889
-        "log"
23890
-    ]
23891
-
23892
-if CONFIG["OS_TARGET"] == "Darwin":
24049
-if CONFIG["OS_TARGET"] == "Darwin":
23893
-
24050
-
23894
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24051
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 23914-23923 index 241c8788eb2f..c2d49a2321a2 100644 Link Here
23914
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24071
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
23915
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24072
-    DEFINES["__STDC_FORMAT_MACROS"] = True
23916
-
24073
-
23917
-    OS_LIBS += [
23918
-        "rt"
23919
-    ]
23920
-
23921
-if CONFIG["OS_TARGET"] == "OpenBSD":
24074
-if CONFIG["OS_TARGET"] == "OpenBSD":
23922
-
24075
-
23923
-    DEFINES["USE_GLIB"] = "1"
24076
-    DEFINES["USE_GLIB"] = "1"
Lines 23958-23970 index 241c8788eb2f..c2d49a2321a2 100644 Link Here
23958
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
24111
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
23959
-    DEFINES["_WINDOWS"] = True
24112
-    DEFINES["_WINDOWS"] = True
23960
-    DEFINES["__STD_C"] = True
24113
-    DEFINES["__STD_C"] = True
23961
-
23962
-    OS_LIBS += [
23963
-        "crypt32",
23964
-        "iphlpapi",
23965
-        "secur32",
23966
-        "winmm"
23967
-    ]
23968
+    DEFINES["_DEBUG"] = True
24114
+    DEFINES["_DEBUG"] = True
23969
 
24115
 
23970
 if CONFIG["CPU_ARCH"] == "aarch64":
24116
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 24040-24050 index 241c8788eb2f..c2d49a2321a2 100644 Link Here
24040
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24186
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24041
-    DEFINES["_GNU_SOURCE"] = True
24187
-    DEFINES["_GNU_SOURCE"] = True
24042
-
24188
-
24043
 Library("common_audio_cc_gn")
24189
 Library("version_gn")
24044
diff --git third_party/libwebrtc/common_audio/common_audio_gn/moz.build third_party/libwebrtc/common_audio/common_audio_gn/moz.build
24190
diff --git third_party/libwebrtc/call/video_stream_api_gn/moz.build third_party/libwebrtc/call/video_stream_api_gn/moz.build
24045
index d81fd8f09ca0..ffb2fa21e12d 100644
24191
index ee981f9452bc..162f225011f8 100644
24046
--- third_party/libwebrtc/common_audio/common_audio_gn/moz.build
24192
--- third_party/libwebrtc/call/video_stream_api_gn/moz.build
24047
+++ third_party/libwebrtc/common_audio/common_audio_gn/moz.build
24193
+++ third_party/libwebrtc/call/video_stream_api_gn/moz.build
24048
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
24194
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
24049
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24195
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24050
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
24196
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 24066-24072 index d81fd8f09ca0..ffb2fa21e12d 100644 Link Here
24066
 
24212
 
24067
 FINAL_LIBRARY = "webrtc"
24213
 FINAL_LIBRARY = "webrtc"
24068
 
24214
 
24069
@@ -54,172 +64,15 @@ if not CONFIG["MOZ_DEBUG"]:
24215
@@ -42,174 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
24070
 if CONFIG["MOZ_DEBUG"] == "1":
24216
 if CONFIG["MOZ_DEBUG"] == "1":
24071
 
24217
 
24072
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
24218
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 24086-24091 index d81fd8f09ca0..ffb2fa21e12d 100644 Link Here
24086
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24232
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24087
-
24233
-
24088
-    OS_LIBS += [
24234
-    OS_LIBS += [
24235
-        "GLESv2",
24089
-        "log"
24236
-        "log"
24090
-    ]
24237
-    ]
24091
-
24238
-
Lines 24115-24120 index d81fd8f09ca0..ffb2fa21e12d 100644 Link Here
24115
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24262
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24116
-
24263
-
24117
-    OS_LIBS += [
24264
-    OS_LIBS += [
24265
-        "dl",
24118
-        "rt"
24266
-        "rt"
24119
-    ]
24267
-    ]
24120
-
24268
-
Lines 24240-24261 index d81fd8f09ca0..ffb2fa21e12d 100644 Link Here
24240
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24388
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24241
-    DEFINES["_GNU_SOURCE"] = True
24389
-    DEFINES["_GNU_SOURCE"] = True
24242
-
24390
-
24243
 Library("common_audio_gn")
24391
 Library("video_stream_api_gn")
24244
diff --git third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build
24392
diff --git third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build
24245
index 0bb21dcc6f81..97a4c56f1a5b 100644
24393
index df7f52b4c647..4d14cdd35d47 100644
24246
--- third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build
24394
--- third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build
24247
+++ third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build
24395
+++ third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build
24248
@@ -12,12 +12,22 @@ AllowCompilerWarnings()
24396
@@ -17,11 +17,20 @@ CXXFLAGS += [
24249
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24397
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24250
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
24398
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
24251
 DEFINES["RTC_ENABLE_VP9"] = True
24399
 DEFINES["RTC_ENABLE_VP9"] = True
24252
+DEFINES["USE_GLIB"] = "1"
24400
+DEFINES["USE_GLIB"] = "1"
24253
+DEFINES["USE_OZONE"] = "1"
24401
+DEFINES["USE_OZONE"] = "1"
24254
+DEFINES["WEBRTC_ARCH_ARM64"] = True
24255
+DEFINES["WEBRTC_BSD"] = True
24402
+DEFINES["WEBRTC_BSD"] = True
24256
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
24403
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
24257
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
24404
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
24258
 DEFINES["WEBRTC_HAS_NEON"] = True
24259
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
24405
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
24260
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
24406
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
24261
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
24407
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
Lines 24268-24274 index 0bb21dcc6f81..97a4c56f1a5b 100644 Link Here
24268
 
24414
 
24269
 FINAL_LIBRARY = "webrtc"
24415
 FINAL_LIBRARY = "webrtc"
24270
 
24416
 
24271
@@ -45,148 +55,10 @@ if not CONFIG["MOZ_DEBUG"]:
24417
@@ -48,127 +57,10 @@ if not CONFIG["MOZ_DEBUG"]:
24272
 if CONFIG["MOZ_DEBUG"] == "1":
24418
 if CONFIG["MOZ_DEBUG"] == "1":
24273
 
24419
 
24274
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
24420
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 24292-24298 index 0bb21dcc6f81..97a4c56f1a5b 100644 Link Here
24292
-
24438
-
24293
-if CONFIG["OS_TARGET"] == "Darwin":
24439
-if CONFIG["OS_TARGET"] == "Darwin":
24294
-
24440
-
24295
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24296
-    DEFINES["WEBRTC_MAC"] = True
24441
-    DEFINES["WEBRTC_MAC"] = True
24297
-    DEFINES["WEBRTC_POSIX"] = True
24442
-    DEFINES["WEBRTC_POSIX"] = True
24298
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
24443
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 24325-24331 index 0bb21dcc6f81..97a4c56f1a5b 100644 Link Here
24325
-    DEFINES["USE_GLIB"] = "1"
24470
-    DEFINES["USE_GLIB"] = "1"
24326
-    DEFINES["USE_OZONE"] = "1"
24471
-    DEFINES["USE_OZONE"] = "1"
24327
-    DEFINES["USE_X11"] = "1"
24472
-    DEFINES["USE_X11"] = "1"
24328
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24329
-    DEFINES["WEBRTC_BSD"] = True
24473
-    DEFINES["WEBRTC_BSD"] = True
24330
-    DEFINES["WEBRTC_POSIX"] = True
24474
-    DEFINES["WEBRTC_POSIX"] = True
24331
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
24475
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
Lines 24342-24348 index 0bb21dcc6f81..97a4c56f1a5b 100644 Link Here
24342
-    DEFINES["PSAPI_VERSION"] = "2"
24486
-    DEFINES["PSAPI_VERSION"] = "2"
24343
-    DEFINES["UNICODE"] = True
24487
-    DEFINES["UNICODE"] = True
24344
-    DEFINES["USE_AURA"] = "1"
24488
-    DEFINES["USE_AURA"] = "1"
24345
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24346
-    DEFINES["WEBRTC_WIN"] = True
24489
-    DEFINES["WEBRTC_WIN"] = True
24347
-    DEFINES["WIN32"] = True
24490
-    DEFINES["WIN32"] = True
24348
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
24491
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 24368-24381 index 0bb21dcc6f81..97a4c56f1a5b 100644 Link Here
24368
-        "winmm"
24511
-        "winmm"
24369
-    ]
24512
-    ]
24370
-
24513
-
24371
-if CONFIG["CPU_ARCH"] == "arm":
24514
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
24372
-
24515
-
24373
-    CFLAGS += [
24516
-    DEFINES["_DEBUG"] = True
24374
-        "-mfpu=neon"
24517
-
24518
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
24519
-
24520
-    DEFINES["_DEBUG"] = True
24521
-
24522
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
24523
-
24524
-    DEFINES["_DEBUG"] = True
24525
-
24526
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
24527
-
24528
     DEFINES["_DEBUG"] = True
24529
 
24530
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
24531
-
24532
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
24533
-
24534
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
24535
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
24536
 
24537
     DEFINES["USE_X11"] = "1"
24538
 
24539
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
24540
-
24541
-    OS_LIBS += [
24542
-        "android_support"
24375
-    ]
24543
-    ]
24544
-
24545
 Library("common_audio_avx2_gn")
24546
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
24547
index 9a7a8fa7cc91..263d4c990206 100644
24548
--- third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build
24549
+++ third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build
24550
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
24551
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24552
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
24553
 DEFINES["RTC_ENABLE_VP9"] = True
24554
+DEFINES["USE_GLIB"] = "1"
24555
+DEFINES["USE_OZONE"] = "1"
24556
+DEFINES["WEBRTC_BSD"] = True
24557
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
24558
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
24559
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
24560
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
24561
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
24562
+DEFINES["WEBRTC_POSIX"] = True
24563
+DEFINES["_FILE_OFFSET_BITS"] = "64"
24564
+DEFINES["_LARGEFILE64_SOURCE"] = True
24565
+DEFINES["_LARGEFILE_SOURCE"] = True
24566
+DEFINES["__STDC_CONSTANT_MACROS"] = True
24567
+DEFINES["__STDC_FORMAT_MACROS"] = True
24568
 
24569
 FINAL_LIBRARY = "webrtc"
24570
 
24571
@@ -37,158 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
24572
 if CONFIG["MOZ_DEBUG"] == "1":
24573
 
24574
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
24575
-
24576
-if CONFIG["OS_TARGET"] == "Android":
24577
-
24578
-    DEFINES["ANDROID"] = True
24579
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
24580
-    DEFINES["HAVE_SYS_UIO_H"] = True
24581
-    DEFINES["WEBRTC_ANDROID"] = True
24582
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
24583
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24584
-    DEFINES["WEBRTC_LINUX"] = True
24585
-    DEFINES["WEBRTC_POSIX"] = True
24586
-    DEFINES["_GNU_SOURCE"] = True
24587
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24588
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24589
-
24590
-if CONFIG["OS_TARGET"] == "Darwin":
24591
-
24592
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24593
-    DEFINES["WEBRTC_MAC"] = True
24594
-    DEFINES["WEBRTC_POSIX"] = True
24595
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
24596
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
24597
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24598
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24599
-
24600
-if CONFIG["OS_TARGET"] == "Linux":
24601
-
24602
-    DEFINES["USE_AURA"] = "1"
24603
-    DEFINES["USE_GLIB"] = "1"
24604
-    DEFINES["USE_NSS_CERTS"] = "1"
24605
-    DEFINES["USE_OZONE"] = "1"
24606
-    DEFINES["USE_UDEV"] = True
24607
-    DEFINES["WEBRTC_LINUX"] = True
24608
-    DEFINES["WEBRTC_POSIX"] = True
24609
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
24610
-    DEFINES["_LARGEFILE64_SOURCE"] = True
24611
-    DEFINES["_LARGEFILE_SOURCE"] = True
24612
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24613
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24614
-
24615
-if CONFIG["OS_TARGET"] == "OpenBSD":
24616
-
24617
-    DEFINES["USE_GLIB"] = "1"
24618
-    DEFINES["USE_OZONE"] = "1"
24619
-    DEFINES["USE_X11"] = "1"
24620
-    DEFINES["WEBRTC_BSD"] = True
24621
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24622
-    DEFINES["WEBRTC_POSIX"] = True
24623
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
24624
-    DEFINES["_LARGEFILE64_SOURCE"] = True
24625
-    DEFINES["_LARGEFILE_SOURCE"] = True
24626
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24627
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24628
-
24629
-if CONFIG["OS_TARGET"] == "WINNT":
24630
-
24631
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
24632
-    DEFINES["NOMINMAX"] = True
24633
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
24634
-    DEFINES["PSAPI_VERSION"] = "2"
24635
-    DEFINES["UNICODE"] = True
24636
-    DEFINES["USE_AURA"] = "1"
24637
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24638
-    DEFINES["WEBRTC_WIN"] = True
24639
-    DEFINES["WIN32"] = True
24640
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
24641
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
24642
-    DEFINES["WINVER"] = "0x0A00"
24643
-    DEFINES["_ATL_NO_OPENGL"] = True
24644
-    DEFINES["_CRT_RAND_S"] = True
24645
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
24646
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
24647
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
24648
-    DEFINES["_HAS_NODISCARD"] = True
24649
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
24650
-    DEFINES["_SECURE_ATL"] = True
24651
-    DEFINES["_UNICODE"] = True
24652
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
24653
-    DEFINES["_WINDOWS"] = True
24654
-    DEFINES["__STD_C"] = True
24655
+    DEFINES["_DEBUG"] = True
24656
 
24657
 if CONFIG["CPU_ARCH"] == "aarch64":
24658
 
24659
     DEFINES["WEBRTC_ARCH_ARM64"] = True
24660
     DEFINES["WEBRTC_HAS_NEON"] = True
24661
 
24662
-if CONFIG["CPU_ARCH"] == "arm":
24376
-
24663
-
24377
-    DEFINES["WEBRTC_ARCH_ARM"] = True
24664
-    DEFINES["WEBRTC_ARCH_ARM"] = True
24378
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
24665
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
24666
-    DEFINES["WEBRTC_HAS_NEON"] = True
24667
-
24668
-    SOURCES += [
24669
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse_arm.S",
24670
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12_armv7.S"
24671
-    ]
24379
-
24672
-
24380
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
24673
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
24381
-
24674
-
Lines 24391-24398 index 0bb21dcc6f81..97a4c56f1a5b 100644 Link Here
24391
-
24684
-
24392
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
24685
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
24393
-
24686
-
24394
     DEFINES["_DEBUG"] = True
24687
-    DEFINES["_DEBUG"] = True
24395
 
24688
-
24396
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
24689
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
24397
-
24690
-
24398
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
24691
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 24402-24411 index 0bb21dcc6f81..97a4c56f1a5b 100644 Link Here
24402
 
24695
 
24403
     DEFINES["USE_X11"] = "1"
24696
     DEFINES["USE_X11"] = "1"
24404
 
24697
 
24405
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
24406
-
24407
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24408
-
24409
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
24698
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
24410
-
24699
-
24411
-    OS_LIBS += [
24700
-    OS_LIBS += [
Lines 24413-24438 index 0bb21dcc6f81..97a4c56f1a5b 100644 Link Here
24413
-        "unwind"
24702
-        "unwind"
24414
-    ]
24703
-    ]
24415
-
24704
-
24705
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
24706
-
24707
-    OS_LIBS += [
24708
-        "android_support"
24709
-    ]
24710
-
24416
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
24711
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
24417
-
24712
-
24418
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24713
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24714
-    DEFINES["_GNU_SOURCE"] = True
24419
-
24715
-
24420
 Library("common_audio_neon_c_gn")
24716
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
24421
diff --git third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build
24717
-
24422
index 05386adf23c5..30ffc38e65fd 100644
24718
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24423
--- third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build
24719
-    DEFINES["_GNU_SOURCE"] = True
24424
+++ third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build
24720
-
24425
@@ -12,12 +12,22 @@ AllowCompilerWarnings()
24721
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
24722
-
24723
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24724
-    DEFINES["_GNU_SOURCE"] = True
24725
-
24726
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
24727
-
24728
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24729
-    DEFINES["_GNU_SOURCE"] = True
24730
-
24731
 Library("common_audio_c_arm_asm_gn")
24732
diff --git third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build
24733
index 625fcd103a7b..b243ab2af3be 100644
24734
--- third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build
24735
+++ third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build
24736
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
24426
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24737
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24427
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
24738
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
24428
 DEFINES["RTC_ENABLE_VP9"] = True
24739
 DEFINES["RTC_ENABLE_VP9"] = True
24429
+DEFINES["USE_GLIB"] = "1"
24740
+DEFINES["USE_GLIB"] = "1"
24430
+DEFINES["USE_OZONE"] = "1"
24741
+DEFINES["USE_OZONE"] = "1"
24431
+DEFINES["WEBRTC_ARCH_ARM64"] = True
24432
+DEFINES["WEBRTC_BSD"] = True
24742
+DEFINES["WEBRTC_BSD"] = True
24433
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
24743
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
24434
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
24744
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
24435
 DEFINES["WEBRTC_HAS_NEON"] = True
24436
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
24745
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
24437
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
24746
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
24438
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
24747
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
Lines 24445-24451 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24445
 
24754
 
24446
 FINAL_LIBRARY = "webrtc"
24755
 FINAL_LIBRARY = "webrtc"
24447
 
24756
 
24448
@@ -44,148 +54,10 @@ if not CONFIG["MOZ_DEBUG"]:
24757
@@ -37,6 +47,7 @@ UNIFIED_SOURCES += [
24758
     "/third_party/libwebrtc/common_audio/ring_buffer.c",
24759
     "/third_party/libwebrtc/common_audio/signal_processing/auto_corr_to_refl_coef.c",
24760
     "/third_party/libwebrtc/common_audio/signal_processing/auto_correlation.c",
24761
+    "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24762
     "/third_party/libwebrtc/common_audio/signal_processing/complex_fft.c",
24763
     "/third_party/libwebrtc/common_audio/signal_processing/copy_set_operations.c",
24764
     "/third_party/libwebrtc/common_audio/signal_processing/cross_correlation.c",
24765
@@ -44,6 +55,7 @@ UNIFIED_SOURCES += [
24766
     "/third_party/libwebrtc/common_audio/signal_processing/downsample_fast.c",
24767
     "/third_party/libwebrtc/common_audio/signal_processing/energy.c",
24768
     "/third_party/libwebrtc/common_audio/signal_processing/filter_ar.c",
24769
+    "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
24770
     "/third_party/libwebrtc/common_audio/signal_processing/filter_ma_fast_q12.c",
24771
     "/third_party/libwebrtc/common_audio/signal_processing/get_hanning_window.c",
24772
     "/third_party/libwebrtc/common_audio/signal_processing/get_scaling_square.c",
24773
@@ -79,228 +91,15 @@ if not CONFIG["MOZ_DEBUG"]:
24449
 if CONFIG["MOZ_DEBUG"] == "1":
24774
 if CONFIG["MOZ_DEBUG"] == "1":
24450
 
24775
 
24451
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
24776
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 24457-24462 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24457
-    DEFINES["HAVE_SYS_UIO_H"] = True
24782
-    DEFINES["HAVE_SYS_UIO_H"] = True
24458
-    DEFINES["WEBRTC_ANDROID"] = True
24783
-    DEFINES["WEBRTC_ANDROID"] = True
24459
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
24784
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
24785
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24460
-    DEFINES["WEBRTC_LINUX"] = True
24786
-    DEFINES["WEBRTC_LINUX"] = True
24461
-    DEFINES["WEBRTC_POSIX"] = True
24787
-    DEFINES["WEBRTC_POSIX"] = True
24462
-    DEFINES["_GNU_SOURCE"] = True
24788
-    DEFINES["_GNU_SOURCE"] = True
Lines 24469-24475 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24469
-
24795
-
24470
-if CONFIG["OS_TARGET"] == "Darwin":
24796
-if CONFIG["OS_TARGET"] == "Darwin":
24471
-
24797
-
24472
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24798
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24473
-    DEFINES["WEBRTC_MAC"] = True
24799
-    DEFINES["WEBRTC_MAC"] = True
24474
-    DEFINES["WEBRTC_POSIX"] = True
24800
-    DEFINES["WEBRTC_POSIX"] = True
24475
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
24801
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 24477-24482 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24477
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24803
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24478
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24804
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24479
-
24805
-
24806
-    UNIFIED_SOURCES += [
24807
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24808
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24809
-    ]
24810
-
24480
-if CONFIG["OS_TARGET"] == "Linux":
24811
-if CONFIG["OS_TARGET"] == "Linux":
24481
-
24812
-
24482
-    DEFINES["USE_AURA"] = "1"
24813
-    DEFINES["USE_AURA"] = "1"
Lines 24487-24493 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24487
-    DEFINES["WEBRTC_LINUX"] = True
24818
-    DEFINES["WEBRTC_LINUX"] = True
24488
-    DEFINES["WEBRTC_POSIX"] = True
24819
-    DEFINES["WEBRTC_POSIX"] = True
24489
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
24820
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
24490
-    DEFINES["_GNU_SOURCE"] = True
24491
-    DEFINES["_LARGEFILE64_SOURCE"] = True
24821
-    DEFINES["_LARGEFILE64_SOURCE"] = True
24492
-    DEFINES["_LARGEFILE_SOURCE"] = True
24822
-    DEFINES["_LARGEFILE_SOURCE"] = True
24493
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24823
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
Lines 24502-24509 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24502
-    DEFINES["USE_GLIB"] = "1"
24832
-    DEFINES["USE_GLIB"] = "1"
24503
-    DEFINES["USE_OZONE"] = "1"
24833
-    DEFINES["USE_OZONE"] = "1"
24504
-    DEFINES["USE_X11"] = "1"
24834
-    DEFINES["USE_X11"] = "1"
24505
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24506
-    DEFINES["WEBRTC_BSD"] = True
24835
-    DEFINES["WEBRTC_BSD"] = True
24836
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24507
-    DEFINES["WEBRTC_POSIX"] = True
24837
-    DEFINES["WEBRTC_POSIX"] = True
24508
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
24838
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
24509
-    DEFINES["_LARGEFILE64_SOURCE"] = True
24839
-    DEFINES["_LARGEFILE64_SOURCE"] = True
Lines 24511-24516 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24511
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24841
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24512
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24842
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24513
-
24843
-
24844
-    UNIFIED_SOURCES += [
24845
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24846
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24847
-    ]
24848
-
24514
-if CONFIG["OS_TARGET"] == "WINNT":
24849
-if CONFIG["OS_TARGET"] == "WINNT":
24515
-
24850
-
24516
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
24851
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
Lines 24519-24525 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24519
-    DEFINES["PSAPI_VERSION"] = "2"
24854
-    DEFINES["PSAPI_VERSION"] = "2"
24520
-    DEFINES["UNICODE"] = True
24855
-    DEFINES["UNICODE"] = True
24521
-    DEFINES["USE_AURA"] = "1"
24856
-    DEFINES["USE_AURA"] = "1"
24522
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24857
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24523
-    DEFINES["WEBRTC_WIN"] = True
24858
-    DEFINES["WEBRTC_WIN"] = True
24524
-    DEFINES["WIN32"] = True
24859
-    DEFINES["WIN32"] = True
24525
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
24860
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 24545-24558 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24545
-        "winmm"
24880
-        "winmm"
24546
-    ]
24881
-    ]
24547
-
24882
-
24883
-    UNIFIED_SOURCES += [
24884
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24885
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24886
-    ]
24887
+    DEFINES["_DEBUG"] = True
24888
 
24889
 if CONFIG["CPU_ARCH"] == "aarch64":
24890
 
24891
     DEFINES["WEBRTC_ARCH_ARM64"] = True
24892
     DEFINES["WEBRTC_HAS_NEON"] = True
24893
 
24548
-if CONFIG["CPU_ARCH"] == "arm":
24894
-if CONFIG["CPU_ARCH"] == "arm":
24549
-
24895
-
24550
-    CXXFLAGS += [
24896
-    CFLAGS += [
24551
-        "-mfpu=neon"
24897
-        "-mfpu=neon"
24552
-    ]
24898
-    ]
24553
-
24899
-
24554
-    DEFINES["WEBRTC_ARCH_ARM"] = True
24900
-    DEFINES["WEBRTC_ARCH_ARM"] = True
24555
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
24901
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
24902
-    DEFINES["WEBRTC_HAS_NEON"] = True
24903
-
24904
-if CONFIG["CPU_ARCH"] == "ppc64":
24905
-
24906
-    UNIFIED_SOURCES += [
24907
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24908
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24909
-    ]
24556
-
24910
-
24557
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
24911
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
24558
-
24912
-
Lines 24568-24575 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24568
-
24922
-
24569
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
24923
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
24570
-
24924
-
24571
     DEFINES["_DEBUG"] = True
24925
-    DEFINES["_DEBUG"] = True
24572
 
24926
-
24573
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
24927
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
24574
-
24928
-
24575
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
24929
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 24581-24587 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24581
 
24935
 
24582
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
24936
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
24583
-
24937
-
24584
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24938
-    UNIFIED_SOURCES += [
24939
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24940
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24941
-    ]
24585
-
24942
-
24586
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
24943
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
24587
-
24944
-
Lines 24590-24781 index 05386adf23c5..30ffc38e65fd 100644 Link Here
24590
-        "unwind"
24947
-        "unwind"
24591
-    ]
24948
-    ]
24592
-
24949
-
24593
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
24950
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
24594
-
24595
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
24596
-
24597
 Library("common_audio_neon_gn")
24598
diff --git third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build
24599
index 93daf376421d..40d8a4b08f17 100644
24600
--- third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build
24601
+++ third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build
24602
@@ -9,14 +9,27 @@
24603
 COMPILE_FLAGS["OS_INCLUDES"] = []
24604
 AllowCompilerWarnings()
24605
 
24606
+CXXFLAGS += [
24607
+    "-msse2"
24608
+]
24609
+
24610
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24611
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
24612
 DEFINES["RTC_ENABLE_VP9"] = True
24613
+DEFINES["USE_GLIB"] = "1"
24614
+DEFINES["USE_OZONE"] = "1"
24615
+DEFINES["WEBRTC_BSD"] = True
24616
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
24617
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
24618
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
24619
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
24620
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
24621
+DEFINES["WEBRTC_POSIX"] = True
24622
+DEFINES["_FILE_OFFSET_BITS"] = "64"
24623
+DEFINES["_LARGEFILE64_SOURCE"] = True
24624
+DEFINES["_LARGEFILE_SOURCE"] = True
24625
+DEFINES["__STDC_CONSTANT_MACROS"] = True
24626
+DEFINES["__STDC_FORMAT_MACROS"] = True
24627
 
24628
 FINAL_LIBRARY = "webrtc"
24629
 
24630
@@ -43,143 +56,10 @@ if not CONFIG["MOZ_DEBUG"]:
24631
 if CONFIG["MOZ_DEBUG"] == "1":
24632
 
24633
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
24634
-
24635
-if CONFIG["OS_TARGET"] == "Android":
24636
-
24637
-    CXXFLAGS += [
24638
-        "-msse2"
24639
-    ]
24640
-
24641
-    DEFINES["ANDROID"] = True
24642
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
24643
-    DEFINES["HAVE_SYS_UIO_H"] = True
24644
-    DEFINES["WEBRTC_ANDROID"] = True
24645
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
24646
-    DEFINES["WEBRTC_LINUX"] = True
24647
-    DEFINES["WEBRTC_POSIX"] = True
24648
-    DEFINES["_GNU_SOURCE"] = True
24649
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24650
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24651
-
24951
-
24652
-    OS_LIBS += [
24952
-    OS_LIBS += [
24653
-        "log"
24953
-        "android_support"
24654
-    ]
24954
-    ]
24655
-
24955
-
24656
-if CONFIG["OS_TARGET"] == "Darwin":
24956
-    UNIFIED_SOURCES += [
24657
-
24957
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24658
-    CXXFLAGS += [
24958
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24659
-        "-msse2"
24660
-    ]
24959
-    ]
24661
-
24960
-
24662
-    DEFINES["WEBRTC_MAC"] = True
24961
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android":
24663
-    DEFINES["WEBRTC_POSIX"] = True
24664
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
24665
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
24666
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24667
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24668
-
24669
-if CONFIG["OS_TARGET"] == "Linux":
24670
-
24962
-
24671
-    CXXFLAGS += [
24963
-    UNIFIED_SOURCES += [
24672
-        "-msse2"
24964
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24965
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24673
-    ]
24966
-    ]
24674
-
24967
-
24675
-    DEFINES["USE_AURA"] = "1"
24968
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
24676
-    DEFINES["USE_GLIB"] = "1"
24969
-
24677
-    DEFINES["USE_NSS_CERTS"] = "1"
24970
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24678
-    DEFINES["USE_OZONE"] = "1"
24679
-    DEFINES["USE_UDEV"] = True
24680
-    DEFINES["WEBRTC_LINUX"] = True
24681
-    DEFINES["WEBRTC_POSIX"] = True
24682
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
24683
-    DEFINES["_GNU_SOURCE"] = True
24971
-    DEFINES["_GNU_SOURCE"] = True
24684
-    DEFINES["_LARGEFILE64_SOURCE"] = True
24685
-    DEFINES["_LARGEFILE_SOURCE"] = True
24686
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24687
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24688
-
24972
-
24689
-    OS_LIBS += [
24973
-    UNIFIED_SOURCES += [
24690
-        "rt"
24974
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24975
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24691
-    ]
24976
-    ]
24692
-
24977
-
24693
-if CONFIG["OS_TARGET"] == "OpenBSD":
24978
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
24694
-
24695
-    CXXFLAGS += [
24696
-        "-msse2"
24697
-    ]
24698
-
24979
-
24699
-    DEFINES["USE_GLIB"] = "1"
24980
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24700
-    DEFINES["USE_OZONE"] = "1"
24981
-    DEFINES["_GNU_SOURCE"] = True
24701
-    DEFINES["USE_X11"] = "1"
24702
-    DEFINES["WEBRTC_BSD"] = True
24703
-    DEFINES["WEBRTC_POSIX"] = True
24704
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
24705
-    DEFINES["_LARGEFILE64_SOURCE"] = True
24706
-    DEFINES["_LARGEFILE_SOURCE"] = True
24707
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
24708
-    DEFINES["__STDC_FORMAT_MACROS"] = True
24709
-
24982
-
24710
-if CONFIG["OS_TARGET"] == "WINNT":
24983
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
24711
-
24984
-
24712
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
24985
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24713
-    DEFINES["NOMINMAX"] = True
24986
-    DEFINES["_GNU_SOURCE"] = True
24714
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
24715
-    DEFINES["PSAPI_VERSION"] = "2"
24716
-    DEFINES["UNICODE"] = True
24717
-    DEFINES["USE_AURA"] = "1"
24718
-    DEFINES["WEBRTC_WIN"] = True
24719
-    DEFINES["WIN32"] = True
24720
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
24721
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
24722
-    DEFINES["WINVER"] = "0x0A00"
24723
-    DEFINES["_ATL_NO_OPENGL"] = True
24724
-    DEFINES["_CRT_RAND_S"] = True
24725
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
24726
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
24727
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
24728
-    DEFINES["_HAS_NODISCARD"] = True
24729
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
24730
-    DEFINES["_SECURE_ATL"] = True
24731
-    DEFINES["_UNICODE"] = True
24732
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
24733
-    DEFINES["_WINDOWS"] = True
24734
-    DEFINES["__STD_C"] = True
24735
-
24987
-
24736
-    OS_LIBS += [
24988
-    UNIFIED_SOURCES += [
24737
-        "crypt32",
24989
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
24738
-        "iphlpapi",
24990
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24739
-        "secur32",
24740
-        "winmm"
24741
-    ]
24991
-    ]
24742
-
24992
-
24743
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
24993
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
24744
-
24745
-    DEFINES["_DEBUG"] = True
24746
-
24747
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
24748
-
24749
-    DEFINES["_DEBUG"] = True
24750
-
24751
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
24752
-
24753
-    DEFINES["_DEBUG"] = True
24754
-
24755
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
24756
-
24757
     DEFINES["_DEBUG"] = True
24758
 
24759
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
24760
-
24761
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
24762
-
24994
-
24763
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
24995
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24764
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
24996
-    DEFINES["_GNU_SOURCE"] = True
24765
 
24766
     DEFINES["USE_X11"] = "1"
24767
 
24768
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
24769
-
24997
-
24770
-    OS_LIBS += [
24998
-    UNIFIED_SOURCES += [
24771
-        "android_support"
24999
-        "/third_party/libwebrtc/common_audio/signal_processing/complex_bit_reverse.c",
25000
-        "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c"
24772
-    ]
25001
-    ]
24773
-
25002
-
24774
 Library("common_audio_sse2_gn")
25003
 Library("common_audio_c_gn")
24775
diff --git third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build
25004
diff --git third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build
24776
index 47f99dbd830c..93b9d78370f1 100644
25005
index 241c8788eb2f..c2d49a2321a2 100644
24777
--- third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build
25006
--- third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build
24778
+++ third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build
25007
+++ third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build
24779
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
25008
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
24780
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25009
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24781
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
25010
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 24797-24803 index 47f99dbd830c..93b9d78370f1 100644 Link Here
24797
 
25026
 
24798
 FINAL_LIBRARY = "webrtc"
25027
 FINAL_LIBRARY = "webrtc"
24799
 
25028
 
24800
@@ -42,172 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
25029
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
24801
 if CONFIG["MOZ_DEBUG"] == "1":
25030
 if CONFIG["MOZ_DEBUG"] == "1":
24802
 
25031
 
24803
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
25032
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 24971-24981 index 47f99dbd830c..93b9d78370f1 100644 Link Here
24971
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25200
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
24972
-    DEFINES["_GNU_SOURCE"] = True
25201
-    DEFINES["_GNU_SOURCE"] = True
24973
-
25202
-
24974
 Library("fir_filter_factory_gn")
25203
 Library("common_audio_cc_gn")
24975
diff --git third_party/libwebrtc/common_audio/fir_filter_gn/moz.build third_party/libwebrtc/common_audio/fir_filter_gn/moz.build
25204
diff --git third_party/libwebrtc/common_audio/common_audio_gn/moz.build third_party/libwebrtc/common_audio/common_audio_gn/moz.build
24976
index 51acac9bad1a..6ed17d2eb8dd 100644
25205
index d81fd8f09ca0..ffb2fa21e12d 100644
24977
--- third_party/libwebrtc/common_audio/fir_filter_gn/moz.build
25206
--- third_party/libwebrtc/common_audio/common_audio_gn/moz.build
24978
+++ third_party/libwebrtc/common_audio/fir_filter_gn/moz.build
25207
+++ third_party/libwebrtc/common_audio/common_audio_gn/moz.build
24979
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
25208
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
24980
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25209
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
24981
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
25210
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 24997-25003 index 51acac9bad1a..6ed17d2eb8dd 100644 Link Here
24997
 
25226
 
24998
 FINAL_LIBRARY = "webrtc"
25227
 FINAL_LIBRARY = "webrtc"
24999
 
25228
 
25000
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
25229
@@ -54,172 +64,15 @@ if not CONFIG["MOZ_DEBUG"]:
25001
 if CONFIG["MOZ_DEBUG"] == "1":
25230
 if CONFIG["MOZ_DEBUG"] == "1":
25002
 
25231
 
25003
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
25232
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 25016-25021 index 51acac9bad1a..6ed17d2eb8dd 100644 Link Here
25016
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25245
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25017
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25246
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25018
-
25247
-
25248
-    OS_LIBS += [
25249
-        "log"
25250
-    ]
25251
-
25019
-if CONFIG["OS_TARGET"] == "Darwin":
25252
-if CONFIG["OS_TARGET"] == "Darwin":
25020
-
25253
-
25021
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25254
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 25041-25046 index 51acac9bad1a..6ed17d2eb8dd 100644 Link Here
25041
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25274
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25042
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25275
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25043
-
25276
-
25277
-    OS_LIBS += [
25278
-        "rt"
25279
-    ]
25280
-
25044
-if CONFIG["OS_TARGET"] == "OpenBSD":
25281
-if CONFIG["OS_TARGET"] == "OpenBSD":
25045
-
25282
-
25046
-    DEFINES["USE_GLIB"] = "1"
25283
-    DEFINES["USE_GLIB"] = "1"
Lines 25081-25086 index 51acac9bad1a..6ed17d2eb8dd 100644 Link Here
25081
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
25318
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
25082
-    DEFINES["_WINDOWS"] = True
25319
-    DEFINES["_WINDOWS"] = True
25083
-    DEFINES["__STD_C"] = True
25320
-    DEFINES["__STD_C"] = True
25321
-
25322
-    OS_LIBS += [
25323
-        "crypt32",
25324
-        "iphlpapi",
25325
-        "secur32",
25326
-        "winmm"
25327
-    ]
25084
+    DEFINES["_DEBUG"] = True
25328
+    DEFINES["_DEBUG"] = True
25085
 
25329
 
25086
 if CONFIG["CPU_ARCH"] == "aarch64":
25330
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 25090-25095 index 51acac9bad1a..6ed17d2eb8dd 100644 Link Here
25090
 
25334
 
25091
-if CONFIG["CPU_ARCH"] == "arm":
25335
-if CONFIG["CPU_ARCH"] == "arm":
25092
-
25336
-
25337
-    CXXFLAGS += [
25338
-        "-mfpu=neon"
25339
-    ]
25340
-
25093
-    DEFINES["WEBRTC_ARCH_ARM"] = True
25341
-    DEFINES["WEBRTC_ARCH_ARM"] = True
25094
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
25342
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
25095
-    DEFINES["WEBRTC_HAS_NEON"] = True
25343
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 25152-25171 index 51acac9bad1a..6ed17d2eb8dd 100644 Link Here
25152
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25400
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25153
-    DEFINES["_GNU_SOURCE"] = True
25401
-    DEFINES["_GNU_SOURCE"] = True
25154
-
25402
-
25155
 Library("fir_filter_gn")
25403
 Library("common_audio_gn")
25156
diff --git third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build
25404
diff --git third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build
25157
index b1047de5ccb2..128eb766d596 100644
25405
index 0bb21dcc6f81..97a4c56f1a5b 100644
25158
--- third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build
25406
--- third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build
25159
+++ third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build
25407
+++ third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build
25160
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
25408
@@ -12,12 +12,22 @@ AllowCompilerWarnings()
25161
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25409
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25162
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
25410
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
25163
 DEFINES["RTC_ENABLE_VP9"] = True
25411
 DEFINES["RTC_ENABLE_VP9"] = True
25164
+DEFINES["USE_GLIB"] = "1"
25412
+DEFINES["USE_GLIB"] = "1"
25165
+DEFINES["USE_OZONE"] = "1"
25413
+DEFINES["USE_OZONE"] = "1"
25414
+DEFINES["WEBRTC_ARCH_ARM64"] = True
25166
+DEFINES["WEBRTC_BSD"] = True
25415
+DEFINES["WEBRTC_BSD"] = True
25167
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
25416
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
25168
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
25417
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
25418
 DEFINES["WEBRTC_HAS_NEON"] = True
25169
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
25419
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
25170
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
25420
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
25171
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
25421
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
Lines 25178-25184 index b1047de5ccb2..128eb766d596 100644 Link Here
25178
 
25428
 
25179
 FINAL_LIBRARY = "webrtc"
25429
 FINAL_LIBRARY = "webrtc"
25180
 
25430
 
25181
@@ -37,168 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
25431
@@ -45,148 +55,10 @@ if not CONFIG["MOZ_DEBUG"]:
25182
 if CONFIG["MOZ_DEBUG"] == "1":
25432
 if CONFIG["MOZ_DEBUG"] == "1":
25183
 
25433
 
25184
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
25434
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 25190-25196 index b1047de5ccb2..128eb766d596 100644 Link Here
25190
-    DEFINES["HAVE_SYS_UIO_H"] = True
25440
-    DEFINES["HAVE_SYS_UIO_H"] = True
25191
-    DEFINES["WEBRTC_ANDROID"] = True
25441
-    DEFINES["WEBRTC_ANDROID"] = True
25192
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
25442
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
25193
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25194
-    DEFINES["WEBRTC_LINUX"] = True
25443
-    DEFINES["WEBRTC_LINUX"] = True
25195
-    DEFINES["WEBRTC_POSIX"] = True
25444
-    DEFINES["WEBRTC_POSIX"] = True
25196
-    DEFINES["_GNU_SOURCE"] = True
25445
-    DEFINES["_GNU_SOURCE"] = True
Lines 25203-25209 index b1047de5ccb2..128eb766d596 100644 Link Here
25203
-
25452
-
25204
-if CONFIG["OS_TARGET"] == "Darwin":
25453
-if CONFIG["OS_TARGET"] == "Darwin":
25205
-
25454
-
25206
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25455
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25207
-    DEFINES["WEBRTC_MAC"] = True
25456
-    DEFINES["WEBRTC_MAC"] = True
25208
-    DEFINES["WEBRTC_POSIX"] = True
25457
-    DEFINES["WEBRTC_POSIX"] = True
25209
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
25458
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 25221-25226 index b1047de5ccb2..128eb766d596 100644 Link Here
25221
-    DEFINES["WEBRTC_LINUX"] = True
25470
-    DEFINES["WEBRTC_LINUX"] = True
25222
-    DEFINES["WEBRTC_POSIX"] = True
25471
-    DEFINES["WEBRTC_POSIX"] = True
25223
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25472
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25473
-    DEFINES["_GNU_SOURCE"] = True
25224
-    DEFINES["_LARGEFILE64_SOURCE"] = True
25474
-    DEFINES["_LARGEFILE64_SOURCE"] = True
25225
-    DEFINES["_LARGEFILE_SOURCE"] = True
25475
-    DEFINES["_LARGEFILE_SOURCE"] = True
25226
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25476
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
Lines 25235-25242 index b1047de5ccb2..128eb766d596 100644 Link Here
25235
-    DEFINES["USE_GLIB"] = "1"
25485
-    DEFINES["USE_GLIB"] = "1"
25236
-    DEFINES["USE_OZONE"] = "1"
25486
-    DEFINES["USE_OZONE"] = "1"
25237
-    DEFINES["USE_X11"] = "1"
25487
-    DEFINES["USE_X11"] = "1"
25488
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25238
-    DEFINES["WEBRTC_BSD"] = True
25489
-    DEFINES["WEBRTC_BSD"] = True
25239
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25240
-    DEFINES["WEBRTC_POSIX"] = True
25490
-    DEFINES["WEBRTC_POSIX"] = True
25241
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25491
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25242
-    DEFINES["_LARGEFILE64_SOURCE"] = True
25492
-    DEFINES["_LARGEFILE64_SOURCE"] = True
Lines 25252-25258 index b1047de5ccb2..128eb766d596 100644 Link Here
25252
-    DEFINES["PSAPI_VERSION"] = "2"
25502
-    DEFINES["PSAPI_VERSION"] = "2"
25253
-    DEFINES["UNICODE"] = True
25503
-    DEFINES["UNICODE"] = True
25254
-    DEFINES["USE_AURA"] = "1"
25504
-    DEFINES["USE_AURA"] = "1"
25255
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25505
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25256
-    DEFINES["WEBRTC_WIN"] = True
25506
-    DEFINES["WEBRTC_WIN"] = True
25257
-    DEFINES["WIN32"] = True
25507
-    DEFINES["WIN32"] = True
25258
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
25508
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 25277-25294 index b1047de5ccb2..128eb766d596 100644 Link Here
25277
-        "secur32",
25527
-        "secur32",
25278
-        "winmm"
25528
-        "winmm"
25279
-    ]
25529
-    ]
25280
+    DEFINES["_DEBUG"] = True
25530
-
25281
 
25282
 if CONFIG["CPU_ARCH"] == "aarch64":
25283
 
25284
     DEFINES["WEBRTC_ARCH_ARM64"] = True
25285
     DEFINES["WEBRTC_HAS_NEON"] = True
25286
 
25287
-if CONFIG["CPU_ARCH"] == "arm":
25531
-if CONFIG["CPU_ARCH"] == "arm":
25288
-
25532
-
25533
-    CFLAGS += [
25534
-        "-mfpu=neon"
25535
-    ]
25536
-
25289
-    DEFINES["WEBRTC_ARCH_ARM"] = True
25537
-    DEFINES["WEBRTC_ARCH_ARM"] = True
25290
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
25538
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
25291
-    DEFINES["WEBRTC_HAS_NEON"] = True
25292
-
25539
-
25293
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
25540
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
25294
-
25541
-
Lines 25304-25311 index b1047de5ccb2..128eb766d596 100644 Link Here
25304
-
25551
-
25305
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
25552
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
25306
-
25553
-
25307
-    DEFINES["_DEBUG"] = True
25554
     DEFINES["_DEBUG"] = True
25308
-
25555
 
25309
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
25556
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
25310
-
25557
-
25311
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
25558
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 25315-25320 index b1047de5ccb2..128eb766d596 100644 Link Here
25315
 
25562
 
25316
     DEFINES["USE_X11"] = "1"
25563
     DEFINES["USE_X11"] = "1"
25317
 
25564
 
25565
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
25566
-
25567
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25568
-
25318
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
25569
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
25319
-
25570
-
25320
-    OS_LIBS += [
25571
-    OS_LIBS += [
Lines 25322-25367 index b1047de5ccb2..128eb766d596 100644 Link Here
25322
-        "unwind"
25573
-        "unwind"
25323
-    ]
25574
-    ]
25324
-
25575
-
25325
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
25326
-
25327
-    OS_LIBS += [
25328
-        "android_support"
25329
-    ]
25330
-
25331
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
25576
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
25332
-
25577
-
25333
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25578
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25334
-    DEFINES["_GNU_SOURCE"] = True
25335
-
25336
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
25337
-
25338
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25339
-    DEFINES["_GNU_SOURCE"] = True
25340
-
25341
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
25342
-
25343
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25344
-    DEFINES["_GNU_SOURCE"] = True
25345
-
25346
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
25347
-
25348
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25349
-    DEFINES["_GNU_SOURCE"] = True
25350
-
25579
-
25351
 Library("sinc_resampler_gn")
25580
 Library("common_audio_neon_c_gn")
25352
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
25581
diff --git third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build
25353
index 142887be2aeb..24ac42fb0329 100644
25582
index 05386adf23c5..30ffc38e65fd 100644
25354
--- third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build
25583
--- third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build
25355
+++ third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build
25584
+++ third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build
25356
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
25585
@@ -12,12 +12,22 @@ AllowCompilerWarnings()
25357
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25586
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25358
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
25587
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
25359
 DEFINES["RTC_ENABLE_VP9"] = True
25588
 DEFINES["RTC_ENABLE_VP9"] = True
25360
+DEFINES["USE_GLIB"] = "1"
25589
+DEFINES["USE_GLIB"] = "1"
25361
+DEFINES["USE_OZONE"] = "1"
25590
+DEFINES["USE_OZONE"] = "1"
25591
+DEFINES["WEBRTC_ARCH_ARM64"] = True
25362
+DEFINES["WEBRTC_BSD"] = True
25592
+DEFINES["WEBRTC_BSD"] = True
25363
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
25593
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
25364
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
25594
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
25595
 DEFINES["WEBRTC_HAS_NEON"] = True
25365
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
25596
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
25366
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
25597
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
25367
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
25598
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
Lines 25374-25380 index 142887be2aeb..24ac42fb0329 100644 Link Here
25374
 
25605
 
25375
 FINAL_LIBRARY = "webrtc"
25606
 FINAL_LIBRARY = "webrtc"
25376
 
25607
 
25377
@@ -41,101 +51,7 @@ if not CONFIG["MOZ_DEBUG"]:
25608
@@ -44,148 +54,10 @@ if not CONFIG["MOZ_DEBUG"]:
25378
 if CONFIG["MOZ_DEBUG"] == "1":
25609
 if CONFIG["MOZ_DEBUG"] == "1":
25379
 
25610
 
25380
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
25611
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 25386-25392 index 142887be2aeb..24ac42fb0329 100644 Link Here
25386
-    DEFINES["HAVE_SYS_UIO_H"] = True
25617
-    DEFINES["HAVE_SYS_UIO_H"] = True
25387
-    DEFINES["WEBRTC_ANDROID"] = True
25618
-    DEFINES["WEBRTC_ANDROID"] = True
25388
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
25619
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
25389
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25390
-    DEFINES["WEBRTC_LINUX"] = True
25620
-    DEFINES["WEBRTC_LINUX"] = True
25391
-    DEFINES["WEBRTC_POSIX"] = True
25621
-    DEFINES["WEBRTC_POSIX"] = True
25392
-    DEFINES["_GNU_SOURCE"] = True
25622
-    DEFINES["_GNU_SOURCE"] = True
Lines 25399-25405 index 142887be2aeb..24ac42fb0329 100644 Link Here
25399
-
25629
-
25400
-if CONFIG["OS_TARGET"] == "Darwin":
25630
-if CONFIG["OS_TARGET"] == "Darwin":
25401
-
25631
-
25402
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25632
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25403
-    DEFINES["WEBRTC_MAC"] = True
25633
-    DEFINES["WEBRTC_MAC"] = True
25404
-    DEFINES["WEBRTC_POSIX"] = True
25634
-    DEFINES["WEBRTC_POSIX"] = True
25405
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
25635
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 25417-25422 index 142887be2aeb..24ac42fb0329 100644 Link Here
25417
-    DEFINES["WEBRTC_LINUX"] = True
25647
-    DEFINES["WEBRTC_LINUX"] = True
25418
-    DEFINES["WEBRTC_POSIX"] = True
25648
-    DEFINES["WEBRTC_POSIX"] = True
25419
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25649
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25650
-    DEFINES["_GNU_SOURCE"] = True
25420
-    DEFINES["_LARGEFILE64_SOURCE"] = True
25651
-    DEFINES["_LARGEFILE64_SOURCE"] = True
25421
-    DEFINES["_LARGEFILE_SOURCE"] = True
25652
-    DEFINES["_LARGEFILE_SOURCE"] = True
25422
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25653
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
Lines 25431-25438 index 142887be2aeb..24ac42fb0329 100644 Link Here
25431
-    DEFINES["USE_GLIB"] = "1"
25662
-    DEFINES["USE_GLIB"] = "1"
25432
-    DEFINES["USE_OZONE"] = "1"
25663
-    DEFINES["USE_OZONE"] = "1"
25433
-    DEFINES["USE_X11"] = "1"
25664
-    DEFINES["USE_X11"] = "1"
25665
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25434
-    DEFINES["WEBRTC_BSD"] = True
25666
-    DEFINES["WEBRTC_BSD"] = True
25435
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25436
-    DEFINES["WEBRTC_POSIX"] = True
25667
-    DEFINES["WEBRTC_POSIX"] = True
25437
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25668
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25438
-    DEFINES["_LARGEFILE64_SOURCE"] = True
25669
-    DEFINES["_LARGEFILE64_SOURCE"] = True
Lines 25448-25454 index 142887be2aeb..24ac42fb0329 100644 Link Here
25448
-    DEFINES["PSAPI_VERSION"] = "2"
25679
-    DEFINES["PSAPI_VERSION"] = "2"
25449
-    DEFINES["UNICODE"] = True
25680
-    DEFINES["UNICODE"] = True
25450
-    DEFINES["USE_AURA"] = "1"
25681
-    DEFINES["USE_AURA"] = "1"
25451
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25682
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25452
-    DEFINES["WEBRTC_WIN"] = True
25683
-    DEFINES["WEBRTC_WIN"] = True
25453
-    DEFINES["WIN32"] = True
25684
-    DEFINES["WIN32"] = True
25454
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
25685
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 25473-25513 index 142887be2aeb..24ac42fb0329 100644 Link Here
25473
-        "secur32",
25704
-        "secur32",
25474
-        "winmm"
25705
-        "winmm"
25475
-    ]
25706
-    ]
25476
+    DEFINES["_DEBUG"] = True
25707
-
25477
 
25478
 if CONFIG["CPU_ARCH"] == "aarch64":
25479
 
25480
@@ -146,117 +62,28 @@ if CONFIG["CPU_ARCH"] == "aarch64":
25481
         "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_neon.cc"
25482
     ]
25483
 
25484
-if CONFIG["CPU_ARCH"] == "arm":
25708
-if CONFIG["CPU_ARCH"] == "arm":
25485
+if CONFIG["CPU_ARCH"] == "x86":
25709
-
25486
 
25710
-    CXXFLAGS += [
25487
     CXXFLAGS += [
25488
-        "-mfpu=neon"
25711
-        "-mfpu=neon"
25489
-    ]
25712
-    ]
25490
-
25713
-
25491
-    DEFINES["WEBRTC_ARCH_ARM"] = True
25714
-    DEFINES["WEBRTC_ARCH_ARM"] = True
25492
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
25715
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
25493
-    DEFINES["WEBRTC_HAS_NEON"] = True
25494
-
25495
-    UNIFIED_SOURCES += [
25496
-        "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_neon.cc"
25497
+        "-msse2"
25498
     ]
25499
 
25500
-if CONFIG["CPU_ARCH"] == "x86":
25501
-
25502
     UNIFIED_SOURCES += [
25503
         "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_sse2.cc"
25504
     ]
25505
 
25506
 if CONFIG["CPU_ARCH"] == "x86_64":
25507
 
25508
-    UNIFIED_SOURCES += [
25509
-        "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_sse2.cc"
25510
-    ]
25511
-
25716
-
25512
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
25717
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
25513
-
25718
-
Lines 25523-25537 index 142887be2aeb..24ac42fb0329 100644 Link Here
25523
-
25728
-
25524
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
25729
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
25525
-
25730
-
25526
-    DEFINES["_DEBUG"] = True
25731
     DEFINES["_DEBUG"] = True
25527
-
25732
 
25528
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
25733
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
25529
-
25734
-
25530
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
25735
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
25531
-
25736
-
25532
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
25737
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
25738
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
25739
 
25740
     DEFINES["USE_X11"] = "1"
25741
 
25742
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
25533
-
25743
-
25534
-    DEFINES["USE_X11"] = "1"
25744
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25535
-
25745
-
25536
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
25746
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
25537
-
25747
-
Lines 25540-25618 index 142887be2aeb..24ac42fb0329 100644 Link Here
25540
-        "unwind"
25750
-        "unwind"
25541
-    ]
25751
-    ]
25542
-
25752
-
25543
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
25544
-
25545
-    CXXFLAGS += [
25546
-        "-msse2"
25547
-    ]
25548
-
25549
-    OS_LIBS += [
25550
-        "android_support"
25551
-    ]
25552
-
25553
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android":
25554
-
25555
-    CXXFLAGS += [
25556
-        "-msse2"
25557
-    ]
25558
-
25559
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Darwin":
25560
-
25561
     CXXFLAGS += [
25562
         "-msse2"
25563
     ]
25564
 
25565
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
25753
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
25566
-
25754
-
25567
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25755
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
25568
-    DEFINES["_GNU_SOURCE"] = True
25569
-
25570
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
25571
-
25572
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25573
-    DEFINES["_GNU_SOURCE"] = True
25574
-
25575
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
25576
-
25577
-    CXXFLAGS += [
25578
-        "-msse2"
25579
-    ]
25580
-
25581
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25582
-    DEFINES["_GNU_SOURCE"] = True
25583
-
25584
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
25585
-
25586
-    CXXFLAGS += [
25587
-        "-msse2"
25588
+    UNIFIED_SOURCES += [
25589
+        "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_sse2.cc"
25590
     ]
25591
 
25592
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25593
-    DEFINES["_GNU_SOURCE"] = True
25594
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
25595
 
25596
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "OpenBSD":
25597
-
25756
-
25598
-    CXXFLAGS += [
25757
 Library("common_audio_neon_gn")
25599
-        "-msse2"
25758
diff --git third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build
25600
-    ]
25759
index 93daf376421d..40d8a4b08f17 100644
25601
+    DEFINES["USE_X11"] = "1"
25760
--- third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build
25761
+++ third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build
25762
@@ -9,14 +9,27 @@
25763
 COMPILE_FLAGS["OS_INCLUDES"] = []
25764
 AllowCompilerWarnings()
25602
 
25765
 
25603
 Library("fft_size_128_gn")
25766
+CXXFLAGS += [
25604
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
25767
+    "-msse2"
25605
index b007a1e5ed8d..d6be72cf693c 100644
25768
+]
25606
--- third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build
25769
+
25607
+++ third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build
25608
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
25609
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25770
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25610
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
25771
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
25611
 DEFINES["RTC_ENABLE_VP9"] = True
25772
 DEFINES["RTC_ENABLE_VP9"] = True
25612
+DEFINES["USE_GLIB"] = "1"
25773
+DEFINES["USE_GLIB"] = "1"
25613
+DEFINES["USE_OZONE"] = "1"
25774
+DEFINES["USE_OZONE"] = "1"
25614
+DEFINES["WEBRTC_BSD"] = True
25775
+DEFINES["WEBRTC_BSD"] = True
25615
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
25776
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
25616
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
25777
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
25617
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
25778
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
25618
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
25779
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
Lines 25626-25653 index b007a1e5ed8d..d6be72cf693c 100644 Link Here
25626
 
25787
 
25627
 FINAL_LIBRARY = "webrtc"
25788
 FINAL_LIBRARY = "webrtc"
25628
 
25789
 
25629
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
25790
@@ -43,143 +56,10 @@ if not CONFIG["MOZ_DEBUG"]:
25630
 if CONFIG["MOZ_DEBUG"] == "1":
25791
 if CONFIG["MOZ_DEBUG"] == "1":
25631
 
25792
 
25632
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
25793
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
25633
-
25794
-
25634
-if CONFIG["OS_TARGET"] == "Android":
25795
-if CONFIG["OS_TARGET"] == "Android":
25635
-
25796
-
25797
-    CXXFLAGS += [
25798
-        "-msse2"
25799
-    ]
25800
-
25636
-    DEFINES["ANDROID"] = True
25801
-    DEFINES["ANDROID"] = True
25637
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
25802
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
25638
-    DEFINES["HAVE_SYS_UIO_H"] = True
25803
-    DEFINES["HAVE_SYS_UIO_H"] = True
25639
-    DEFINES["WEBRTC_ANDROID"] = True
25804
-    DEFINES["WEBRTC_ANDROID"] = True
25640
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
25805
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
25641
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25642
-    DEFINES["WEBRTC_LINUX"] = True
25806
-    DEFINES["WEBRTC_LINUX"] = True
25643
-    DEFINES["WEBRTC_POSIX"] = True
25807
-    DEFINES["WEBRTC_POSIX"] = True
25644
-    DEFINES["_GNU_SOURCE"] = True
25808
-    DEFINES["_GNU_SOURCE"] = True
25645
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25809
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25646
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25810
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25647
-
25811
-
25812
-    OS_LIBS += [
25813
-        "log"
25814
-    ]
25815
-
25648
-if CONFIG["OS_TARGET"] == "Darwin":
25816
-if CONFIG["OS_TARGET"] == "Darwin":
25649
-
25817
-
25650
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25818
-    CXXFLAGS += [
25819
-        "-msse2"
25820
-    ]
25821
-
25651
-    DEFINES["WEBRTC_MAC"] = True
25822
-    DEFINES["WEBRTC_MAC"] = True
25652
-    DEFINES["WEBRTC_POSIX"] = True
25823
-    DEFINES["WEBRTC_POSIX"] = True
25653
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
25824
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 25657-25662 index b007a1e5ed8d..d6be72cf693c 100644 Link Here
25657
-
25828
-
25658
-if CONFIG["OS_TARGET"] == "Linux":
25829
-if CONFIG["OS_TARGET"] == "Linux":
25659
-
25830
-
25831
-    CXXFLAGS += [
25832
-        "-msse2"
25833
-    ]
25834
-
25660
-    DEFINES["USE_AURA"] = "1"
25835
-    DEFINES["USE_AURA"] = "1"
25661
-    DEFINES["USE_GLIB"] = "1"
25836
-    DEFINES["USE_GLIB"] = "1"
25662
-    DEFINES["USE_NSS_CERTS"] = "1"
25837
-    DEFINES["USE_NSS_CERTS"] = "1"
Lines 25665-25682 index b007a1e5ed8d..d6be72cf693c 100644 Link Here
25665
-    DEFINES["WEBRTC_LINUX"] = True
25840
-    DEFINES["WEBRTC_LINUX"] = True
25666
-    DEFINES["WEBRTC_POSIX"] = True
25841
-    DEFINES["WEBRTC_POSIX"] = True
25667
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25842
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25843
-    DEFINES["_GNU_SOURCE"] = True
25668
-    DEFINES["_LARGEFILE64_SOURCE"] = True
25844
-    DEFINES["_LARGEFILE64_SOURCE"] = True
25669
-    DEFINES["_LARGEFILE_SOURCE"] = True
25845
-    DEFINES["_LARGEFILE_SOURCE"] = True
25670
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25846
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25671
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25847
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25672
-
25848
-
25849
-    OS_LIBS += [
25850
-        "rt"
25851
-    ]
25852
-
25673
-if CONFIG["OS_TARGET"] == "OpenBSD":
25853
-if CONFIG["OS_TARGET"] == "OpenBSD":
25674
-
25854
-
25855
-    CXXFLAGS += [
25856
-        "-msse2"
25857
-    ]
25858
-
25675
-    DEFINES["USE_GLIB"] = "1"
25859
-    DEFINES["USE_GLIB"] = "1"
25676
-    DEFINES["USE_OZONE"] = "1"
25860
-    DEFINES["USE_OZONE"] = "1"
25677
-    DEFINES["USE_X11"] = "1"
25861
-    DEFINES["USE_X11"] = "1"
25678
-    DEFINES["WEBRTC_BSD"] = True
25862
-    DEFINES["WEBRTC_BSD"] = True
25679
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25680
-    DEFINES["WEBRTC_POSIX"] = True
25863
-    DEFINES["WEBRTC_POSIX"] = True
25681
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25864
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
25682
-    DEFINES["_LARGEFILE64_SOURCE"] = True
25865
-    DEFINES["_LARGEFILE64_SOURCE"] = True
Lines 25692-25698 index b007a1e5ed8d..d6be72cf693c 100644 Link Here
25692
-    DEFINES["PSAPI_VERSION"] = "2"
25875
-    DEFINES["PSAPI_VERSION"] = "2"
25693
-    DEFINES["UNICODE"] = True
25876
-    DEFINES["UNICODE"] = True
25694
-    DEFINES["USE_AURA"] = "1"
25877
-    DEFINES["USE_AURA"] = "1"
25695
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25696
-    DEFINES["WEBRTC_WIN"] = True
25878
-    DEFINES["WEBRTC_WIN"] = True
25697
-    DEFINES["WIN32"] = True
25879
-    DEFINES["WIN32"] = True
25698
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
25880
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 25710-25732 index b007a1e5ed8d..d6be72cf693c 100644 Link Here
25710
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
25892
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
25711
-    DEFINES["_WINDOWS"] = True
25893
-    DEFINES["_WINDOWS"] = True
25712
-    DEFINES["__STD_C"] = True
25894
-    DEFINES["__STD_C"] = True
25713
+    DEFINES["_DEBUG"] = True
25714
 
25715
 if CONFIG["CPU_ARCH"] == "aarch64":
25716
 
25717
     DEFINES["WEBRTC_ARCH_ARM64"] = True
25718
     DEFINES["WEBRTC_HAS_NEON"] = True
25719
 
25720
-if CONFIG["CPU_ARCH"] == "arm":
25721
-
25895
-
25722
-    CXXFLAGS += [
25896
-    OS_LIBS += [
25723
-        "-mfpu=neon"
25897
-        "crypt32",
25898
-        "iphlpapi",
25899
-        "secur32",
25900
-        "winmm"
25724
-    ]
25901
-    ]
25725
-
25902
-
25726
-    DEFINES["WEBRTC_ARCH_ARM"] = True
25727
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
25728
-    DEFINES["WEBRTC_HAS_NEON"] = True
25729
-
25730
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
25903
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
25731
-
25904
-
25732
-    DEFINES["_DEBUG"] = True
25905
-    DEFINES["_DEBUG"] = True
Lines 25741-25748 index b007a1e5ed8d..d6be72cf693c 100644 Link Here
25741
-
25914
-
25742
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
25915
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
25743
-
25916
-
25744
-    DEFINES["_DEBUG"] = True
25917
     DEFINES["_DEBUG"] = True
25745
-
25918
 
25746
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
25919
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
25747
-
25920
-
25748
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
25921
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 25752-25795 index b007a1e5ed8d..d6be72cf693c 100644 Link Here
25752
 
25925
 
25753
     DEFINES["USE_X11"] = "1"
25926
     DEFINES["USE_X11"] = "1"
25754
 
25927
 
25755
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
25756
-
25757
-    OS_LIBS += [
25758
-        "android_support",
25759
-        "unwind"
25760
-    ]
25761
-
25762
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
25928
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
25763
-
25929
-
25764
-    OS_LIBS += [
25930
-    OS_LIBS += [
25765
-        "android_support"
25931
-        "android_support"
25766
-    ]
25932
-    ]
25767
-
25933
-
25768
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
25934
 Library("common_audio_sse2_gn")
25769
-
25935
diff --git third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build
25770
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25936
index 47f99dbd830c..93b9d78370f1 100644
25771
-    DEFINES["_GNU_SOURCE"] = True
25937
--- third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build
25772
-
25938
+++ third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build
25773
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
25774
-
25775
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25776
-    DEFINES["_GNU_SOURCE"] = True
25777
-
25778
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
25779
-
25780
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25781
-    DEFINES["_GNU_SOURCE"] = True
25782
-
25783
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
25784
-
25785
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25786
-    DEFINES["_GNU_SOURCE"] = True
25787
-
25788
 Library("fft_size_256_gn")
25789
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
25790
index ec6e2eca861f..7b51a5386c8d 100644
25791
--- third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build
25792
+++ third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build
25793
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
25939
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
25794
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25940
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
25795
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
25941
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 25811-25828 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
25811
 
25957
 
25812
 FINAL_LIBRARY = "webrtc"
25958
 FINAL_LIBRARY = "webrtc"
25813
 
25959
 
25814
@@ -28,6 +38,10 @@ LOCAL_INCLUDES += [
25960
@@ -42,172 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
25815
     "/tools/profiler/public"
25816
 ]
25817
 
25818
+UNIFIED_SOURCES += [
25819
+    "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
25820
+]
25821
+
25822
 if not CONFIG["MOZ_DEBUG"]:
25823
 
25824
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
25825
@@ -37,203 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
25826
 if CONFIG["MOZ_DEBUG"] == "1":
25961
 if CONFIG["MOZ_DEBUG"] == "1":
25827
 
25962
 
25828
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
25963
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 25841-25846 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
25841
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25976
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25842
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25977
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25843
-
25978
-
25979
-    OS_LIBS += [
25980
-        "log"
25981
-    ]
25982
-
25844
-if CONFIG["OS_TARGET"] == "Darwin":
25983
-if CONFIG["OS_TARGET"] == "Darwin":
25845
-
25984
-
25846
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
25985
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 25851-25860 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
25851
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25990
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25852
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25991
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25853
-
25992
-
25854
-    UNIFIED_SOURCES += [
25855
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
25856
-    ]
25857
-
25858
-if CONFIG["OS_TARGET"] == "Linux":
25993
-if CONFIG["OS_TARGET"] == "Linux":
25859
-
25994
-
25860
-    DEFINES["USE_AURA"] = "1"
25995
-    DEFINES["USE_AURA"] = "1"
Lines 25870-25875 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
25870
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26005
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25871
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26006
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25872
-
26007
-
26008
-    OS_LIBS += [
26009
-        "rt"
26010
-    ]
26011
-
25873
-if CONFIG["OS_TARGET"] == "OpenBSD":
26012
-if CONFIG["OS_TARGET"] == "OpenBSD":
25874
-
26013
-
25875
-    DEFINES["USE_GLIB"] = "1"
26014
-    DEFINES["USE_GLIB"] = "1"
Lines 25884-25893 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
25884
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26023
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
25885
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26024
-    DEFINES["__STDC_FORMAT_MACROS"] = True
25886
-
26025
-
25887
-    UNIFIED_SOURCES += [
25888
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
25889
-    ]
25890
-
25891
-if CONFIG["OS_TARGET"] == "WINNT":
26026
-if CONFIG["OS_TARGET"] == "WINNT":
25892
-
26027
-
25893
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
26028
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
Lines 25915-25922 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
25915
-    DEFINES["_WINDOWS"] = True
26050
-    DEFINES["_WINDOWS"] = True
25916
-    DEFINES["__STD_C"] = True
26051
-    DEFINES["__STD_C"] = True
25917
-
26052
-
25918
-    UNIFIED_SOURCES += [
26053
-    OS_LIBS += [
25919
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
26054
-        "crypt32",
26055
-        "iphlpapi",
26056
-        "secur32",
26057
-        "winmm"
25920
-    ]
26058
-    ]
25921
+    DEFINES["_DEBUG"] = True
26059
+    DEFINES["_DEBUG"] = True
25922
 
26060
 
Lines 25927-25946 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
25927
 
26065
 
25928
-if CONFIG["CPU_ARCH"] == "arm":
26066
-if CONFIG["CPU_ARCH"] == "arm":
25929
-
26067
-
26068
-    CXXFLAGS += [
26069
-        "-mfpu=neon"
26070
-    ]
26071
-
25930
-    DEFINES["WEBRTC_ARCH_ARM"] = True
26072
-    DEFINES["WEBRTC_ARCH_ARM"] = True
25931
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
26073
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
25932
-    DEFINES["WEBRTC_HAS_NEON"] = True
26074
-    DEFINES["WEBRTC_HAS_NEON"] = True
25933
-
26075
-
25934
-    SOURCES += [
25935
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_arm.S"
25936
-    ]
25937
-
25938
-if CONFIG["CPU_ARCH"] == "ppc64":
25939
-
25940
-    UNIFIED_SOURCES += [
25941
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
25942
-    ]
25943
-
25944
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
26076
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
25945
-
26077
-
25946
-    DEFINES["_DEBUG"] = True
26078
-    DEFINES["_DEBUG"] = True
Lines 25966-25977 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
25966
 
26098
 
25967
     DEFINES["USE_X11"] = "1"
26099
     DEFINES["USE_X11"] = "1"
25968
 
26100
 
25969
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
25970
-
25971
-    UNIFIED_SOURCES += [
25972
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
25973
-    ]
25974
-
25975
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
26101
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
25976
-
26102
-
25977
-    OS_LIBS += [
26103
-    OS_LIBS += [
Lines 25985-26009 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
25985
-        "android_support"
26111
-        "android_support"
25986
-    ]
26112
-    ]
25987
-
26113
-
25988
-    UNIFIED_SOURCES += [
25989
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
25990
-    ]
25991
-
25992
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android":
25993
-
25994
-    UNIFIED_SOURCES += [
25995
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
25996
-    ]
25997
-
25998
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
26114
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
25999
-
26115
-
26000
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26116
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26001
-    DEFINES["_GNU_SOURCE"] = True
26117
-    DEFINES["_GNU_SOURCE"] = True
26002
-
26118
-
26003
-    UNIFIED_SOURCES += [
26004
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
26005
-    ]
26006
-
26007
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
26119
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
26008
-
26120
-
26009
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26121
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 26014-26037 index ec6e2eca861f..7b51a5386c8d 100644 Link Here
26014
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26126
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26015
-    DEFINES["_GNU_SOURCE"] = True
26127
-    DEFINES["_GNU_SOURCE"] = True
26016
-
26128
-
26017
-    UNIFIED_SOURCES += [
26018
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
26019
-    ]
26020
-
26021
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
26129
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
26022
-
26130
-
26023
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26131
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26024
-    DEFINES["_GNU_SOURCE"] = True
26132
-    DEFINES["_GNU_SOURCE"] = True
26025
-
26133
-
26026
-    UNIFIED_SOURCES += [
26134
 Library("fir_filter_factory_gn")
26027
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
26135
diff --git third_party/libwebrtc/common_audio/fir_filter_gn/moz.build third_party/libwebrtc/common_audio/fir_filter_gn/moz.build
26028
-    ]
26136
index 51acac9bad1a..6ed17d2eb8dd 100644
26029
-
26137
--- third_party/libwebrtc/common_audio/fir_filter_gn/moz.build
26030
 Library("spl_sqrt_floor_gn")
26138
+++ third_party/libwebrtc/common_audio/fir_filter_gn/moz.build
26031
diff --git third_party/libwebrtc/common_video/common_video_gn/moz.build third_party/libwebrtc/common_video/common_video_gn/moz.build
26032
index 369cdc3ac64d..8d71417aa908 100644
26033
--- third_party/libwebrtc/common_video/common_video_gn/moz.build
26034
+++ third_party/libwebrtc/common_video/common_video_gn/moz.build
26035
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26139
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26036
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26140
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26037
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
26141
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 26053-26059 index 369cdc3ac64d..8d71417aa908 100644 Link Here
26053
 
26157
 
26054
 FINAL_LIBRARY = "webrtc"
26158
 FINAL_LIBRARY = "webrtc"
26055
 
26159
 
26056
@@ -55,174 +65,15 @@ if not CONFIG["MOZ_DEBUG"]:
26160
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
26057
 if CONFIG["MOZ_DEBUG"] == "1":
26161
 if CONFIG["MOZ_DEBUG"] == "1":
26058
 
26162
 
26059
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
26163
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 26072-26082 index 369cdc3ac64d..8d71417aa908 100644 Link Here
26072
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26176
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26073
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26177
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26074
-
26178
-
26075
-    OS_LIBS += [
26076
-        "GLESv2",
26077
-        "log"
26078
-    ]
26079
-
26080
-if CONFIG["OS_TARGET"] == "Darwin":
26179
-if CONFIG["OS_TARGET"] == "Darwin":
26081
-
26180
-
26082
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26181
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 26102-26112 index 369cdc3ac64d..8d71417aa908 100644 Link Here
26102
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26201
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26103
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26202
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26104
-
26203
-
26105
-    OS_LIBS += [
26106
-        "dl",
26107
-        "rt"
26108
-    ]
26109
-
26110
-if CONFIG["OS_TARGET"] == "OpenBSD":
26204
-if CONFIG["OS_TARGET"] == "OpenBSD":
26111
-
26205
-
26112
-    DEFINES["USE_GLIB"] = "1"
26206
-    DEFINES["USE_GLIB"] = "1"
Lines 26147-26159 index 369cdc3ac64d..8d71417aa908 100644 Link Here
26147
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
26241
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
26148
-    DEFINES["_WINDOWS"] = True
26242
-    DEFINES["_WINDOWS"] = True
26149
-    DEFINES["__STD_C"] = True
26243
-    DEFINES["__STD_C"] = True
26150
-
26151
-    OS_LIBS += [
26152
-        "crypt32",
26153
-        "iphlpapi",
26154
-        "secur32",
26155
-        "winmm"
26156
-    ]
26157
+    DEFINES["_DEBUG"] = True
26244
+    DEFINES["_DEBUG"] = True
26158
 
26245
 
26159
 if CONFIG["CPU_ARCH"] == "aarch64":
26246
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 26163-26172 index 369cdc3ac64d..8d71417aa908 100644 Link Here
26163
 
26250
 
26164
-if CONFIG["CPU_ARCH"] == "arm":
26251
-if CONFIG["CPU_ARCH"] == "arm":
26165
-
26252
-
26166
-    CXXFLAGS += [
26167
-        "-mfpu=neon"
26168
-    ]
26169
-
26170
-    DEFINES["WEBRTC_ARCH_ARM"] = True
26253
-    DEFINES["WEBRTC_ARCH_ARM"] = True
26171
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
26254
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
26172
-    DEFINES["WEBRTC_HAS_NEON"] = True
26255
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 26229-26239 index 369cdc3ac64d..8d71417aa908 100644 Link Here
26229
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26312
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26230
-    DEFINES["_GNU_SOURCE"] = True
26313
-    DEFINES["_GNU_SOURCE"] = True
26231
-
26314
-
26232
 Library("common_video_gn")
26315
 Library("fir_filter_gn")
26233
diff --git third_party/libwebrtc/common_video/frame_counts_gn/moz.build third_party/libwebrtc/common_video/frame_counts_gn/moz.build
26316
diff --git third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build
26234
index d1be405adf26..1e284ffb51df 100644
26317
index b1047de5ccb2..128eb766d596 100644
26235
--- third_party/libwebrtc/common_video/frame_counts_gn/moz.build
26318
--- third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build
26236
+++ third_party/libwebrtc/common_video/frame_counts_gn/moz.build
26319
+++ third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build
26237
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26320
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26238
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26321
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26239
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
26322
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 26255-26261 index d1be405adf26..1e284ffb51df 100644 Link Here
26255
 
26338
 
26256
 FINAL_LIBRARY = "webrtc"
26339
 FINAL_LIBRARY = "webrtc"
26257
 
26340
 
26258
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
26341
@@ -37,168 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
26259
 if CONFIG["MOZ_DEBUG"] == "1":
26342
 if CONFIG["MOZ_DEBUG"] == "1":
26260
 
26343
 
26261
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
26344
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 26274-26279 index d1be405adf26..1e284ffb51df 100644 Link Here
26274
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26357
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26275
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26358
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26276
-
26359
-
26360
-    OS_LIBS += [
26361
-        "log"
26362
-    ]
26363
-
26277
-if CONFIG["OS_TARGET"] == "Darwin":
26364
-if CONFIG["OS_TARGET"] == "Darwin":
26278
-
26365
-
26279
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26366
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 26299-26304 index d1be405adf26..1e284ffb51df 100644 Link Here
26299
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26386
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26300
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26387
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26301
-
26388
-
26389
-    OS_LIBS += [
26390
-        "rt"
26391
-    ]
26392
-
26302
-if CONFIG["OS_TARGET"] == "OpenBSD":
26393
-if CONFIG["OS_TARGET"] == "OpenBSD":
26303
-
26394
-
26304
-    DEFINES["USE_GLIB"] = "1"
26395
-    DEFINES["USE_GLIB"] = "1"
Lines 26339-26344 index d1be405adf26..1e284ffb51df 100644 Link Here
26339
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
26430
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
26340
-    DEFINES["_WINDOWS"] = True
26431
-    DEFINES["_WINDOWS"] = True
26341
-    DEFINES["__STD_C"] = True
26432
-    DEFINES["__STD_C"] = True
26433
-
26434
-    OS_LIBS += [
26435
-        "crypt32",
26436
-        "iphlpapi",
26437
-        "secur32",
26438
-        "winmm"
26439
-    ]
26342
+    DEFINES["_DEBUG"] = True
26440
+    DEFINES["_DEBUG"] = True
26343
 
26441
 
26344
 if CONFIG["CPU_ARCH"] == "aarch64":
26442
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 26410-26420 index d1be405adf26..1e284ffb51df 100644 Link Here
26410
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26508
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26411
-    DEFINES["_GNU_SOURCE"] = True
26509
-    DEFINES["_GNU_SOURCE"] = True
26412
-
26510
-
26413
 Library("frame_counts_gn")
26511
 Library("sinc_resampler_gn")
26414
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
26512
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
26415
index 651826f452fe..061cfc842908 100644
26513
index 142887be2aeb..24ac42fb0329 100644
26416
--- third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build
26514
--- third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build
26417
+++ third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build
26515
+++ third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build
26418
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26516
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26419
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26517
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26420
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
26518
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 26436-26442 index 651826f452fe..061cfc842908 100644 Link Here
26436
 
26534
 
26437
 FINAL_LIBRARY = "webrtc"
26535
 FINAL_LIBRARY = "webrtc"
26438
 
26536
 
26439
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
26537
@@ -41,101 +51,7 @@ if not CONFIG["MOZ_DEBUG"]:
26440
 if CONFIG["MOZ_DEBUG"] == "1":
26538
 if CONFIG["MOZ_DEBUG"] == "1":
26441
 
26539
 
26442
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
26540
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 26484-26489 index 651826f452fe..061cfc842908 100644 Link Here
26484
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26582
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26485
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26583
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26486
-
26584
-
26585
-    OS_LIBS += [
26586
-        "rt"
26587
-    ]
26588
-
26487
-if CONFIG["OS_TARGET"] == "OpenBSD":
26589
-if CONFIG["OS_TARGET"] == "OpenBSD":
26488
-
26590
-
26489
-    DEFINES["USE_GLIB"] = "1"
26591
-    DEFINES["USE_GLIB"] = "1"
Lines 26524-26539 index 651826f452fe..061cfc842908 100644 Link Here
26524
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
26626
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
26525
-    DEFINES["_WINDOWS"] = True
26627
-    DEFINES["_WINDOWS"] = True
26526
-    DEFINES["__STD_C"] = True
26628
-    DEFINES["__STD_C"] = True
26629
-
26630
-    OS_LIBS += [
26631
-        "crypt32",
26632
-        "iphlpapi",
26633
-        "secur32",
26634
-        "winmm"
26635
-    ]
26527
+    DEFINES["_DEBUG"] = True
26636
+    DEFINES["_DEBUG"] = True
26528
 
26637
 
26529
 if CONFIG["CPU_ARCH"] == "aarch64":
26638
 if CONFIG["CPU_ARCH"] == "aarch64":
26530
 
26639
 
26531
     DEFINES["WEBRTC_ARCH_ARM64"] = True
26640
@@ -146,117 +62,28 @@ if CONFIG["CPU_ARCH"] == "aarch64":
26532
     DEFINES["WEBRTC_HAS_NEON"] = True
26641
         "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_neon.cc"
26642
     ]
26533
 
26643
 
26534
-if CONFIG["CPU_ARCH"] == "arm":
26644
-if CONFIG["CPU_ARCH"] == "arm":
26535
-
26645
+if CONFIG["CPU_ARCH"] == "x86":
26536
-    CXXFLAGS += [
26646
 
26647
     CXXFLAGS += [
26537
-        "-mfpu=neon"
26648
-        "-mfpu=neon"
26538
-    ]
26649
-    ]
26539
-
26650
-
Lines 26541-26546 index 651826f452fe..061cfc842908 100644 Link Here
26541
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
26652
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
26542
-    DEFINES["WEBRTC_HAS_NEON"] = True
26653
-    DEFINES["WEBRTC_HAS_NEON"] = True
26543
-
26654
-
26655
-    UNIFIED_SOURCES += [
26656
-        "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_neon.cc"
26657
+        "-msse2"
26658
     ]
26659
 
26660
-if CONFIG["CPU_ARCH"] == "x86":
26661
-
26662
     UNIFIED_SOURCES += [
26663
         "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_sse2.cc"
26664
     ]
26665
 
26666
 if CONFIG["CPU_ARCH"] == "x86_64":
26667
 
26668
-    UNIFIED_SOURCES += [
26669
-        "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_sse2.cc"
26670
-    ]
26671
-
26544
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
26672
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
26545
-
26673
-
26546
-    DEFINES["_DEBUG"] = True
26674
-    DEFINES["_DEBUG"] = True
Lines 26562-26571 index 651826f452fe..061cfc842908 100644 Link Here
26562
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
26690
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
26563
-
26691
-
26564
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
26692
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
26565
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
26693
-
26566
 
26694
-    DEFINES["USE_X11"] = "1"
26567
     DEFINES["USE_X11"] = "1"
26695
-
26568
 
26569
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
26696
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
26570
-
26697
-
26571
-    OS_LIBS += [
26698
-    OS_LIBS += [
Lines 26575-26584 index 651826f452fe..061cfc842908 100644 Link Here
26575
-
26702
-
26576
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
26703
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
26577
-
26704
-
26705
-    CXXFLAGS += [
26706
-        "-msse2"
26707
-    ]
26708
-
26578
-    OS_LIBS += [
26709
-    OS_LIBS += [
26579
-        "android_support"
26710
-        "android_support"
26580
-    ]
26711
-    ]
26581
-
26712
-
26713
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android":
26714
-
26715
-    CXXFLAGS += [
26716
-        "-msse2"
26717
-    ]
26718
-
26719
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Darwin":
26720
-
26721
     CXXFLAGS += [
26722
         "-msse2"
26723
     ]
26724
 
26582
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
26725
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
26583
-
26726
-
26584
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26727
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 26591-26609 index 651826f452fe..061cfc842908 100644 Link Here
26591
-
26734
-
26592
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
26735
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
26593
-
26736
-
26737
-    CXXFLAGS += [
26738
-        "-msse2"
26739
-    ]
26740
-
26594
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26741
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26595
-    DEFINES["_GNU_SOURCE"] = True
26742
-    DEFINES["_GNU_SOURCE"] = True
26596
-
26743
-
26597
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
26744
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
26598
-
26745
-
26746
-    CXXFLAGS += [
26747
-        "-msse2"
26748
+    UNIFIED_SOURCES += [
26749
+        "/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128/ooura_fft_sse2.cc"
26750
     ]
26751
 
26599
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26752
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26600
-    DEFINES["_GNU_SOURCE"] = True
26753
-    DEFINES["_GNU_SOURCE"] = True
26754
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
26755
 
26756
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "OpenBSD":
26601
-
26757
-
26602
 Library("generic_frame_descriptor_gn")
26758
-    CXXFLAGS += [
26603
diff --git third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build
26759
-        "-msse2"
26604
index fc4a82d00bde..b06802646e84 100644
26760
-    ]
26605
--- third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build
26761
+    DEFINES["USE_X11"] = "1"
26606
+++ third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build
26762
 
26763
 Library("fft_size_128_gn")
26764
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
26765
index b007a1e5ed8d..d6be72cf693c 100644
26766
--- third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build
26767
+++ third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build
26607
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26768
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26608
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26769
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26609
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
26770
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 26625-26631 index fc4a82d00bde..b06802646e84 100644 Link Here
26625
 
26786
 
26626
 FINAL_LIBRARY = "webrtc"
26787
 FINAL_LIBRARY = "webrtc"
26627
 
26788
 
26628
@@ -44,165 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
26789
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
26629
 if CONFIG["MOZ_DEBUG"] == "1":
26790
 if CONFIG["MOZ_DEBUG"] == "1":
26630
 
26791
 
26631
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
26792
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 26644-26653 index fc4a82d00bde..b06802646e84 100644 Link Here
26644
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26805
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26645
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26806
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26646
-
26807
-
26647
-    OS_LIBS += [
26648
-        "log"
26649
-    ]
26650
-
26651
-if CONFIG["OS_TARGET"] == "Darwin":
26808
-if CONFIG["OS_TARGET"] == "Darwin":
26652
-
26809
-
26653
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26810
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 26713-26722 index fc4a82d00bde..b06802646e84 100644 Link Here
26713
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
26870
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
26714
-    DEFINES["_WINDOWS"] = True
26871
-    DEFINES["_WINDOWS"] = True
26715
-    DEFINES["__STD_C"] = True
26872
-    DEFINES["__STD_C"] = True
26716
-
26717
-    OS_LIBS += [
26718
-        "winmm"
26719
-    ]
26720
+    DEFINES["_DEBUG"] = True
26873
+    DEFINES["_DEBUG"] = True
26721
 
26874
 
26722
 if CONFIG["CPU_ARCH"] == "aarch64":
26875
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 26792-26802 index fc4a82d00bde..b06802646e84 100644 Link Here
26792
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26945
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26793
-    DEFINES["_GNU_SOURCE"] = True
26946
-    DEFINES["_GNU_SOURCE"] = True
26794
-
26947
-
26795
 Library("rtc_event_audio_gn")
26948
 Library("fft_size_256_gn")
26796
diff --git third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build
26949
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
26797
index 49e8f523ed87..b41ba4eddf9e 100644
26950
index ec6e2eca861f..7b51a5386c8d 100644
26798
--- third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build
26951
--- third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build
26799
+++ third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build
26952
+++ third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build
26800
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26953
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26801
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26954
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26802
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
26955
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 26818-26824 index 49e8f523ed87..b41ba4eddf9e 100644 Link Here
26818
 
26971
 
26819
 FINAL_LIBRARY = "webrtc"
26972
 FINAL_LIBRARY = "webrtc"
26820
 
26973
 
26821
@@ -46,165 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
26974
@@ -28,6 +38,10 @@ LOCAL_INCLUDES += [
26975
     "/tools/profiler/public"
26976
 ]
26977
 
26978
+UNIFIED_SOURCES += [
26979
+    "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
26980
+]
26981
+
26982
 if not CONFIG["MOZ_DEBUG"]:
26983
 
26984
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
26985
@@ -37,203 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
26822
 if CONFIG["MOZ_DEBUG"] == "1":
26986
 if CONFIG["MOZ_DEBUG"] == "1":
26823
 
26987
 
26824
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
26988
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 26837-26846 index 49e8f523ed87..b41ba4eddf9e 100644 Link Here
26837
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
27001
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26838
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27002
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26839
-
27003
-
26840
-    OS_LIBS += [
26841
-        "log"
26842
-    ]
26843
-
26844
-if CONFIG["OS_TARGET"] == "Darwin":
27004
-if CONFIG["OS_TARGET"] == "Darwin":
26845
-
27005
-
26846
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27006
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 26851-26856 index 49e8f523ed87..b41ba4eddf9e 100644 Link Here
26851
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
27011
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26852
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27012
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26853
-
27013
-
27014
-    UNIFIED_SOURCES += [
27015
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
27016
-    ]
27017
-
26854
-if CONFIG["OS_TARGET"] == "Linux":
27018
-if CONFIG["OS_TARGET"] == "Linux":
26855
-
27019
-
26856
-    DEFINES["USE_AURA"] = "1"
27020
-    DEFINES["USE_AURA"] = "1"
Lines 26880-26885 index 49e8f523ed87..b41ba4eddf9e 100644 Link Here
26880
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
27044
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
26881
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27045
-    DEFINES["__STDC_FORMAT_MACROS"] = True
26882
-
27046
-
27047
-    UNIFIED_SOURCES += [
27048
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
27049
-    ]
27050
-
26883
-if CONFIG["OS_TARGET"] == "WINNT":
27051
-if CONFIG["OS_TARGET"] == "WINNT":
26884
-
27052
-
26885
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
27053
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
Lines 26907-26914 index 49e8f523ed87..b41ba4eddf9e 100644 Link Here
26907
-    DEFINES["_WINDOWS"] = True
27075
-    DEFINES["_WINDOWS"] = True
26908
-    DEFINES["__STD_C"] = True
27076
-    DEFINES["__STD_C"] = True
26909
-
27077
-
26910
-    OS_LIBS += [
27078
-    UNIFIED_SOURCES += [
26911
-        "winmm"
27079
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
26912
-    ]
27080
-    ]
26913
+    DEFINES["_DEBUG"] = True
27081
+    DEFINES["_DEBUG"] = True
26914
 
27082
 
Lines 26919-26932 index 49e8f523ed87..b41ba4eddf9e 100644 Link Here
26919
 
27087
 
26920
-if CONFIG["CPU_ARCH"] == "arm":
27088
-if CONFIG["CPU_ARCH"] == "arm":
26921
-
27089
-
26922
-    CXXFLAGS += [
26923
-        "-mfpu=neon"
26924
-    ]
26925
-
26926
-    DEFINES["WEBRTC_ARCH_ARM"] = True
27090
-    DEFINES["WEBRTC_ARCH_ARM"] = True
26927
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
27091
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
26928
-    DEFINES["WEBRTC_HAS_NEON"] = True
27092
-    DEFINES["WEBRTC_HAS_NEON"] = True
26929
-
27093
-
27094
-    SOURCES += [
27095
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_arm.S"
27096
-    ]
27097
-
27098
-if CONFIG["CPU_ARCH"] == "ppc64":
27099
-
27100
-    UNIFIED_SOURCES += [
27101
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
27102
-    ]
27103
-
26930
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
27104
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
26931
-
27105
-
26932
-    DEFINES["_DEBUG"] = True
27106
-    DEFINES["_DEBUG"] = True
Lines 26952-26957 index 49e8f523ed87..b41ba4eddf9e 100644 Link Here
26952
 
27126
 
26953
     DEFINES["USE_X11"] = "1"
27127
     DEFINES["USE_X11"] = "1"
26954
 
27128
 
27129
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
27130
-
27131
-    UNIFIED_SOURCES += [
27132
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
27133
-    ]
27134
-
26955
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
27135
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
26956
-
27136
-
26957
-    OS_LIBS += [
27137
-    OS_LIBS += [
Lines 26965-26975 index 49e8f523ed87..b41ba4eddf9e 100644 Link Here
26965
-        "android_support"
27145
-        "android_support"
26966
-    ]
27146
-    ]
26967
-
27147
-
27148
-    UNIFIED_SOURCES += [
27149
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
27150
-    ]
27151
-
27152
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android":
27153
-
27154
-    UNIFIED_SOURCES += [
27155
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
27156
-    ]
27157
-
26968
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
27158
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
26969
-
27159
-
26970
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27160
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26971
-    DEFINES["_GNU_SOURCE"] = True
27161
-    DEFINES["_GNU_SOURCE"] = True
26972
-
27162
-
27163
-    UNIFIED_SOURCES += [
27164
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
27165
-    ]
27166
-
26973
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
27167
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
26974
-
27168
-
26975
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27169
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 26980-26995 index 49e8f523ed87..b41ba4eddf9e 100644 Link Here
26980
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27174
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26981
-    DEFINES["_GNU_SOURCE"] = True
27175
-    DEFINES["_GNU_SOURCE"] = True
26982
-
27176
-
27177
-    UNIFIED_SOURCES += [
27178
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
27179
-    ]
27180
-
26983
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
27181
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
26984
-
27182
-
26985
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27183
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
26986
-    DEFINES["_GNU_SOURCE"] = True
27184
-    DEFINES["_GNU_SOURCE"] = True
26987
-
27185
-
26988
 Library("rtc_event_bwe_gn")
27186
-    UNIFIED_SOURCES += [
26989
diff --git third_party/libwebrtc/logging/rtc_event_field_gn/moz.build third_party/libwebrtc/logging/rtc_event_field_gn/moz.build
27187
-        "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c"
26990
index 0d6463867101..292edf8bdf23 100644
27188
-    ]
26991
--- third_party/libwebrtc/logging/rtc_event_field_gn/moz.build
27189
-
26992
+++ third_party/libwebrtc/logging/rtc_event_field_gn/moz.build
27190
 Library("spl_sqrt_floor_gn")
27191
diff --git third_party/libwebrtc/common_video/common_video_gn/moz.build third_party/libwebrtc/common_video/common_video_gn/moz.build
27192
index 369cdc3ac64d..8d71417aa908 100644
27193
--- third_party/libwebrtc/common_video/common_video_gn/moz.build
27194
+++ third_party/libwebrtc/common_video/common_video_gn/moz.build
26993
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27195
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
26994
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27196
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
26995
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
27197
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 27011-27017 index 0d6463867101..292edf8bdf23 100644 Link Here
27011
 
27213
 
27012
 FINAL_LIBRARY = "webrtc"
27214
 FINAL_LIBRARY = "webrtc"
27013
 
27215
 
27014
@@ -44,165 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
27216
@@ -55,174 +65,15 @@ if not CONFIG["MOZ_DEBUG"]:
27015
 if CONFIG["MOZ_DEBUG"] == "1":
27217
 if CONFIG["MOZ_DEBUG"] == "1":
27016
 
27218
 
27017
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
27219
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 27031-27036 index 0d6463867101..292edf8bdf23 100644 Link Here
27031
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27233
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27032
-
27234
-
27033
-    OS_LIBS += [
27235
-    OS_LIBS += [
27236
-        "GLESv2",
27034
-        "log"
27237
-        "log"
27035
-    ]
27238
-    ]
27036
-
27239
-
Lines 27059-27064 index 0d6463867101..292edf8bdf23 100644 Link Here
27059
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
27262
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
27060
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27263
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27061
-
27264
-
27265
-    OS_LIBS += [
27266
-        "dl",
27267
-        "rt"
27268
-    ]
27269
-
27062
-if CONFIG["OS_TARGET"] == "OpenBSD":
27270
-if CONFIG["OS_TARGET"] == "OpenBSD":
27063
-
27271
-
27064
-    DEFINES["USE_GLIB"] = "1"
27272
-    DEFINES["USE_GLIB"] = "1"
Lines 27101-27106 index 0d6463867101..292edf8bdf23 100644 Link Here
27101
-    DEFINES["__STD_C"] = True
27309
-    DEFINES["__STD_C"] = True
27102
-
27310
-
27103
-    OS_LIBS += [
27311
-    OS_LIBS += [
27312
-        "crypt32",
27313
-        "iphlpapi",
27314
-        "secur32",
27104
-        "winmm"
27315
-        "winmm"
27105
-    ]
27316
-    ]
27106
+    DEFINES["_DEBUG"] = True
27317
+    DEFINES["_DEBUG"] = True
Lines 27178-27188 index 0d6463867101..292edf8bdf23 100644 Link Here
27178
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27389
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27179
-    DEFINES["_GNU_SOURCE"] = True
27390
-    DEFINES["_GNU_SOURCE"] = True
27180
-
27391
-
27181
 Library("rtc_event_field_gn")
27392
 Library("common_video_gn")
27182
diff --git third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build
27393
diff --git third_party/libwebrtc/common_video/frame_counts_gn/moz.build third_party/libwebrtc/common_video/frame_counts_gn/moz.build
27183
index d6d86cdf23c4..f652832a8a4d 100644
27394
index d1be405adf26..1e284ffb51df 100644
27184
--- third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build
27395
--- third_party/libwebrtc/common_video/frame_counts_gn/moz.build
27185
+++ third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build
27396
+++ third_party/libwebrtc/common_video/frame_counts_gn/moz.build
27186
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27397
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27187
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27398
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27188
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
27399
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 27204-27210 index d6d86cdf23c4..f652832a8a4d 100644 Link Here
27204
 
27415
 
27205
 FINAL_LIBRARY = "webrtc"
27416
 FINAL_LIBRARY = "webrtc"
27206
 
27417
 
27207
@@ -43,161 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
27418
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
27208
 if CONFIG["MOZ_DEBUG"] == "1":
27419
 if CONFIG["MOZ_DEBUG"] == "1":
27209
 
27420
 
27210
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
27421
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 27223-27232 index d6d86cdf23c4..f652832a8a4d 100644 Link Here
27223
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
27434
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
27224
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27435
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27225
-
27436
-
27226
-    OS_LIBS += [
27227
-        "log"
27228
-    ]
27229
-
27230
-if CONFIG["OS_TARGET"] == "Darwin":
27437
-if CONFIG["OS_TARGET"] == "Darwin":
27231
-
27438
-
27232
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27439
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 27301-27310 index d6d86cdf23c4..f652832a8a4d 100644 Link Here
27301
 
27508
 
27302
-if CONFIG["CPU_ARCH"] == "arm":
27509
-if CONFIG["CPU_ARCH"] == "arm":
27303
-
27510
-
27304
-    CXXFLAGS += [
27305
-        "-mfpu=neon"
27306
-    ]
27307
-
27308
-    DEFINES["WEBRTC_ARCH_ARM"] = True
27511
-    DEFINES["WEBRTC_ARCH_ARM"] = True
27309
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
27512
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
27310
-    DEFINES["WEBRTC_HAS_NEON"] = True
27513
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 27367-27377 index d6d86cdf23c4..f652832a8a4d 100644 Link Here
27367
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27570
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27368
-    DEFINES["_GNU_SOURCE"] = True
27571
-    DEFINES["_GNU_SOURCE"] = True
27369
-
27572
-
27370
 Library("rtc_event_number_encodings_gn")
27573
 Library("frame_counts_gn")
27371
diff --git third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build
27574
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
27372
index 985b84c85042..b6028c696a8b 100644
27575
index 651826f452fe..061cfc842908 100644
27373
--- third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build
27576
--- third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build
27374
+++ third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build
27577
+++ third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build
27375
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27578
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27376
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27579
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27377
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
27580
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 27393-27399 index 985b84c85042..b6028c696a8b 100644 Link Here
27393
 
27596
 
27394
 FINAL_LIBRARY = "webrtc"
27597
 FINAL_LIBRARY = "webrtc"
27395
 
27598
 
27396
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
27599
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
27397
 if CONFIG["MOZ_DEBUG"] == "1":
27600
 if CONFIG["MOZ_DEBUG"] == "1":
27398
 
27601
 
27399
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
27602
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 27481-27490 index 985b84c85042..b6028c696a8b 100644 Link Here
27481
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
27684
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
27482
-    DEFINES["_WINDOWS"] = True
27685
-    DEFINES["_WINDOWS"] = True
27483
-    DEFINES["__STD_C"] = True
27686
-    DEFINES["__STD_C"] = True
27484
-
27485
-    OS_LIBS += [
27486
-        "winmm"
27487
-    ]
27488
+    DEFINES["_DEBUG"] = True
27687
+    DEFINES["_DEBUG"] = True
27489
 
27688
 
27490
 if CONFIG["CPU_ARCH"] == "aarch64":
27689
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 27560-27570 index 985b84c85042..b6028c696a8b 100644 Link Here
27560
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27759
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27561
-    DEFINES["_GNU_SOURCE"] = True
27760
-    DEFINES["_GNU_SOURCE"] = True
27562
-
27761
-
27563
 Library("rtc_event_pacing_gn")
27762
 Library("generic_frame_descriptor_gn")
27564
diff --git third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build
27763
diff --git third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build
27565
index cc048c7fdad3..d0d8c7a098d1 100644
27764
index fc4a82d00bde..b06802646e84 100644
27566
--- third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build
27765
--- third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build
27567
+++ third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build
27766
+++ third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build
27568
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27767
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27569
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27768
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27570
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
27769
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 27586-27592 index cc048c7fdad3..d0d8c7a098d1 100644 Link Here
27586
 
27785
 
27587
 FINAL_LIBRARY = "webrtc"
27786
 FINAL_LIBRARY = "webrtc"
27588
 
27787
 
27589
@@ -44,174 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
27788
@@ -44,165 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
27590
 if CONFIG["MOZ_DEBUG"] == "1":
27789
 if CONFIG["MOZ_DEBUG"] == "1":
27591
 
27790
 
27592
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
27791
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 27606-27612 index cc048c7fdad3..d0d8c7a098d1 100644 Link Here
27606
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27805
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27607
-
27806
-
27608
-    OS_LIBS += [
27807
-    OS_LIBS += [
27609
-        "GLESv2",
27610
-        "log"
27808
-        "log"
27611
-    ]
27809
-    ]
27612
-
27810
-
Lines 27635-27645 index cc048c7fdad3..d0d8c7a098d1 100644 Link Here
27635
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
27833
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
27636
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27834
-    DEFINES["__STDC_FORMAT_MACROS"] = True
27637
-
27835
-
27638
-    OS_LIBS += [
27639
-        "dl",
27640
-        "rt"
27641
-    ]
27642
-
27643
-if CONFIG["OS_TARGET"] == "OpenBSD":
27836
-if CONFIG["OS_TARGET"] == "OpenBSD":
27644
-
27837
-
27645
-    DEFINES["USE_GLIB"] = "1"
27838
-    DEFINES["USE_GLIB"] = "1"
Lines 27682-27690 index cc048c7fdad3..d0d8c7a098d1 100644 Link Here
27682
-    DEFINES["__STD_C"] = True
27875
-    DEFINES["__STD_C"] = True
27683
-
27876
-
27684
-    OS_LIBS += [
27877
-    OS_LIBS += [
27685
-        "crypt32",
27686
-        "iphlpapi",
27687
-        "secur32",
27688
-        "winmm"
27878
-        "winmm"
27689
-    ]
27879
-    ]
27690
+    DEFINES["_DEBUG"] = True
27880
+    DEFINES["_DEBUG"] = True
Lines 27762-27772 index cc048c7fdad3..d0d8c7a098d1 100644 Link Here
27762
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27952
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27763
-    DEFINES["_GNU_SOURCE"] = True
27953
-    DEFINES["_GNU_SOURCE"] = True
27764
-
27954
-
27765
 Library("rtc_event_rtp_rtcp_gn")
27955
 Library("rtc_event_audio_gn")
27766
diff --git third_party/libwebrtc/logging/rtc_event_video_gn/moz.build third_party/libwebrtc/logging/rtc_event_video_gn/moz.build
27956
diff --git third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build
27767
index b1758b72bf25..b65614c9846d 100644
27957
index 49e8f523ed87..b41ba4eddf9e 100644
27768
--- third_party/libwebrtc/logging/rtc_event_video_gn/moz.build
27958
--- third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build
27769
+++ third_party/libwebrtc/logging/rtc_event_video_gn/moz.build
27959
+++ third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build
27770
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27960
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27771
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27961
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27772
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
27962
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 27788-27794 index b1758b72bf25..b65614c9846d 100644 Link Here
27788
 
27978
 
27789
 FINAL_LIBRARY = "webrtc"
27979
 FINAL_LIBRARY = "webrtc"
27790
 
27980
 
27791
@@ -42,165 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
27981
@@ -46,165 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
27792
 if CONFIG["MOZ_DEBUG"] == "1":
27982
 if CONFIG["MOZ_DEBUG"] == "1":
27793
 
27983
 
27794
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
27984
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 27955-27965 index b1758b72bf25..b65614c9846d 100644 Link Here
27955
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28145
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
27956
-    DEFINES["_GNU_SOURCE"] = True
28146
-    DEFINES["_GNU_SOURCE"] = True
27957
-
28147
-
27958
 Library("rtc_event_video_gn")
28148
 Library("rtc_event_bwe_gn")
27959
diff --git third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build
28149
diff --git third_party/libwebrtc/logging/rtc_event_field_gn/moz.build third_party/libwebrtc/logging/rtc_event_field_gn/moz.build
27960
index 0273e154491a..7d67e8476b53 100644
28150
index 0d6463867101..292edf8bdf23 100644
27961
--- third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build
28151
--- third_party/libwebrtc/logging/rtc_event_field_gn/moz.build
27962
+++ third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build
28152
+++ third_party/libwebrtc/logging/rtc_event_field_gn/moz.build
27963
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28153
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
27964
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28154
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
27965
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
28155
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 27981-27987 index 0273e154491a..7d67e8476b53 100644 Link Here
27981
 
28171
 
27982
 FINAL_LIBRARY = "webrtc"
28172
 FINAL_LIBRARY = "webrtc"
27983
 
28173
 
27984
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
28174
@@ -44,165 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
27985
 if CONFIG["MOZ_DEBUG"] == "1":
28175
 if CONFIG["MOZ_DEBUG"] == "1":
27986
 
28176
 
27987
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
28177
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 28148-28158 index 0273e154491a..7d67e8476b53 100644 Link Here
28148
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28338
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28149
-    DEFINES["_GNU_SOURCE"] = True
28339
-    DEFINES["_GNU_SOURCE"] = True
28150
-
28340
-
28151
 Library("rtc_stream_config_gn")
28341
 Library("rtc_event_field_gn")
28152
diff --git third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build
28342
diff --git third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build
28153
index 9fd4c74381a6..4d2e584f2b12 100644
28343
index d6d86cdf23c4..f652832a8a4d 100644
28154
--- third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build
28344
--- third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build
28155
+++ third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build
28345
+++ third_party/libwebrtc/logging/rtc_event_number_encodings_gn/moz.build
28156
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28346
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28157
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28347
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28158
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
28348
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 28174-28180 index 9fd4c74381a6..4d2e584f2b12 100644 Link Here
28174
 
28364
 
28175
 FINAL_LIBRARY = "webrtc"
28365
 FINAL_LIBRARY = "webrtc"
28176
 
28366
 
28177
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
28367
@@ -43,161 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
28178
 if CONFIG["MOZ_DEBUG"] == "1":
28368
 if CONFIG["MOZ_DEBUG"] == "1":
28179
 
28369
 
28180
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
28370
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 28194-28200 index 9fd4c74381a6..4d2e584f2b12 100644 Link Here
28194
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28384
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28195
-
28385
-
28196
-    OS_LIBS += [
28386
-    OS_LIBS += [
28197
-        "GLESv2",
28198
-        "log"
28387
-        "log"
28199
-    ]
28388
-    ]
28200
-
28389
-
Lines 28223-28233 index 9fd4c74381a6..4d2e584f2b12 100644 Link Here
28223
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
28412
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
28224
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28413
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28225
-
28414
-
28226
-    OS_LIBS += [
28227
-        "dl",
28228
-        "rt"
28229
-    ]
28230
-
28231
-if CONFIG["OS_TARGET"] == "OpenBSD":
28415
-if CONFIG["OS_TARGET"] == "OpenBSD":
28232
-
28416
-
28233
-    DEFINES["USE_GLIB"] = "1"
28417
-    DEFINES["USE_GLIB"] = "1"
Lines 28268-28280 index 9fd4c74381a6..4d2e584f2b12 100644 Link Here
28268
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
28452
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
28269
-    DEFINES["_WINDOWS"] = True
28453
-    DEFINES["_WINDOWS"] = True
28270
-    DEFINES["__STD_C"] = True
28454
-    DEFINES["__STD_C"] = True
28271
-
28272
-    OS_LIBS += [
28273
-        "crypt32",
28274
-        "iphlpapi",
28275
-        "secur32",
28276
-        "winmm"
28277
-    ]
28278
+    DEFINES["_DEBUG"] = True
28455
+    DEFINES["_DEBUG"] = True
28279
 
28456
 
28280
 if CONFIG["CPU_ARCH"] == "aarch64":
28457
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 28350-28360 index 9fd4c74381a6..4d2e584f2b12 100644 Link Here
28350
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28527
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28351
-    DEFINES["_GNU_SOURCE"] = True
28528
-    DEFINES["_GNU_SOURCE"] = True
28352
-
28529
-
28353
 Library("rtc_encoder_simulcast_proxy_gn")
28530
 Library("rtc_event_number_encodings_gn")
28354
diff --git third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build
28531
diff --git third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build
28355
index 09893f4183f6..c32a7bbe84b4 100644
28532
index 985b84c85042..b6028c696a8b 100644
28356
--- third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build
28533
--- third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build
28357
+++ third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build
28534
+++ third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build
28358
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28535
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28359
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28536
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28360
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
28537
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 28376-28382 index 09893f4183f6..c32a7bbe84b4 100644 Link Here
28376
 
28553
 
28377
 FINAL_LIBRARY = "webrtc"
28554
 FINAL_LIBRARY = "webrtc"
28378
 
28555
 
28379
@@ -43,174 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
28556
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
28380
 if CONFIG["MOZ_DEBUG"] == "1":
28557
 if CONFIG["MOZ_DEBUG"] == "1":
28381
 
28558
 
28382
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
28559
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 28396-28402 index 09893f4183f6..c32a7bbe84b4 100644 Link Here
28396
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28573
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28397
-
28574
-
28398
-    OS_LIBS += [
28575
-    OS_LIBS += [
28399
-        "GLESv2",
28400
-        "log"
28576
-        "log"
28401
-    ]
28577
-    ]
28402
-
28578
-
Lines 28425-28435 index 09893f4183f6..c32a7bbe84b4 100644 Link Here
28425
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
28601
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
28426
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28602
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28427
-
28603
-
28428
-    OS_LIBS += [
28429
-        "dl",
28430
-        "rt"
28431
-    ]
28432
-
28433
-if CONFIG["OS_TARGET"] == "OpenBSD":
28604
-if CONFIG["OS_TARGET"] == "OpenBSD":
28434
-
28605
-
28435
-    DEFINES["USE_GLIB"] = "1"
28606
-    DEFINES["USE_GLIB"] = "1"
Lines 28472-28480 index 09893f4183f6..c32a7bbe84b4 100644 Link Here
28472
-    DEFINES["__STD_C"] = True
28643
-    DEFINES["__STD_C"] = True
28473
-
28644
-
28474
-    OS_LIBS += [
28645
-    OS_LIBS += [
28475
-        "crypt32",
28476
-        "iphlpapi",
28477
-        "secur32",
28478
-        "winmm"
28646
-        "winmm"
28479
-    ]
28647
-    ]
28480
+    DEFINES["_DEBUG"] = True
28648
+    DEFINES["_DEBUG"] = True
Lines 28552-28562 index 09893f4183f6..c32a7bbe84b4 100644 Link Here
28552
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28720
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28553
-    DEFINES["_GNU_SOURCE"] = True
28721
-    DEFINES["_GNU_SOURCE"] = True
28554
-
28722
-
28555
 Library("rtc_internal_video_codecs_gn")
28723
 Library("rtc_event_pacing_gn")
28556
diff --git third_party/libwebrtc/media/rtc_media_base_gn/moz.build third_party/libwebrtc/media/rtc_media_base_gn/moz.build
28724
diff --git third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build
28557
index b9b963ad03b1..63d1adfc9f3f 100644
28725
index cc048c7fdad3..d0d8c7a098d1 100644
28558
--- third_party/libwebrtc/media/rtc_media_base_gn/moz.build
28726
--- third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build
28559
+++ third_party/libwebrtc/media/rtc_media_base_gn/moz.build
28727
+++ third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build
28560
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28728
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28561
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28729
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28562
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
28730
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 28578-28584 index b9b963ad03b1..63d1adfc9f3f 100644 Link Here
28578
 
28746
 
28579
 FINAL_LIBRARY = "webrtc"
28747
 FINAL_LIBRARY = "webrtc"
28580
 
28748
 
28581
@@ -46,174 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
28749
@@ -44,174 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
28582
 if CONFIG["MOZ_DEBUG"] == "1":
28750
 if CONFIG["MOZ_DEBUG"] == "1":
28583
 
28751
 
28584
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
28752
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 28754-28764 index b9b963ad03b1..63d1adfc9f3f 100644 Link Here
28754
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28922
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28755
-    DEFINES["_GNU_SOURCE"] = True
28923
-    DEFINES["_GNU_SOURCE"] = True
28756
-
28924
-
28757
 Library("rtc_media_base_gn")
28925
 Library("rtc_event_rtp_rtcp_gn")
28758
diff --git third_party/libwebrtc/media/rtc_media_config_gn/moz.build third_party/libwebrtc/media/rtc_media_config_gn/moz.build
28926
diff --git third_party/libwebrtc/logging/rtc_event_video_gn/moz.build third_party/libwebrtc/logging/rtc_event_video_gn/moz.build
28759
index b3e48563c04d..85b15dbdb123 100644
28927
index b1758b72bf25..b65614c9846d 100644
28760
--- third_party/libwebrtc/media/rtc_media_config_gn/moz.build
28928
--- third_party/libwebrtc/logging/rtc_event_video_gn/moz.build
28761
+++ third_party/libwebrtc/media/rtc_media_config_gn/moz.build
28929
+++ third_party/libwebrtc/logging/rtc_event_video_gn/moz.build
28762
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28930
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28763
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28931
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28764
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
28932
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 28780-28786 index b3e48563c04d..85b15dbdb123 100644 Link Here
28780
 
28948
 
28781
 FINAL_LIBRARY = "webrtc"
28949
 FINAL_LIBRARY = "webrtc"
28782
 
28950
 
28783
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
28951
@@ -42,165 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
28784
 if CONFIG["MOZ_DEBUG"] == "1":
28952
 if CONFIG["MOZ_DEBUG"] == "1":
28785
 
28953
 
28786
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
28954
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 28799-28804 index b3e48563c04d..85b15dbdb123 100644 Link Here
28799
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
28967
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
28800
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28968
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28801
-
28969
-
28970
-    OS_LIBS += [
28971
-        "log"
28972
-    ]
28973
-
28802
-if CONFIG["OS_TARGET"] == "Darwin":
28974
-if CONFIG["OS_TARGET"] == "Darwin":
28803
-
28975
-
28804
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28976
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 28864-28869 index b3e48563c04d..85b15dbdb123 100644 Link Here
28864
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
29036
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
28865
-    DEFINES["_WINDOWS"] = True
29037
-    DEFINES["_WINDOWS"] = True
28866
-    DEFINES["__STD_C"] = True
29038
-    DEFINES["__STD_C"] = True
29039
-
29040
-    OS_LIBS += [
29041
-        "winmm"
29042
-    ]
28867
+    DEFINES["_DEBUG"] = True
29043
+    DEFINES["_DEBUG"] = True
28868
 
29044
 
28869
 if CONFIG["CPU_ARCH"] == "aarch64":
29045
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 28873-28878 index b3e48563c04d..85b15dbdb123 100644 Link Here
28873
 
29049
 
28874
-if CONFIG["CPU_ARCH"] == "arm":
29050
-if CONFIG["CPU_ARCH"] == "arm":
28875
-
29051
-
29052
-    CXXFLAGS += [
29053
-        "-mfpu=neon"
29054
-    ]
29055
-
28876
-    DEFINES["WEBRTC_ARCH_ARM"] = True
29056
-    DEFINES["WEBRTC_ARCH_ARM"] = True
28877
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
29057
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
28878
-    DEFINES["WEBRTC_HAS_NEON"] = True
29058
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 28935-28945 index b3e48563c04d..85b15dbdb123 100644 Link Here
28935
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29115
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
28936
-    DEFINES["_GNU_SOURCE"] = True
29116
-    DEFINES["_GNU_SOURCE"] = True
28937
-
29117
-
28938
 Library("rtc_media_config_gn")
29118
 Library("rtc_event_video_gn")
28939
diff --git third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build
29119
diff --git third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build
28940
index 1bc62c2080fa..f3ccbadd37d0 100644
29120
index 0273e154491a..7d67e8476b53 100644
28941
--- third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build
29121
--- third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build
28942
+++ third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build
29122
+++ third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build
28943
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29123
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
28944
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29124
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
28945
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
29125
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 28961-28967 index 1bc62c2080fa..f3ccbadd37d0 100644 Link Here
28961
 
29141
 
28962
 FINAL_LIBRARY = "webrtc"
29142
 FINAL_LIBRARY = "webrtc"
28963
 
29143
 
28964
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
29144
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
28965
 if CONFIG["MOZ_DEBUG"] == "1":
29145
 if CONFIG["MOZ_DEBUG"] == "1":
28966
 
29146
 
28967
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
29147
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 28981-28987 index 1bc62c2080fa..f3ccbadd37d0 100644 Link Here
28981
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29161
-    DEFINES["__STDC_FORMAT_MACROS"] = True
28982
-
29162
-
28983
-    OS_LIBS += [
29163
-    OS_LIBS += [
28984
-        "GLESv2",
28985
-        "log"
29164
-        "log"
28986
-    ]
29165
-    ]
28987
-
29166
-
Lines 29010-29020 index 1bc62c2080fa..f3ccbadd37d0 100644 Link Here
29010
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29189
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29011
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29190
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29012
-
29191
-
29013
-    OS_LIBS += [
29014
-        "dl",
29015
-        "rt"
29016
-    ]
29017
-
29018
-if CONFIG["OS_TARGET"] == "OpenBSD":
29192
-if CONFIG["OS_TARGET"] == "OpenBSD":
29019
-
29193
-
29020
-    DEFINES["USE_GLIB"] = "1"
29194
-    DEFINES["USE_GLIB"] = "1"
Lines 29057-29065 index 1bc62c2080fa..f3ccbadd37d0 100644 Link Here
29057
-    DEFINES["__STD_C"] = True
29231
-    DEFINES["__STD_C"] = True
29058
-
29232
-
29059
-    OS_LIBS += [
29233
-    OS_LIBS += [
29060
-        "crypt32",
29061
-        "iphlpapi",
29062
-        "secur32",
29063
-        "winmm"
29234
-        "winmm"
29064
-    ]
29235
-    ]
29065
+    DEFINES["_DEBUG"] = True
29236
+    DEFINES["_DEBUG"] = True
Lines 29137-29147 index 1bc62c2080fa..f3ccbadd37d0 100644 Link Here
29137
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29308
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29138
-    DEFINES["_GNU_SOURCE"] = True
29309
-    DEFINES["_GNU_SOURCE"] = True
29139
-
29310
-
29140
 Library("rtc_simulcast_encoder_adapter_gn")
29311
 Library("rtc_stream_config_gn")
29141
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
29312
diff --git third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build
29142
index 24f8656db097..b5761737772d 100644
29313
index 9fd4c74381a6..4d2e584f2b12 100644
29143
--- third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build
29314
--- third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build
29144
+++ third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build
29315
+++ third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build
29145
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29316
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29146
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29317
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29147
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
29318
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 29163-29169 index 24f8656db097..b5761737772d 100644 Link Here
29163
 
29334
 
29164
 FINAL_LIBRARY = "webrtc"
29335
 FINAL_LIBRARY = "webrtc"
29165
 
29336
 
29166
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
29337
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
29167
 if CONFIG["MOZ_DEBUG"] == "1":
29338
 if CONFIG["MOZ_DEBUG"] == "1":
29168
 
29339
 
29169
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
29340
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 29183-29188 index 24f8656db097..b5761737772d 100644 Link Here
29183
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29354
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29184
-
29355
-
29185
-    OS_LIBS += [
29356
-    OS_LIBS += [
29357
-        "GLESv2",
29186
-        "log"
29358
-        "log"
29187
-    ]
29359
-    ]
29188
-
29360
-
Lines 29211-29216 index 24f8656db097..b5761737772d 100644 Link Here
29211
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29383
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29212
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29384
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29213
-
29385
-
29386
-    OS_LIBS += [
29387
-        "dl",
29388
-        "rt"
29389
-    ]
29390
-
29214
-if CONFIG["OS_TARGET"] == "OpenBSD":
29391
-if CONFIG["OS_TARGET"] == "OpenBSD":
29215
-
29392
-
29216
-    DEFINES["USE_GLIB"] = "1"
29393
-    DEFINES["USE_GLIB"] = "1"
Lines 29253-29258 index 24f8656db097..b5761737772d 100644 Link Here
29253
-    DEFINES["__STD_C"] = True
29430
-    DEFINES["__STD_C"] = True
29254
-
29431
-
29255
-    OS_LIBS += [
29432
-    OS_LIBS += [
29433
-        "crypt32",
29434
-        "iphlpapi",
29435
-        "secur32",
29256
-        "winmm"
29436
-        "winmm"
29257
-    ]
29437
-    ]
29258
+    DEFINES["_DEBUG"] = True
29438
+    DEFINES["_DEBUG"] = True
Lines 29330-29340 index 24f8656db097..b5761737772d 100644 Link Here
29330
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29510
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29331
-    DEFINES["_GNU_SOURCE"] = True
29511
-    DEFINES["_GNU_SOURCE"] = True
29332
-
29512
-
29333
 Library("async_audio_processing_gn")
29513
 Library("rtc_encoder_simulcast_proxy_gn")
29334
diff --git third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build
29514
diff --git third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build
29335
index 3d193a4a3437..2c9f1c45b3ec 100644
29515
index 09893f4183f6..c32a7bbe84b4 100644
29336
--- third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build
29516
--- third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build
29337
+++ third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build
29517
+++ third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build
29338
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29518
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29339
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29519
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29340
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
29520
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 29356-29362 index 3d193a4a3437..2c9f1c45b3ec 100644 Link Here
29356
 
29536
 
29357
 FINAL_LIBRARY = "webrtc"
29537
 FINAL_LIBRARY = "webrtc"
29358
 
29538
 
29359
@@ -45,172 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
29539
@@ -43,174 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
29360
 if CONFIG["MOZ_DEBUG"] == "1":
29540
 if CONFIG["MOZ_DEBUG"] == "1":
29361
 
29541
 
29362
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
29542
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 29376-29381 index 3d193a4a3437..2c9f1c45b3ec 100644 Link Here
29376
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29556
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29377
-
29557
-
29378
-    OS_LIBS += [
29558
-    OS_LIBS += [
29559
-        "GLESv2",
29379
-        "log"
29560
-        "log"
29380
-    ]
29561
-    ]
29381
-
29562
-
Lines 29405-29410 index 3d193a4a3437..2c9f1c45b3ec 100644 Link Here
29405
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29586
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29406
-
29587
-
29407
-    OS_LIBS += [
29588
-    OS_LIBS += [
29589
-        "dl",
29408
-        "rt"
29590
-        "rt"
29409
-    ]
29591
-    ]
29410
-
29592
-
Lines 29530-29540 index 3d193a4a3437..2c9f1c45b3ec 100644 Link Here
29530
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29712
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29531
-    DEFINES["_GNU_SOURCE"] = True
29713
-    DEFINES["_GNU_SOURCE"] = True
29532
-
29714
-
29533
 Library("audio_coding_gn")
29715
 Library("rtc_internal_video_codecs_gn")
29534
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
29716
diff --git third_party/libwebrtc/media/rtc_media_base_gn/moz.build third_party/libwebrtc/media/rtc_media_base_gn/moz.build
29535
index 9f3c0d8abda1..846f9f907e72 100644
29717
index b9b963ad03b1..63d1adfc9f3f 100644
29536
--- third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build
29718
--- third_party/libwebrtc/media/rtc_media_base_gn/moz.build
29537
+++ third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build
29719
+++ third_party/libwebrtc/media/rtc_media_base_gn/moz.build
29538
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29720
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29539
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29721
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29540
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
29722
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 29556-29562 index 9f3c0d8abda1..846f9f907e72 100644 Link Here
29556
 
29738
 
29557
 FINAL_LIBRARY = "webrtc"
29739
 FINAL_LIBRARY = "webrtc"
29558
 
29740
 
29559
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
29741
@@ -46,174 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
29560
 if CONFIG["MOZ_DEBUG"] == "1":
29742
 if CONFIG["MOZ_DEBUG"] == "1":
29561
 
29743
 
29562
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
29744
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 29575-29580 index 9f3c0d8abda1..846f9f907e72 100644 Link Here
29575
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29757
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29576
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29758
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29577
-
29759
-
29760
-    OS_LIBS += [
29761
-        "GLESv2",
29762
-        "log"
29763
-    ]
29764
-
29578
-if CONFIG["OS_TARGET"] == "Darwin":
29765
-if CONFIG["OS_TARGET"] == "Darwin":
29579
-
29766
-
29580
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29767
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 29600-29605 index 9f3c0d8abda1..846f9f907e72 100644 Link Here
29600
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29787
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29601
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29788
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29602
-
29789
-
29790
-    OS_LIBS += [
29791
-        "dl",
29792
-        "rt"
29793
-    ]
29794
-
29603
-if CONFIG["OS_TARGET"] == "OpenBSD":
29795
-if CONFIG["OS_TARGET"] == "OpenBSD":
29604
-
29796
-
29605
-    DEFINES["USE_GLIB"] = "1"
29797
-    DEFINES["USE_GLIB"] = "1"
Lines 29640-29645 index 9f3c0d8abda1..846f9f907e72 100644 Link Here
29640
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
29832
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
29641
-    DEFINES["_WINDOWS"] = True
29833
-    DEFINES["_WINDOWS"] = True
29642
-    DEFINES["__STD_C"] = True
29834
-    DEFINES["__STD_C"] = True
29835
-
29836
-    OS_LIBS += [
29837
-        "crypt32",
29838
-        "iphlpapi",
29839
-        "secur32",
29840
-        "winmm"
29841
-    ]
29643
+    DEFINES["_DEBUG"] = True
29842
+    DEFINES["_DEBUG"] = True
29644
 
29843
 
29645
 if CONFIG["CPU_ARCH"] == "aarch64":
29844
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 29649-29654 index 9f3c0d8abda1..846f9f907e72 100644 Link Here
29649
 
29848
 
29650
-if CONFIG["CPU_ARCH"] == "arm":
29849
-if CONFIG["CPU_ARCH"] == "arm":
29651
-
29850
-
29851
-    CXXFLAGS += [
29852
-        "-mfpu=neon"
29853
-    ]
29854
-
29652
-    DEFINES["WEBRTC_ARCH_ARM"] = True
29855
-    DEFINES["WEBRTC_ARCH_ARM"] = True
29653
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
29856
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
29654
-    DEFINES["WEBRTC_HAS_NEON"] = True
29857
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 29711-29721 index 9f3c0d8abda1..846f9f907e72 100644 Link Here
29711
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29914
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29712
-    DEFINES["_GNU_SOURCE"] = True
29915
-    DEFINES["_GNU_SOURCE"] = True
29713
-
29916
-
29714
 Library("audio_coding_module_typedefs_gn")
29917
 Library("rtc_media_base_gn")
29715
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
29918
diff --git third_party/libwebrtc/media/rtc_media_config_gn/moz.build third_party/libwebrtc/media/rtc_media_config_gn/moz.build
29716
index 132dbaad9bef..c1648ebdc6da 100644
29919
index b3e48563c04d..85b15dbdb123 100644
29717
--- third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build
29920
--- third_party/libwebrtc/media/rtc_media_config_gn/moz.build
29718
+++ third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build
29921
+++ third_party/libwebrtc/media/rtc_media_config_gn/moz.build
29719
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29922
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29720
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29923
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29721
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
29924
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 29737-29743 index 132dbaad9bef..c1648ebdc6da 100644 Link Here
29737
 
29940
 
29738
 FINAL_LIBRARY = "webrtc"
29941
 FINAL_LIBRARY = "webrtc"
29739
 
29942
 
29740
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
29943
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
29741
 if CONFIG["MOZ_DEBUG"] == "1":
29944
 if CONFIG["MOZ_DEBUG"] == "1":
29742
 
29945
 
29743
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
29946
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 29756-29765 index 132dbaad9bef..c1648ebdc6da 100644 Link Here
29756
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29959
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
29757
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29960
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29758
-
29961
-
29759
-    OS_LIBS += [
29760
-        "log"
29761
-    ]
29762
-
29763
-if CONFIG["OS_TARGET"] == "Darwin":
29962
-if CONFIG["OS_TARGET"] == "Darwin":
29764
-
29963
-
29765
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29964
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 29825-29834 index 132dbaad9bef..c1648ebdc6da 100644 Link Here
29825
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
30024
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
29826
-    DEFINES["_WINDOWS"] = True
30025
-    DEFINES["_WINDOWS"] = True
29827
-    DEFINES["__STD_C"] = True
30026
-    DEFINES["__STD_C"] = True
29828
-
29829
-    OS_LIBS += [
29830
-        "winmm"
29831
-    ]
29832
+    DEFINES["_DEBUG"] = True
30027
+    DEFINES["_DEBUG"] = True
29833
 
30028
 
29834
 if CONFIG["CPU_ARCH"] == "aarch64":
30029
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 29838-29847 index 132dbaad9bef..c1648ebdc6da 100644 Link Here
29838
 
30033
 
29839
-if CONFIG["CPU_ARCH"] == "arm":
30034
-if CONFIG["CPU_ARCH"] == "arm":
29840
-
30035
-
29841
-    CXXFLAGS += [
29842
-        "-mfpu=neon"
29843
-    ]
29844
-
29845
-    DEFINES["WEBRTC_ARCH_ARM"] = True
30036
-    DEFINES["WEBRTC_ARCH_ARM"] = True
29846
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
30037
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
29847
-    DEFINES["WEBRTC_HAS_NEON"] = True
30038
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 29904-29914 index 132dbaad9bef..c1648ebdc6da 100644 Link Here
29904
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30095
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
29905
-    DEFINES["_GNU_SOURCE"] = True
30096
-    DEFINES["_GNU_SOURCE"] = True
29906
-
30097
-
29907
 Library("audio_coding_opus_common_gn")
30098
 Library("rtc_media_config_gn")
29908
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
30099
diff --git third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build
29909
index 725d37c02703..f3ae48b25ffb 100644
30100
index 1bc62c2080fa..f3ccbadd37d0 100644
29910
--- third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build
30101
--- third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build
29911
+++ third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build
30102
+++ third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build
29912
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30103
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
29913
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30104
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
29914
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
30105
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 29930-29936 index 725d37c02703..f3ae48b25ffb 100644 Link Here
29930
 
30121
 
29931
 FINAL_LIBRARY = "webrtc"
30122
 FINAL_LIBRARY = "webrtc"
29932
 
30123
 
29933
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
30124
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
29934
 if CONFIG["MOZ_DEBUG"] == "1":
30125
 if CONFIG["MOZ_DEBUG"] == "1":
29935
 
30126
 
29936
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
30127
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 29950-29955 index 725d37c02703..f3ae48b25ffb 100644 Link Here
29950
-    DEFINES["__STDC_FORMAT_MACROS"] = True
30141
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29951
-
30142
-
29952
-    OS_LIBS += [
30143
-    OS_LIBS += [
30144
-        "GLESv2",
29953
-        "log"
30145
-        "log"
29954
-    ]
30146
-    ]
29955
-
30147
-
Lines 29979-29984 index 725d37c02703..f3ae48b25ffb 100644 Link Here
29979
-    DEFINES["__STDC_FORMAT_MACROS"] = True
30171
-    DEFINES["__STDC_FORMAT_MACROS"] = True
29980
-
30172
-
29981
-    OS_LIBS += [
30173
-    OS_LIBS += [
30174
-        "dl",
29982
-        "rt"
30175
-        "rt"
29983
-    ]
30176
-    ]
29984
-
30177
-
Lines 30104-30299 index 725d37c02703..f3ae48b25ffb 100644 Link Here
30104
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30297
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30105
-    DEFINES["_GNU_SOURCE"] = True
30298
-    DEFINES["_GNU_SOURCE"] = True
30106
-
30299
-
30107
 Library("audio_encoder_cng_gn")
30300
 Library("rtc_simulcast_encoder_adapter_gn")
30108
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
30301
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
30109
index 7ef11d489203..cf3f1f338ba0 100644
30302
index 24f8656db097..b5761737772d 100644
30110
--- third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build
30303
--- third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build
30111
+++ third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build
30304
+++ third_party/libwebrtc/modules/async_audio_processing/async_audio_processing_gn/moz.build
30112
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30113
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30114
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
30115
 DEFINES["RTC_ENABLE_VP9"] = True
30116
+DEFINES["USE_GLIB"] = "1"
30117
+DEFINES["USE_OZONE"] = "1"
30118
+DEFINES["WEBRTC_BSD"] = True
30119
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
30120
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
30121
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
30122
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
30123
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
30124
+DEFINES["WEBRTC_POSIX"] = True
30125
+DEFINES["_FILE_OFFSET_BITS"] = "64"
30126
+DEFINES["_LARGEFILE64_SOURCE"] = True
30127
+DEFINES["_LARGEFILE_SOURCE"] = True
30128
+DEFINES["__STDC_CONSTANT_MACROS"] = True
30129
+DEFINES["__STDC_FORMAT_MACROS"] = True
30130
 
30131
 FINAL_LIBRARY = "webrtc"
30132
 
30133
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
30134
 if CONFIG["MOZ_DEBUG"] == "1":
30135
 
30136
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
30137
-
30138
-if CONFIG["OS_TARGET"] == "Android":
30139
-
30140
-    DEFINES["ANDROID"] = True
30141
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
30142
-    DEFINES["HAVE_SYS_UIO_H"] = True
30143
-    DEFINES["WEBRTC_ANDROID"] = True
30144
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
30145
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30146
-    DEFINES["WEBRTC_LINUX"] = True
30147
-    DEFINES["WEBRTC_POSIX"] = True
30148
-    DEFINES["_GNU_SOURCE"] = True
30149
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
30150
-    DEFINES["__STDC_FORMAT_MACROS"] = True
30151
-
30152
-if CONFIG["OS_TARGET"] == "Darwin":
30153
-
30154
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30155
-    DEFINES["WEBRTC_MAC"] = True
30156
-    DEFINES["WEBRTC_POSIX"] = True
30157
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
30158
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
30159
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
30160
-    DEFINES["__STDC_FORMAT_MACROS"] = True
30161
-
30162
-if CONFIG["OS_TARGET"] == "Linux":
30163
-
30164
-    DEFINES["USE_AURA"] = "1"
30165
-    DEFINES["USE_GLIB"] = "1"
30166
-    DEFINES["USE_NSS_CERTS"] = "1"
30167
-    DEFINES["USE_OZONE"] = "1"
30168
-    DEFINES["USE_UDEV"] = True
30169
-    DEFINES["WEBRTC_LINUX"] = True
30170
-    DEFINES["WEBRTC_POSIX"] = True
30171
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
30172
-    DEFINES["_LARGEFILE64_SOURCE"] = True
30173
-    DEFINES["_LARGEFILE_SOURCE"] = True
30174
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
30175
-    DEFINES["__STDC_FORMAT_MACROS"] = True
30176
-
30177
-if CONFIG["OS_TARGET"] == "OpenBSD":
30178
-
30179
-    DEFINES["USE_GLIB"] = "1"
30180
-    DEFINES["USE_OZONE"] = "1"
30181
-    DEFINES["USE_X11"] = "1"
30182
-    DEFINES["WEBRTC_BSD"] = True
30183
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30184
-    DEFINES["WEBRTC_POSIX"] = True
30185
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
30186
-    DEFINES["_LARGEFILE64_SOURCE"] = True
30187
-    DEFINES["_LARGEFILE_SOURCE"] = True
30188
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
30189
-    DEFINES["__STDC_FORMAT_MACROS"] = True
30190
-
30191
-if CONFIG["OS_TARGET"] == "WINNT":
30192
-
30193
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
30194
-    DEFINES["NOMINMAX"] = True
30195
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
30196
-    DEFINES["PSAPI_VERSION"] = "2"
30197
-    DEFINES["UNICODE"] = True
30198
-    DEFINES["USE_AURA"] = "1"
30199
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30200
-    DEFINES["WEBRTC_WIN"] = True
30201
-    DEFINES["WIN32"] = True
30202
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
30203
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
30204
-    DEFINES["WINVER"] = "0x0A00"
30205
-    DEFINES["_ATL_NO_OPENGL"] = True
30206
-    DEFINES["_CRT_RAND_S"] = True
30207
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
30208
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
30209
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
30210
-    DEFINES["_HAS_NODISCARD"] = True
30211
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
30212
-    DEFINES["_SECURE_ATL"] = True
30213
-    DEFINES["_UNICODE"] = True
30214
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
30215
-    DEFINES["_WINDOWS"] = True
30216
-    DEFINES["__STD_C"] = True
30217
+    DEFINES["_DEBUG"] = True
30218
 
30219
 if CONFIG["CPU_ARCH"] == "aarch64":
30220
 
30221
     DEFINES["WEBRTC_ARCH_ARM64"] = True
30222
     DEFINES["WEBRTC_HAS_NEON"] = True
30223
 
30224
-if CONFIG["CPU_ARCH"] == "arm":
30225
-
30226
-    CXXFLAGS += [
30227
-        "-mfpu=neon"
30228
-    ]
30229
-
30230
-    DEFINES["WEBRTC_ARCH_ARM"] = True
30231
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
30232
-    DEFINES["WEBRTC_HAS_NEON"] = True
30233
-
30234
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
30235
-
30236
-    DEFINES["_DEBUG"] = True
30237
-
30238
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
30239
-
30240
-    DEFINES["_DEBUG"] = True
30241
-
30242
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
30243
-
30244
-    DEFINES["_DEBUG"] = True
30245
-
30246
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
30247
-
30248
-    DEFINES["_DEBUG"] = True
30249
-
30250
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
30251
-
30252
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
30253
-
30254
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
30255
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
30256
 
30257
     DEFINES["USE_X11"] = "1"
30258
 
30259
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
30260
-
30261
-    OS_LIBS += [
30262
-        "android_support",
30263
-        "unwind"
30264
-    ]
30265
-
30266
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
30267
-
30268
-    OS_LIBS += [
30269
-        "android_support"
30270
-    ]
30271
-
30272
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
30273
-
30274
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30275
-    DEFINES["_GNU_SOURCE"] = True
30276
-
30277
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
30278
-
30279
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30280
-    DEFINES["_GNU_SOURCE"] = True
30281
-
30282
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
30283
-
30284
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30285
-    DEFINES["_GNU_SOURCE"] = True
30286
-
30287
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
30288
-
30289
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30290
-    DEFINES["_GNU_SOURCE"] = True
30291
-
30292
 Library("audio_network_adaptor_config_gn")
30293
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
30294
index b65fc49e5237..1a504c38fce1 100644
30295
--- third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build
30296
+++ third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build
30297
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30305
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30298
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30306
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30299
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
30307
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 30315-30321 index b65fc49e5237..1a504c38fce1 100644 Link Here
30315
 
30323
 
30316
 FINAL_LIBRARY = "webrtc"
30324
 FINAL_LIBRARY = "webrtc"
30317
 
30325
 
30318
@@ -51,172 +61,15 @@ if not CONFIG["MOZ_DEBUG"]:
30326
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
30319
 if CONFIG["MOZ_DEBUG"] == "1":
30327
 if CONFIG["MOZ_DEBUG"] == "1":
30320
 
30328
 
30321
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
30329
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 30363-30372 index b65fc49e5237..1a504c38fce1 100644 Link Here
30363
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
30371
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
30364
-    DEFINES["__STDC_FORMAT_MACROS"] = True
30372
-    DEFINES["__STDC_FORMAT_MACROS"] = True
30365
-
30373
-
30366
-    OS_LIBS += [
30367
-        "rt"
30368
-    ]
30369
-
30370
-if CONFIG["OS_TARGET"] == "OpenBSD":
30374
-if CONFIG["OS_TARGET"] == "OpenBSD":
30371
-
30375
-
30372
-    DEFINES["USE_GLIB"] = "1"
30376
-    DEFINES["USE_GLIB"] = "1"
Lines 30409-30417 index b65fc49e5237..1a504c38fce1 100644 Link Here
30409
-    DEFINES["__STD_C"] = True
30413
-    DEFINES["__STD_C"] = True
30410
-
30414
-
30411
-    OS_LIBS += [
30415
-    OS_LIBS += [
30412
-        "crypt32",
30413
-        "iphlpapi",
30414
-        "secur32",
30415
-        "winmm"
30416
-        "winmm"
30416
-    ]
30417
-    ]
30417
+    DEFINES["_DEBUG"] = True
30418
+    DEFINES["_DEBUG"] = True
Lines 30489-30499 index b65fc49e5237..1a504c38fce1 100644 Link Here
30489
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30490
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30490
-    DEFINES["_GNU_SOURCE"] = True
30491
-    DEFINES["_GNU_SOURCE"] = True
30491
-
30492
-
30492
 Library("audio_network_adaptor_gn")
30493
 Library("async_audio_processing_gn")
30493
diff --git third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build
30494
diff --git third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build
30494
index 15764353c966..e9ed99aad0a1 100644
30495
index 3d193a4a3437..2c9f1c45b3ec 100644
30495
--- third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build
30496
--- third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build
30496
+++ third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build
30497
+++ third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build
30497
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30498
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30498
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30499
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30499
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
30500
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 30515-30521 index 15764353c966..e9ed99aad0a1 100644 Link Here
30515
 
30516
 
30516
 FINAL_LIBRARY = "webrtc"
30517
 FINAL_LIBRARY = "webrtc"
30517
 
30518
 
30518
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
30519
@@ -45,172 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
30519
 if CONFIG["MOZ_DEBUG"] == "1":
30520
 if CONFIG["MOZ_DEBUG"] == "1":
30520
 
30521
 
30521
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
30522
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 30689-30699 index 15764353c966..e9ed99aad0a1 100644 Link Here
30689
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30690
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30690
-    DEFINES["_GNU_SOURCE"] = True
30691
-    DEFINES["_GNU_SOURCE"] = True
30691
-
30692
-
30692
 Library("default_neteq_factory_gn")
30693
 Library("audio_coding_gn")
30693
diff --git third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build
30694
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
30694
index ea97f94f457d..3feac0906041 100644
30695
index 9f3c0d8abda1..846f9f907e72 100644
30695
--- third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build
30696
--- third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build
30696
+++ third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build
30697
+++ third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build
30697
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30698
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30698
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30699
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30699
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
30700
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 30715-30721 index ea97f94f457d..3feac0906041 100644 Link Here
30715
 
30716
 
30716
 FINAL_LIBRARY = "webrtc"
30717
 FINAL_LIBRARY = "webrtc"
30717
 
30718
 
30718
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
30719
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
30719
 if CONFIG["MOZ_DEBUG"] == "1":
30720
 if CONFIG["MOZ_DEBUG"] == "1":
30720
 
30721
 
30721
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
30722
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 30808-30817 index ea97f94f457d..3feac0906041 100644 Link Here
30808
 
30809
 
30809
-if CONFIG["CPU_ARCH"] == "arm":
30810
-if CONFIG["CPU_ARCH"] == "arm":
30810
-
30811
-
30811
-    CFLAGS += [
30812
-        "-mfpu=neon"
30813
-    ]
30814
-
30815
-    DEFINES["WEBRTC_ARCH_ARM"] = True
30812
-    DEFINES["WEBRTC_ARCH_ARM"] = True
30816
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
30813
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
30817
-    DEFINES["WEBRTC_HAS_NEON"] = True
30814
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 30874-30884 index ea97f94f457d..3feac0906041 100644 Link Here
30874
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30871
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
30875
-    DEFINES["_GNU_SOURCE"] = True
30872
-    DEFINES["_GNU_SOURCE"] = True
30876
-
30873
-
30877
 Library("g711_c_gn")
30874
 Library("audio_coding_module_typedefs_gn")
30878
diff --git third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build
30875
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
30879
index 80fb9807c16f..88b940e9c6c3 100644
30876
index 132dbaad9bef..c1648ebdc6da 100644
30880
--- third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build
30877
--- third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build
30881
+++ third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build
30878
+++ third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build
30882
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30879
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
30883
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30880
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
30884
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
30881
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 30900-30906 index 80fb9807c16f..88b940e9c6c3 100644 Link Here
30900
 
30897
 
30901
 FINAL_LIBRARY = "webrtc"
30898
 FINAL_LIBRARY = "webrtc"
30902
 
30899
 
30903
@@ -42,165 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
30900
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
30904
 if CONFIG["MOZ_DEBUG"] == "1":
30901
 if CONFIG["MOZ_DEBUG"] == "1":
30905
 
30902
 
30906
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
30903
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 31067-31077 index 80fb9807c16f..88b940e9c6c3 100644 Link Here
31067
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31064
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31068
-    DEFINES["_GNU_SOURCE"] = True
31065
-    DEFINES["_GNU_SOURCE"] = True
31069
-
31066
-
31070
 Library("g711_gn")
31067
 Library("audio_coding_opus_common_gn")
31071
diff --git third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build
31068
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
31072
index 87571de3048e..6af30071257f 100644
31069
index 725d37c02703..f3ae48b25ffb 100644
31073
--- third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build
31070
--- third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build
31074
+++ third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build
31071
+++ third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build
31075
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31072
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31076
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31073
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31077
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
31074
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 31093-31099 index 87571de3048e..6af30071257f 100644 Link Here
31093
 
31090
 
31094
 FINAL_LIBRARY = "webrtc"
31091
 FINAL_LIBRARY = "webrtc"
31095
 
31092
 
31096
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
31093
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
31097
 if CONFIG["MOZ_DEBUG"] == "1":
31094
 if CONFIG["MOZ_DEBUG"] == "1":
31098
 
31095
 
31099
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
31096
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 31112-31117 index 87571de3048e..6af30071257f 100644 Link Here
31112
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
31109
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
31113
-    DEFINES["__STDC_FORMAT_MACROS"] = True
31110
-    DEFINES["__STDC_FORMAT_MACROS"] = True
31114
-
31111
-
31112
-    OS_LIBS += [
31113
-        "log"
31114
-    ]
31115
-
31115
-if CONFIG["OS_TARGET"] == "Darwin":
31116
-if CONFIG["OS_TARGET"] == "Darwin":
31116
-
31117
-
31117
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31118
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 31137-31142 index 87571de3048e..6af30071257f 100644 Link Here
31137
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
31138
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
31138
-    DEFINES["__STDC_FORMAT_MACROS"] = True
31139
-    DEFINES["__STDC_FORMAT_MACROS"] = True
31139
-
31140
-
31141
-    OS_LIBS += [
31142
-        "rt"
31143
-    ]
31144
-
31140
-if CONFIG["OS_TARGET"] == "OpenBSD":
31145
-if CONFIG["OS_TARGET"] == "OpenBSD":
31141
-
31146
-
31142
-    DEFINES["USE_GLIB"] = "1"
31147
-    DEFINES["USE_GLIB"] = "1"
Lines 31177-31182 index 87571de3048e..6af30071257f 100644 Link Here
31177
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
31182
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
31178
-    DEFINES["_WINDOWS"] = True
31183
-    DEFINES["_WINDOWS"] = True
31179
-    DEFINES["__STD_C"] = True
31184
-    DEFINES["__STD_C"] = True
31185
-
31186
-    OS_LIBS += [
31187
-        "crypt32",
31188
-        "iphlpapi",
31189
-        "secur32",
31190
-        "winmm"
31191
-    ]
31180
+    DEFINES["_DEBUG"] = True
31192
+    DEFINES["_DEBUG"] = True
31181
 
31193
 
31182
 if CONFIG["CPU_ARCH"] == "aarch64":
31194
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 31186-31192 index 87571de3048e..6af30071257f 100644 Link Here
31186
 
31198
 
31187
-if CONFIG["CPU_ARCH"] == "arm":
31199
-if CONFIG["CPU_ARCH"] == "arm":
31188
-
31200
-
31189
-    CFLAGS += [
31201
-    CXXFLAGS += [
31190
-        "-mfpu=neon"
31202
-        "-mfpu=neon"
31191
-    ]
31203
-    ]
31192
-
31204
-
Lines 31252-31262 index 87571de3048e..6af30071257f 100644 Link Here
31252
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31264
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31253
-    DEFINES["_GNU_SOURCE"] = True
31265
-    DEFINES["_GNU_SOURCE"] = True
31254
-
31266
-
31255
 Library("g722_c_gn")
31267
 Library("audio_encoder_cng_gn")
31256
diff --git third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build
31268
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
31257
index be80bff2213e..8d9f37d48283 100644
31269
index 7ef11d489203..cf3f1f338ba0 100644
31258
--- third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build
31270
--- third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build
31259
+++ third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build
31271
+++ third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build
31260
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31272
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31261
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31273
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31262
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
31274
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 31278-31284 index be80bff2213e..8d9f37d48283 100644 Link Here
31278
 
31290
 
31279
 FINAL_LIBRARY = "webrtc"
31291
 FINAL_LIBRARY = "webrtc"
31280
 
31292
 
31281
@@ -42,165 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
31293
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
31282
 if CONFIG["MOZ_DEBUG"] == "1":
31294
 if CONFIG["MOZ_DEBUG"] == "1":
31283
 
31295
 
31284
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
31296
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 31297-31306 index be80bff2213e..8d9f37d48283 100644 Link Here
31297
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
31309
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
31298
-    DEFINES["__STDC_FORMAT_MACROS"] = True
31310
-    DEFINES["__STDC_FORMAT_MACROS"] = True
31299
-
31311
-
31300
-    OS_LIBS += [
31301
-        "log"
31302
-    ]
31303
-
31304
-if CONFIG["OS_TARGET"] == "Darwin":
31312
-if CONFIG["OS_TARGET"] == "Darwin":
31305
-
31313
-
31306
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31314
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 31366-31375 index be80bff2213e..8d9f37d48283 100644 Link Here
31366
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
31374
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
31367
-    DEFINES["_WINDOWS"] = True
31375
-    DEFINES["_WINDOWS"] = True
31368
-    DEFINES["__STD_C"] = True
31376
-    DEFINES["__STD_C"] = True
31369
-
31370
-    OS_LIBS += [
31371
-        "winmm"
31372
-    ]
31373
+    DEFINES["_DEBUG"] = True
31377
+    DEFINES["_DEBUG"] = True
31374
 
31378
 
31375
 if CONFIG["CPU_ARCH"] == "aarch64":
31379
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 31445-31455 index be80bff2213e..8d9f37d48283 100644 Link Here
31445
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31449
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31446
-    DEFINES["_GNU_SOURCE"] = True
31450
-    DEFINES["_GNU_SOURCE"] = True
31447
-
31451
-
31448
 Library("g722_gn")
31452
 Library("audio_network_adaptor_config_gn")
31449
diff --git third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build
31453
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
31450
index 771a415b58fe..64ca7ca1f4fc 100644
31454
index b65fc49e5237..1a504c38fce1 100644
31451
--- third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build
31455
--- third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build
31452
+++ third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build
31456
+++ third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build
31453
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31457
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31454
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31458
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31455
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
31459
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 31471-31477 index 771a415b58fe..64ca7ca1f4fc 100644 Link Here
31471
 
31475
 
31472
 FINAL_LIBRARY = "webrtc"
31476
 FINAL_LIBRARY = "webrtc"
31473
 
31477
 
31474
@@ -109,172 +119,15 @@ if not CONFIG["MOZ_DEBUG"]:
31478
@@ -51,172 +61,15 @@ if not CONFIG["MOZ_DEBUG"]:
31475
 if CONFIG["MOZ_DEBUG"] == "1":
31479
 if CONFIG["MOZ_DEBUG"] == "1":
31476
 
31480
 
31477
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
31481
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 31579-31585 index 771a415b58fe..64ca7ca1f4fc 100644 Link Here
31579
 
31583
 
31580
-if CONFIG["CPU_ARCH"] == "arm":
31584
-if CONFIG["CPU_ARCH"] == "arm":
31581
-
31585
-
31582
-    CFLAGS += [
31586
-    CXXFLAGS += [
31583
-        "-mfpu=neon"
31587
-        "-mfpu=neon"
31584
-    ]
31588
-    ]
31585
-
31589
-
Lines 31645-31655 index 771a415b58fe..64ca7ca1f4fc 100644 Link Here
31645
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31649
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31646
-    DEFINES["_GNU_SOURCE"] = True
31650
-    DEFINES["_GNU_SOURCE"] = True
31647
-
31651
-
31648
 Library("ilbc_c_gn")
31652
 Library("audio_network_adaptor_gn")
31649
diff --git third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build
31653
diff --git third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build
31650
index a652760054da..4927afb7d7e6 100644
31654
index 15764353c966..e9ed99aad0a1 100644
31651
--- third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build
31655
--- third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build
31652
+++ third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build
31656
+++ third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build
31653
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31657
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31654
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31658
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31655
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
31659
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 31671-31677 index a652760054da..4927afb7d7e6 100644 Link Here
31671
 
31675
 
31672
 FINAL_LIBRARY = "webrtc"
31676
 FINAL_LIBRARY = "webrtc"
31673
 
31677
 
31674
@@ -42,172 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
31678
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
31675
 if CONFIG["MOZ_DEBUG"] == "1":
31679
 if CONFIG["MOZ_DEBUG"] == "1":
31676
 
31680
 
31677
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
31681
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 31845-31855 index a652760054da..4927afb7d7e6 100644 Link Here
31845
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31849
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
31846
-    DEFINES["_GNU_SOURCE"] = True
31850
-    DEFINES["_GNU_SOURCE"] = True
31847
-
31851
-
31848
 Library("ilbc_gn")
31852
 Library("default_neteq_factory_gn")
31849
diff --git third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build
31853
diff --git third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build
31850
index 1cf433ded05c..17649824103d 100644
31854
index ea97f94f457d..3feac0906041 100644
31851
--- third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build
31855
--- third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build
31852
+++ third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build
31856
+++ third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build
31853
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31857
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
31854
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31858
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
31855
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
31859
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 31871-31877 index 1cf433ded05c..17649824103d 100644 Link Here
31871
 
31875
 
31872
 FINAL_LIBRARY = "webrtc"
31876
 FINAL_LIBRARY = "webrtc"
31873
 
31877
 
31874
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
31878
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
31875
 if CONFIG["MOZ_DEBUG"] == "1":
31879
 if CONFIG["MOZ_DEBUG"] == "1":
31876
 
31880
 
31877
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
31881
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 31964-31969 index 1cf433ded05c..17649824103d 100644 Link Here
31964
 
31968
 
31965
-if CONFIG["CPU_ARCH"] == "arm":
31969
-if CONFIG["CPU_ARCH"] == "arm":
31966
-
31970
-
31971
-    CFLAGS += [
31972
-        "-mfpu=neon"
31973
-    ]
31974
-
31967
-    DEFINES["WEBRTC_ARCH_ARM"] = True
31975
-    DEFINES["WEBRTC_ARCH_ARM"] = True
31968
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
31976
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
31969
-    DEFINES["WEBRTC_HAS_NEON"] = True
31977
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 32026-32036 index 1cf433ded05c..17649824103d 100644 Link Here
32026
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32034
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32027
-    DEFINES["_GNU_SOURCE"] = True
32035
-    DEFINES["_GNU_SOURCE"] = True
32028
-
32036
-
32029
 Library("isac_bwinfo_gn")
32037
 Library("g711_c_gn")
32030
diff --git third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build
32038
diff --git third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build
32031
index 09da7ad6738f..9028bcf4b2b6 100644
32039
index 80fb9807c16f..88b940e9c6c3 100644
32032
--- third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build
32040
--- third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build
32033
+++ third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build
32041
+++ third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build
32034
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
32042
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
32035
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
32043
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
32036
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
32044
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 32052-32058 index 09da7ad6738f..9028bcf4b2b6 100644 Link Here
32052
 
32060
 
32053
 FINAL_LIBRARY = "webrtc"
32061
 FINAL_LIBRARY = "webrtc"
32054
 
32062
 
32055
@@ -63,151 +73,15 @@ if not CONFIG["MOZ_DEBUG"]:
32063
@@ -42,165 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
32056
 if CONFIG["MOZ_DEBUG"] == "1":
32064
 if CONFIG["MOZ_DEBUG"] == "1":
32057
 
32065
 
32058
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
32066
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 32100-32110 index 09da7ad6738f..9028bcf4b2b6 100644 Link Here
32100
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32108
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32101
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32109
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32102
-
32110
-
32103
-    OS_LIBS += [
32104
-        "m",
32105
-        "rt"
32106
-    ]
32107
-
32108
-if CONFIG["OS_TARGET"] == "OpenBSD":
32111
-if CONFIG["OS_TARGET"] == "OpenBSD":
32109
-
32112
-
32110
-    DEFINES["USE_GLIB"] = "1"
32113
-    DEFINES["USE_GLIB"] = "1"
Lines 32147-32155 index 09da7ad6738f..9028bcf4b2b6 100644 Link Here
32147
-    DEFINES["__STD_C"] = True
32150
-    DEFINES["__STD_C"] = True
32148
-
32151
-
32149
-    OS_LIBS += [
32152
-    OS_LIBS += [
32150
-        "crypt32",
32151
-        "iphlpapi",
32152
-        "secur32",
32153
-        "winmm"
32153
-        "winmm"
32154
-    ]
32154
-    ]
32155
+    DEFINES["_DEBUG"] = True
32155
+    DEFINES["_DEBUG"] = True
Lines 32159-32336 index 09da7ad6738f..9028bcf4b2b6 100644 Link Here
32159
     DEFINES["WEBRTC_ARCH_ARM64"] = True
32159
     DEFINES["WEBRTC_ARCH_ARM64"] = True
32160
     DEFINES["WEBRTC_HAS_NEON"] = True
32160
     DEFINES["WEBRTC_HAS_NEON"] = True
32161
 
32161
 
32162
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
32162
-if CONFIG["CPU_ARCH"] == "arm":
32163
-
32164
-    DEFINES["_DEBUG"] = True
32165
-
32166
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
32167
-
32168
-    DEFINES["_DEBUG"] = True
32169
-
32170
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32171
-
32172
-    DEFINES["_DEBUG"] = True
32173
-
32174
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
32175
-
32176
-    DEFINES["_DEBUG"] = True
32177
-
32178
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
32179
-
32180
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
32181
-
32182
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32183
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
32184
 
32185
     DEFINES["USE_X11"] = "1"
32186
 
32187
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
32188
-
32189
-    OS_LIBS += [
32190
-        "android_support"
32191
-    ]
32192
-
32193
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
32194
-
32195
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32196
-    DEFINES["_GNU_SOURCE"] = True
32197
-
32198
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
32199
-
32200
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32201
-    DEFINES["_GNU_SOURCE"] = True
32202
-
32203
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
32204
-
32205
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32206
-    DEFINES["_GNU_SOURCE"] = True
32207
-
32208
 Library("isac_c_gn")
32209
diff --git third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build
32210
index bdc092498c84..17c7236ffe82 100644
32211
--- third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build
32212
+++ third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build
32213
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
32214
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
32215
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
32216
 DEFINES["RTC_ENABLE_VP9"] = True
32217
+DEFINES["USE_GLIB"] = "1"
32218
+DEFINES["USE_OZONE"] = "1"
32219
+DEFINES["WEBRTC_BSD"] = True
32220
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
32221
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
32222
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
32223
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
32224
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
32225
+DEFINES["WEBRTC_POSIX"] = True
32226
+DEFINES["_FILE_OFFSET_BITS"] = "64"
32227
+DEFINES["_LARGEFILE64_SOURCE"] = True
32228
+DEFINES["_LARGEFILE_SOURCE"] = True
32229
+DEFINES["__STDC_CONSTANT_MACROS"] = True
32230
+DEFINES["__STDC_FORMAT_MACROS"] = True
32231
 
32232
 FINAL_LIBRARY = "webrtc"
32233
 
32234
@@ -37,161 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
32235
 if CONFIG["MOZ_DEBUG"] == "1":
32236
 
32237
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
32238
-
32239
-if CONFIG["OS_TARGET"] == "Android":
32240
-
32241
-    DEFINES["ANDROID"] = True
32242
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
32243
-    DEFINES["HAVE_SYS_UIO_H"] = True
32244
-    DEFINES["WEBRTC_ANDROID"] = True
32245
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
32246
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32247
-    DEFINES["WEBRTC_LINUX"] = True
32248
-    DEFINES["WEBRTC_POSIX"] = True
32249
-    DEFINES["_GNU_SOURCE"] = True
32250
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32251
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32252
-
32253
-    OS_LIBS += [
32254
-        "log"
32255
-    ]
32256
-
32257
-if CONFIG["OS_TARGET"] == "Darwin":
32258
-
32259
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32260
-    DEFINES["WEBRTC_MAC"] = True
32261
-    DEFINES["WEBRTC_POSIX"] = True
32262
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
32263
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
32264
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32265
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32266
-
32267
-if CONFIG["OS_TARGET"] == "Linux":
32268
-
32269
-    DEFINES["USE_AURA"] = "1"
32270
-    DEFINES["USE_GLIB"] = "1"
32271
-    DEFINES["USE_NSS_CERTS"] = "1"
32272
-    DEFINES["USE_OZONE"] = "1"
32273
-    DEFINES["USE_UDEV"] = True
32274
-    DEFINES["WEBRTC_LINUX"] = True
32275
-    DEFINES["WEBRTC_POSIX"] = True
32276
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32277
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32278
-    DEFINES["_LARGEFILE_SOURCE"] = True
32279
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32280
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32281
-
32282
-if CONFIG["OS_TARGET"] == "OpenBSD":
32283
-
32284
-    DEFINES["USE_GLIB"] = "1"
32285
-    DEFINES["USE_OZONE"] = "1"
32286
-    DEFINES["USE_X11"] = "1"
32287
-    DEFINES["WEBRTC_BSD"] = True
32288
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32289
-    DEFINES["WEBRTC_POSIX"] = True
32290
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32291
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32292
-    DEFINES["_LARGEFILE_SOURCE"] = True
32293
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32294
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32295
-
32296
-if CONFIG["OS_TARGET"] == "WINNT":
32297
-
32298
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
32299
-    DEFINES["NOMINMAX"] = True
32300
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
32301
-    DEFINES["PSAPI_VERSION"] = "2"
32302
-    DEFINES["UNICODE"] = True
32303
-    DEFINES["USE_AURA"] = "1"
32304
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32305
-    DEFINES["WEBRTC_WIN"] = True
32306
-    DEFINES["WIN32"] = True
32307
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
32308
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
32309
-    DEFINES["WINVER"] = "0x0A00"
32310
-    DEFINES["_ATL_NO_OPENGL"] = True
32311
-    DEFINES["_CRT_RAND_S"] = True
32312
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
32313
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
32314
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
32315
-    DEFINES["_HAS_NODISCARD"] = True
32316
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
32317
-    DEFINES["_SECURE_ATL"] = True
32318
-    DEFINES["_UNICODE"] = True
32319
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
32320
-    DEFINES["_WINDOWS"] = True
32321
-    DEFINES["__STD_C"] = True
32322
-
32163
-
32323
-    OS_LIBS += [
32164
-    CXXFLAGS += [
32324
-        "winmm"
32165
-        "-mfpu=neon"
32325
-    ]
32166
-    ]
32326
+    DEFINES["_DEBUG"] = True
32167
-
32327
 
32168
-    DEFINES["WEBRTC_ARCH_ARM"] = True
32328
 if CONFIG["CPU_ARCH"] == "aarch64":
32169
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
32329
 
32170
-    DEFINES["WEBRTC_HAS_NEON"] = True
32330
     DEFINES["WEBRTC_ARCH_ARM64"] = True
32171
-
32331
     DEFINES["WEBRTC_HAS_NEON"] = True
32172
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
32332
 
32173
-
32333
-if CONFIG["CPU_ARCH"] == "arm":
32174
-    DEFINES["_DEBUG"] = True
32175
-
32176
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
32177
-
32178
-    DEFINES["_DEBUG"] = True
32179
-
32180
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32181
-
32182
-    DEFINES["_DEBUG"] = True
32183
-
32184
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
32185
-
32186
-    DEFINES["_DEBUG"] = True
32187
-
32188
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
32189
-
32190
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
32191
-
32192
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32193
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
32194
 
32195
     DEFINES["USE_X11"] = "1"
32196
 
32197
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
32198
-
32199
-    OS_LIBS += [
32200
-        "android_support",
32201
-        "unwind"
32202
-    ]
32203
-
32204
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
32205
-
32206
-    OS_LIBS += [
32207
-        "android_support"
32208
-    ]
32209
-
32210
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
32211
-
32212
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32213
-    DEFINES["_GNU_SOURCE"] = True
32214
-
32215
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
32216
-
32217
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32218
-    DEFINES["_GNU_SOURCE"] = True
32219
-
32220
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
32221
-
32222
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32223
-    DEFINES["_GNU_SOURCE"] = True
32224
-
32225
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
32226
-
32227
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32228
-    DEFINES["_GNU_SOURCE"] = True
32229
-
32230
 Library("g711_gn")
32231
diff --git third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build
32232
index 87571de3048e..6af30071257f 100644
32233
--- third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build
32234
+++ third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build
32235
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
32236
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
32237
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
32238
 DEFINES["RTC_ENABLE_VP9"] = True
32239
+DEFINES["USE_GLIB"] = "1"
32240
+DEFINES["USE_OZONE"] = "1"
32241
+DEFINES["WEBRTC_BSD"] = True
32242
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
32243
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
32244
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
32245
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
32246
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
32247
+DEFINES["WEBRTC_POSIX"] = True
32248
+DEFINES["_FILE_OFFSET_BITS"] = "64"
32249
+DEFINES["_LARGEFILE64_SOURCE"] = True
32250
+DEFINES["_LARGEFILE_SOURCE"] = True
32251
+DEFINES["__STDC_CONSTANT_MACROS"] = True
32252
+DEFINES["__STDC_FORMAT_MACROS"] = True
32253
 
32254
 FINAL_LIBRARY = "webrtc"
32255
 
32256
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
32257
 if CONFIG["MOZ_DEBUG"] == "1":
32258
 
32259
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
32260
-
32261
-if CONFIG["OS_TARGET"] == "Android":
32262
-
32263
-    DEFINES["ANDROID"] = True
32264
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
32265
-    DEFINES["HAVE_SYS_UIO_H"] = True
32266
-    DEFINES["WEBRTC_ANDROID"] = True
32267
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
32268
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32269
-    DEFINES["WEBRTC_LINUX"] = True
32270
-    DEFINES["WEBRTC_POSIX"] = True
32271
-    DEFINES["_GNU_SOURCE"] = True
32272
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32273
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32274
-
32275
-if CONFIG["OS_TARGET"] == "Darwin":
32276
-
32277
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32278
-    DEFINES["WEBRTC_MAC"] = True
32279
-    DEFINES["WEBRTC_POSIX"] = True
32280
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
32281
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
32282
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32283
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32284
-
32285
-if CONFIG["OS_TARGET"] == "Linux":
32286
-
32287
-    DEFINES["USE_AURA"] = "1"
32288
-    DEFINES["USE_GLIB"] = "1"
32289
-    DEFINES["USE_NSS_CERTS"] = "1"
32290
-    DEFINES["USE_OZONE"] = "1"
32291
-    DEFINES["USE_UDEV"] = True
32292
-    DEFINES["WEBRTC_LINUX"] = True
32293
-    DEFINES["WEBRTC_POSIX"] = True
32294
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32295
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32296
-    DEFINES["_LARGEFILE_SOURCE"] = True
32297
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32298
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32299
-
32300
-if CONFIG["OS_TARGET"] == "OpenBSD":
32301
-
32302
-    DEFINES["USE_GLIB"] = "1"
32303
-    DEFINES["USE_OZONE"] = "1"
32304
-    DEFINES["USE_X11"] = "1"
32305
-    DEFINES["WEBRTC_BSD"] = True
32306
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32307
-    DEFINES["WEBRTC_POSIX"] = True
32308
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32309
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32310
-    DEFINES["_LARGEFILE_SOURCE"] = True
32311
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32312
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32313
-
32314
-if CONFIG["OS_TARGET"] == "WINNT":
32315
-
32316
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
32317
-    DEFINES["NOMINMAX"] = True
32318
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
32319
-    DEFINES["PSAPI_VERSION"] = "2"
32320
-    DEFINES["UNICODE"] = True
32321
-    DEFINES["USE_AURA"] = "1"
32322
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32323
-    DEFINES["WEBRTC_WIN"] = True
32324
-    DEFINES["WIN32"] = True
32325
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
32326
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
32327
-    DEFINES["WINVER"] = "0x0A00"
32328
-    DEFINES["_ATL_NO_OPENGL"] = True
32329
-    DEFINES["_CRT_RAND_S"] = True
32330
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
32331
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
32332
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
32333
-    DEFINES["_HAS_NODISCARD"] = True
32334
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
32335
-    DEFINES["_SECURE_ATL"] = True
32336
-    DEFINES["_UNICODE"] = True
32337
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
32338
-    DEFINES["_WINDOWS"] = True
32339
-    DEFINES["__STD_C"] = True
32340
+    DEFINES["_DEBUG"] = True
32341
 
32342
 if CONFIG["CPU_ARCH"] == "aarch64":
32343
 
32344
     DEFINES["WEBRTC_ARCH_ARM64"] = True
32345
     DEFINES["WEBRTC_HAS_NEON"] = True
32346
 
32347
-if CONFIG["CPU_ARCH"] == "arm":
32348
-
32349
-    CFLAGS += [
32350
-        "-mfpu=neon"
32351
-    ]
32352
-
32353
-    DEFINES["WEBRTC_ARCH_ARM"] = True
32354
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
32355
-    DEFINES["WEBRTC_HAS_NEON"] = True
32356
-
32357
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
32358
-
32359
-    DEFINES["_DEBUG"] = True
32360
-
32361
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
32362
-
32363
-    DEFINES["_DEBUG"] = True
32364
-
32365
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32366
-
32367
-    DEFINES["_DEBUG"] = True
32368
-
32369
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
32370
-
32371
-    DEFINES["_DEBUG"] = True
32372
-
32373
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
32374
-
32375
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
32376
-
32377
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32378
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
32379
 
32380
     DEFINES["USE_X11"] = "1"
32381
 
32382
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
32383
-
32384
-    OS_LIBS += [
32385
-        "android_support",
32386
-        "unwind"
32387
-    ]
32388
-
32389
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
32390
-
32391
-    OS_LIBS += [
32392
-        "android_support"
32393
-    ]
32394
-
32395
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
32396
-
32397
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32398
-    DEFINES["_GNU_SOURCE"] = True
32399
-
32400
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
32401
-
32402
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32403
-    DEFINES["_GNU_SOURCE"] = True
32404
-
32405
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
32406
-
32407
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32408
-    DEFINES["_GNU_SOURCE"] = True
32409
-
32410
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
32411
-
32412
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32413
-    DEFINES["_GNU_SOURCE"] = True
32414
-
32415
 Library("g722_c_gn")
32416
diff --git third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build
32417
index be80bff2213e..8d9f37d48283 100644
32418
--- third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build
32419
+++ third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build
32420
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
32421
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
32422
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
32423
 DEFINES["RTC_ENABLE_VP9"] = True
32424
+DEFINES["USE_GLIB"] = "1"
32425
+DEFINES["USE_OZONE"] = "1"
32426
+DEFINES["WEBRTC_BSD"] = True
32427
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
32428
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
32429
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
32430
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
32431
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
32432
+DEFINES["WEBRTC_POSIX"] = True
32433
+DEFINES["_FILE_OFFSET_BITS"] = "64"
32434
+DEFINES["_LARGEFILE64_SOURCE"] = True
32435
+DEFINES["_LARGEFILE_SOURCE"] = True
32436
+DEFINES["__STDC_CONSTANT_MACROS"] = True
32437
+DEFINES["__STDC_FORMAT_MACROS"] = True
32438
 
32439
 FINAL_LIBRARY = "webrtc"
32440
 
32441
@@ -42,165 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
32442
 if CONFIG["MOZ_DEBUG"] == "1":
32443
 
32444
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
32445
-
32446
-if CONFIG["OS_TARGET"] == "Android":
32447
-
32448
-    DEFINES["ANDROID"] = True
32449
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
32450
-    DEFINES["HAVE_SYS_UIO_H"] = True
32451
-    DEFINES["WEBRTC_ANDROID"] = True
32452
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
32453
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32454
-    DEFINES["WEBRTC_LINUX"] = True
32455
-    DEFINES["WEBRTC_POSIX"] = True
32456
-    DEFINES["_GNU_SOURCE"] = True
32457
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32458
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32459
-
32460
-    OS_LIBS += [
32461
-        "log"
32462
-    ]
32463
-
32464
-if CONFIG["OS_TARGET"] == "Darwin":
32465
-
32466
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32467
-    DEFINES["WEBRTC_MAC"] = True
32468
-    DEFINES["WEBRTC_POSIX"] = True
32469
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
32470
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
32471
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32472
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32473
-
32474
-if CONFIG["OS_TARGET"] == "Linux":
32475
-
32476
-    DEFINES["USE_AURA"] = "1"
32477
-    DEFINES["USE_GLIB"] = "1"
32478
-    DEFINES["USE_NSS_CERTS"] = "1"
32479
-    DEFINES["USE_OZONE"] = "1"
32480
-    DEFINES["USE_UDEV"] = True
32481
-    DEFINES["WEBRTC_LINUX"] = True
32482
-    DEFINES["WEBRTC_POSIX"] = True
32483
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32484
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32485
-    DEFINES["_LARGEFILE_SOURCE"] = True
32486
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32487
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32488
-
32489
-if CONFIG["OS_TARGET"] == "OpenBSD":
32490
-
32491
-    DEFINES["USE_GLIB"] = "1"
32492
-    DEFINES["USE_OZONE"] = "1"
32493
-    DEFINES["USE_X11"] = "1"
32494
-    DEFINES["WEBRTC_BSD"] = True
32495
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32496
-    DEFINES["WEBRTC_POSIX"] = True
32497
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32498
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32499
-    DEFINES["_LARGEFILE_SOURCE"] = True
32500
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32501
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32502
-
32503
-if CONFIG["OS_TARGET"] == "WINNT":
32504
-
32505
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
32506
-    DEFINES["NOMINMAX"] = True
32507
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
32508
-    DEFINES["PSAPI_VERSION"] = "2"
32509
-    DEFINES["UNICODE"] = True
32510
-    DEFINES["USE_AURA"] = "1"
32511
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32512
-    DEFINES["WEBRTC_WIN"] = True
32513
-    DEFINES["WIN32"] = True
32514
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
32515
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
32516
-    DEFINES["WINVER"] = "0x0A00"
32517
-    DEFINES["_ATL_NO_OPENGL"] = True
32518
-    DEFINES["_CRT_RAND_S"] = True
32519
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
32520
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
32521
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
32522
-    DEFINES["_HAS_NODISCARD"] = True
32523
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
32524
-    DEFINES["_SECURE_ATL"] = True
32525
-    DEFINES["_UNICODE"] = True
32526
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
32527
-    DEFINES["_WINDOWS"] = True
32528
-    DEFINES["__STD_C"] = True
32529
-
32530
-    OS_LIBS += [
32531
-        "winmm"
32532
-    ]
32533
+    DEFINES["_DEBUG"] = True
32534
 
32535
 if CONFIG["CPU_ARCH"] == "aarch64":
32536
 
32537
     DEFINES["WEBRTC_ARCH_ARM64"] = True
32538
     DEFINES["WEBRTC_HAS_NEON"] = True
32539
 
32540
-if CONFIG["CPU_ARCH"] == "arm":
32541
-
32542
-    CXXFLAGS += [
32543
-        "-mfpu=neon"
32544
-    ]
32545
-
32546
-    DEFINES["WEBRTC_ARCH_ARM"] = True
32547
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
32548
-    DEFINES["WEBRTC_HAS_NEON"] = True
32549
-
32550
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
32551
-
32552
-    DEFINES["_DEBUG"] = True
32553
-
32554
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
32555
-
32556
-    DEFINES["_DEBUG"] = True
32557
-
32558
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32559
-
32560
-    DEFINES["_DEBUG"] = True
32561
-
32562
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
32563
-
32564
-    DEFINES["_DEBUG"] = True
32565
-
32566
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
32567
-
32568
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
32569
-
32570
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32571
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
32572
 
32573
     DEFINES["USE_X11"] = "1"
32574
 
32575
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
32576
-
32577
-    OS_LIBS += [
32578
-        "android_support",
32579
-        "unwind"
32580
-    ]
32581
-
32582
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
32583
-
32584
-    OS_LIBS += [
32585
-        "android_support"
32586
-    ]
32587
-
32588
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
32589
-
32590
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32591
-    DEFINES["_GNU_SOURCE"] = True
32592
-
32593
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
32594
-
32595
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32596
-    DEFINES["_GNU_SOURCE"] = True
32597
-
32598
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
32599
-
32600
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32601
-    DEFINES["_GNU_SOURCE"] = True
32602
-
32603
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
32604
-
32605
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32606
-    DEFINES["_GNU_SOURCE"] = True
32607
-
32608
 Library("g722_gn")
32609
diff --git third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build
32610
index 771a415b58fe..64ca7ca1f4fc 100644
32611
--- third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build
32612
+++ third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build
32613
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
32614
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
32615
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
32616
 DEFINES["RTC_ENABLE_VP9"] = True
32617
+DEFINES["USE_GLIB"] = "1"
32618
+DEFINES["USE_OZONE"] = "1"
32619
+DEFINES["WEBRTC_BSD"] = True
32620
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
32621
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
32622
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
32623
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
32624
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
32625
+DEFINES["WEBRTC_POSIX"] = True
32626
+DEFINES["_FILE_OFFSET_BITS"] = "64"
32627
+DEFINES["_LARGEFILE64_SOURCE"] = True
32628
+DEFINES["_LARGEFILE_SOURCE"] = True
32629
+DEFINES["__STDC_CONSTANT_MACROS"] = True
32630
+DEFINES["__STDC_FORMAT_MACROS"] = True
32631
 
32632
 FINAL_LIBRARY = "webrtc"
32633
 
32634
@@ -109,172 +119,15 @@ if not CONFIG["MOZ_DEBUG"]:
32635
 if CONFIG["MOZ_DEBUG"] == "1":
32636
 
32637
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
32638
-
32639
-if CONFIG["OS_TARGET"] == "Android":
32640
-
32641
-    DEFINES["ANDROID"] = True
32642
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
32643
-    DEFINES["HAVE_SYS_UIO_H"] = True
32644
-    DEFINES["WEBRTC_ANDROID"] = True
32645
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
32646
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32647
-    DEFINES["WEBRTC_LINUX"] = True
32648
-    DEFINES["WEBRTC_POSIX"] = True
32649
-    DEFINES["_GNU_SOURCE"] = True
32650
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32651
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32652
-
32653
-    OS_LIBS += [
32654
-        "log"
32655
-    ]
32656
-
32657
-if CONFIG["OS_TARGET"] == "Darwin":
32658
-
32659
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32660
-    DEFINES["WEBRTC_MAC"] = True
32661
-    DEFINES["WEBRTC_POSIX"] = True
32662
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
32663
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
32664
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32665
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32666
-
32667
-if CONFIG["OS_TARGET"] == "Linux":
32668
-
32669
-    DEFINES["USE_AURA"] = "1"
32670
-    DEFINES["USE_GLIB"] = "1"
32671
-    DEFINES["USE_NSS_CERTS"] = "1"
32672
-    DEFINES["USE_OZONE"] = "1"
32673
-    DEFINES["USE_UDEV"] = True
32674
-    DEFINES["WEBRTC_LINUX"] = True
32675
-    DEFINES["WEBRTC_POSIX"] = True
32676
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32677
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32678
-    DEFINES["_LARGEFILE_SOURCE"] = True
32679
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32680
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32681
-
32682
-    OS_LIBS += [
32683
-        "rt"
32684
-    ]
32685
-
32686
-if CONFIG["OS_TARGET"] == "OpenBSD":
32687
-
32688
-    DEFINES["USE_GLIB"] = "1"
32689
-    DEFINES["USE_OZONE"] = "1"
32690
-    DEFINES["USE_X11"] = "1"
32691
-    DEFINES["WEBRTC_BSD"] = True
32692
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32693
-    DEFINES["WEBRTC_POSIX"] = True
32694
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32695
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32696
-    DEFINES["_LARGEFILE_SOURCE"] = True
32697
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32698
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32699
-
32700
-if CONFIG["OS_TARGET"] == "WINNT":
32701
-
32702
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
32703
-    DEFINES["NOMINMAX"] = True
32704
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
32705
-    DEFINES["PSAPI_VERSION"] = "2"
32706
-    DEFINES["UNICODE"] = True
32707
-    DEFINES["USE_AURA"] = "1"
32708
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32709
-    DEFINES["WEBRTC_WIN"] = True
32710
-    DEFINES["WIN32"] = True
32711
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
32712
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
32713
-    DEFINES["WINVER"] = "0x0A00"
32714
-    DEFINES["_ATL_NO_OPENGL"] = True
32715
-    DEFINES["_CRT_RAND_S"] = True
32716
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
32717
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
32718
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
32719
-    DEFINES["_HAS_NODISCARD"] = True
32720
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
32721
-    DEFINES["_SECURE_ATL"] = True
32722
-    DEFINES["_UNICODE"] = True
32723
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
32724
-    DEFINES["_WINDOWS"] = True
32725
-    DEFINES["__STD_C"] = True
32726
-
32727
-    OS_LIBS += [
32728
-        "crypt32",
32729
-        "iphlpapi",
32730
-        "secur32",
32731
-        "winmm"
32732
-    ]
32733
+    DEFINES["_DEBUG"] = True
32734
 
32735
 if CONFIG["CPU_ARCH"] == "aarch64":
32736
 
32737
     DEFINES["WEBRTC_ARCH_ARM64"] = True
32738
     DEFINES["WEBRTC_HAS_NEON"] = True
32739
 
32740
-if CONFIG["CPU_ARCH"] == "arm":
32741
-
32742
-    CFLAGS += [
32743
-        "-mfpu=neon"
32744
-    ]
32745
-
32746
-    DEFINES["WEBRTC_ARCH_ARM"] = True
32747
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
32748
-    DEFINES["WEBRTC_HAS_NEON"] = True
32749
-
32750
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
32751
-
32752
-    DEFINES["_DEBUG"] = True
32753
-
32754
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
32755
-
32756
-    DEFINES["_DEBUG"] = True
32757
-
32758
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32759
-
32760
-    DEFINES["_DEBUG"] = True
32761
-
32762
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
32763
-
32764
-    DEFINES["_DEBUG"] = True
32765
-
32766
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
32767
-
32768
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
32769
-
32770
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32771
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
32772
 
32773
     DEFINES["USE_X11"] = "1"
32774
 
32775
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
32776
-
32777
-    OS_LIBS += [
32778
-        "android_support",
32779
-        "unwind"
32780
-    ]
32781
-
32782
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
32783
-
32784
-    OS_LIBS += [
32785
-        "android_support"
32786
-    ]
32787
-
32788
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
32789
-
32790
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32791
-    DEFINES["_GNU_SOURCE"] = True
32792
-
32793
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
32794
-
32795
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32796
-    DEFINES["_GNU_SOURCE"] = True
32797
-
32798
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
32799
-
32800
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32801
-    DEFINES["_GNU_SOURCE"] = True
32802
-
32803
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
32804
-
32805
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32806
-    DEFINES["_GNU_SOURCE"] = True
32807
-
32808
 Library("ilbc_c_gn")
32809
diff --git third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build
32810
index a652760054da..4927afb7d7e6 100644
32811
--- third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build
32812
+++ third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build
32813
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
32814
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
32815
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
32816
 DEFINES["RTC_ENABLE_VP9"] = True
32817
+DEFINES["USE_GLIB"] = "1"
32818
+DEFINES["USE_OZONE"] = "1"
32819
+DEFINES["WEBRTC_BSD"] = True
32820
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
32821
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
32822
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
32823
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
32824
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
32825
+DEFINES["WEBRTC_POSIX"] = True
32826
+DEFINES["_FILE_OFFSET_BITS"] = "64"
32827
+DEFINES["_LARGEFILE64_SOURCE"] = True
32828
+DEFINES["_LARGEFILE_SOURCE"] = True
32829
+DEFINES["__STDC_CONSTANT_MACROS"] = True
32830
+DEFINES["__STDC_FORMAT_MACROS"] = True
32831
 
32832
 FINAL_LIBRARY = "webrtc"
32833
 
32834
@@ -42,172 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
32835
 if CONFIG["MOZ_DEBUG"] == "1":
32836
 
32837
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
32838
-
32839
-if CONFIG["OS_TARGET"] == "Android":
32840
-
32841
-    DEFINES["ANDROID"] = True
32842
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
32843
-    DEFINES["HAVE_SYS_UIO_H"] = True
32844
-    DEFINES["WEBRTC_ANDROID"] = True
32845
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
32846
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32847
-    DEFINES["WEBRTC_LINUX"] = True
32848
-    DEFINES["WEBRTC_POSIX"] = True
32849
-    DEFINES["_GNU_SOURCE"] = True
32850
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32851
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32852
-
32853
-    OS_LIBS += [
32854
-        "log"
32855
-    ]
32856
-
32857
-if CONFIG["OS_TARGET"] == "Darwin":
32858
-
32859
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32860
-    DEFINES["WEBRTC_MAC"] = True
32861
-    DEFINES["WEBRTC_POSIX"] = True
32862
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
32863
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
32864
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32865
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32866
-
32867
-if CONFIG["OS_TARGET"] == "Linux":
32868
-
32869
-    DEFINES["USE_AURA"] = "1"
32870
-    DEFINES["USE_GLIB"] = "1"
32871
-    DEFINES["USE_NSS_CERTS"] = "1"
32872
-    DEFINES["USE_OZONE"] = "1"
32873
-    DEFINES["USE_UDEV"] = True
32874
-    DEFINES["WEBRTC_LINUX"] = True
32875
-    DEFINES["WEBRTC_POSIX"] = True
32876
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32877
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32878
-    DEFINES["_LARGEFILE_SOURCE"] = True
32879
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32880
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32881
-
32882
-    OS_LIBS += [
32883
-        "rt"
32884
-    ]
32885
-
32886
-if CONFIG["OS_TARGET"] == "OpenBSD":
32887
-
32888
-    DEFINES["USE_GLIB"] = "1"
32889
-    DEFINES["USE_OZONE"] = "1"
32890
-    DEFINES["USE_X11"] = "1"
32891
-    DEFINES["WEBRTC_BSD"] = True
32892
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32893
-    DEFINES["WEBRTC_POSIX"] = True
32894
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
32895
-    DEFINES["_LARGEFILE64_SOURCE"] = True
32896
-    DEFINES["_LARGEFILE_SOURCE"] = True
32897
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
32898
-    DEFINES["__STDC_FORMAT_MACROS"] = True
32899
-
32900
-if CONFIG["OS_TARGET"] == "WINNT":
32901
-
32902
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
32903
-    DEFINES["NOMINMAX"] = True
32904
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
32905
-    DEFINES["PSAPI_VERSION"] = "2"
32906
-    DEFINES["UNICODE"] = True
32907
-    DEFINES["USE_AURA"] = "1"
32908
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32909
-    DEFINES["WEBRTC_WIN"] = True
32910
-    DEFINES["WIN32"] = True
32911
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
32912
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
32913
-    DEFINES["WINVER"] = "0x0A00"
32914
-    DEFINES["_ATL_NO_OPENGL"] = True
32915
-    DEFINES["_CRT_RAND_S"] = True
32916
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
32917
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
32918
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
32919
-    DEFINES["_HAS_NODISCARD"] = True
32920
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
32921
-    DEFINES["_SECURE_ATL"] = True
32922
-    DEFINES["_UNICODE"] = True
32923
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
32924
-    DEFINES["_WINDOWS"] = True
32925
-    DEFINES["__STD_C"] = True
32926
-
32927
-    OS_LIBS += [
32928
-        "crypt32",
32929
-        "iphlpapi",
32930
-        "secur32",
32931
-        "winmm"
32932
-    ]
32933
+    DEFINES["_DEBUG"] = True
32934
 
32935
 if CONFIG["CPU_ARCH"] == "aarch64":
32936
 
32937
     DEFINES["WEBRTC_ARCH_ARM64"] = True
32938
     DEFINES["WEBRTC_HAS_NEON"] = True
32939
 
32940
-if CONFIG["CPU_ARCH"] == "arm":
32941
-
32942
-    CXXFLAGS += [
32943
-        "-mfpu=neon"
32944
-    ]
32945
-
32946
-    DEFINES["WEBRTC_ARCH_ARM"] = True
32947
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
32948
-    DEFINES["WEBRTC_HAS_NEON"] = True
32949
-
32950
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
32951
-
32952
-    DEFINES["_DEBUG"] = True
32953
-
32954
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
32955
-
32956
-    DEFINES["_DEBUG"] = True
32957
-
32958
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32959
-
32960
-    DEFINES["_DEBUG"] = True
32961
-
32962
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
32963
-
32964
-    DEFINES["_DEBUG"] = True
32965
-
32966
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
32967
-
32968
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
32969
-
32970
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
32971
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
32972
 
32973
     DEFINES["USE_X11"] = "1"
32974
 
32975
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
32976
-
32977
-    OS_LIBS += [
32978
-        "android_support",
32979
-        "unwind"
32980
-    ]
32981
-
32982
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
32983
-
32984
-    OS_LIBS += [
32985
-        "android_support"
32986
-    ]
32987
-
32988
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
32989
-
32990
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32991
-    DEFINES["_GNU_SOURCE"] = True
32992
-
32993
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
32994
-
32995
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
32996
-    DEFINES["_GNU_SOURCE"] = True
32997
-
32998
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
32999
-
33000
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33001
-    DEFINES["_GNU_SOURCE"] = True
33002
-
33003
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
33004
-
33005
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33006
-    DEFINES["_GNU_SOURCE"] = True
33007
-
33008
 Library("ilbc_gn")
33009
diff --git third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build
33010
index 1cf433ded05c..17649824103d 100644
33011
--- third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build
33012
+++ third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build
33013
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
33014
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
33015
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
33016
 DEFINES["RTC_ENABLE_VP9"] = True
33017
+DEFINES["USE_GLIB"] = "1"
33018
+DEFINES["USE_OZONE"] = "1"
33019
+DEFINES["WEBRTC_BSD"] = True
33020
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
33021
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
33022
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
33023
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
33024
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
33025
+DEFINES["WEBRTC_POSIX"] = True
33026
+DEFINES["_FILE_OFFSET_BITS"] = "64"
33027
+DEFINES["_LARGEFILE64_SOURCE"] = True
33028
+DEFINES["_LARGEFILE_SOURCE"] = True
33029
+DEFINES["__STDC_CONSTANT_MACROS"] = True
33030
+DEFINES["__STDC_FORMAT_MACROS"] = True
33031
 
33032
 FINAL_LIBRARY = "webrtc"
33033
 
33034
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
33035
 if CONFIG["MOZ_DEBUG"] == "1":
33036
 
33037
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
33038
-
33039
-if CONFIG["OS_TARGET"] == "Android":
33040
-
33041
-    DEFINES["ANDROID"] = True
33042
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
33043
-    DEFINES["HAVE_SYS_UIO_H"] = True
33044
-    DEFINES["WEBRTC_ANDROID"] = True
33045
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
33046
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33047
-    DEFINES["WEBRTC_LINUX"] = True
33048
-    DEFINES["WEBRTC_POSIX"] = True
33049
-    DEFINES["_GNU_SOURCE"] = True
33050
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33051
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33052
-
33053
-if CONFIG["OS_TARGET"] == "Darwin":
33054
-
33055
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33056
-    DEFINES["WEBRTC_MAC"] = True
33057
-    DEFINES["WEBRTC_POSIX"] = True
33058
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
33059
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
33060
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33061
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33062
-
33063
-if CONFIG["OS_TARGET"] == "Linux":
33064
-
33065
-    DEFINES["USE_AURA"] = "1"
33066
-    DEFINES["USE_GLIB"] = "1"
33067
-    DEFINES["USE_NSS_CERTS"] = "1"
33068
-    DEFINES["USE_OZONE"] = "1"
33069
-    DEFINES["USE_UDEV"] = True
33070
-    DEFINES["WEBRTC_LINUX"] = True
33071
-    DEFINES["WEBRTC_POSIX"] = True
33072
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
33073
-    DEFINES["_LARGEFILE64_SOURCE"] = True
33074
-    DEFINES["_LARGEFILE_SOURCE"] = True
33075
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33076
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33077
-
33078
-if CONFIG["OS_TARGET"] == "OpenBSD":
33079
-
33080
-    DEFINES["USE_GLIB"] = "1"
33081
-    DEFINES["USE_OZONE"] = "1"
33082
-    DEFINES["USE_X11"] = "1"
33083
-    DEFINES["WEBRTC_BSD"] = True
33084
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33085
-    DEFINES["WEBRTC_POSIX"] = True
33086
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
33087
-    DEFINES["_LARGEFILE64_SOURCE"] = True
33088
-    DEFINES["_LARGEFILE_SOURCE"] = True
33089
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33090
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33091
-
33092
-if CONFIG["OS_TARGET"] == "WINNT":
33093
-
33094
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
33095
-    DEFINES["NOMINMAX"] = True
33096
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
33097
-    DEFINES["PSAPI_VERSION"] = "2"
33098
-    DEFINES["UNICODE"] = True
33099
-    DEFINES["USE_AURA"] = "1"
33100
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33101
-    DEFINES["WEBRTC_WIN"] = True
33102
-    DEFINES["WIN32"] = True
33103
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
33104
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
33105
-    DEFINES["WINVER"] = "0x0A00"
33106
-    DEFINES["_ATL_NO_OPENGL"] = True
33107
-    DEFINES["_CRT_RAND_S"] = True
33108
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
33109
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
33110
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
33111
-    DEFINES["_HAS_NODISCARD"] = True
33112
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
33113
-    DEFINES["_SECURE_ATL"] = True
33114
-    DEFINES["_UNICODE"] = True
33115
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
33116
-    DEFINES["_WINDOWS"] = True
33117
-    DEFINES["__STD_C"] = True
33118
+    DEFINES["_DEBUG"] = True
33119
 
33120
 if CONFIG["CPU_ARCH"] == "aarch64":
33121
 
33122
     DEFINES["WEBRTC_ARCH_ARM64"] = True
33123
     DEFINES["WEBRTC_HAS_NEON"] = True
33124
 
33125
-if CONFIG["CPU_ARCH"] == "arm":
33126
-
33127
-    DEFINES["WEBRTC_ARCH_ARM"] = True
33128
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
33129
-    DEFINES["WEBRTC_HAS_NEON"] = True
33130
-
33131
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
33132
-
33133
-    DEFINES["_DEBUG"] = True
33134
-
33135
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
33136
-
33137
-    DEFINES["_DEBUG"] = True
33138
-
33139
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
33140
-
33141
-    DEFINES["_DEBUG"] = True
33142
-
33143
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
33144
-
33145
-    DEFINES["_DEBUG"] = True
33146
-
33147
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
33148
-
33149
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
33150
-
33151
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
33152
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
33153
 
33154
     DEFINES["USE_X11"] = "1"
33155
 
33156
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
33157
-
33158
-    OS_LIBS += [
33159
-        "android_support",
33160
-        "unwind"
33161
-    ]
33162
-
33163
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
33164
-
33165
-    OS_LIBS += [
33166
-        "android_support"
33167
-    ]
33168
-
33169
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
33170
-
33171
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33172
-    DEFINES["_GNU_SOURCE"] = True
33173
-
33174
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
33175
-
33176
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33177
-    DEFINES["_GNU_SOURCE"] = True
33178
-
33179
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
33180
-
33181
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33182
-    DEFINES["_GNU_SOURCE"] = True
33183
-
33184
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
33185
-
33186
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33187
-    DEFINES["_GNU_SOURCE"] = True
33188
-
33189
 Library("isac_bwinfo_gn")
33190
diff --git third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build
33191
index 09da7ad6738f..9028bcf4b2b6 100644
33192
--- third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build
33193
+++ third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build
33194
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
33195
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
33196
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
33197
 DEFINES["RTC_ENABLE_VP9"] = True
33198
+DEFINES["USE_GLIB"] = "1"
33199
+DEFINES["USE_OZONE"] = "1"
33200
+DEFINES["WEBRTC_BSD"] = True
33201
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
33202
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
33203
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
33204
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
33205
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
33206
+DEFINES["WEBRTC_POSIX"] = True
33207
+DEFINES["_FILE_OFFSET_BITS"] = "64"
33208
+DEFINES["_LARGEFILE64_SOURCE"] = True
33209
+DEFINES["_LARGEFILE_SOURCE"] = True
33210
+DEFINES["__STDC_CONSTANT_MACROS"] = True
33211
+DEFINES["__STDC_FORMAT_MACROS"] = True
33212
 
33213
 FINAL_LIBRARY = "webrtc"
33214
 
33215
@@ -63,151 +73,15 @@ if not CONFIG["MOZ_DEBUG"]:
33216
 if CONFIG["MOZ_DEBUG"] == "1":
33217
 
33218
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
33219
-
33220
-if CONFIG["OS_TARGET"] == "Android":
33221
-
33222
-    DEFINES["ANDROID"] = True
33223
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
33224
-    DEFINES["HAVE_SYS_UIO_H"] = True
33225
-    DEFINES["WEBRTC_ANDROID"] = True
33226
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
33227
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33228
-    DEFINES["WEBRTC_LINUX"] = True
33229
-    DEFINES["WEBRTC_POSIX"] = True
33230
-    DEFINES["_GNU_SOURCE"] = True
33231
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33232
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33233
-
33234
-    OS_LIBS += [
33235
-        "log"
33236
-    ]
33237
-
33238
-if CONFIG["OS_TARGET"] == "Darwin":
33239
-
33240
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33241
-    DEFINES["WEBRTC_MAC"] = True
33242
-    DEFINES["WEBRTC_POSIX"] = True
33243
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
33244
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
33245
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33246
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33247
-
33248
-if CONFIG["OS_TARGET"] == "Linux":
33249
-
33250
-    DEFINES["USE_AURA"] = "1"
33251
-    DEFINES["USE_GLIB"] = "1"
33252
-    DEFINES["USE_NSS_CERTS"] = "1"
33253
-    DEFINES["USE_OZONE"] = "1"
33254
-    DEFINES["USE_UDEV"] = True
33255
-    DEFINES["WEBRTC_LINUX"] = True
33256
-    DEFINES["WEBRTC_POSIX"] = True
33257
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
33258
-    DEFINES["_LARGEFILE64_SOURCE"] = True
33259
-    DEFINES["_LARGEFILE_SOURCE"] = True
33260
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33261
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33262
-
33263
-    OS_LIBS += [
33264
-        "m",
33265
-        "rt"
33266
-    ]
33267
-
33268
-if CONFIG["OS_TARGET"] == "OpenBSD":
33269
-
33270
-    DEFINES["USE_GLIB"] = "1"
33271
-    DEFINES["USE_OZONE"] = "1"
33272
-    DEFINES["USE_X11"] = "1"
33273
-    DEFINES["WEBRTC_BSD"] = True
33274
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33275
-    DEFINES["WEBRTC_POSIX"] = True
33276
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
33277
-    DEFINES["_LARGEFILE64_SOURCE"] = True
33278
-    DEFINES["_LARGEFILE_SOURCE"] = True
33279
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33280
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33281
-
33282
-if CONFIG["OS_TARGET"] == "WINNT":
33283
-
33284
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
33285
-    DEFINES["NOMINMAX"] = True
33286
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
33287
-    DEFINES["PSAPI_VERSION"] = "2"
33288
-    DEFINES["UNICODE"] = True
33289
-    DEFINES["USE_AURA"] = "1"
33290
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33291
-    DEFINES["WEBRTC_WIN"] = True
33292
-    DEFINES["WIN32"] = True
33293
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
33294
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
33295
-    DEFINES["WINVER"] = "0x0A00"
33296
-    DEFINES["_ATL_NO_OPENGL"] = True
33297
-    DEFINES["_CRT_RAND_S"] = True
33298
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
33299
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
33300
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
33301
-    DEFINES["_HAS_NODISCARD"] = True
33302
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
33303
-    DEFINES["_SECURE_ATL"] = True
33304
-    DEFINES["_UNICODE"] = True
33305
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
33306
-    DEFINES["_WINDOWS"] = True
33307
-    DEFINES["__STD_C"] = True
33308
-
33309
-    OS_LIBS += [
33310
-        "crypt32",
33311
-        "iphlpapi",
33312
-        "secur32",
33313
-        "winmm"
33314
-    ]
33315
+    DEFINES["_DEBUG"] = True
33316
 
33317
 if CONFIG["CPU_ARCH"] == "aarch64":
33318
 
33319
     DEFINES["WEBRTC_ARCH_ARM64"] = True
33320
     DEFINES["WEBRTC_HAS_NEON"] = True
33321
 
33322
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
33323
-
33324
-    DEFINES["_DEBUG"] = True
33325
-
33326
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
33327
-
33328
-    DEFINES["_DEBUG"] = True
33329
-
33330
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
33331
-
33332
-    DEFINES["_DEBUG"] = True
33333
-
33334
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
33335
-
33336
-    DEFINES["_DEBUG"] = True
33337
-
33338
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
33339
-
33340
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
33341
-
33342
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
33343
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
33344
 
33345
     DEFINES["USE_X11"] = "1"
33346
 
33347
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
33348
-
33349
-    OS_LIBS += [
33350
-        "android_support"
33351
-    ]
33352
-
33353
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
33354
-
33355
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33356
-    DEFINES["_GNU_SOURCE"] = True
33357
-
33358
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
33359
-
33360
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33361
-    DEFINES["_GNU_SOURCE"] = True
33362
-
33363
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
33364
-
33365
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33366
-    DEFINES["_GNU_SOURCE"] = True
33367
-
33368
 Library("isac_c_gn")
33369
diff --git third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build
33370
index bdc092498c84..17c7236ffe82 100644
33371
--- third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build
33372
+++ third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build
33373
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
33374
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
33375
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
33376
 DEFINES["RTC_ENABLE_VP9"] = True
33377
+DEFINES["USE_GLIB"] = "1"
33378
+DEFINES["USE_OZONE"] = "1"
33379
+DEFINES["WEBRTC_BSD"] = True
33380
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
33381
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
33382
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
33383
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
33384
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
33385
+DEFINES["WEBRTC_POSIX"] = True
33386
+DEFINES["_FILE_OFFSET_BITS"] = "64"
33387
+DEFINES["_LARGEFILE64_SOURCE"] = True
33388
+DEFINES["_LARGEFILE_SOURCE"] = True
33389
+DEFINES["__STDC_CONSTANT_MACROS"] = True
33390
+DEFINES["__STDC_FORMAT_MACROS"] = True
33391
 
33392
 FINAL_LIBRARY = "webrtc"
33393
 
33394
@@ -37,161 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
33395
 if CONFIG["MOZ_DEBUG"] == "1":
33396
 
33397
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
33398
-
33399
-if CONFIG["OS_TARGET"] == "Android":
33400
-
33401
-    DEFINES["ANDROID"] = True
33402
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
33403
-    DEFINES["HAVE_SYS_UIO_H"] = True
33404
-    DEFINES["WEBRTC_ANDROID"] = True
33405
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
33406
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33407
-    DEFINES["WEBRTC_LINUX"] = True
33408
-    DEFINES["WEBRTC_POSIX"] = True
33409
-    DEFINES["_GNU_SOURCE"] = True
33410
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33411
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33412
-
33413
-    OS_LIBS += [
33414
-        "log"
33415
-    ]
33416
-
33417
-if CONFIG["OS_TARGET"] == "Darwin":
33418
-
33419
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33420
-    DEFINES["WEBRTC_MAC"] = True
33421
-    DEFINES["WEBRTC_POSIX"] = True
33422
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
33423
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
33424
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33425
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33426
-
33427
-if CONFIG["OS_TARGET"] == "Linux":
33428
-
33429
-    DEFINES["USE_AURA"] = "1"
33430
-    DEFINES["USE_GLIB"] = "1"
33431
-    DEFINES["USE_NSS_CERTS"] = "1"
33432
-    DEFINES["USE_OZONE"] = "1"
33433
-    DEFINES["USE_UDEV"] = True
33434
-    DEFINES["WEBRTC_LINUX"] = True
33435
-    DEFINES["WEBRTC_POSIX"] = True
33436
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
33437
-    DEFINES["_LARGEFILE64_SOURCE"] = True
33438
-    DEFINES["_LARGEFILE_SOURCE"] = True
33439
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33440
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33441
-
33442
-if CONFIG["OS_TARGET"] == "OpenBSD":
33443
-
33444
-    DEFINES["USE_GLIB"] = "1"
33445
-    DEFINES["USE_OZONE"] = "1"
33446
-    DEFINES["USE_X11"] = "1"
33447
-    DEFINES["WEBRTC_BSD"] = True
33448
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33449
-    DEFINES["WEBRTC_POSIX"] = True
33450
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
33451
-    DEFINES["_LARGEFILE64_SOURCE"] = True
33452
-    DEFINES["_LARGEFILE_SOURCE"] = True
33453
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
33454
-    DEFINES["__STDC_FORMAT_MACROS"] = True
33455
-
33456
-if CONFIG["OS_TARGET"] == "WINNT":
33457
-
33458
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
33459
-    DEFINES["NOMINMAX"] = True
33460
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
33461
-    DEFINES["PSAPI_VERSION"] = "2"
33462
-    DEFINES["UNICODE"] = True
33463
-    DEFINES["USE_AURA"] = "1"
33464
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
33465
-    DEFINES["WEBRTC_WIN"] = True
33466
-    DEFINES["WIN32"] = True
33467
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
33468
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
33469
-    DEFINES["WINVER"] = "0x0A00"
33470
-    DEFINES["_ATL_NO_OPENGL"] = True
33471
-    DEFINES["_CRT_RAND_S"] = True
33472
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
33473
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
33474
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
33475
-    DEFINES["_HAS_NODISCARD"] = True
33476
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
33477
-    DEFINES["_SECURE_ATL"] = True
33478
-    DEFINES["_UNICODE"] = True
33479
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
33480
-    DEFINES["_WINDOWS"] = True
33481
-    DEFINES["__STD_C"] = True
33482
-
33483
-    OS_LIBS += [
33484
-        "winmm"
33485
-    ]
33486
+    DEFINES["_DEBUG"] = True
33487
 
33488
 if CONFIG["CPU_ARCH"] == "aarch64":
33489
 
33490
     DEFINES["WEBRTC_ARCH_ARM64"] = True
33491
     DEFINES["WEBRTC_HAS_NEON"] = True
33492
 
33493
-if CONFIG["CPU_ARCH"] == "arm":
32334
-
33494
-
32335
-    DEFINES["WEBRTC_ARCH_ARM"] = True
33495
-    DEFINES["WEBRTC_ARCH_ARM"] = True
32336
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
33496
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
Lines 33472-33478 index 81572e410402..59bbb7146249 100644 Link Here
33472
-
34632
-
33473
 Library("legacy_encoded_audio_frame_gn")
34633
 Library("legacy_encoded_audio_frame_gn")
33474
diff --git third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build
34634
diff --git third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build
33475
index 50f2227c0bd7..baa80fe26989 100644
34635
index 032a190b0afc..603b0dd150aa 100644
33476
--- third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build
34636
--- third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build
33477
+++ third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build
34637
+++ third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build
33478
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
34638
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
Lines 51508-51517 index 1d9b39c90ee9..df973d1d6465 100644 Link Here
51508
 
52668
 
51509
     DEFINES["USE_X11"] = "1"
52669
     DEFINES["USE_X11"] = "1"
51510
 
52670
 
51511
diff --git third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build
52671
diff --git third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
51512
index 809899a92847..329aa27afaf0 100644
52672
index 8631744ab1bf..04e39447905c 100644
51513
--- third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build
52673
--- third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
51514
+++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build
52674
+++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
51515
@@ -14,10 +14,20 @@ AllowCompilerWarnings()
52675
@@ -14,10 +14,20 @@ AllowCompilerWarnings()
51516
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
52676
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
51517
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
52677
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 51533-51539 index 809899a92847..329aa27afaf0 100644 Link Here
51533
 
52693
 
51534
 FINAL_LIBRARY = "webrtc"
52694
 FINAL_LIBRARY = "webrtc"
51535
 
52695
 
51536
@@ -66,63 +76,25 @@ if not CONFIG["MOZ_DEBUG"]:
52696
@@ -69,62 +79,25 @@ if not CONFIG["MOZ_DEBUG"]:
51537
 if CONFIG["MOZ_DEBUG"] == "1":
52697
 if CONFIG["MOZ_DEBUG"] == "1":
51538
 
52698
 
51539
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
52699
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 51574-51580 index 809899a92847..329aa27afaf0 100644 Link Here
51574
+    DEFINES["WEBRTC_HAS_NEON"] = True
52734
+    DEFINES["WEBRTC_HAS_NEON"] = True
51575
 
52735
 
51576
-    OS_LIBS += [
52736
-    OS_LIBS += [
51577
-        "dl",
51578
-        "rt"
52737
-        "rt"
51579
-    ]
52738
-    ]
51580
+if not CONFIG["MOZ_X11"] and CONFIG["OS_TARGET"] == "FreeBSD":
52739
+if not CONFIG["MOZ_X11"] and CONFIG["OS_TARGET"] == "FreeBSD":
Lines 51606-51612 index 809899a92847..329aa27afaf0 100644 Link Here
51606
 
52765
 
51607
     OS_LIBS += [
52766
     OS_LIBS += [
51608
         "X11",
52767
         "X11",
51609
@@ -151,287 +123,4 @@ if CONFIG["OS_TARGET"] == "OpenBSD":
52768
@@ -153,287 +126,4 @@ if CONFIG["OS_TARGET"] == "OpenBSD":
51610
         "/third_party/libwebrtc/modules/desktop_capture/window_capturer_linux.cc"
52769
         "/third_party/libwebrtc/modules/desktop_capture/window_capturer_linux.cc"
51611
     ]
52770
     ]
51612
 
52771
 
Lines 51698-51704 index 809899a92847..329aa27afaf0 100644 Link Here
51698
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
52857
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
51699
-    DEFINES["_GNU_SOURCE"] = True
52858
-    DEFINES["_GNU_SOURCE"] = True
51700
-
52859
-
51701
-    UNIFIED_SOURCES += [
52860
-    SOURCES += [
51702
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/moz_base_capturer_pipewire.cc"
52861
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/moz_base_capturer_pipewire.cc"
51703
-    ]
52862
-    ]
51704
-
52863
-
Lines 51753-51759 index 809899a92847..329aa27afaf0 100644 Link Here
51753
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
52912
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
51754
-    DEFINES["_GNU_SOURCE"] = True
52913
-    DEFINES["_GNU_SOURCE"] = True
51755
-
52914
-
51756
-    UNIFIED_SOURCES += [
52915
-    SOURCES += [
51757
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/moz_base_capturer_pipewire.cc"
52916
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/moz_base_capturer_pipewire.cc"
51758
-    ]
52917
-    ]
51759
-
52918
-
Lines 51763-51769 index 809899a92847..329aa27afaf0 100644 Link Here
51763
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
52922
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
51764
-    DEFINES["_GNU_SOURCE"] = True
52923
-    DEFINES["_GNU_SOURCE"] = True
51765
-
52924
-
51766
-    UNIFIED_SOURCES += [
52925
-    SOURCES += [
51767
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/moz_base_capturer_pipewire.cc"
52926
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/moz_base_capturer_pipewire.cc"
51768
-    ]
52927
-    ]
51769
-
52928
-
Lines 51773-51779 index 809899a92847..329aa27afaf0 100644 Link Here
51773
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
52932
-    DEFINES["WEBRTC_USE_PIPEWIRE"] = True
51774
-    DEFINES["_GNU_SOURCE"] = True
52933
-    DEFINES["_GNU_SOURCE"] = True
51775
-
52934
-
51776
-    UNIFIED_SOURCES += [
52935
-    SOURCES += [
51777
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/moz_base_capturer_pipewire.cc"
52936
-        "/third_party/libwebrtc/modules/desktop_capture/linux/wayland/moz_base_capturer_pipewire.cc"
51778
-    ]
52937
-    ]
51779
-
52938
-
Lines 51893-51903 index 809899a92847..329aa27afaf0 100644 Link Here
51893
-        "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_window_property.cc"
53052
-        "/third_party/libwebrtc/modules/desktop_capture/linux/x11/x_window_property.cc"
51894
-    ]
53053
-    ]
51895
-
53054
-
51896
 Library("desktop_capture_generic_gn")
53055
 Library("desktop_capture_gn")
51897
diff --git third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
53056
diff --git third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build
51898
index 0c90f71d76bc..3c1d109d7338 100644
53057
deleted file mode 100644
51899
--- third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
53058
index e884abb54d56..000000000000
51900
+++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build
53059
--- third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build
53060
+++ /dev/null
53061
@@ -1,72 +0,0 @@
53062
-# This Source Code Form is subject to the terms of the Mozilla Public
53063
-# License, v. 2.0. If a copy of the MPL was not distributed with this
53064
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
53065
-
53066
-
53067
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
53068
-  ### DO NOT edit it by hand.                                       ###
53069
-
53070
-CMMFLAGS += [
53071
-    "-fobjc-arc"
53072
-]
53073
-
53074
-COMPILE_FLAGS["OS_INCLUDES"] = []
53075
-AllowCompilerWarnings()
53076
-
53077
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53078
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53079
-DEFINES["RTC_ENABLE_VP9"] = True
53080
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
53081
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
53082
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
53083
-DEFINES["WEBRTC_MAC"] = True
53084
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
53085
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
53086
-DEFINES["WEBRTC_POSIX"] = True
53087
-DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
53088
-DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
53089
-DEFINES["__STDC_CONSTANT_MACROS"] = True
53090
-DEFINES["__STDC_FORMAT_MACROS"] = True
53091
-
53092
-FINAL_LIBRARY = "webrtc"
53093
-
53094
-
53095
-LOCAL_INCLUDES += [
53096
-    "!/ipc/ipdl/_ipdlheaders",
53097
-    "/ipc/chromium/src",
53098
-    "/third_party/libwebrtc/",
53099
-    "/third_party/libwebrtc/sdk/objc/",
53100
-    "/third_party/libwebrtc/sdk/objc/base/",
53101
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
53102
-    "/tools/profiler/public"
53103
-]
53104
-
53105
-UNIFIED_SOURCES += [
53106
-    "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_configuration.mm",
53107
-    "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_frame_cgimage.mm",
53108
-    "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_frame_iosurface.mm",
53109
-    "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_frame_provider.mm",
53110
-    "/third_party/libwebrtc/modules/desktop_capture/mac/screen_capturer_mac.mm",
53111
-    "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm",
53112
-    "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_darwin.mm",
53113
-    "/third_party/libwebrtc/modules/desktop_capture/window_capturer_mac.mm",
53114
-    "/third_party/libwebrtc/modules/desktop_capture/window_finder_mac.mm"
53115
-]
53116
-
53117
-if not CONFIG["MOZ_DEBUG"]:
53118
-
53119
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
53120
-    DEFINES["NDEBUG"] = True
53121
-    DEFINES["NVALGRIND"] = True
53122
-
53123
-if CONFIG["MOZ_DEBUG"] == "1":
53124
-
53125
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
53126
-    DEFINES["_DEBUG"] = True
53127
-
53128
-if CONFIG["CPU_ARCH"] == "aarch64":
53129
-
53130
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
53131
-    DEFINES["WEBRTC_HAS_NEON"] = True
53132
-
53133
-Library("desktop_capture_objc_gn")
53134
diff --git third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build
53135
index c0ef33e2b342..01dae095db30 100644
53136
--- third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build
53137
+++ third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build
51901
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
53138
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
51902
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53139
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
51903
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53140
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 51919-51925 index 0c90f71d76bc..3c1d109d7338 100644 Link Here
51919
 
53156
 
51920
 FINAL_LIBRARY = "webrtc"
53157
 FINAL_LIBRARY = "webrtc"
51921
 
53158
 
51922
@@ -37,208 +47,14 @@ if not CONFIG["MOZ_DEBUG"]:
53159
@@ -47,138 +57,14 @@ if not CONFIG["MOZ_DEBUG"]:
51923
 if CONFIG["MOZ_DEBUG"] == "1":
53160
 if CONFIG["MOZ_DEBUG"] == "1":
51924
 
53161
 
51925
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
53162
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 51949-51959 index 0c90f71d76bc..3c1d109d7338 100644 Link Here
51949
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
53186
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
51950
-    DEFINES["__STDC_FORMAT_MACROS"] = True
53187
-    DEFINES["__STDC_FORMAT_MACROS"] = True
51951
-
53188
-
51952
-    OS_LIBS += [
51953
-        "dl",
51954
-        "rt"
51955
-    ]
51956
-
51957
-if CONFIG["OS_TARGET"] == "OpenBSD":
53189
-if CONFIG["OS_TARGET"] == "OpenBSD":
51958
-
53190
-
51959
-    DEFINES["USE_GLIB"] = "1"
53191
-    DEFINES["USE_GLIB"] = "1"
Lines 51962-51985 index 0c90f71d76bc..3c1d109d7338 100644 Link Here
51962
-    DEFINES["WEBRTC_BSD"] = True
53194
-    DEFINES["WEBRTC_BSD"] = True
51963
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53195
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
51964
-    DEFINES["WEBRTC_POSIX"] = True
53196
-    DEFINES["WEBRTC_POSIX"] = True
51965
-    DEFINES["WEBRTC_USE_X11"] = True
51966
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
53197
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
51967
-    DEFINES["_LARGEFILE64_SOURCE"] = True
53198
-    DEFINES["_LARGEFILE64_SOURCE"] = True
51968
-    DEFINES["_LARGEFILE_SOURCE"] = True
53199
-    DEFINES["_LARGEFILE_SOURCE"] = True
51969
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
53200
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
51970
-    DEFINES["__STDC_FORMAT_MACROS"] = True
53201
-    DEFINES["__STDC_FORMAT_MACROS"] = True
51971
-
53202
-
51972
-    OS_LIBS += [
51973
-        "X11",
51974
-        "Xcomposite",
51975
-        "Xdamage",
51976
-        "Xext",
51977
-        "Xfixes",
51978
-        "Xrandr",
51979
-        "Xrender",
51980
-        "Xtst"
51981
-    ]
51982
-
51983
-if CONFIG["OS_TARGET"] == "WINNT":
53203
-if CONFIG["OS_TARGET"] == "WINNT":
51984
-
53204
-
51985
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
53205
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
Lines 52006-52020 index 0c90f71d76bc..3c1d109d7338 100644 Link Here
52006
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
53226
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
52007
-    DEFINES["_WINDOWS"] = True
53227
-    DEFINES["_WINDOWS"] = True
52008
-    DEFINES["__STD_C"] = True
53228
-    DEFINES["__STD_C"] = True
52009
-
52010
-    OS_LIBS += [
52011
-        "crypt32",
52012
-        "d3d11",
52013
-        "dxgi",
52014
-        "iphlpapi",
52015
-        "secur32",
52016
-        "winmm"
52017
-    ]
52018
+    DEFINES["_DEBUG"] = True
53229
+    DEFINES["_DEBUG"] = True
52019
 
53230
 
52020
 if CONFIG["CPU_ARCH"] == "aarch64":
53231
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 52024-52029 index 0c90f71d76bc..3c1d109d7338 100644 Link Here
52024
 
53235
 
52025
-if CONFIG["CPU_ARCH"] == "arm":
53236
-if CONFIG["CPU_ARCH"] == "arm":
52026
-
53237
-
53238
-    CXXFLAGS += [
53239
-        "-mfpu=neon"
53240
-    ]
53241
-
52027
-    DEFINES["WEBRTC_ARCH_ARM"] = True
53242
-    DEFINES["WEBRTC_ARCH_ARM"] = True
52028
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
53243
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
52029
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53244
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 52033-52050 index 0c90f71d76bc..3c1d109d7338 100644 Link Here
52033
-if CONFIG["CPU_ARCH"] == "ppc64":
53248
-if CONFIG["CPU_ARCH"] == "ppc64":
52034
-
53249
-
52035
-    DEFINES["USE_X11"] = "1"
53250
-    DEFINES["USE_X11"] = "1"
52036
-    DEFINES["WEBRTC_USE_X11"] = True
52037
-
52038
-    OS_LIBS += [
52039
-        "X11",
52040
-        "Xcomposite",
52041
-        "Xdamage",
52042
-        "Xext",
52043
-        "Xfixes",
52044
-        "Xrandr",
52045
-        "Xrender",
52046
-        "Xtst"
52047
-    ]
52048
-
53251
-
52049
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
53252
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
52050
-
53253
-
Lines 52080-52217 index 0c90f71d76bc..3c1d109d7338 100644 Link Here
52080
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
53283
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
52081
-
53284
-
52082
-    DEFINES["USE_X11"] = "1"
53285
-    DEFINES["USE_X11"] = "1"
52083
-    DEFINES["WEBRTC_USE_X11"] = True
52084
-
52085
-    OS_LIBS += [
52086
-        "X11",
52087
-        "Xcomposite",
52088
-        "Xdamage",
52089
-        "Xext",
52090
-        "Xfixes",
52091
-        "Xrandr",
52092
-        "Xrender",
52093
-        "Xtst"
52094
-    ]
52095
-
53286
-
52096
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
53287
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
52097
-
53288
-
52098
-    DEFINES["USE_X11"] = "1"
53289
-    DEFINES["USE_X11"] = "1"
52099
-    DEFINES["WEBRTC_USE_X11"] = True
52100
-
52101
-    OS_LIBS += [
52102
-        "X11",
52103
-        "Xcomposite",
52104
-        "Xdamage",
52105
-        "Xext",
52106
-        "Xfixes",
52107
-        "Xrandr",
52108
-        "Xrender",
52109
-        "Xtst"
52110
-    ]
52111
-
53290
-
52112
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
53291
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
52113
-
53292
-
52114
-    DEFINES["USE_X11"] = "1"
53293
-    DEFINES["USE_X11"] = "1"
52115
-    DEFINES["WEBRTC_USE_X11"] = True
52116
-
52117
-    OS_LIBS += [
52118
-        "X11",
52119
-        "Xcomposite",
52120
-        "Xdamage",
52121
-        "Xext",
52122
-        "Xfixes",
52123
-        "Xrandr",
52124
-        "Xrender",
52125
-        "Xtst"
52126
-    ]
52127
-
53294
-
52128
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
53295
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
52129
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
53296
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
52130
 
53297
 
52131
     DEFINES["USE_X11"] = "1"
53298
     DEFINES["USE_X11"] = "1"
52132
     DEFINES["WEBRTC_USE_X11"] = True
53299
 
52133
diff --git third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build
53300
diff --git third_party/libwebrtc/modules/module_api_gn/moz.build third_party/libwebrtc/modules/module_api_gn/moz.build
52134
deleted file mode 100644
53301
index 9cb0e4d6203a..320177a15a95 100644
52135
index e884abb54d56..000000000000
53302
--- third_party/libwebrtc/modules/module_api_gn/moz.build
52136
--- third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build
53303
+++ third_party/libwebrtc/modules/module_api_gn/moz.build
52137
+++ /dev/null
52138
@@ -1,72 +0,0 @@
52139
-# This Source Code Form is subject to the terms of the Mozilla Public
52140
-# License, v. 2.0. If a copy of the MPL was not distributed with this
52141
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
52142
-
52143
-
52144
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
52145
-  ### DO NOT edit it by hand.                                       ###
52146
-
52147
-CMMFLAGS += [
52148
-    "-fobjc-arc"
52149
-]
52150
-
52151
-COMPILE_FLAGS["OS_INCLUDES"] = []
52152
-AllowCompilerWarnings()
52153
-
52154
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
52155
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
52156
-DEFINES["RTC_ENABLE_VP9"] = True
52157
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
52158
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
52159
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
52160
-DEFINES["WEBRTC_MAC"] = True
52161
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
52162
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
52163
-DEFINES["WEBRTC_POSIX"] = True
52164
-DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
52165
-DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
52166
-DEFINES["__STDC_CONSTANT_MACROS"] = True
52167
-DEFINES["__STDC_FORMAT_MACROS"] = True
52168
-
52169
-FINAL_LIBRARY = "webrtc"
52170
-
52171
-
52172
-LOCAL_INCLUDES += [
52173
-    "!/ipc/ipdl/_ipdlheaders",
52174
-    "/ipc/chromium/src",
52175
-    "/third_party/libwebrtc/",
52176
-    "/third_party/libwebrtc/sdk/objc/",
52177
-    "/third_party/libwebrtc/sdk/objc/base/",
52178
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
52179
-    "/tools/profiler/public"
52180
-]
52181
-
52182
-UNIFIED_SOURCES += [
52183
-    "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_configuration.mm",
52184
-    "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_frame_cgimage.mm",
52185
-    "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_frame_iosurface.mm",
52186
-    "/third_party/libwebrtc/modules/desktop_capture/mac/desktop_frame_provider.mm",
52187
-    "/third_party/libwebrtc/modules/desktop_capture/mac/screen_capturer_mac.mm",
52188
-    "/third_party/libwebrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm",
52189
-    "/third_party/libwebrtc/modules/desktop_capture/screen_capturer_darwin.mm",
52190
-    "/third_party/libwebrtc/modules/desktop_capture/window_capturer_mac.mm",
52191
-    "/third_party/libwebrtc/modules/desktop_capture/window_finder_mac.mm"
52192
-]
52193
-
52194
-if not CONFIG["MOZ_DEBUG"]:
52195
-
52196
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
52197
-    DEFINES["NDEBUG"] = True
52198
-    DEFINES["NVALGRIND"] = True
52199
-
52200
-if CONFIG["MOZ_DEBUG"] == "1":
52201
-
52202
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
52203
-    DEFINES["_DEBUG"] = True
52204
-
52205
-if CONFIG["CPU_ARCH"] == "aarch64":
52206
-
52207
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
52208
-    DEFINES["WEBRTC_HAS_NEON"] = True
52209
-
52210
-Library("desktop_capture_objc_gn")
52211
diff --git third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build
52212
index c0ef33e2b342..01dae095db30 100644
52213
--- third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build
52214
+++ third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build
52215
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
53304
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
52216
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53305
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
52217
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53306
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 52233-52243 index c0ef33e2b342..01dae095db30 100644 Link Here
52233
 
53322
 
52234
 FINAL_LIBRARY = "webrtc"
53323
 FINAL_LIBRARY = "webrtc"
52235
 
53324
 
52236
@@ -47,138 +57,14 @@ if not CONFIG["MOZ_DEBUG"]:
53325
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
52237
 if CONFIG["MOZ_DEBUG"] == "1":
53326
 if CONFIG["MOZ_DEBUG"] == "1":
52238
 
53327
 
52239
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
53328
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
52240
-
53329
-
53330
-if CONFIG["OS_TARGET"] == "Android":
53331
-
53332
-    DEFINES["ANDROID"] = True
53333
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
53334
-    DEFINES["HAVE_SYS_UIO_H"] = True
53335
-    DEFINES["WEBRTC_ANDROID"] = True
53336
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
53337
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53338
-    DEFINES["WEBRTC_LINUX"] = True
53339
-    DEFINES["WEBRTC_POSIX"] = True
53340
-    DEFINES["_GNU_SOURCE"] = True
53341
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
53342
-    DEFINES["__STDC_FORMAT_MACROS"] = True
53343
-
52241
-if CONFIG["OS_TARGET"] == "Darwin":
53344
-if CONFIG["OS_TARGET"] == "Darwin":
52242
-
53345
-
52243
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53346
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 52312-52330 index c0ef33e2b342..01dae095db30 100644 Link Here
52312
 
53415
 
52313
-if CONFIG["CPU_ARCH"] == "arm":
53416
-if CONFIG["CPU_ARCH"] == "arm":
52314
-
53417
-
52315
-    CXXFLAGS += [
52316
-        "-mfpu=neon"
52317
-    ]
52318
-
52319
-    DEFINES["WEBRTC_ARCH_ARM"] = True
53418
-    DEFINES["WEBRTC_ARCH_ARM"] = True
52320
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
53419
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
52321
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
52322
-    DEFINES["WEBRTC_HAS_NEON"] = True
53420
-    DEFINES["WEBRTC_HAS_NEON"] = True
52323
-    DEFINES["_GNU_SOURCE"] = True
52324
-
53421
-
52325
-if CONFIG["CPU_ARCH"] == "ppc64":
53422
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
52326
-
53423
-
52327
-    DEFINES["USE_X11"] = "1"
53424
-    DEFINES["_DEBUG"] = True
52328
-
53425
-
52329
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
53426
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
52330
-
53427
-
Lines 52342-52383 index c0ef33e2b342..01dae095db30 100644 Link Here
52342
-
53439
-
52343
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
53440
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
52344
-
53441
-
53442
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
53443
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
53444
 
53445
     DEFINES["USE_X11"] = "1"
53446
 
53447
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
53448
-
53449
-    OS_LIBS += [
53450
-        "android_support",
53451
-        "unwind"
53452
-    ]
53453
-
53454
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
53455
-
53456
-    OS_LIBS += [
53457
-        "android_support"
53458
-    ]
53459
-
52345
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
53460
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
52346
-
53461
-
52347
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53462
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
52348
-    DEFINES["_GNU_SOURCE"] = True
53463
-    DEFINES["_GNU_SOURCE"] = True
52349
-
53464
-
52350
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
53465
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
52351
-
53466
-
52352
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53467
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
52353
-    DEFINES["_GNU_SOURCE"] = True
53468
-    DEFINES["_GNU_SOURCE"] = True
52354
-
53469
-
52355
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
53470
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
52356
-
53471
-
52357
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53472
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
52358
-    DEFINES["_GNU_SOURCE"] = True
53473
-    DEFINES["_GNU_SOURCE"] = True
52359
-
53474
-
52360
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
53475
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
52361
-
52362
-    DEFINES["USE_X11"] = "1"
52363
-
52364
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
52365
-
52366
-    DEFINES["USE_X11"] = "1"
52367
-
52368
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
52369
-
53476
-
52370
-    DEFINES["USE_X11"] = "1"
53477
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53478
-    DEFINES["_GNU_SOURCE"] = True
52371
-
53479
-
52372
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
53480
 Library("module_api_gn")
52373
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
53481
diff --git third_party/libwebrtc/modules/module_api_public_gn/moz.build third_party/libwebrtc/modules/module_api_public_gn/moz.build
52374
 
53482
index 03b9f6c4e5e6..4100fd966dea 100644
52375
     DEFINES["USE_X11"] = "1"
53483
--- third_party/libwebrtc/modules/module_api_public_gn/moz.build
52376
 
53484
+++ third_party/libwebrtc/modules/module_api_public_gn/moz.build
52377
diff --git third_party/libwebrtc/modules/module_api_gn/moz.build third_party/libwebrtc/modules/module_api_gn/moz.build
52378
index 9cb0e4d6203a..320177a15a95 100644
52379
--- third_party/libwebrtc/modules/module_api_gn/moz.build
52380
+++ third_party/libwebrtc/modules/module_api_gn/moz.build
52381
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
53485
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
52382
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53486
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
52383
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53487
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 52554-52564 index 9cb0e4d6203a..320177a15a95 100644 Link Here
52554
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53658
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
52555
-    DEFINES["_GNU_SOURCE"] = True
53659
-    DEFINES["_GNU_SOURCE"] = True
52556
-
53660
-
52557
 Library("module_api_gn")
53661
 Library("module_api_public_gn")
52558
diff --git third_party/libwebrtc/modules/module_api_public_gn/moz.build third_party/libwebrtc/modules/module_api_public_gn/moz.build
53662
diff --git third_party/libwebrtc/modules/module_fec_api_gn/moz.build third_party/libwebrtc/modules/module_fec_api_gn/moz.build
52559
index 03b9f6c4e5e6..4100fd966dea 100644
53663
index 4c59791a1007..12fac51de819 100644
52560
--- third_party/libwebrtc/modules/module_api_public_gn/moz.build
53664
--- third_party/libwebrtc/modules/module_fec_api_gn/moz.build
52561
+++ third_party/libwebrtc/modules/module_api_public_gn/moz.build
53665
+++ third_party/libwebrtc/modules/module_fec_api_gn/moz.build
52562
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
53666
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
52563
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53667
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
52564
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53668
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 52735-52745 index 03b9f6c4e5e6..4100fd966dea 100644 Link Here
52735
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53839
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
52736
-    DEFINES["_GNU_SOURCE"] = True
53840
-    DEFINES["_GNU_SOURCE"] = True
52737
-
53841
-
52738
 Library("module_api_public_gn")
53842
 Library("module_fec_api_gn")
52739
diff --git third_party/libwebrtc/modules/module_fec_api_gn/moz.build third_party/libwebrtc/modules/module_fec_api_gn/moz.build
53843
diff --git third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build
52740
index 4c59791a1007..12fac51de819 100644
53844
index f03ff5ebcd21..e7500b1da54a 100644
52741
--- third_party/libwebrtc/modules/module_fec_api_gn/moz.build
53845
--- third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build
52742
+++ third_party/libwebrtc/modules/module_fec_api_gn/moz.build
53846
+++ third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build
52743
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
53847
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
52744
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53848
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
52745
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53849
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 52761-52767 index 4c59791a1007..12fac51de819 100644 Link Here
52761
 
53865
 
52762
 FINAL_LIBRARY = "webrtc"
53866
 FINAL_LIBRARY = "webrtc"
52763
 
53867
 
52764
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
53868
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
52765
 if CONFIG["MOZ_DEBUG"] == "1":
53869
 if CONFIG["MOZ_DEBUG"] == "1":
52766
 
53870
 
52767
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
53871
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 52780-52785 index 4c59791a1007..12fac51de819 100644 Link Here
52780
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
53884
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
52781
-    DEFINES["__STDC_FORMAT_MACROS"] = True
53885
-    DEFINES["__STDC_FORMAT_MACROS"] = True
52782
-
53886
-
53887
-    OS_LIBS += [
53888
-        "log"
53889
-    ]
53890
-
52783
-if CONFIG["OS_TARGET"] == "Darwin":
53891
-if CONFIG["OS_TARGET"] == "Darwin":
52784
-
53892
-
52785
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53893
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 52854-52859 index 4c59791a1007..12fac51de819 100644 Link Here
52854
 
53962
 
52855
-if CONFIG["CPU_ARCH"] == "arm":
53963
-if CONFIG["CPU_ARCH"] == "arm":
52856
-
53964
-
53965
-    CXXFLAGS += [
53966
-        "-mfpu=neon"
53967
-    ]
53968
-
52857
-    DEFINES["WEBRTC_ARCH_ARM"] = True
53969
-    DEFINES["WEBRTC_ARCH_ARM"] = True
52858
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
53970
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
52859
-    DEFINES["WEBRTC_HAS_NEON"] = True
53971
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 52916-52926 index 4c59791a1007..12fac51de819 100644 Link Here
52916
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54028
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
52917
-    DEFINES["_GNU_SOURCE"] = True
54029
-    DEFINES["_GNU_SOURCE"] = True
52918
-
54030
-
52919
 Library("module_fec_api_gn")
54031
 Library("interval_budget_gn")
52920
diff --git third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build
54032
diff --git third_party/libwebrtc/modules/pacing/pacing_gn/moz.build third_party/libwebrtc/modules/pacing/pacing_gn/moz.build
52921
index f03ff5ebcd21..e7500b1da54a 100644
54033
index eb2187efdcd8..beebc743cd97 100644
52922
--- third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build
54034
--- third_party/libwebrtc/modules/pacing/pacing_gn/moz.build
52923
+++ third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build
54035
+++ third_party/libwebrtc/modules/pacing/pacing_gn/moz.build
52924
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
54036
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
52925
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54037
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
52926
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
54038
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 52942-52948 index f03ff5ebcd21..e7500b1da54a 100644 Link Here
52942
 
54054
 
52943
 FINAL_LIBRARY = "webrtc"
54055
 FINAL_LIBRARY = "webrtc"
52944
 
54056
 
52945
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
54057
@@ -49,174 +59,15 @@ if not CONFIG["MOZ_DEBUG"]:
52946
 if CONFIG["MOZ_DEBUG"] == "1":
54058
 if CONFIG["MOZ_DEBUG"] == "1":
52947
 
54059
 
52948
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
54060
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 52962-52967 index f03ff5ebcd21..e7500b1da54a 100644 Link Here
52962
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54074
-    DEFINES["__STDC_FORMAT_MACROS"] = True
52963
-
54075
-
52964
-    OS_LIBS += [
54076
-    OS_LIBS += [
54077
-        "GLESv2",
52965
-        "log"
54078
-        "log"
52966
-    ]
54079
-    ]
52967
-
54080
-
Lines 52990-52995 index f03ff5ebcd21..e7500b1da54a 100644 Link Here
52990
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
54103
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
52991
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54104
-    DEFINES["__STDC_FORMAT_MACROS"] = True
52992
-
54105
-
54106
-    OS_LIBS += [
54107
-        "dl",
54108
-        "rt"
54109
-    ]
54110
-
52993
-if CONFIG["OS_TARGET"] == "OpenBSD":
54111
-if CONFIG["OS_TARGET"] == "OpenBSD":
52994
-
54112
-
52995
-    DEFINES["USE_GLIB"] = "1"
54113
-    DEFINES["USE_GLIB"] = "1"
Lines 53030-53035 index f03ff5ebcd21..e7500b1da54a 100644 Link Here
53030
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
54148
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
53031
-    DEFINES["_WINDOWS"] = True
54149
-    DEFINES["_WINDOWS"] = True
53032
-    DEFINES["__STD_C"] = True
54150
-    DEFINES["__STD_C"] = True
54151
-
54152
-    OS_LIBS += [
54153
-        "crypt32",
54154
-        "iphlpapi",
54155
-        "secur32",
54156
-        "winmm"
54157
-    ]
53033
+    DEFINES["_DEBUG"] = True
54158
+    DEFINES["_DEBUG"] = True
53034
 
54159
 
53035
 if CONFIG["CPU_ARCH"] == "aarch64":
54160
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 53105-53117 index f03ff5ebcd21..e7500b1da54a 100644 Link Here
53105
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54230
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53106
-    DEFINES["_GNU_SOURCE"] = True
54231
-    DEFINES["_GNU_SOURCE"] = True
53107
-
54232
-
53108
 Library("interval_budget_gn")
54233
 Library("pacing_gn")
53109
diff --git third_party/libwebrtc/modules/pacing/pacing_gn/moz.build third_party/libwebrtc/modules/pacing/pacing_gn/moz.build
54234
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
53110
index d899917672bd..e7a8d4dd1960 100644
54235
index 7af9c5fc0071..c4b2d55b1a59 100644
53111
--- third_party/libwebrtc/modules/pacing/pacing_gn/moz.build
54236
--- third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build
53112
+++ third_party/libwebrtc/modules/pacing/pacing_gn/moz.build
54237
+++ third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build
53113
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
54238
@@ -13,10 +13,20 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53114
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54239
 DEFINES["BWE_TEST_LOGGING_COMPILE_TIME_ENABLE"] = "0"
53115
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
54240
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53116
 DEFINES["RTC_ENABLE_VP9"] = True
54241
 DEFINES["RTC_ENABLE_VP9"] = True
53117
+DEFINES["USE_GLIB"] = "1"
54242
+DEFINES["USE_GLIB"] = "1"
Lines 53131-53137 index d899917672bd..e7a8d4dd1960 100644 Link Here
53131
 
54256
 
53132
 FINAL_LIBRARY = "webrtc"
54257
 FINAL_LIBRARY = "webrtc"
53133
 
54258
 
53134
@@ -50,174 +60,15 @@ if not CONFIG["MOZ_DEBUG"]:
54259
@@ -53,174 +63,15 @@ if not CONFIG["MOZ_DEBUG"]:
53135
 if CONFIG["MOZ_DEBUG"] == "1":
54260
 if CONFIG["MOZ_DEBUG"] == "1":
53136
 
54261
 
53137
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
54262
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 53307-53319 index d899917672bd..e7a8d4dd1960 100644 Link Here
53307
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54432
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53308
-    DEFINES["_GNU_SOURCE"] = True
54433
-    DEFINES["_GNU_SOURCE"] = True
53309
-
54434
-
53310
 Library("pacing_gn")
54435
 Library("remote_bitrate_estimator_gn")
53311
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
54436
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
53312
index 7af9c5fc0071..c4b2d55b1a59 100644
54437
index 800b7ccea105..f5f609138c1e 100644
53313
--- third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build
54438
--- third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build
53314
+++ third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build
54439
+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build
53315
@@ -13,10 +13,20 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54440
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
53316
 DEFINES["BWE_TEST_LOGGING_COMPILE_TIME_ENABLE"] = "0"
54441
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53317
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
54442
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53318
 DEFINES["RTC_ENABLE_VP9"] = True
54443
 DEFINES["RTC_ENABLE_VP9"] = True
53319
+DEFINES["USE_GLIB"] = "1"
54444
+DEFINES["USE_GLIB"] = "1"
Lines 53333-53339 index 7af9c5fc0071..c4b2d55b1a59 100644 Link Here
53333
 
54458
 
53334
 FINAL_LIBRARY = "webrtc"
54459
 FINAL_LIBRARY = "webrtc"
53335
 
54460
 
53336
@@ -53,174 +63,15 @@ if not CONFIG["MOZ_DEBUG"]:
54461
@@ -84,174 +94,15 @@ if not CONFIG["MOZ_DEBUG"]:
53337
 if CONFIG["MOZ_DEBUG"] == "1":
54462
 if CONFIG["MOZ_DEBUG"] == "1":
53338
 
54463
 
53339
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
54464
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 53509-53521 index 7af9c5fc0071..c4b2d55b1a59 100644 Link Here
53509
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54634
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53510
-    DEFINES["_GNU_SOURCE"] = True
54635
-    DEFINES["_GNU_SOURCE"] = True
53511
-
54636
-
53512
 Library("remote_bitrate_estimator_gn")
54637
 Library("rtp_rtcp_format_gn")
53513
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
54638
diff --git third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build
53514
index 800b7ccea105..f5f609138c1e 100644
54639
index 4e7d516d4b7f..bb1a3d90307d 100644
53515
--- third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build
54640
--- third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build
53516
+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build
54641
+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build
53517
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
54642
@@ -13,10 +13,20 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53518
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54643
 DEFINES["BWE_TEST_LOGGING_COMPILE_TIME_ENABLE"] = "0"
53519
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
54644
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53520
 DEFINES["RTC_ENABLE_VP9"] = True
54645
 DEFINES["RTC_ENABLE_VP9"] = True
53521
+DEFINES["USE_GLIB"] = "1"
54646
+DEFINES["USE_GLIB"] = "1"
Lines 53535-53541 index 800b7ccea105..f5f609138c1e 100644 Link Here
53535
 
54660
 
53536
 FINAL_LIBRARY = "webrtc"
54661
 FINAL_LIBRARY = "webrtc"
53537
 
54662
 
53538
@@ -84,174 +94,15 @@ if not CONFIG["MOZ_DEBUG"]:
54663
@@ -93,174 +103,15 @@ if not CONFIG["MOZ_DEBUG"]:
53539
 if CONFIG["MOZ_DEBUG"] == "1":
54664
 if CONFIG["MOZ_DEBUG"] == "1":
53540
 
54665
 
53541
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
54666
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 53711-53723 index 800b7ccea105..f5f609138c1e 100644 Link Here
53711
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54836
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53712
-    DEFINES["_GNU_SOURCE"] = True
54837
-    DEFINES["_GNU_SOURCE"] = True
53713
-
54838
-
53714
 Library("rtp_rtcp_format_gn")
54839
 Library("rtp_rtcp_gn")
53715
diff --git third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build
54840
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
53716
index 4e7d516d4b7f..bb1a3d90307d 100644
54841
index 7bb5cb10cee9..f2555eb6396b 100644
53717
--- third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build
54842
--- third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build
53718
+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build
54843
+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build
53719
@@ -13,10 +13,20 @@ DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54844
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
53720
 DEFINES["BWE_TEST_LOGGING_COMPILE_TIME_ENABLE"] = "0"
54845
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53721
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
54846
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
53722
 DEFINES["RTC_ENABLE_VP9"] = True
54847
 DEFINES["RTC_ENABLE_VP9"] = True
53723
+DEFINES["USE_GLIB"] = "1"
54848
+DEFINES["USE_GLIB"] = "1"
Lines 53737-53743 index 4e7d516d4b7f..bb1a3d90307d 100644 Link Here
53737
 
54862
 
53738
 FINAL_LIBRARY = "webrtc"
54863
 FINAL_LIBRARY = "webrtc"
53739
 
54864
 
53740
@@ -93,174 +103,15 @@ if not CONFIG["MOZ_DEBUG"]:
54865
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
53741
 if CONFIG["MOZ_DEBUG"] == "1":
54866
 if CONFIG["MOZ_DEBUG"] == "1":
53742
 
54867
 
53743
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
54868
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 53757-53763 index 4e7d516d4b7f..bb1a3d90307d 100644 Link Here
53757
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54882
-    DEFINES["__STDC_FORMAT_MACROS"] = True
53758
-
54883
-
53759
-    OS_LIBS += [
54884
-    OS_LIBS += [
53760
-        "GLESv2",
53761
-        "log"
54885
-        "log"
53762
-    ]
54886
-    ]
53763
-
54887
-
Lines 53786-53796 index 4e7d516d4b7f..bb1a3d90307d 100644 Link Here
53786
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
54910
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
53787
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54911
-    DEFINES["__STDC_FORMAT_MACROS"] = True
53788
-
54912
-
53789
-    OS_LIBS += [
53790
-        "dl",
53791
-        "rt"
53792
-    ]
53793
-
53794
-if CONFIG["OS_TARGET"] == "OpenBSD":
54913
-if CONFIG["OS_TARGET"] == "OpenBSD":
53795
-
54914
-
53796
-    DEFINES["USE_GLIB"] = "1"
54915
-    DEFINES["USE_GLIB"] = "1"
Lines 53833-53841 index 4e7d516d4b7f..bb1a3d90307d 100644 Link Here
53833
-    DEFINES["__STD_C"] = True
54952
-    DEFINES["__STD_C"] = True
53834
-
54953
-
53835
-    OS_LIBS += [
54954
-    OS_LIBS += [
53836
-        "crypt32",
53837
-        "iphlpapi",
53838
-        "secur32",
53839
-        "winmm"
54955
-        "winmm"
53840
-    ]
54956
-    ]
53841
+    DEFINES["_DEBUG"] = True
54957
+    DEFINES["_DEBUG"] = True
Lines 53913-53923 index 4e7d516d4b7f..bb1a3d90307d 100644 Link Here
53913
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55029
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
53914
-    DEFINES["_GNU_SOURCE"] = True
55030
-    DEFINES["_GNU_SOURCE"] = True
53915
-
55031
-
53916
 Library("rtp_rtcp_gn")
55032
 Library("rtp_video_header_gn")
53917
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
55033
diff --git third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build
53918
index 7bb5cb10cee9..f2555eb6396b 100644
55034
index f03573036511..1f2604f215ba 100644
53919
--- third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build
55035
--- third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build
53920
+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build
55036
+++ third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build
55037
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55038
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55039
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
55040
 DEFINES["RTC_ENABLE_VP9"] = True
55041
+DEFINES["USE_GLIB"] = "1"
55042
+DEFINES["USE_OZONE"] = "1"
55043
+DEFINES["WEBRTC_BSD"] = True
55044
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
55045
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
55046
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
55047
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
55048
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
55049
+DEFINES["WEBRTC_POSIX"] = True
55050
+DEFINES["_FILE_OFFSET_BITS"] = "64"
55051
+DEFINES["_LARGEFILE64_SOURCE"] = True
55052
+DEFINES["_LARGEFILE_SOURCE"] = True
55053
+DEFINES["__STDC_CONSTANT_MACROS"] = True
55054
+DEFINES["__STDC_FORMAT_MACROS"] = True
55055
 
55056
 FINAL_LIBRARY = "webrtc"
55057
 
55058
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
55059
 if CONFIG["MOZ_DEBUG"] == "1":
55060
 
55061
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
55062
-
55063
-if CONFIG["OS_TARGET"] == "Android":
55064
-
55065
-    DEFINES["ANDROID"] = True
55066
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
55067
-    DEFINES["HAVE_SYS_UIO_H"] = True
55068
-    DEFINES["WEBRTC_ANDROID"] = True
55069
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
55070
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55071
-    DEFINES["WEBRTC_LINUX"] = True
55072
-    DEFINES["WEBRTC_POSIX"] = True
55073
-    DEFINES["_GNU_SOURCE"] = True
55074
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55075
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55076
-
55077
-if CONFIG["OS_TARGET"] == "Darwin":
55078
-
55079
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55080
-    DEFINES["WEBRTC_MAC"] = True
55081
-    DEFINES["WEBRTC_POSIX"] = True
55082
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
55083
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
55084
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55085
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55086
-
55087
-if CONFIG["OS_TARGET"] == "Linux":
55088
-
55089
-    DEFINES["USE_AURA"] = "1"
55090
-    DEFINES["USE_GLIB"] = "1"
55091
-    DEFINES["USE_NSS_CERTS"] = "1"
55092
-    DEFINES["USE_OZONE"] = "1"
55093
-    DEFINES["USE_UDEV"] = True
55094
-    DEFINES["WEBRTC_LINUX"] = True
55095
-    DEFINES["WEBRTC_POSIX"] = True
55096
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
55097
-    DEFINES["_LARGEFILE64_SOURCE"] = True
55098
-    DEFINES["_LARGEFILE_SOURCE"] = True
55099
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55100
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55101
-
55102
-if CONFIG["OS_TARGET"] == "OpenBSD":
55103
-
55104
-    DEFINES["USE_GLIB"] = "1"
55105
-    DEFINES["USE_OZONE"] = "1"
55106
-    DEFINES["USE_X11"] = "1"
55107
-    DEFINES["WEBRTC_BSD"] = True
55108
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55109
-    DEFINES["WEBRTC_POSIX"] = True
55110
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
55111
-    DEFINES["_LARGEFILE64_SOURCE"] = True
55112
-    DEFINES["_LARGEFILE_SOURCE"] = True
55113
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55114
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55115
-
55116
-if CONFIG["OS_TARGET"] == "WINNT":
55117
-
55118
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
55119
-    DEFINES["NOMINMAX"] = True
55120
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
55121
-    DEFINES["PSAPI_VERSION"] = "2"
55122
-    DEFINES["UNICODE"] = True
55123
-    DEFINES["USE_AURA"] = "1"
55124
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55125
-    DEFINES["WEBRTC_WIN"] = True
55126
-    DEFINES["WIN32"] = True
55127
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
55128
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
55129
-    DEFINES["WINVER"] = "0x0A00"
55130
-    DEFINES["_ATL_NO_OPENGL"] = True
55131
-    DEFINES["_CRT_RAND_S"] = True
55132
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
55133
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
55134
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
55135
-    DEFINES["_HAS_NODISCARD"] = True
55136
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
55137
-    DEFINES["_SECURE_ATL"] = True
55138
-    DEFINES["_UNICODE"] = True
55139
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
55140
-    DEFINES["_WINDOWS"] = True
55141
-    DEFINES["__STD_C"] = True
55142
+    DEFINES["_DEBUG"] = True
55143
 
55144
 if CONFIG["CPU_ARCH"] == "aarch64":
55145
 
55146
     DEFINES["WEBRTC_ARCH_ARM64"] = True
55147
     DEFINES["WEBRTC_HAS_NEON"] = True
55148
 
55149
-if CONFIG["CPU_ARCH"] == "arm":
55150
-
55151
-    CFLAGS += [
55152
-        "-mfpu=neon"
55153
-    ]
55154
-
55155
-    DEFINES["WEBRTC_ARCH_ARM"] = True
55156
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
55157
-    DEFINES["WEBRTC_HAS_NEON"] = True
55158
-
55159
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
55160
-
55161
-    DEFINES["_DEBUG"] = True
55162
-
55163
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
55164
-
55165
-    DEFINES["_DEBUG"] = True
55166
-
55167
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
55168
-
55169
-    DEFINES["_DEBUG"] = True
55170
-
55171
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
55172
-
55173
-    DEFINES["_DEBUG"] = True
55174
-
55175
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
55176
-
55177
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
55178
-
55179
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
55180
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
55181
 
55182
     DEFINES["USE_X11"] = "1"
55183
 
55184
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
55185
-
55186
-    OS_LIBS += [
55187
-        "android_support",
55188
-        "unwind"
55189
-    ]
55190
-
55191
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
55192
-
55193
-    OS_LIBS += [
55194
-        "android_support"
55195
-    ]
55196
-
55197
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
55198
-
55199
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55200
-    DEFINES["_GNU_SOURCE"] = True
55201
-
55202
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
55203
-
55204
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55205
-    DEFINES["_GNU_SOURCE"] = True
55206
-
55207
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
55208
-
55209
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55210
-    DEFINES["_GNU_SOURCE"] = True
55211
-
55212
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
55213
-
55214
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55215
-    DEFINES["_GNU_SOURCE"] = True
55216
-
55217
 Library("fft_gn")
55218
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
55219
index 240656c0f3f0..a30888bae720 100644
55220
--- third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build
55221
+++ third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build
53921
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55222
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
53922
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55223
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
53923
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
55224
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 53939-53945 index 7bb5cb10cee9..f2555eb6396b 100644 Link Here
53939
 
55240
 
53940
 FINAL_LIBRARY = "webrtc"
55241
 FINAL_LIBRARY = "webrtc"
53941
 
55242
 
53942
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
55243
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
53943
 if CONFIG["MOZ_DEBUG"] == "1":
55244
 if CONFIG["MOZ_DEBUG"] == "1":
53944
 
55245
 
53945
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
55246
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 53958-53967 index 7bb5cb10cee9..f2555eb6396b 100644 Link Here
53958
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55259
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
53959
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55260
-    DEFINES["__STDC_FORMAT_MACROS"] = True
53960
-
55261
-
53961
-    OS_LIBS += [
53962
-        "log"
53963
-    ]
53964
-
53965
-if CONFIG["OS_TARGET"] == "Darwin":
55262
-if CONFIG["OS_TARGET"] == "Darwin":
53966
-
55263
-
53967
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55264
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 54027-54036 index 7bb5cb10cee9..f2555eb6396b 100644 Link Here
54027
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
55324
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
54028
-    DEFINES["_WINDOWS"] = True
55325
-    DEFINES["_WINDOWS"] = True
54029
-    DEFINES["__STD_C"] = True
55326
-    DEFINES["__STD_C"] = True
54030
-
54031
-    OS_LIBS += [
54032
-        "winmm"
54033
-    ]
54034
+    DEFINES["_DEBUG"] = True
55327
+    DEFINES["_DEBUG"] = True
54035
 
55328
 
54036
 if CONFIG["CPU_ARCH"] == "aarch64":
55329
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 54040-54046 index 7bb5cb10cee9..f2555eb6396b 100644 Link Here
54040
 
55333
 
54041
-if CONFIG["CPU_ARCH"] == "arm":
55334
-if CONFIG["CPU_ARCH"] == "arm":
54042
-
55335
-
54043
-    CXXFLAGS += [
55336
-    CFLAGS += [
54044
-        "-mfpu=neon"
55337
-        "-mfpu=neon"
54045
-    ]
55338
-    ]
54046
-
55339
-
Lines 54106-54116 index 7bb5cb10cee9..f2555eb6396b 100644 Link Here
54106
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55399
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54107
-    DEFINES["_GNU_SOURCE"] = True
55400
-    DEFINES["_GNU_SOURCE"] = True
54108
-
55401
-
54109
 Library("rtp_video_header_gn")
55402
 Library("g711_3p_gn")
54110
diff --git third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build
55403
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
54111
index f03573036511..1f2604f215ba 100644
55404
index 3657b2cbe0f6..af48f581b06c 100644
54112
--- third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build
55405
--- third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build
54113
+++ third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build
55406
+++ third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build
54114
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55407
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
54115
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55408
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54116
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
55409
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 54132-54138 index f03573036511..1f2604f215ba 100644 Link Here
54132
 
55425
 
54133
 FINAL_LIBRARY = "webrtc"
55426
 FINAL_LIBRARY = "webrtc"
54134
 
55427
 
54135
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
55428
@@ -45,157 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
54136
 if CONFIG["MOZ_DEBUG"] == "1":
55429
 if CONFIG["MOZ_DEBUG"] == "1":
54137
 
55430
 
54138
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
55431
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 54291-54301 index f03573036511..1f2604f215ba 100644 Link Here
54291
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55584
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54292
-    DEFINES["_GNU_SOURCE"] = True
55585
-    DEFINES["_GNU_SOURCE"] = True
54293
-
55586
-
54294
 Library("fft_gn")
55587
 Library("g722_3p_gn")
54295
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
55588
diff --git third_party/libwebrtc/modules/utility/utility_gn/moz.build third_party/libwebrtc/modules/utility/utility_gn/moz.build
54296
index 240656c0f3f0..a30888bae720 100644
55589
index 5b578af55e2d..dba1235df3b3 100644
54297
--- third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build
55590
--- third_party/libwebrtc/modules/utility/utility_gn/moz.build
54298
+++ third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build
55591
+++ third_party/libwebrtc/modules/utility/utility_gn/moz.build
54299
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55592
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
54300
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55593
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54301
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
55594
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 54317-54323 index 240656c0f3f0..a30888bae720 100644 Link Here
54317
 
55610
 
54318
 FINAL_LIBRARY = "webrtc"
55611
 FINAL_LIBRARY = "webrtc"
54319
 
55612
 
54320
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
55613
@@ -37,166 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
54321
 if CONFIG["MOZ_DEBUG"] == "1":
55614
 if CONFIG["MOZ_DEBUG"] == "1":
54322
 
55615
 
54323
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
55616
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 54336-54341 index 240656c0f3f0..a30888bae720 100644 Link Here
54336
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55629
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
54337
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55630
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54338
-
55631
-
55632
-    OS_LIBS += [
55633
-        "log"
55634
-    ]
55635
-
55636
-    UNIFIED_SOURCES += [
55637
-        "/third_party/libwebrtc/modules/utility/source/helpers_android.cc",
55638
-        "/third_party/libwebrtc/modules/utility/source/jvm_android.cc"
55639
-    ]
55640
-
54339
-if CONFIG["OS_TARGET"] == "Darwin":
55641
-if CONFIG["OS_TARGET"] == "Darwin":
54340
-
55642
-
54341
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55643
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 54410-54419 index 240656c0f3f0..a30888bae720 100644 Link Here
54410
 
55712
 
54411
-if CONFIG["CPU_ARCH"] == "arm":
55713
-if CONFIG["CPU_ARCH"] == "arm":
54412
-
55714
-
54413
-    CFLAGS += [
54414
-        "-mfpu=neon"
54415
-    ]
54416
-
54417
-    DEFINES["WEBRTC_ARCH_ARM"] = True
55715
-    DEFINES["WEBRTC_ARCH_ARM"] = True
54418
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
55716
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
54419
-    DEFINES["WEBRTC_HAS_NEON"] = True
55717
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 54445-54450 index 240656c0f3f0..a30888bae720 100644 Link Here
54445
 
55743
 
54446
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
55744
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
54447
-
55745
-
55746
-    CXXFLAGS += [
55747
-        "-mfpu=neon"
55748
-    ]
55749
-
54448
-    OS_LIBS += [
55750
-    OS_LIBS += [
54449
-        "android_support",
55751
-        "android_support",
54450
-        "unwind"
55752
-        "unwind"
Lines 54476-54486 index 240656c0f3f0..a30888bae720 100644 Link Here
54476
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55778
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54477
-    DEFINES["_GNU_SOURCE"] = True
55779
-    DEFINES["_GNU_SOURCE"] = True
54478
-
55780
-
54479
 Library("g711_3p_gn")
55781
 Library("utility_gn")
54480
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
55782
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
54481
index 3657b2cbe0f6..af48f581b06c 100644
55783
index d7b98c3a7818..3fcb8eb39e05 100644
54482
--- third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build
55784
--- third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build
54483
+++ third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build
55785
+++ third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build
54484
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55786
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
54485
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55787
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54486
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
55788
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 54502-54508 index 3657b2cbe0f6..af48f581b06c 100644 Link Here
54502
 
55804
 
54503
 FINAL_LIBRARY = "webrtc"
55805
 FINAL_LIBRARY = "webrtc"
54504
 
55806
 
54505
@@ -45,157 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
55807
@@ -28,6 +38,13 @@ LOCAL_INCLUDES += [
55808
     "/tools/profiler/public"
55809
 ]
55810
 
55811
+UNIFIED_SOURCES += [
55812
+    "/third_party/libwebrtc/modules/video_capture/linux/device_info_linux.cc",
55813
+    "/third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc",
55814
+    "/third_party/libwebrtc/modules/video_capture/linux/video_capture_linux.cc",
55815
+    "/third_party/libwebrtc/modules/video_capture/linux/video_capture_v4l2.cc"
55816
+]
55817
+
55818
 if not CONFIG["MOZ_DEBUG"]:
55819
 
55820
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
55821
@@ -37,203 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
54506
 if CONFIG["MOZ_DEBUG"] == "1":
55822
 if CONFIG["MOZ_DEBUG"] == "1":
54507
 
55823
 
54508
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
55824
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 54521-54526 index 3657b2cbe0f6..af48f581b06c 100644 Link Here
54521
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55837
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
54522
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55838
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54523
-
55839
-
55840
-    OS_LIBS += [
55841
-        "GLESv2",
55842
-        "log"
55843
-    ]
55844
-
54524
-if CONFIG["OS_TARGET"] == "Darwin":
55845
-if CONFIG["OS_TARGET"] == "Darwin":
54525
-
55846
-
54526
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55847
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 54546-54551 index 3657b2cbe0f6..af48f581b06c 100644 Link Here
54546
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55867
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
54547
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55868
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54548
-
55869
-
55870
-    OS_LIBS += [
55871
-        "dl",
55872
-        "rt"
55873
-    ]
55874
-
55875
-    UNIFIED_SOURCES += [
55876
-        "/third_party/libwebrtc/modules/video_capture/linux/device_info_linux.cc",
55877
-        "/third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc",
55878
-        "/third_party/libwebrtc/modules/video_capture/linux/video_capture_linux.cc",
55879
-        "/third_party/libwebrtc/modules/video_capture/linux/video_capture_v4l2.cc"
55880
-    ]
55881
-
54549
-if CONFIG["OS_TARGET"] == "OpenBSD":
55882
-if CONFIG["OS_TARGET"] == "OpenBSD":
54550
-
55883
-
54551
-    DEFINES["USE_GLIB"] = "1"
55884
-    DEFINES["USE_GLIB"] = "1"
Lines 54560-54565 index 3657b2cbe0f6..af48f581b06c 100644 Link Here
54560
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55893
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
54561
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55894
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54562
-
55895
-
55896
-    UNIFIED_SOURCES += [
55897
-        "/third_party/libwebrtc/modules/video_capture/linux/device_info_linux.cc",
55898
-        "/third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc",
55899
-        "/third_party/libwebrtc/modules/video_capture/linux/video_capture_linux.cc",
55900
-        "/third_party/libwebrtc/modules/video_capture/linux/video_capture_v4l2.cc"
55901
-    ]
55902
-
54563
-if CONFIG["OS_TARGET"] == "WINNT":
55903
-if CONFIG["OS_TARGET"] == "WINNT":
54564
-
55904
-
54565
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
55905
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
Lines 54586-54591 index 3657b2cbe0f6..af48f581b06c 100644 Link Here
54586
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
55926
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
54587
-    DEFINES["_WINDOWS"] = True
55927
-    DEFINES["_WINDOWS"] = True
54588
-    DEFINES["__STD_C"] = True
55928
-    DEFINES["__STD_C"] = True
55929
-
55930
-    OS_LIBS += [
55931
-        "crypt32",
55932
-        "iphlpapi",
55933
-        "ole32",
55934
-        "oleaut32",
55935
-        "secur32",
55936
-        "strmiids",
55937
-        "user32",
55938
-        "winmm"
55939
-    ]
55940
-
55941
-    SOURCES += [
55942
-        "/third_party/libwebrtc/modules/video_capture/windows/device_info_ds.cc",
55943
-        "/third_party/libwebrtc/modules/video_capture/windows/help_functions_ds.cc",
55944
-        "/third_party/libwebrtc/modules/video_capture/windows/sink_filter_ds.cc"
55945
-    ]
55946
-
55947
-    UNIFIED_SOURCES += [
55948
-        "/third_party/libwebrtc/modules/video_capture/windows/video_capture_ds.cc",
55949
-        "/third_party/libwebrtc/modules/video_capture/windows/video_capture_factory_windows.cc"
55950
-    ]
54589
+    DEFINES["_DEBUG"] = True
55951
+    DEFINES["_DEBUG"] = True
54590
 
55952
 
54591
 if CONFIG["CPU_ARCH"] == "aarch64":
55953
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 54595-54604 index 3657b2cbe0f6..af48f581b06c 100644 Link Here
54595
 
55957
 
54596
-if CONFIG["CPU_ARCH"] == "arm":
55958
-if CONFIG["CPU_ARCH"] == "arm":
54597
-
55959
-
54598
-    CFLAGS += [
54599
-        "-mfpu=neon"
54600
-    ]
54601
-
54602
-    DEFINES["WEBRTC_ARCH_ARM"] = True
55960
-    DEFINES["WEBRTC_ARCH_ARM"] = True
54603
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
55961
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
54604
-    DEFINES["WEBRTC_HAS_NEON"] = True
55962
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 54648-54653 index 3657b2cbe0f6..af48f581b06c 100644 Link Here
54648
-
56006
-
54649
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
56007
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
54650
-
56008
-
56009
-    CXXFLAGS += [
56010
-        "-mfpu=neon"
56011
-    ]
56012
-
54651
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56013
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54652
-    DEFINES["_GNU_SOURCE"] = True
56014
-    DEFINES["_GNU_SOURCE"] = True
54653
-
56015
-
Lines 54661-54671 index 3657b2cbe0f6..af48f581b06c 100644 Link Here
54661
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56023
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54662
-    DEFINES["_GNU_SOURCE"] = True
56024
-    DEFINES["_GNU_SOURCE"] = True
54663
-
56025
-
54664
 Library("g722_3p_gn")
56026
 Library("video_capture_internal_impl_gn")
54665
diff --git third_party/libwebrtc/modules/utility/utility_gn/moz.build third_party/libwebrtc/modules/utility/utility_gn/moz.build
56027
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
54666
index 12447a421204..4cf06f7309d6 100644
56028
index 4cad010d6416..62b8f59f4920 100644
54667
--- third_party/libwebrtc/modules/utility/utility_gn/moz.build
56029
--- third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build
54668
+++ third_party/libwebrtc/modules/utility/utility_gn/moz.build
56030
+++ third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build
54669
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56031
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
54670
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56032
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54671
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
56033
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 54687-54693 index 12447a421204..4cf06f7309d6 100644 Link Here
54687
 
56049
 
54688
 FINAL_LIBRARY = "webrtc"
56050
 FINAL_LIBRARY = "webrtc"
54689
 
56051
 
54690
@@ -41,177 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
56052
@@ -45,174 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
54691
 if CONFIG["MOZ_DEBUG"] == "1":
56053
 if CONFIG["MOZ_DEBUG"] == "1":
54692
 
56054
 
54693
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
56055
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 54707-54720 index 12447a421204..4cf06f7309d6 100644 Link Here
54707
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56069
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54708
-
56070
-
54709
-    OS_LIBS += [
56071
-    OS_LIBS += [
56072
-        "GLESv2",
54710
-        "log"
56073
-        "log"
54711
-    ]
56074
-    ]
54712
-
56075
-
54713
-    UNIFIED_SOURCES += [
54714
-        "/third_party/libwebrtc/modules/utility/source/helpers_android.cc",
54715
-        "/third_party/libwebrtc/modules/utility/source/jvm_android.cc"
54716
-    ]
54717
-
54718
-if CONFIG["OS_TARGET"] == "Darwin":
56076
-if CONFIG["OS_TARGET"] == "Darwin":
54719
-
56077
-
54720
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56078
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 54741-54746 index 12447a421204..4cf06f7309d6 100644 Link Here
54741
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56099
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54742
-
56100
-
54743
-    OS_LIBS += [
56101
-    OS_LIBS += [
56102
-        "dl",
54744
-        "rt"
56103
-        "rt"
54745
-    ]
56104
-    ]
54746
-
56105
-
Lines 54866-54876 index 12447a421204..4cf06f7309d6 100644 Link Here
54866
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56225
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
54867
-    DEFINES["_GNU_SOURCE"] = True
56226
-    DEFINES["_GNU_SOURCE"] = True
54868
-
56227
-
54869
 Library("utility_gn")
56228
 Library("video_capture_module_gn")
54870
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
56229
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
54871
index d7b98c3a7818..3fcb8eb39e05 100644
56230
index 09766af69824..d381a8730b53 100644
54872
--- third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build
56231
--- third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build
54873
+++ third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build
56232
+++ third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build
54874
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56233
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
54875
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56234
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
54876
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
56235
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 54892-54912 index d7b98c3a7818..3fcb8eb39e05 100644 Link Here
54892
 
56251
 
54893
 FINAL_LIBRARY = "webrtc"
56252
 FINAL_LIBRARY = "webrtc"
54894
 
56253
 
54895
@@ -28,6 +38,13 @@ LOCAL_INCLUDES += [
56254
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
54896
     "/tools/profiler/public"
54897
 ]
54898
 
54899
+UNIFIED_SOURCES += [
54900
+    "/third_party/libwebrtc/modules/video_capture/linux/device_info_linux.cc",
54901
+    "/third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc",
54902
+    "/third_party/libwebrtc/modules/video_capture/linux/video_capture_linux.cc",
54903
+    "/third_party/libwebrtc/modules/video_capture/linux/video_capture_v4l2.cc"
54904
+]
54905
+
54906
 if not CONFIG["MOZ_DEBUG"]:
54907
 
54908
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
54909
@@ -37,203 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
54910
 if CONFIG["MOZ_DEBUG"] == "1":
56255
 if CONFIG["MOZ_DEBUG"] == "1":
54911
 
56256
 
54912
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
56257
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 54926-54932 index d7b98c3a7818..3fcb8eb39e05 100644 Link Here
54926
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56271
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54927
-
56272
-
54928
-    OS_LIBS += [
56273
-    OS_LIBS += [
54929
-        "GLESv2",
54930
-        "log"
56274
-        "log"
54931
-    ]
56275
-    ]
54932
-
56276
-
Lines 54955-54972 index d7b98c3a7818..3fcb8eb39e05 100644 Link Here
54955
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
56299
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
54956
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56300
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54957
-
56301
-
54958
-    OS_LIBS += [
54959
-        "dl",
54960
-        "rt"
54961
-    ]
54962
-
54963
-    UNIFIED_SOURCES += [
54964
-        "/third_party/libwebrtc/modules/video_capture/linux/device_info_linux.cc",
54965
-        "/third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc",
54966
-        "/third_party/libwebrtc/modules/video_capture/linux/video_capture_linux.cc",
54967
-        "/third_party/libwebrtc/modules/video_capture/linux/video_capture_v4l2.cc"
54968
-    ]
54969
-
54970
-if CONFIG["OS_TARGET"] == "OpenBSD":
56302
-if CONFIG["OS_TARGET"] == "OpenBSD":
54971
-
56303
-
54972
-    DEFINES["USE_GLIB"] = "1"
56304
-    DEFINES["USE_GLIB"] = "1"
Lines 54981-54993 index d7b98c3a7818..3fcb8eb39e05 100644 Link Here
54981
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
56313
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
54982
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56314
-    DEFINES["__STDC_FORMAT_MACROS"] = True
54983
-
56315
-
54984
-    UNIFIED_SOURCES += [
54985
-        "/third_party/libwebrtc/modules/video_capture/linux/device_info_linux.cc",
54986
-        "/third_party/libwebrtc/modules/video_capture/linux/device_info_v4l2.cc",
54987
-        "/third_party/libwebrtc/modules/video_capture/linux/video_capture_linux.cc",
54988
-        "/third_party/libwebrtc/modules/video_capture/linux/video_capture_v4l2.cc"
54989
-    ]
54990
-
54991
-if CONFIG["OS_TARGET"] == "WINNT":
56316
-if CONFIG["OS_TARGET"] == "WINNT":
54992
-
56317
-
54993
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
56318
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
Lines 55016-55041 index d7b98c3a7818..3fcb8eb39e05 100644 Link Here
55016
-    DEFINES["__STD_C"] = True
56341
-    DEFINES["__STD_C"] = True
55017
-
56342
-
55018
-    OS_LIBS += [
56343
-    OS_LIBS += [
55019
-        "crypt32",
55020
-        "iphlpapi",
55021
-        "ole32",
55022
-        "oleaut32",
55023
-        "secur32",
55024
-        "strmiids",
55025
-        "user32",
55026
-        "winmm"
56344
-        "winmm"
55027
-    ]
56345
-    ]
55028
-
55029
-    SOURCES += [
55030
-        "/third_party/libwebrtc/modules/video_capture/windows/device_info_ds.cc",
55031
-        "/third_party/libwebrtc/modules/video_capture/windows/help_functions_ds.cc",
55032
-        "/third_party/libwebrtc/modules/video_capture/windows/sink_filter_ds.cc"
55033
-    ]
55034
-
55035
-    UNIFIED_SOURCES += [
55036
-        "/third_party/libwebrtc/modules/video_capture/windows/video_capture_ds.cc",
55037
-        "/third_party/libwebrtc/modules/video_capture/windows/video_capture_factory_windows.cc"
55038
-    ]
55039
+    DEFINES["_DEBUG"] = True
56346
+    DEFINES["_DEBUG"] = True
55040
 
56347
 
55041
 if CONFIG["CPU_ARCH"] == "aarch64":
56348
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 55045-55050 index d7b98c3a7818..3fcb8eb39e05 100644 Link Here
55045
 
56352
 
55046
-if CONFIG["CPU_ARCH"] == "arm":
56353
-if CONFIG["CPU_ARCH"] == "arm":
55047
-
56354
-
56355
-    CXXFLAGS += [
56356
-        "-mfpu=neon"
56357
-    ]
56358
-
55048
-    DEFINES["WEBRTC_ARCH_ARM"] = True
56359
-    DEFINES["WEBRTC_ARCH_ARM"] = True
55049
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
56360
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
55050
-    DEFINES["WEBRTC_HAS_NEON"] = True
56361
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 55094-55103 index d7b98c3a7818..3fcb8eb39e05 100644 Link Here
55094
-
56405
-
55095
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
56406
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
55096
-
56407
-
55097
-    CXXFLAGS += [
55098
-        "-mfpu=neon"
55099
-    ]
55100
-
55101
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56408
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55102
-    DEFINES["_GNU_SOURCE"] = True
56409
-    DEFINES["_GNU_SOURCE"] = True
55103
-
56410
-
Lines 55111-55121 index d7b98c3a7818..3fcb8eb39e05 100644 Link Here
55111
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56418
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55112
-    DEFINES["_GNU_SOURCE"] = True
56419
-    DEFINES["_GNU_SOURCE"] = True
55113
-
56420
-
55114
 Library("video_capture_internal_impl_gn")
56421
 Library("chain_diff_calculator_gn")
55115
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
56422
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
55116
index 4cad010d6416..62b8f59f4920 100644
56423
index d4d71bf7fb4a..7abada72701b 100644
55117
--- third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build
56424
--- third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build
55118
+++ third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build
56425
+++ third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build
55119
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56426
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55120
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56427
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55121
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
56428
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 55137-55143 index 4cad010d6416..62b8f59f4920 100644 Link Here
55137
 
56444
 
55138
 FINAL_LIBRARY = "webrtc"
56445
 FINAL_LIBRARY = "webrtc"
55139
 
56446
 
55140
@@ -45,174 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
56447
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
55141
 if CONFIG["MOZ_DEBUG"] == "1":
56448
 if CONFIG["MOZ_DEBUG"] == "1":
55142
 
56449
 
55143
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
56450
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 55157-55163 index 4cad010d6416..62b8f59f4920 100644 Link Here
55157
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56464
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55158
-
56465
-
55159
-    OS_LIBS += [
56466
-    OS_LIBS += [
55160
-        "GLESv2",
55161
-        "log"
56467
-        "log"
55162
-    ]
56468
-    ]
55163
-
56469
-
Lines 55186-55196 index 4cad010d6416..62b8f59f4920 100644 Link Here
55186
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
56492
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55187
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56493
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55188
-
56494
-
55189
-    OS_LIBS += [
55190
-        "dl",
55191
-        "rt"
55192
-    ]
55193
-
55194
-if CONFIG["OS_TARGET"] == "OpenBSD":
56495
-if CONFIG["OS_TARGET"] == "OpenBSD":
55195
-
56496
-
55196
-    DEFINES["USE_GLIB"] = "1"
56497
-    DEFINES["USE_GLIB"] = "1"
Lines 55231-55243 index 4cad010d6416..62b8f59f4920 100644 Link Here
55231
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
56532
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
55232
-    DEFINES["_WINDOWS"] = True
56533
-    DEFINES["_WINDOWS"] = True
55233
-    DEFINES["__STD_C"] = True
56534
-    DEFINES["__STD_C"] = True
55234
-
55235
-    OS_LIBS += [
55236
-        "crypt32",
55237
-        "iphlpapi",
55238
-        "secur32",
55239
-        "winmm"
55240
-    ]
55241
+    DEFINES["_DEBUG"] = True
56535
+    DEFINES["_DEBUG"] = True
55242
 
56536
 
55243
 if CONFIG["CPU_ARCH"] == "aarch64":
56537
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 55247-55256 index 4cad010d6416..62b8f59f4920 100644 Link Here
55247
 
56541
 
55248
-if CONFIG["CPU_ARCH"] == "arm":
56542
-if CONFIG["CPU_ARCH"] == "arm":
55249
-
56543
-
55250
-    CXXFLAGS += [
55251
-        "-mfpu=neon"
55252
-    ]
55253
-
55254
-    DEFINES["WEBRTC_ARCH_ARM"] = True
56544
-    DEFINES["WEBRTC_ARCH_ARM"] = True
55255
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
56545
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
55256
-    DEFINES["WEBRTC_HAS_NEON"] = True
56546
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 55313-55323 index 4cad010d6416..62b8f59f4920 100644 Link Here
55313
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56603
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55314
-    DEFINES["_GNU_SOURCE"] = True
56604
-    DEFINES["_GNU_SOURCE"] = True
55315
-
56605
-
55316
 Library("video_capture_module_gn")
56606
 Library("codec_globals_headers_gn")
55317
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
56607
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
55318
index 09766af69824..d381a8730b53 100644
56608
index f3bef360d869..5cd53c990b1f 100644
55319
--- third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build
56609
--- third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build
55320
+++ third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build
56610
+++ third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build
55321
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56611
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55322
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56612
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55323
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
56613
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 55506-55516 index 09766af69824..d381a8730b53 100644 Link Here
55506
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56796
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55507
-    DEFINES["_GNU_SOURCE"] = True
56797
-    DEFINES["_GNU_SOURCE"] = True
55508
-
56798
-
55509
 Library("chain_diff_calculator_gn")
56799
 Library("av1_svc_config_gn")
55510
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
56800
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
55511
index d4d71bf7fb4a..7abada72701b 100644
56801
index c21b84284b07..dce99512e78b 100644
55512
--- third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build
56802
--- third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build
55513
+++ third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build
56803
+++ third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build
55514
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56804
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55515
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56805
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55516
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
56806
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 55532-55538 index d4d71bf7fb4a..7abada72701b 100644 Link Here
55532
 
56822
 
55533
 FINAL_LIBRARY = "webrtc"
56823
 FINAL_LIBRARY = "webrtc"
55534
 
56824
 
55535
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
56825
@@ -45,174 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
55536
 if CONFIG["MOZ_DEBUG"] == "1":
56826
 if CONFIG["MOZ_DEBUG"] == "1":
55537
 
56827
 
55538
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
56828
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 55552-55557 index d4d71bf7fb4a..7abada72701b 100644 Link Here
55552
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56842
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55553
-
56843
-
55554
-    OS_LIBS += [
56844
-    OS_LIBS += [
56845
-        "GLESv2",
55555
-        "log"
56846
-        "log"
55556
-    ]
56847
-    ]
55557
-
56848
-
Lines 55580-55585 index d4d71bf7fb4a..7abada72701b 100644 Link Here
55580
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
56871
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
55581
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56872
-    DEFINES["__STDC_FORMAT_MACROS"] = True
55582
-
56873
-
56874
-    OS_LIBS += [
56875
-        "dl",
56876
-        "rt"
56877
-    ]
56878
-
55583
-if CONFIG["OS_TARGET"] == "OpenBSD":
56879
-if CONFIG["OS_TARGET"] == "OpenBSD":
55584
-
56880
-
55585
-    DEFINES["USE_GLIB"] = "1"
56881
-    DEFINES["USE_GLIB"] = "1"
Lines 55620-55625 index d4d71bf7fb4a..7abada72701b 100644 Link Here
55620
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
56916
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
55621
-    DEFINES["_WINDOWS"] = True
56917
-    DEFINES["_WINDOWS"] = True
55622
-    DEFINES["__STD_C"] = True
56918
-    DEFINES["__STD_C"] = True
56919
-
56920
-    OS_LIBS += [
56921
-        "crypt32",
56922
-        "iphlpapi",
56923
-        "secur32",
56924
-        "winmm"
56925
-    ]
55623
+    DEFINES["_DEBUG"] = True
56926
+    DEFINES["_DEBUG"] = True
55624
 
56927
 
55625
 if CONFIG["CPU_ARCH"] == "aarch64":
56928
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 55629-55634 index d4d71bf7fb4a..7abada72701b 100644 Link Here
55629
 
56932
 
55630
-if CONFIG["CPU_ARCH"] == "arm":
56933
-if CONFIG["CPU_ARCH"] == "arm":
55631
-
56934
-
56935
-    CXXFLAGS += [
56936
-        "-mfpu=neon"
56937
-    ]
56938
-
55632
-    DEFINES["WEBRTC_ARCH_ARM"] = True
56939
-    DEFINES["WEBRTC_ARCH_ARM"] = True
55633
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
56940
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
55634
-    DEFINES["WEBRTC_HAS_NEON"] = True
56941
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 55691-55701 index d4d71bf7fb4a..7abada72701b 100644 Link Here
55691
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56998
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55692
-    DEFINES["_GNU_SOURCE"] = True
56999
-    DEFINES["_GNU_SOURCE"] = True
55693
-
57000
-
55694
 Library("codec_globals_headers_gn")
57001
 Library("dav1d_decoder_gn")
55695
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
57002
diff --git third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build
55696
index f3bef360d869..5cd53c990b1f 100644
57003
index 15ec27b21d92..06fc30f5f006 100644
55697
--- third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build
57004
--- third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build
55698
+++ third_party/libwebrtc/modules/video_coding/codecs/av1/av1_svc_config_gn/moz.build
57005
+++ third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build
55699
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57006
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55700
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57007
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55701
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
57008
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 55884-55894 index f3bef360d869..5cd53c990b1f 100644 Link Here
55884
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57191
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
55885
-    DEFINES["_GNU_SOURCE"] = True
57192
-    DEFINES["_GNU_SOURCE"] = True
55886
-
57193
-
55887
 Library("av1_svc_config_gn")
57194
 Library("aom_av1_decoder_gn")
55888
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
57195
diff --git third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build
55889
index c21b84284b07..dce99512e78b 100644
57196
index 2c74aec10f15..1cff15f0207c 100644
55890
--- third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build
57197
--- third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build
55891
+++ third_party/libwebrtc/modules/video_coding/codecs/av1/dav1d_decoder_gn/moz.build
57198
+++ third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build
55892
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57199
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
55893
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57200
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
55894
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
57201
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 55910-55916 index c21b84284b07..dce99512e78b 100644 Link Here
55910
 
57217
 
55911
 FINAL_LIBRARY = "webrtc"
57218
 FINAL_LIBRARY = "webrtc"
55912
 
57219
 
55913
@@ -45,174 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
57220
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
55914
 if CONFIG["MOZ_DEBUG"] == "1":
57221
 if CONFIG["MOZ_DEBUG"] == "1":
55915
 
57222
 
55916
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
57223
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 56086-56096 index c21b84284b07..dce99512e78b 100644 Link Here
56086
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57393
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56087
-    DEFINES["_GNU_SOURCE"] = True
57394
-    DEFINES["_GNU_SOURCE"] = True
56088
-
57395
-
56089
 Library("dav1d_decoder_gn")
57396
 Library("encoded_frame_gn")
56090
diff --git third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build
57397
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
56091
index 15ec27b21d92..06fc30f5f006 100644
57398
index b39c49bdadc3..8a2b99b5d253 100644
56092
--- third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build
57399
--- third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build
56093
+++ third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build
57400
+++ third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build
56094
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57401
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56095
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57402
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56096
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
57403
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 56279-56289 index 15ec27b21d92..06fc30f5f006 100644 Link Here
56279
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57586
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56280
-    DEFINES["_GNU_SOURCE"] = True
57587
-    DEFINES["_GNU_SOURCE"] = True
56281
-
57588
-
56282
 Library("aom_av1_decoder_gn")
57589
 Library("frame_dependencies_calculator_gn")
56283
diff --git third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_if_supported_gn/moz.build third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_if_supported_gn/moz.build
57590
diff --git third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build
56284
index c0793ac64532..78ea3bb3a715 100644
57591
index 34db2964e210..80fc8fcc1d90 100644
56285
--- third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_if_supported_gn/moz.build
57592
--- third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build
56286
+++ third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_if_supported_gn/moz.build
57593
+++ third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build
57594
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57595
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57596
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
57597
 DEFINES["RTC_ENABLE_VP9"] = True
57598
+DEFINES["USE_GLIB"] = "1"
57599
+DEFINES["USE_OZONE"] = "1"
57600
+DEFINES["WEBRTC_BSD"] = True
57601
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
57602
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
57603
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
57604
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
57605
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
57606
+DEFINES["WEBRTC_POSIX"] = True
57607
+DEFINES["_FILE_OFFSET_BITS"] = "64"
57608
+DEFINES["_LARGEFILE64_SOURCE"] = True
57609
+DEFINES["_LARGEFILE_SOURCE"] = True
57610
+DEFINES["__STDC_CONSTANT_MACROS"] = True
57611
+DEFINES["__STDC_FORMAT_MACROS"] = True
57612
 
57613
 FINAL_LIBRARY = "webrtc"
57614
 
57615
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
57616
 if CONFIG["MOZ_DEBUG"] == "1":
57617
 
57618
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
57619
-
57620
-if CONFIG["OS_TARGET"] == "Android":
57621
-
57622
-    DEFINES["ANDROID"] = True
57623
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
57624
-    DEFINES["HAVE_SYS_UIO_H"] = True
57625
-    DEFINES["WEBRTC_ANDROID"] = True
57626
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
57627
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57628
-    DEFINES["WEBRTC_LINUX"] = True
57629
-    DEFINES["WEBRTC_POSIX"] = True
57630
-    DEFINES["_GNU_SOURCE"] = True
57631
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
57632
-    DEFINES["__STDC_FORMAT_MACROS"] = True
57633
-
57634
-    OS_LIBS += [
57635
-        "GLESv2",
57636
-        "log"
57637
-    ]
57638
-
57639
-if CONFIG["OS_TARGET"] == "Darwin":
57640
-
57641
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57642
-    DEFINES["WEBRTC_MAC"] = True
57643
-    DEFINES["WEBRTC_POSIX"] = True
57644
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
57645
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
57646
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
57647
-    DEFINES["__STDC_FORMAT_MACROS"] = True
57648
-
57649
-if CONFIG["OS_TARGET"] == "Linux":
57650
-
57651
-    DEFINES["USE_AURA"] = "1"
57652
-    DEFINES["USE_GLIB"] = "1"
57653
-    DEFINES["USE_NSS_CERTS"] = "1"
57654
-    DEFINES["USE_OZONE"] = "1"
57655
-    DEFINES["USE_UDEV"] = True
57656
-    DEFINES["WEBRTC_LINUX"] = True
57657
-    DEFINES["WEBRTC_POSIX"] = True
57658
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
57659
-    DEFINES["_LARGEFILE64_SOURCE"] = True
57660
-    DEFINES["_LARGEFILE_SOURCE"] = True
57661
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
57662
-    DEFINES["__STDC_FORMAT_MACROS"] = True
57663
-
57664
-    OS_LIBS += [
57665
-        "dl",
57666
-        "rt"
57667
-    ]
57668
-
57669
-if CONFIG["OS_TARGET"] == "OpenBSD":
57670
-
57671
-    DEFINES["USE_GLIB"] = "1"
57672
-    DEFINES["USE_OZONE"] = "1"
57673
-    DEFINES["USE_X11"] = "1"
57674
-    DEFINES["WEBRTC_BSD"] = True
57675
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57676
-    DEFINES["WEBRTC_POSIX"] = True
57677
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
57678
-    DEFINES["_LARGEFILE64_SOURCE"] = True
57679
-    DEFINES["_LARGEFILE_SOURCE"] = True
57680
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
57681
-    DEFINES["__STDC_FORMAT_MACROS"] = True
57682
-
57683
-if CONFIG["OS_TARGET"] == "WINNT":
57684
-
57685
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
57686
-    DEFINES["NOMINMAX"] = True
57687
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
57688
-    DEFINES["PSAPI_VERSION"] = "2"
57689
-    DEFINES["UNICODE"] = True
57690
-    DEFINES["USE_AURA"] = "1"
57691
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57692
-    DEFINES["WEBRTC_WIN"] = True
57693
-    DEFINES["WIN32"] = True
57694
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
57695
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
57696
-    DEFINES["WINVER"] = "0x0A00"
57697
-    DEFINES["_ATL_NO_OPENGL"] = True
57698
-    DEFINES["_CRT_RAND_S"] = True
57699
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
57700
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
57701
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
57702
-    DEFINES["_HAS_NODISCARD"] = True
57703
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
57704
-    DEFINES["_SECURE_ATL"] = True
57705
-    DEFINES["_UNICODE"] = True
57706
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
57707
-    DEFINES["_WINDOWS"] = True
57708
-    DEFINES["__STD_C"] = True
57709
-
57710
-    OS_LIBS += [
57711
-        "crypt32",
57712
-        "iphlpapi",
57713
-        "secur32",
57714
-        "winmm"
57715
-    ]
57716
+    DEFINES["_DEBUG"] = True
57717
 
57718
 if CONFIG["CPU_ARCH"] == "aarch64":
57719
 
57720
     DEFINES["WEBRTC_ARCH_ARM64"] = True
57721
     DEFINES["WEBRTC_HAS_NEON"] = True
57722
 
57723
-if CONFIG["CPU_ARCH"] == "arm":
57724
-
57725
-    CXXFLAGS += [
57726
-        "-mfpu=neon"
57727
-    ]
57728
-
57729
-    DEFINES["WEBRTC_ARCH_ARM"] = True
57730
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
57731
-    DEFINES["WEBRTC_HAS_NEON"] = True
57732
-
57733
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
57734
-
57735
-    DEFINES["_DEBUG"] = True
57736
-
57737
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
57738
-
57739
-    DEFINES["_DEBUG"] = True
57740
-
57741
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
57742
-
57743
-    DEFINES["_DEBUG"] = True
57744
-
57745
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
57746
-
57747
-    DEFINES["_DEBUG"] = True
57748
-
57749
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
57750
-
57751
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
57752
-
57753
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
57754
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
57755
 
57756
     DEFINES["USE_X11"] = "1"
57757
 
57758
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
57759
-
57760
-    OS_LIBS += [
57761
-        "android_support",
57762
-        "unwind"
57763
-    ]
57764
-
57765
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
57766
-
57767
-    OS_LIBS += [
57768
-        "android_support"
57769
-    ]
57770
-
57771
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
57772
-
57773
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57774
-    DEFINES["_GNU_SOURCE"] = True
57775
-
57776
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
57777
-
57778
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57779
-    DEFINES["_GNU_SOURCE"] = True
57780
-
57781
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
57782
-
57783
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57784
-    DEFINES["_GNU_SOURCE"] = True
57785
-
57786
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
57787
-
57788
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57789
-    DEFINES["_GNU_SOURCE"] = True
57790
-
57791
 Library("frame_helpers_gn")
57792
diff --git third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build
57793
index 82f0c8ee2d1b..7e6132c596c6 100644
57794
--- third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build
57795
+++ third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build
56287
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57796
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56288
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57797
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56289
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
57798
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 56305-56311 index c0793ac64532..78ea3bb3a715 100644 Link Here
56305
 
57814
 
56306
 FINAL_LIBRARY = "webrtc"
57815
 FINAL_LIBRARY = "webrtc"
56307
 
57816
 
56308
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
57817
@@ -42,172 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
56309
 if CONFIG["MOZ_DEBUG"] == "1":
57818
 if CONFIG["MOZ_DEBUG"] == "1":
56310
 
57819
 
56311
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
57820
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 56353-56358 index c0793ac64532..78ea3bb3a715 100644 Link Here
56353
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
57862
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
56354
-    DEFINES["__STDC_FORMAT_MACROS"] = True
57863
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56355
-
57864
-
57865
-    OS_LIBS += [
57866
-        "rt"
57867
-    ]
57868
-
56356
-if CONFIG["OS_TARGET"] == "OpenBSD":
57869
-if CONFIG["OS_TARGET"] == "OpenBSD":
56357
-
57870
-
56358
-    DEFINES["USE_GLIB"] = "1"
57871
-    DEFINES["USE_GLIB"] = "1"
Lines 56395-56400 index c0793ac64532..78ea3bb3a715 100644 Link Here
56395
-    DEFINES["__STD_C"] = True
57908
-    DEFINES["__STD_C"] = True
56396
-
57909
-
56397
-    OS_LIBS += [
57910
-    OS_LIBS += [
57911
-        "crypt32",
57912
-        "iphlpapi",
57913
-        "secur32",
56398
-        "winmm"
57914
-        "winmm"
56399
-    ]
57915
-    ]
56400
+    DEFINES["_DEBUG"] = True
57916
+    DEFINES["_DEBUG"] = True
Lines 56472-56482 index c0793ac64532..78ea3bb3a715 100644 Link Here
56472
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57988
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56473
-    DEFINES["_GNU_SOURCE"] = True
57989
-    DEFINES["_GNU_SOURCE"] = True
56474
-
57990
-
56475
 Library("aom_av1_encoder_if_supported_gn")
57991
 Library("nack_requester_gn")
56476
diff --git third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build
57992
diff --git third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build
56477
index 2c74aec10f15..1cff15f0207c 100644
57993
index 12ec6e5913bc..9f95558376b5 100644
56478
--- third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build
57994
--- third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build
56479
+++ third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build
57995
+++ third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build
56480
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57996
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56481
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57997
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56482
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
57998
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 56674-56684 index 2c74aec10f15..1cff15f0207c 100644 Link Here
56674
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58190
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56675
-    DEFINES["_GNU_SOURCE"] = True
58191
-    DEFINES["_GNU_SOURCE"] = True
56676
-
58192
-
56677
 Library("encoded_frame_gn")
58193
 Library("packet_buffer_gn")
56678
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
58194
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
56679
index b39c49bdadc3..8a2b99b5d253 100644
58195
index 2c545af9de6b..fe6268db54ad 100644
56680
--- third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build
58196
--- third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build
56681
+++ third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build
58197
+++ third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build
56682
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58198
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56683
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58199
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56684
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
58200
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 56867-56877 index b39c49bdadc3..8a2b99b5d253 100644 Link Here
56867
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58383
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
56868
-    DEFINES["_GNU_SOURCE"] = True
58384
-    DEFINES["_GNU_SOURCE"] = True
56869
-
58385
-
56870
 Library("frame_dependencies_calculator_gn")
58386
 Library("scalability_mode_util_gn")
56871
diff --git third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build
58387
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
56872
index 34db2964e210..80fc8fcc1d90 100644
58388
index dbd579d02d44..352319713761 100644
56873
--- third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build
58389
--- third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build
56874
+++ third_party/libwebrtc/modules/video_coding/frame_helpers_gn/moz.build
58390
+++ third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build
56875
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58391
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
56876
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58392
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
56877
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
58393
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 56893-56899 index 34db2964e210..80fc8fcc1d90 100644 Link Here
56893
 
58409
 
56894
 FINAL_LIBRARY = "webrtc"
58410
 FINAL_LIBRARY = "webrtc"
56895
 
58411
 
56896
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
58412
@@ -48,165 +58,15 @@ if not CONFIG["MOZ_DEBUG"]:
56897
 if CONFIG["MOZ_DEBUG"] == "1":
58413
 if CONFIG["MOZ_DEBUG"] == "1":
56898
 
58414
 
56899
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
58415
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 56913-56919 index 34db2964e210..80fc8fcc1d90 100644 Link Here
56913
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58429
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56914
-
58430
-
56915
-    OS_LIBS += [
58431
-    OS_LIBS += [
56916
-        "GLESv2",
56917
-        "log"
58432
-        "log"
56918
-    ]
58433
-    ]
56919
-
58434
-
Lines 56942-56952 index 34db2964e210..80fc8fcc1d90 100644 Link Here
56942
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
58457
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
56943
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58458
-    DEFINES["__STDC_FORMAT_MACROS"] = True
56944
-
58459
-
56945
-    OS_LIBS += [
56946
-        "dl",
56947
-        "rt"
56948
-    ]
56949
-
56950
-if CONFIG["OS_TARGET"] == "OpenBSD":
58460
-if CONFIG["OS_TARGET"] == "OpenBSD":
56951
-
58461
-
56952
-    DEFINES["USE_GLIB"] = "1"
58462
-    DEFINES["USE_GLIB"] = "1"
Lines 56989-56997 index 34db2964e210..80fc8fcc1d90 100644 Link Here
56989
-    DEFINES["__STD_C"] = True
58499
-    DEFINES["__STD_C"] = True
56990
-
58500
-
56991
-    OS_LIBS += [
58501
-    OS_LIBS += [
56992
-        "crypt32",
56993
-        "iphlpapi",
56994
-        "secur32",
56995
-        "winmm"
58502
-        "winmm"
56996
-    ]
58503
-    ]
56997
+    DEFINES["_DEBUG"] = True
58504
+    DEFINES["_DEBUG"] = True
Lines 57069-57079 index 34db2964e210..80fc8fcc1d90 100644 Link Here
57069
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58576
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57070
-    DEFINES["_GNU_SOURCE"] = True
58577
-    DEFINES["_GNU_SOURCE"] = True
57071
-
58578
-
57072
 Library("frame_helpers_gn")
58579
 Library("scalability_structures_gn")
57073
diff --git third_party/libwebrtc/modules/video_coding/inter_frame_delay_gn/moz.build third_party/libwebrtc/modules/video_coding/inter_frame_delay_gn/moz.build
58580
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
57074
index 39c9dc872e42..51664e2e391c 100644
58581
index 8e22ed6814a7..d534ab923de5 100644
57075
--- third_party/libwebrtc/modules/video_coding/inter_frame_delay_gn/moz.build
58582
--- third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build
57076
+++ third_party/libwebrtc/modules/video_coding/inter_frame_delay_gn/moz.build
58583
+++ third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build
57077
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58584
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57078
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58585
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57079
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
58586
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 57258-57268 index 39c9dc872e42..51664e2e391c 100644 Link Here
57258
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58765
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57259
-    DEFINES["_GNU_SOURCE"] = True
58766
-    DEFINES["_GNU_SOURCE"] = True
57260
-
58767
-
57261
 Library("inter_frame_delay_gn")
58768
 Library("scalable_video_controller_gn")
57262
diff --git third_party/libwebrtc/modules/video_coding/jitter_estimator_gn/moz.build third_party/libwebrtc/modules/video_coding/jitter_estimator_gn/moz.build
58769
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
57263
index cf593c373a4d..220b9c4c9d1a 100644
58770
index cb5e4a4bf707..a16be3b05afd 100644
57264
--- third_party/libwebrtc/modules/video_coding/jitter_estimator_gn/moz.build
58771
--- third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build
57265
+++ third_party/libwebrtc/modules/video_coding/jitter_estimator_gn/moz.build
58772
+++ third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build
57266
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58773
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57267
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58774
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57268
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
58775
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 57284-57290 index cf593c373a4d..220b9c4c9d1a 100644 Link Here
57284
 
58791
 
57285
 FINAL_LIBRARY = "webrtc"
58792
 FINAL_LIBRARY = "webrtc"
57286
 
58793
 
57287
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
58794
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
58795
 if CONFIG["MOZ_DEBUG"] == "1":
58796
 
58797
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
58798
-
58799
-if CONFIG["OS_TARGET"] == "Android":
58800
-
58801
-    DEFINES["ANDROID"] = True
58802
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
58803
-    DEFINES["HAVE_SYS_UIO_H"] = True
58804
-    DEFINES["WEBRTC_ANDROID"] = True
58805
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
58806
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58807
-    DEFINES["WEBRTC_LINUX"] = True
58808
-    DEFINES["WEBRTC_POSIX"] = True
58809
-    DEFINES["_GNU_SOURCE"] = True
58810
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
58811
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58812
-
58813
-    OS_LIBS += [
58814
-        "log"
58815
-    ]
58816
-
58817
-if CONFIG["OS_TARGET"] == "Darwin":
58818
-
58819
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58820
-    DEFINES["WEBRTC_MAC"] = True
58821
-    DEFINES["WEBRTC_POSIX"] = True
58822
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
58823
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
58824
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
58825
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58826
-
58827
-if CONFIG["OS_TARGET"] == "Linux":
58828
-
58829
-    DEFINES["USE_AURA"] = "1"
58830
-    DEFINES["USE_GLIB"] = "1"
58831
-    DEFINES["USE_NSS_CERTS"] = "1"
58832
-    DEFINES["USE_OZONE"] = "1"
58833
-    DEFINES["USE_UDEV"] = True
58834
-    DEFINES["WEBRTC_LINUX"] = True
58835
-    DEFINES["WEBRTC_POSIX"] = True
58836
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
58837
-    DEFINES["_LARGEFILE64_SOURCE"] = True
58838
-    DEFINES["_LARGEFILE_SOURCE"] = True
58839
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
58840
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58841
-
58842
-if CONFIG["OS_TARGET"] == "OpenBSD":
58843
-
58844
-    DEFINES["USE_GLIB"] = "1"
58845
-    DEFINES["USE_OZONE"] = "1"
58846
-    DEFINES["USE_X11"] = "1"
58847
-    DEFINES["WEBRTC_BSD"] = True
58848
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58849
-    DEFINES["WEBRTC_POSIX"] = True
58850
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
58851
-    DEFINES["_LARGEFILE64_SOURCE"] = True
58852
-    DEFINES["_LARGEFILE_SOURCE"] = True
58853
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
58854
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58855
-
58856
-if CONFIG["OS_TARGET"] == "WINNT":
58857
-
58858
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
58859
-    DEFINES["NOMINMAX"] = True
58860
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
58861
-    DEFINES["PSAPI_VERSION"] = "2"
58862
-    DEFINES["UNICODE"] = True
58863
-    DEFINES["USE_AURA"] = "1"
58864
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58865
-    DEFINES["WEBRTC_WIN"] = True
58866
-    DEFINES["WIN32"] = True
58867
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
58868
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
58869
-    DEFINES["WINVER"] = "0x0A00"
58870
-    DEFINES["_ATL_NO_OPENGL"] = True
58871
-    DEFINES["_CRT_RAND_S"] = True
58872
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
58873
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
58874
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
58875
-    DEFINES["_HAS_NODISCARD"] = True
58876
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
58877
-    DEFINES["_SECURE_ATL"] = True
58878
-    DEFINES["_UNICODE"] = True
58879
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
58880
-    DEFINES["_WINDOWS"] = True
58881
-    DEFINES["__STD_C"] = True
58882
-
58883
-    OS_LIBS += [
58884
-        "winmm"
58885
-    ]
58886
+    DEFINES["_DEBUG"] = True
58887
 
58888
 if CONFIG["CPU_ARCH"] == "aarch64":
58889
 
58890
     DEFINES["WEBRTC_ARCH_ARM64"] = True
58891
     DEFINES["WEBRTC_HAS_NEON"] = True
58892
 
58893
-if CONFIG["CPU_ARCH"] == "arm":
58894
-
58895
-    CXXFLAGS += [
58896
-        "-mfpu=neon"
58897
-    ]
58898
-
58899
-    DEFINES["WEBRTC_ARCH_ARM"] = True
58900
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
58901
-    DEFINES["WEBRTC_HAS_NEON"] = True
58902
-
58903
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
58904
-
58905
-    DEFINES["_DEBUG"] = True
58906
-
58907
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
58908
-
58909
-    DEFINES["_DEBUG"] = True
58910
-
58911
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
58912
-
58913
-    DEFINES["_DEBUG"] = True
58914
-
58915
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
58916
-
58917
-    DEFINES["_DEBUG"] = True
58918
-
58919
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
58920
-
58921
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
58922
-
58923
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
58924
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
58925
 
58926
     DEFINES["USE_X11"] = "1"
58927
 
58928
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
58929
-
58930
-    OS_LIBS += [
58931
-        "android_support",
58932
-        "unwind"
58933
-    ]
58934
-
58935
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
58936
-
58937
-    OS_LIBS += [
58938
-        "android_support"
58939
-    ]
58940
-
58941
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
58942
-
58943
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58944
-    DEFINES["_GNU_SOURCE"] = True
58945
-
58946
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
58947
-
58948
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58949
-    DEFINES["_GNU_SOURCE"] = True
58950
-
58951
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
58952
-
58953
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58954
-    DEFINES["_GNU_SOURCE"] = True
58955
-
58956
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
58957
-
58958
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58959
-    DEFINES["_GNU_SOURCE"] = True
58960
-
58961
 Library("svc_rate_allocator_gn")
58962
diff --git third_party/libwebrtc/modules/video_coding/timing/codec_timer_gn/moz.build third_party/libwebrtc/modules/video_coding/timing/codec_timer_gn/moz.build
58963
index fe230f262d9d..943834d76711 100644
58964
--- third_party/libwebrtc/modules/video_coding/timing/codec_timer_gn/moz.build
58965
+++ third_party/libwebrtc/modules/video_coding/timing/codec_timer_gn/moz.build
58966
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58967
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58968
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
58969
 DEFINES["RTC_ENABLE_VP9"] = True
58970
+DEFINES["USE_GLIB"] = "1"
58971
+DEFINES["USE_OZONE"] = "1"
58972
+DEFINES["WEBRTC_BSD"] = True
58973
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
58974
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
58975
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
58976
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
58977
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
58978
+DEFINES["WEBRTC_POSIX"] = True
58979
+DEFINES["_FILE_OFFSET_BITS"] = "64"
58980
+DEFINES["_LARGEFILE64_SOURCE"] = True
58981
+DEFINES["_LARGEFILE_SOURCE"] = True
58982
+DEFINES["__STDC_CONSTANT_MACROS"] = True
58983
+DEFINES["__STDC_FORMAT_MACROS"] = True
58984
 
58985
 FINAL_LIBRARY = "webrtc"
58986
 
58987
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
57288
 if CONFIG["MOZ_DEBUG"] == "1":
58988
 if CONFIG["MOZ_DEBUG"] == "1":
57289
 
58989
 
57290
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
58990
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 57304-57310 index cf593c373a4d..220b9c4c9d1a 100644 Link Here
57304
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59004
-    DEFINES["__STDC_FORMAT_MACROS"] = True
57305
-
59005
-
57306
-    OS_LIBS += [
59006
-    OS_LIBS += [
57307
-        "GLESv2",
57308
-        "log"
59007
-        "log"
57309
-    ]
59008
-    ]
57310
-
59009
-
Lines 57333-57343 index cf593c373a4d..220b9c4c9d1a 100644 Link Here
57333
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
59032
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
57334
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59033
-    DEFINES["__STDC_FORMAT_MACROS"] = True
57335
-
59034
-
57336
-    OS_LIBS += [
57337
-        "dl",
57338
-        "rt"
57339
-    ]
57340
-
57341
-if CONFIG["OS_TARGET"] == "OpenBSD":
59035
-if CONFIG["OS_TARGET"] == "OpenBSD":
57342
-
59036
-
57343
-    DEFINES["USE_GLIB"] = "1"
59037
-    DEFINES["USE_GLIB"] = "1"
Lines 57378-57390 index cf593c373a4d..220b9c4c9d1a 100644 Link Here
57378
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
59072
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
57379
-    DEFINES["_WINDOWS"] = True
59073
-    DEFINES["_WINDOWS"] = True
57380
-    DEFINES["__STD_C"] = True
59074
-    DEFINES["__STD_C"] = True
57381
-
57382
-    OS_LIBS += [
57383
-        "crypt32",
57384
-        "iphlpapi",
57385
-        "secur32",
57386
-        "winmm"
57387
-    ]
57388
+    DEFINES["_DEBUG"] = True
59075
+    DEFINES["_DEBUG"] = True
57389
 
59076
 
57390
 if CONFIG["CPU_ARCH"] == "aarch64":
59077
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 57460-57470 index cf593c373a4d..220b9c4c9d1a 100644 Link Here
57460
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
59147
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57461
-    DEFINES["_GNU_SOURCE"] = True
59148
-    DEFINES["_GNU_SOURCE"] = True
57462
-
59149
-
57463
 Library("jitter_estimator_gn")
59150
 Library("codec_timer_gn")
57464
diff --git third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build
59151
diff --git third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_gn/moz.build third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_gn/moz.build
57465
index 82f0c8ee2d1b..7e6132c596c6 100644
59152
index 84a87f2a49a2..71c277b678e7 100644
57466
--- third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build
59153
--- third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_gn/moz.build
57467
+++ third_party/libwebrtc/modules/video_coding/nack_requester_gn/moz.build
59154
+++ third_party/libwebrtc/modules/video_coding/timing/inter_frame_delay_gn/moz.build
57468
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59155
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57469
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59156
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57470
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
59157
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 57486-57492 index 82f0c8ee2d1b..7e6132c596c6 100644 Link Here
57486
 
59173
 
57487
 FINAL_LIBRARY = "webrtc"
59174
 FINAL_LIBRARY = "webrtc"
57488
 
59175
 
57489
@@ -42,172 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
59176
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
57490
 if CONFIG["MOZ_DEBUG"] == "1":
59177
 if CONFIG["MOZ_DEBUG"] == "1":
57491
 
59178
 
57492
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
59179
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 57534-57543 index 82f0c8ee2d1b..7e6132c596c6 100644 Link Here
57534
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
59221
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
57535
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59222
-    DEFINES["__STDC_FORMAT_MACROS"] = True
57536
-
59223
-
57537
-    OS_LIBS += [
57538
-        "rt"
57539
-    ]
57540
-
57541
-if CONFIG["OS_TARGET"] == "OpenBSD":
59224
-if CONFIG["OS_TARGET"] == "OpenBSD":
57542
-
59225
-
57543
-    DEFINES["USE_GLIB"] = "1"
59226
-    DEFINES["USE_GLIB"] = "1"
Lines 57578-57590 index 82f0c8ee2d1b..7e6132c596c6 100644 Link Here
57578
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
59261
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
57579
-    DEFINES["_WINDOWS"] = True
59262
-    DEFINES["_WINDOWS"] = True
57580
-    DEFINES["__STD_C"] = True
59263
-    DEFINES["__STD_C"] = True
57581
-
57582
-    OS_LIBS += [
57583
-        "crypt32",
57584
-        "iphlpapi",
57585
-        "secur32",
57586
-        "winmm"
57587
-    ]
57588
+    DEFINES["_DEBUG"] = True
59264
+    DEFINES["_DEBUG"] = True
57589
 
59265
 
57590
 if CONFIG["CPU_ARCH"] == "aarch64":
59266
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 57660-57670 index 82f0c8ee2d1b..7e6132c596c6 100644 Link Here
57660
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
59336
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57661
-    DEFINES["_GNU_SOURCE"] = True
59337
-    DEFINES["_GNU_SOURCE"] = True
57662
-
59338
-
57663
 Library("nack_requester_gn")
59339
 Library("inter_frame_delay_gn")
57664
diff --git third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build
59340
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
57665
index 12ec6e5913bc..9f95558376b5 100644
59341
index f45f6f072fd5..3ee24c7a63aa 100644
57666
--- third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build
59342
--- third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build
57667
+++ third_party/libwebrtc/modules/video_coding/packet_buffer_gn/moz.build
59343
+++ third_party/libwebrtc/modules/video_coding/timing/jitter_estimator_gn/moz.build
57668
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59344
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57669
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59345
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57670
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
59346
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 57862-57872 index 12ec6e5913bc..9f95558376b5 100644 Link Here
57862
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
59538
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
57863
-    DEFINES["_GNU_SOURCE"] = True
59539
-    DEFINES["_GNU_SOURCE"] = True
57864
-
59540
-
57865
 Library("packet_buffer_gn")
59541
 Library("jitter_estimator_gn")
57866
diff --git third_party/libwebrtc/modules/video_coding/rtt_filter_gn/moz.build third_party/libwebrtc/modules/video_coding/rtt_filter_gn/moz.build
59542
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
57867
index 6d5975df6f43..5f50281931e2 100644
59543
index 54c90f4fee99..73f8f55bfc5c 100644
57868
--- third_party/libwebrtc/modules/video_coding/rtt_filter_gn/moz.build
59544
--- third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build
57869
+++ third_party/libwebrtc/modules/video_coding/rtt_filter_gn/moz.build
59545
+++ third_party/libwebrtc/modules/video_coding/timing/rtt_filter_gn/moz.build
57870
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59546
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
57871
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59547
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
57872
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
59548
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 58052-58061 index 6d5975df6f43..5f50281931e2 100644 Link Here
58052
-    DEFINES["_GNU_SOURCE"] = True
59728
-    DEFINES["_GNU_SOURCE"] = True
58053
-
59729
-
58054
 Library("rtt_filter_gn")
59730
 Library("rtt_filter_gn")
58055
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
59731
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
58056
index 08ac03f56841..fe6268db54ad 100644
59732
index 7f4e361630f5..692e85478b61 100644
58057
--- third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build
59733
--- third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build
58058
+++ third_party/libwebrtc/modules/video_coding/svc/scalability_mode_util_gn/moz.build
59734
+++ third_party/libwebrtc/modules/video_coding/timing/timing_module_gn/moz.build
58059
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59735
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58060
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59736
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58061
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
59737
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 58077-58083 index 08ac03f56841..fe6268db54ad 100644 Link Here
58077
 
59753
 
58078
 FINAL_LIBRARY = "webrtc"
59754
 FINAL_LIBRARY = "webrtc"
58079
 
59755
 
58080
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
59756
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
58081
 if CONFIG["MOZ_DEBUG"] == "1":
59757
 if CONFIG["MOZ_DEBUG"] == "1":
58082
 
59758
 
58083
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
59759
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 58125-58130 index 08ac03f56841..fe6268db54ad 100644 Link Here
58125
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
59801
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
58126
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59802
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58127
-
59803
-
59804
-    OS_LIBS += [
59805
-        "rt"
59806
-    ]
59807
-
58128
-if CONFIG["OS_TARGET"] == "OpenBSD":
59808
-if CONFIG["OS_TARGET"] == "OpenBSD":
58129
-
59809
-
58130
-    DEFINES["USE_GLIB"] = "1"
59810
-    DEFINES["USE_GLIB"] = "1"
Lines 58165-58170 index 08ac03f56841..fe6268db54ad 100644 Link Here
58165
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
59845
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
58166
-    DEFINES["_WINDOWS"] = True
59846
-    DEFINES["_WINDOWS"] = True
58167
-    DEFINES["__STD_C"] = True
59847
-    DEFINES["__STD_C"] = True
59848
-
59849
-    OS_LIBS += [
59850
-        "crypt32",
59851
-        "iphlpapi",
59852
-        "secur32",
59853
-        "winmm"
59854
-    ]
58168
+    DEFINES["_DEBUG"] = True
59855
+    DEFINES["_DEBUG"] = True
58169
 
59856
 
58170
 if CONFIG["CPU_ARCH"] == "aarch64":
59857
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 58240-58250 index 08ac03f56841..fe6268db54ad 100644 Link Here
58240
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
59927
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58241
-    DEFINES["_GNU_SOURCE"] = True
59928
-    DEFINES["_GNU_SOURCE"] = True
58242
-
59929
-
58243
 Library("scalability_mode_util_gn")
59930
 Library("timing_module_gn")
58244
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
59931
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
58245
index dbd579d02d44..352319713761 100644
59932
index da29622b17bf..01c957b82bfd 100644
58246
--- third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build
59933
--- third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build
58247
+++ third_party/libwebrtc/modules/video_coding/svc/scalability_structures_gn/moz.build
59934
+++ third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build
58248
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59935
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58249
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59936
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58250
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
59937
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 58266-58272 index dbd579d02d44..352319713761 100644 Link Here
58266
 
59953
 
58267
 FINAL_LIBRARY = "webrtc"
59954
 FINAL_LIBRARY = "webrtc"
58268
 
59955
 
58269
@@ -48,165 +58,15 @@ if not CONFIG["MOZ_DEBUG"]:
59956
@@ -42,174 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
58270
 if CONFIG["MOZ_DEBUG"] == "1":
59957
 if CONFIG["MOZ_DEBUG"] == "1":
58271
 
59958
 
58272
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
59959
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 58286-58291 index dbd579d02d44..352319713761 100644 Link Here
58286
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59973
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58287
-
59974
-
58288
-    OS_LIBS += [
59975
-    OS_LIBS += [
59976
-        "GLESv2",
58289
-        "log"
59977
-        "log"
58290
-    ]
59978
-    ]
58291
-
59979
-
Lines 58314-58319 index dbd579d02d44..352319713761 100644 Link Here
58314
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
60002
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
58315
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60003
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58316
-
60004
-
60005
-    OS_LIBS += [
60006
-        "dl",
60007
-        "rt"
60008
-    ]
60009
-
58317
-if CONFIG["OS_TARGET"] == "OpenBSD":
60010
-if CONFIG["OS_TARGET"] == "OpenBSD":
58318
-
60011
-
58319
-    DEFINES["USE_GLIB"] = "1"
60012
-    DEFINES["USE_GLIB"] = "1"
Lines 58356-58361 index dbd579d02d44..352319713761 100644 Link Here
58356
-    DEFINES["__STD_C"] = True
60049
-    DEFINES["__STD_C"] = True
58357
-
60050
-
58358
-    OS_LIBS += [
60051
-    OS_LIBS += [
60052
-        "crypt32",
60053
-        "iphlpapi",
60054
-        "secur32",
58359
-        "winmm"
60055
-        "winmm"
58360
-    ]
60056
-    ]
58361
+    DEFINES["_DEBUG"] = True
60057
+    DEFINES["_DEBUG"] = True
Lines 58433-58443 index dbd579d02d44..352319713761 100644 Link Here
58433
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60129
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58434
-    DEFINES["_GNU_SOURCE"] = True
60130
-    DEFINES["_GNU_SOURCE"] = True
58435
-
60131
-
58436
 Library("scalability_structures_gn")
60132
 Library("video_codec_interface_gn")
58437
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
60133
diff --git third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build
58438
index 8e22ed6814a7..d534ab923de5 100644
60134
index 40d6c2fa3440..b2797c97a4b0 100644
58439
--- third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build
60135
--- third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build
58440
+++ third_party/libwebrtc/modules/video_coding/svc/scalable_video_controller_gn/moz.build
60136
+++ third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build
58441
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
60137
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58442
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60138
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58443
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
60139
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 58459-58465 index 8e22ed6814a7..d534ab923de5 100644 Link Here
58459
 
60155
 
58460
 FINAL_LIBRARY = "webrtc"
60156
 FINAL_LIBRARY = "webrtc"
58461
 
60157
 
58462
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
60158
@@ -59,174 +69,15 @@ if not CONFIG["MOZ_DEBUG"]:
58463
 if CONFIG["MOZ_DEBUG"] == "1":
60159
 if CONFIG["MOZ_DEBUG"] == "1":
58464
 
60160
 
58465
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
60161
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 58479-58484 index 8e22ed6814a7..d534ab923de5 100644 Link Here
58479
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60175
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58480
-
60176
-
58481
-    OS_LIBS += [
60177
-    OS_LIBS += [
60178
-        "GLESv2",
58482
-        "log"
60179
-        "log"
58483
-    ]
60180
-    ]
58484
-
60181
-
Lines 58507-58512 index 8e22ed6814a7..d534ab923de5 100644 Link Here
58507
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
60204
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
58508
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60205
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58509
-
60206
-
60207
-    OS_LIBS += [
60208
-        "dl",
60209
-        "rt"
60210
-    ]
60211
-
58510
-if CONFIG["OS_TARGET"] == "OpenBSD":
60212
-if CONFIG["OS_TARGET"] == "OpenBSD":
58511
-
60213
-
58512
-    DEFINES["USE_GLIB"] = "1"
60214
-    DEFINES["USE_GLIB"] = "1"
Lines 58547-58552 index 8e22ed6814a7..d534ab923de5 100644 Link Here
58547
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
60249
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
58548
-    DEFINES["_WINDOWS"] = True
60250
-    DEFINES["_WINDOWS"] = True
58549
-    DEFINES["__STD_C"] = True
60251
-    DEFINES["__STD_C"] = True
60252
-
60253
-    OS_LIBS += [
60254
-        "crypt32",
60255
-        "iphlpapi",
60256
-        "secur32",
60257
-        "winmm"
60258
-    ]
58550
+    DEFINES["_DEBUG"] = True
60259
+    DEFINES["_DEBUG"] = True
58551
 
60260
 
58552
 if CONFIG["CPU_ARCH"] == "aarch64":
60261
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 58622-58632 index 8e22ed6814a7..d534ab923de5 100644 Link Here
58622
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60331
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58623
-    DEFINES["_GNU_SOURCE"] = True
60332
-    DEFINES["_GNU_SOURCE"] = True
58624
-
60333
-
58625
 Library("scalable_video_controller_gn")
60334
 Library("video_coding_gn")
58626
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
60335
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
58627
index cb5e4a4bf707..a16be3b05afd 100644
60336
index 1fb1c3455908..8ed800072743 100644
58628
--- third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build
60337
--- third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build
58629
+++ third_party/libwebrtc/modules/video_coding/svc/svc_rate_allocator_gn/moz.build
60338
+++ third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build
58630
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
60339
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58631
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60340
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58632
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
60341
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 58648-58654 index cb5e4a4bf707..a16be3b05afd 100644 Link Here
58648
 
60357
 
58649
 FINAL_LIBRARY = "webrtc"
60358
 FINAL_LIBRARY = "webrtc"
58650
 
60359
 
58651
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
60360
@@ -52,174 +62,15 @@ if not CONFIG["MOZ_DEBUG"]:
58652
 if CONFIG["MOZ_DEBUG"] == "1":
60361
 if CONFIG["MOZ_DEBUG"] == "1":
58653
 
60362
 
58654
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
60363
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 58668-58673 index cb5e4a4bf707..a16be3b05afd 100644 Link Here
58668
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60377
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58669
-
60378
-
58670
-    OS_LIBS += [
60379
-    OS_LIBS += [
60380
-        "GLESv2",
58671
-        "log"
60381
-        "log"
58672
-    ]
60382
-    ]
58673
-
60383
-
Lines 58696-58701 index cb5e4a4bf707..a16be3b05afd 100644 Link Here
58696
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
60406
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
58697
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60407
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58698
-
60408
-
60409
-    OS_LIBS += [
60410
-        "dl",
60411
-        "rt"
60412
-    ]
60413
-
58699
-if CONFIG["OS_TARGET"] == "OpenBSD":
60414
-if CONFIG["OS_TARGET"] == "OpenBSD":
58700
-
60415
-
58701
-    DEFINES["USE_GLIB"] = "1"
60416
-    DEFINES["USE_GLIB"] = "1"
Lines 58738-58743 index cb5e4a4bf707..a16be3b05afd 100644 Link Here
58738
-    DEFINES["__STD_C"] = True
60453
-    DEFINES["__STD_C"] = True
58739
-
60454
-
58740
-    OS_LIBS += [
60455
-    OS_LIBS += [
60456
-        "crypt32",
60457
-        "iphlpapi",
60458
-        "secur32",
58741
-        "winmm"
60459
-        "winmm"
58742
-    ]
60460
-    ]
58743
+    DEFINES["_DEBUG"] = True
60461
+    DEFINES["_DEBUG"] = True
Lines 58815-58825 index cb5e4a4bf707..a16be3b05afd 100644 Link Here
58815
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60533
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
58816
-    DEFINES["_GNU_SOURCE"] = True
60534
-    DEFINES["_GNU_SOURCE"] = True
58817
-
60535
-
58818
 Library("svc_rate_allocator_gn")
60536
 Library("video_coding_utility_gn")
58819
diff --git third_party/libwebrtc/modules/video_coding/timing_gn/moz.build third_party/libwebrtc/modules/video_coding/timing_gn/moz.build
60537
diff --git third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build
58820
index 6d1325709c05..7015194d6bea 100644
60538
index 68f59decaac9..5374c02be1ab 100644
58821
--- third_party/libwebrtc/modules/video_coding/timing_gn/moz.build
60539
--- third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build
58822
+++ third_party/libwebrtc/modules/video_coding/timing_gn/moz.build
60540
+++ third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build
58823
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
60541
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
58824
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60542
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
58825
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
60543
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 58841-58847 index 6d1325709c05..7015194d6bea 100644 Link Here
58841
 
60559
 
58842
 FINAL_LIBRARY = "webrtc"
60560
 FINAL_LIBRARY = "webrtc"
58843
 
60561
 
58844
@@ -42,172 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
60562
@@ -46,174 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
58845
 if CONFIG["MOZ_DEBUG"] == "1":
60563
 if CONFIG["MOZ_DEBUG"] == "1":
58846
 
60564
 
58847
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
60565
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 58861-58866 index 6d1325709c05..7015194d6bea 100644 Link Here
58861
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60579
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58862
-
60580
-
58863
-    OS_LIBS += [
60581
-    OS_LIBS += [
60582
-        "GLESv2",
58864
-        "log"
60583
-        "log"
58865
-    ]
60584
-    ]
58866
-
60585
-
Lines 58890-58895 index 6d1325709c05..7015194d6bea 100644 Link Here
58890
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60609
-    DEFINES["__STDC_FORMAT_MACROS"] = True
58891
-
60610
-
58892
-    OS_LIBS += [
60611
-    OS_LIBS += [
60612
-        "dl",
58893
-        "rt"
60613
-        "rt"
58894
-    ]
60614
-    ]
58895
-
60615
-
Lines 59015-59025 index 6d1325709c05..7015194d6bea 100644 Link Here
59015
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60735
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
59016
-    DEFINES["_GNU_SOURCE"] = True
60736
-    DEFINES["_GNU_SOURCE"] = True
59017
-
60737
-
59018
 Library("timing_gn")
60738
 Library("webrtc_h264_gn")
59019
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
60739
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
59020
index da29622b17bf..01c957b82bfd 100644
60740
index 6f360d915d5d..653b68087a6c 100644
59021
--- third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build
60741
--- third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build
59022
+++ third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build
60742
+++ third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build
59023
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
60743
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59024
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60744
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59025
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
60745
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 59041-59047 index da29622b17bf..01c957b82bfd 100644 Link Here
59041
 
60761
 
59042
 FINAL_LIBRARY = "webrtc"
60762
 FINAL_LIBRARY = "webrtc"
59043
 
60763
 
59044
@@ -42,174 +52,15 @@ if not CONFIG["MOZ_DEBUG"]:
60764
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
59045
 if CONFIG["MOZ_DEBUG"] == "1":
60765
 if CONFIG["MOZ_DEBUG"] == "1":
59046
 
60766
 
59047
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
60767
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 59061-59067 index da29622b17bf..01c957b82bfd 100644 Link Here
59061
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60781
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59062
-
60782
-
59063
-    OS_LIBS += [
60783
-    OS_LIBS += [
59064
-        "GLESv2",
59065
-        "log"
60784
-        "log"
59066
-    ]
60785
-    ]
59067
-
60786
-
Lines 59090-59100 index da29622b17bf..01c957b82bfd 100644 Link Here
59090
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
60809
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
59091
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60810
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59092
-
60811
-
59093
-    OS_LIBS += [
59094
-        "dl",
59095
-        "rt"
59096
-    ]
59097
-
59098
-if CONFIG["OS_TARGET"] == "OpenBSD":
60812
-if CONFIG["OS_TARGET"] == "OpenBSD":
59099
-
60813
-
59100
-    DEFINES["USE_GLIB"] = "1"
60814
-    DEFINES["USE_GLIB"] = "1"
Lines 59135-59147 index da29622b17bf..01c957b82bfd 100644 Link Here
59135
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
60849
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
59136
-    DEFINES["_WINDOWS"] = True
60850
-    DEFINES["_WINDOWS"] = True
59137
-    DEFINES["__STD_C"] = True
60851
-    DEFINES["__STD_C"] = True
59138
-
59139
-    OS_LIBS += [
59140
-        "crypt32",
59141
-        "iphlpapi",
59142
-        "secur32",
59143
-        "winmm"
59144
-    ]
59145
+    DEFINES["_DEBUG"] = True
60852
+    DEFINES["_DEBUG"] = True
59146
 
60853
 
59147
 if CONFIG["CPU_ARCH"] == "aarch64":
60854
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 59217-59227 index da29622b17bf..01c957b82bfd 100644 Link Here
59217
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60924
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
59218
-    DEFINES["_GNU_SOURCE"] = True
60925
-    DEFINES["_GNU_SOURCE"] = True
59219
-
60926
-
59220
 Library("video_codec_interface_gn")
60927
 Library("webrtc_libvpx_interface_gn")
59221
diff --git third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build
60928
diff --git third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build
59222
index 2cb8a184972b..e4a8a6926196 100644
60929
index 2b1679f9417e..43721cb39474 100644
59223
--- third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build
60930
--- third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build
59224
+++ third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build
60931
+++ third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build
59225
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
60932
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59226
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60933
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59227
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
60934
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 59243-59249 index 2cb8a184972b..e4a8a6926196 100644 Link Here
59243
 
60950
 
59244
 FINAL_LIBRARY = "webrtc"
60951
 FINAL_LIBRARY = "webrtc"
59245
 
60952
 
59246
@@ -60,174 +70,15 @@ if not CONFIG["MOZ_DEBUG"]:
60953
@@ -44,174 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
59247
 if CONFIG["MOZ_DEBUG"] == "1":
60954
 if CONFIG["MOZ_DEBUG"] == "1":
59248
 
60955
 
59249
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
60956
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 59419-59429 index 2cb8a184972b..e4a8a6926196 100644 Link Here
59419
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61126
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
59420
-    DEFINES["_GNU_SOURCE"] = True
61127
-    DEFINES["_GNU_SOURCE"] = True
59421
-
61128
-
59422
 Library("video_coding_gn")
61129
 Library("webrtc_multiplex_gn")
59423
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
61130
diff --git third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build
59424
index 1fb1c3455908..8ed800072743 100644
61131
index d4a85cbfc7fe..557f8cce3ace 100644
59425
--- third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build
61132
--- third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build
59426
+++ third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build
61133
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build
59427
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
61134
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59428
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61135
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59429
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
61136
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 59445-59451 index 1fb1c3455908..8ed800072743 100644 Link Here
59445
 
61152
 
59446
 FINAL_LIBRARY = "webrtc"
61153
 FINAL_LIBRARY = "webrtc"
59447
 
61154
 
59448
@@ -52,174 +62,15 @@ if not CONFIG["MOZ_DEBUG"]:
61155
@@ -44,174 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
59449
 if CONFIG["MOZ_DEBUG"] == "1":
61156
 if CONFIG["MOZ_DEBUG"] == "1":
59450
 
61157
 
59451
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
61158
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 59621-59631 index 1fb1c3455908..8ed800072743 100644 Link Here
59621
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61328
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
59622
-    DEFINES["_GNU_SOURCE"] = True
61329
-    DEFINES["_GNU_SOURCE"] = True
59623
-
61330
-
59624
 Library("video_coding_utility_gn")
61331
 Library("webrtc_vp8_gn")
59625
diff --git third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build
61332
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
59626
index 68f59decaac9..5374c02be1ab 100644
61333
index 1e8317f46e63..e8019e2d5bc3 100644
59627
--- third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build
61334
--- third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build
59628
+++ third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build
61335
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build
59629
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
61336
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59630
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61337
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59631
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
61338
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 59647-59653 index 68f59decaac9..5374c02be1ab 100644 Link Here
59647
 
61354
 
59648
 FINAL_LIBRARY = "webrtc"
61355
 FINAL_LIBRARY = "webrtc"
59649
 
61356
 
59650
@@ -46,174 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
61357
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
59651
 if CONFIG["MOZ_DEBUG"] == "1":
61358
 if CONFIG["MOZ_DEBUG"] == "1":
59652
 
61359
 
59653
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
61360
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 59667-59673 index 68f59decaac9..5374c02be1ab 100644 Link Here
59667
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61374
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59668
-
61375
-
59669
-    OS_LIBS += [
61376
-    OS_LIBS += [
59670
-        "GLESv2",
59671
-        "log"
61377
-        "log"
59672
-    ]
61378
-    ]
59673
-
61379
-
Lines 59696-59706 index 68f59decaac9..5374c02be1ab 100644 Link Here
59696
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
61402
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
59697
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61403
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59698
-
61404
-
59699
-    OS_LIBS += [
59700
-        "dl",
59701
-        "rt"
59702
-    ]
59703
-
59704
-if CONFIG["OS_TARGET"] == "OpenBSD":
61405
-if CONFIG["OS_TARGET"] == "OpenBSD":
59705
-
61406
-
59706
-    DEFINES["USE_GLIB"] = "1"
61407
-    DEFINES["USE_GLIB"] = "1"
Lines 59741-59753 index 68f59decaac9..5374c02be1ab 100644 Link Here
59741
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
61442
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
59742
-    DEFINES["_WINDOWS"] = True
61443
-    DEFINES["_WINDOWS"] = True
59743
-    DEFINES["__STD_C"] = True
61444
-    DEFINES["__STD_C"] = True
59744
-
59745
-    OS_LIBS += [
59746
-        "crypt32",
59747
-        "iphlpapi",
59748
-        "secur32",
59749
-        "winmm"
59750
-    ]
59751
+    DEFINES["_DEBUG"] = True
61445
+    DEFINES["_DEBUG"] = True
59752
 
61446
 
59753
 if CONFIG["CPU_ARCH"] == "aarch64":
61447
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 59823-59833 index 68f59decaac9..5374c02be1ab 100644 Link Here
59823
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61517
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
59824
-    DEFINES["_GNU_SOURCE"] = True
61518
-    DEFINES["_GNU_SOURCE"] = True
59825
-
61519
-
59826
 Library("webrtc_h264_gn")
61520
 Library("webrtc_vp8_scalability_gn")
59827
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
61521
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
59828
index 6f360d915d5d..653b68087a6c 100644
61522
index 2e8bb42e847e..bd3f307bbc43 100644
59829
--- third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build
61523
--- third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build
59830
+++ third_party/libwebrtc/modules/video_coding/webrtc_libvpx_interface_gn/moz.build
61524
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build
59831
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
61525
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
59832
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61526
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
59833
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
61527
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 59849-59855 index 6f360d915d5d..653b68087a6c 100644 Link Here
59849
 
61543
 
59850
 FINAL_LIBRARY = "webrtc"
61544
 FINAL_LIBRARY = "webrtc"
59851
 
61545
 
59852
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
61546
@@ -46,174 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
59853
 if CONFIG["MOZ_DEBUG"] == "1":
61547
 if CONFIG["MOZ_DEBUG"] == "1":
59854
 
61548
 
59855
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
61549
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 59869-59874 index 6f360d915d5d..653b68087a6c 100644 Link Here
59869
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61563
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59870
-
61564
-
59871
-    OS_LIBS += [
61565
-    OS_LIBS += [
61566
-        "GLESv2",
59872
-        "log"
61567
-        "log"
59873
-    ]
61568
-    ]
59874
-
61569
-
Lines 59897-59902 index 6f360d915d5d..653b68087a6c 100644 Link Here
59897
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
61592
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
59898
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61593
-    DEFINES["__STDC_FORMAT_MACROS"] = True
59899
-
61594
-
61595
-    OS_LIBS += [
61596
-        "dl",
61597
-        "rt"
61598
-    ]
61599
-
59900
-if CONFIG["OS_TARGET"] == "OpenBSD":
61600
-if CONFIG["OS_TARGET"] == "OpenBSD":
59901
-
61601
-
59902
-    DEFINES["USE_GLIB"] = "1"
61602
-    DEFINES["USE_GLIB"] = "1"
Lines 59937-59942 index 6f360d915d5d..653b68087a6c 100644 Link Here
59937
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
61637
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
59938
-    DEFINES["_WINDOWS"] = True
61638
-    DEFINES["_WINDOWS"] = True
59939
-    DEFINES["__STD_C"] = True
61639
-    DEFINES["__STD_C"] = True
61640
-
61641
-    OS_LIBS += [
61642
-        "crypt32",
61643
-        "iphlpapi",
61644
-        "secur32",
61645
-        "winmm"
61646
-    ]
59940
+    DEFINES["_DEBUG"] = True
61647
+    DEFINES["_DEBUG"] = True
59941
 
61648
 
59942
 if CONFIG["CPU_ARCH"] == "aarch64":
61649
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 60012-60022 index 6f360d915d5d..653b68087a6c 100644 Link Here
60012
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61719
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60013
-    DEFINES["_GNU_SOURCE"] = True
61720
-    DEFINES["_GNU_SOURCE"] = True
60014
-
61721
-
60015
 Library("webrtc_libvpx_interface_gn")
61722
 Library("webrtc_vp8_temporal_layers_gn")
60016
diff --git third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build
61723
diff --git third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build
60017
index 2b1679f9417e..43721cb39474 100644
61724
index e3f0d1774eba..36a2e95654f4 100644
60018
--- third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build
61725
--- third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build
60019
+++ third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build
61726
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build
60020
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
61727
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
60021
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61728
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60022
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
61729
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 60038-60044 index 2b1679f9417e..43721cb39474 100644 Link Here
60038
 
61745
 
60039
 FINAL_LIBRARY = "webrtc"
61746
 FINAL_LIBRARY = "webrtc"
60040
 
61747
 
60041
@@ -44,174 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
61748
@@ -46,174 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
60042
 if CONFIG["MOZ_DEBUG"] == "1":
61749
 if CONFIG["MOZ_DEBUG"] == "1":
60043
 
61750
 
60044
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
61751
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 60214-60224 index 2b1679f9417e..43721cb39474 100644 Link Here
60214
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61921
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60215
-    DEFINES["_GNU_SOURCE"] = True
61922
-    DEFINES["_GNU_SOURCE"] = True
60216
-
61923
-
60217
 Library("webrtc_multiplex_gn")
61924
 Library("webrtc_vp9_gn")
60218
diff --git third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build
61925
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
60219
index d4a85cbfc7fe..557f8cce3ace 100644
61926
index c73282c2ee34..f5f423de241b 100644
60220
--- third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build
61927
--- third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build
60221
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build
61928
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build
60222
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
61929
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
60223
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61930
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60224
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
61931
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 60240-60246 index d4a85cbfc7fe..557f8cce3ace 100644 Link Here
60240
 
61947
 
60241
 FINAL_LIBRARY = "webrtc"
61948
 FINAL_LIBRARY = "webrtc"
60242
 
61949
 
60243
@@ -44,174 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
61950
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
60244
 if CONFIG["MOZ_DEBUG"] == "1":
61951
 if CONFIG["MOZ_DEBUG"] == "1":
60245
 
61952
 
60246
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
61953
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 60416-60426 index d4a85cbfc7fe..557f8cce3ace 100644 Link Here
60416
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62123
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60417
-    DEFINES["_GNU_SOURCE"] = True
62124
-    DEFINES["_GNU_SOURCE"] = True
60418
-
62125
-
60419
 Library("webrtc_vp8_gn")
62126
 Library("webrtc_vp9_helpers_gn")
60420
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
62127
diff --git third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build
60421
index 62a8f103c953..e8019e2d5bc3 100644
62128
index 0aaecfdf510a..70a93b65f156 100644
60422
--- third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build
62129
--- third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build
60423
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_scalability_gn/moz.build
62130
+++ third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build
60424
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
62131
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
60425
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
62132
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60426
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
62133
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 60442-60448 index 62a8f103c953..e8019e2d5bc3 100644 Link Here
60442
 
62149
 
60443
 FINAL_LIBRARY = "webrtc"
62150
 FINAL_LIBRARY = "webrtc"
60444
 
62151
 
60445
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
62152
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
60446
 if CONFIG["MOZ_DEBUG"] == "1":
62153
 if CONFIG["MOZ_DEBUG"] == "1":
60447
 
62154
 
60448
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
62155
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 60535-60544 index 62a8f103c953..e8019e2d5bc3 100644 Link Here
60535
 
62242
 
60536
-if CONFIG["CPU_ARCH"] == "arm":
62243
-if CONFIG["CPU_ARCH"] == "arm":
60537
-
62244
-
60538
-    CXXFLAGS += [
60539
-        "-mfpu=neon"
60540
-    ]
60541
-
60542
-    DEFINES["WEBRTC_ARCH_ARM"] = True
62245
-    DEFINES["WEBRTC_ARCH_ARM"] = True
60543
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
62246
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
60544
-    DEFINES["WEBRTC_HAS_NEON"] = True
62247
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 60601-60611 index 62a8f103c953..e8019e2d5bc3 100644 Link Here
60601
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62304
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60602
-    DEFINES["_GNU_SOURCE"] = True
62305
-    DEFINES["_GNU_SOURCE"] = True
60603
-
62306
-
60604
 Library("webrtc_vp8_scalability_gn")
62307
 Library("denoiser_filter_gn")
60605
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
62308
diff --git third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build
60606
index 2e8bb42e847e..bd3f307bbc43 100644
62309
index aa332adfa9a7..2bdd0d2bebbb 100644
60607
--- third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build
62310
--- third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build
60608
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build
62311
+++ third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build
60609
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
62312
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
60610
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
62313
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60611
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
62314
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 60627-60633 index 2e8bb42e847e..bd3f307bbc43 100644 Link Here
60627
 
62330
 
60628
 FINAL_LIBRARY = "webrtc"
62331
 FINAL_LIBRARY = "webrtc"
60629
 
62332
 
60630
@@ -46,174 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
62333
@@ -47,174 +57,15 @@ if not CONFIG["MOZ_DEBUG"]:
60631
 if CONFIG["MOZ_DEBUG"] == "1":
62334
 if CONFIG["MOZ_DEBUG"] == "1":
60632
 
62335
 
60633
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
62336
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 60803-60822 index 2e8bb42e847e..bd3f307bbc43 100644 Link Here
60803
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62506
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60804
-    DEFINES["_GNU_SOURCE"] = True
62507
-    DEFINES["_GNU_SOURCE"] = True
60805
-
62508
-
60806
 Library("webrtc_vp8_temporal_layers_gn")
62509
 Library("video_processing_gn")
60807
diff --git third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build
62510
diff --git third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build
60808
index e3f0d1774eba..36a2e95654f4 100644
62511
index 3588b0ac325f..e1d6759739e5 100644
60809
--- third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build
62512
--- third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build
60810
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build
62513
+++ third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build
60811
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
62514
@@ -12,12 +12,22 @@ AllowCompilerWarnings()
60812
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
62515
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
60813
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
62516
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
60814
 DEFINES["RTC_ENABLE_VP9"] = True
62517
 DEFINES["RTC_ENABLE_VP9"] = True
60815
+DEFINES["USE_GLIB"] = "1"
62518
+DEFINES["USE_GLIB"] = "1"
60816
+DEFINES["USE_OZONE"] = "1"
62519
+DEFINES["USE_OZONE"] = "1"
62520
+DEFINES["WEBRTC_ARCH_ARM64"] = True
60817
+DEFINES["WEBRTC_BSD"] = True
62521
+DEFINES["WEBRTC_BSD"] = True
60818
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
62522
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
60819
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
62523
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
62524
 DEFINES["WEBRTC_HAS_NEON"] = True
60820
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
62525
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
60821
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
62526
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
60822
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
62527
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
Lines 60829-60835 index e3f0d1774eba..36a2e95654f4 100644 Link Here
60829
 
62534
 
60830
 FINAL_LIBRARY = "webrtc"
62535
 FINAL_LIBRARY = "webrtc"
60831
 
62536
 
60832
@@ -46,174 +56,15 @@ if not CONFIG["MOZ_DEBUG"]:
62537
@@ -43,133 +53,10 @@ if not CONFIG["MOZ_DEBUG"]:
60833
 if CONFIG["MOZ_DEBUG"] == "1":
62538
 if CONFIG["MOZ_DEBUG"] == "1":
60834
 
62539
 
60835
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
62540
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 60841-60861 index e3f0d1774eba..36a2e95654f4 100644 Link Here
60841
-    DEFINES["HAVE_SYS_UIO_H"] = True
62546
-    DEFINES["HAVE_SYS_UIO_H"] = True
60842
-    DEFINES["WEBRTC_ANDROID"] = True
62547
-    DEFINES["WEBRTC_ANDROID"] = True
60843
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
62548
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
60844
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60845
-    DEFINES["WEBRTC_LINUX"] = True
62549
-    DEFINES["WEBRTC_LINUX"] = True
60846
-    DEFINES["WEBRTC_POSIX"] = True
62550
-    DEFINES["WEBRTC_POSIX"] = True
60847
-    DEFINES["_GNU_SOURCE"] = True
62551
-    DEFINES["_GNU_SOURCE"] = True
60848
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
62552
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
60849
-    DEFINES["__STDC_FORMAT_MACROS"] = True
62553
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60850
-
62554
-
60851
-    OS_LIBS += [
60852
-        "GLESv2",
60853
-        "log"
60854
-    ]
60855
-
60856
-if CONFIG["OS_TARGET"] == "Darwin":
62555
-if CONFIG["OS_TARGET"] == "Darwin":
60857
-
62556
-
60858
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62557
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
60859
-    DEFINES["WEBRTC_MAC"] = True
62558
-    DEFINES["WEBRTC_MAC"] = True
60860
-    DEFINES["WEBRTC_POSIX"] = True
62559
-    DEFINES["WEBRTC_POSIX"] = True
60861
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
62560
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 60873-60895 index e3f0d1774eba..36a2e95654f4 100644 Link Here
60873
-    DEFINES["WEBRTC_LINUX"] = True
62572
-    DEFINES["WEBRTC_LINUX"] = True
60874
-    DEFINES["WEBRTC_POSIX"] = True
62573
-    DEFINES["WEBRTC_POSIX"] = True
60875
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
62574
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
62575
-    DEFINES["_GNU_SOURCE"] = True
60876
-    DEFINES["_LARGEFILE64_SOURCE"] = True
62576
-    DEFINES["_LARGEFILE64_SOURCE"] = True
60877
-    DEFINES["_LARGEFILE_SOURCE"] = True
62577
-    DEFINES["_LARGEFILE_SOURCE"] = True
60878
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
62578
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
60879
-    DEFINES["__STDC_FORMAT_MACROS"] = True
62579
-    DEFINES["__STDC_FORMAT_MACROS"] = True
60880
-
62580
-
60881
-    OS_LIBS += [
60882
-        "dl",
60883
-        "rt"
60884
-    ]
60885
-
60886
-if CONFIG["OS_TARGET"] == "OpenBSD":
62581
-if CONFIG["OS_TARGET"] == "OpenBSD":
60887
-
62582
-
60888
-    DEFINES["USE_GLIB"] = "1"
62583
-    DEFINES["USE_GLIB"] = "1"
60889
-    DEFINES["USE_OZONE"] = "1"
62584
-    DEFINES["USE_OZONE"] = "1"
60890
-    DEFINES["USE_X11"] = "1"
62585
-    DEFINES["USE_X11"] = "1"
62586
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
60891
-    DEFINES["WEBRTC_BSD"] = True
62587
-    DEFINES["WEBRTC_BSD"] = True
60892
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60893
-    DEFINES["WEBRTC_POSIX"] = True
62588
-    DEFINES["WEBRTC_POSIX"] = True
60894
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
62589
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
60895
-    DEFINES["_LARGEFILE64_SOURCE"] = True
62590
-    DEFINES["_LARGEFILE64_SOURCE"] = True
Lines 60905-60911 index e3f0d1774eba..36a2e95654f4 100644 Link Here
60905
-    DEFINES["PSAPI_VERSION"] = "2"
62600
-    DEFINES["PSAPI_VERSION"] = "2"
60906
-    DEFINES["UNICODE"] = True
62601
-    DEFINES["UNICODE"] = True
60907
-    DEFINES["USE_AURA"] = "1"
62602
-    DEFINES["USE_AURA"] = "1"
60908
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62603
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
60909
-    DEFINES["WEBRTC_WIN"] = True
62604
-    DEFINES["WEBRTC_WIN"] = True
60910
-    DEFINES["WIN32"] = True
62605
-    DEFINES["WIN32"] = True
60911
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
62606
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 60924-60942 index e3f0d1774eba..36a2e95654f4 100644 Link Here
60924
-    DEFINES["_WINDOWS"] = True
62619
-    DEFINES["_WINDOWS"] = True
60925
-    DEFINES["__STD_C"] = True
62620
-    DEFINES["__STD_C"] = True
60926
-
62621
-
60927
-    OS_LIBS += [
60928
-        "crypt32",
60929
-        "iphlpapi",
60930
-        "secur32",
60931
-        "winmm"
60932
-    ]
60933
+    DEFINES["_DEBUG"] = True
60934
 
60935
 if CONFIG["CPU_ARCH"] == "aarch64":
60936
 
60937
     DEFINES["WEBRTC_ARCH_ARM64"] = True
60938
     DEFINES["WEBRTC_HAS_NEON"] = True
60939
 
60940
-if CONFIG["CPU_ARCH"] == "arm":
62622
-if CONFIG["CPU_ARCH"] == "arm":
60941
-
62623
-
60942
-    CXXFLAGS += [
62624
-    CXXFLAGS += [
Lines 60945-60956 index e3f0d1774eba..36a2e95654f4 100644 Link Here
60945
-
62627
-
60946
-    DEFINES["WEBRTC_ARCH_ARM"] = True
62628
-    DEFINES["WEBRTC_ARCH_ARM"] = True
60947
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
62629
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
60948
-    DEFINES["WEBRTC_HAS_NEON"] = True
60949
-
62630
-
60950
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
62631
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
60951
-
62632
-
60952
-    DEFINES["_DEBUG"] = True
62633
     DEFINES["_DEBUG"] = True
60953
-
62634
 
60954
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
62635
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
60955
-
62636
-
60956
-    DEFINES["_DEBUG"] = True
62637
-    DEFINES["_DEBUG"] = True
Lines 60972-60977 index e3f0d1774eba..36a2e95654f4 100644 Link Here
60972
 
62653
 
60973
     DEFINES["USE_X11"] = "1"
62654
     DEFINES["USE_X11"] = "1"
60974
 
62655
 
62656
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
62657
-
62658
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
62659
-
60975
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
62660
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
60976
-
62661
-
60977
-    OS_LIBS += [
62662
-    OS_LIBS += [
Lines 60979-61023 index e3f0d1774eba..36a2e95654f4 100644 Link Here
60979
-        "unwind"
62664
-        "unwind"
60980
-    ]
62665
-    ]
60981
-
62666
-
60982
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
60983
-
60984
-    OS_LIBS += [
60985
-        "android_support"
60986
-    ]
60987
-
60988
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
62667
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
60989
-
62668
-
60990
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62669
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
60991
-    DEFINES["_GNU_SOURCE"] = True
60992
-
60993
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
60994
-
60995
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
60996
-    DEFINES["_GNU_SOURCE"] = True
60997
-
60998
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
60999
-
61000
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61001
-    DEFINES["_GNU_SOURCE"] = True
61002
-
61003
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
61004
-
61005
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61006
-    DEFINES["_GNU_SOURCE"] = True
61007
-
62670
-
61008
 Library("webrtc_vp9_gn")
62671
 Library("video_processing_neon_gn")
61009
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
62672
diff --git third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build
61010
index c73282c2ee34..f5f423de241b 100644
62673
index 9d41f521fdb8..0c3a0c9fcefc 100644
61011
--- third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build
62674
--- third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build
61012
+++ third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build
62675
+++ third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build
61013
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
62676
@@ -9,14 +9,27 @@
62677
 COMPILE_FLAGS["OS_INCLUDES"] = []
62678
 AllowCompilerWarnings()
62679
 
62680
+CXXFLAGS += [
62681
+    "-msse2"
62682
+]
62683
+
61014
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
62684
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61015
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
62685
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
61016
 DEFINES["RTC_ENABLE_VP9"] = True
62686
 DEFINES["RTC_ENABLE_VP9"] = True
61017
+DEFINES["USE_GLIB"] = "1"
62687
+DEFINES["USE_GLIB"] = "1"
61018
+DEFINES["USE_OZONE"] = "1"
62688
+DEFINES["USE_OZONE"] = "1"
61019
+DEFINES["WEBRTC_BSD"] = True
62689
+DEFINES["WEBRTC_BSD"] = True
61020
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
62690
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
61021
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
62691
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
61022
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
62692
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
61023
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
62693
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
Lines 61031-61049 index c73282c2ee34..f5f423de241b 100644 Link Here
61031
 
62701
 
61032
 FINAL_LIBRARY = "webrtc"
62702
 FINAL_LIBRARY = "webrtc"
61033
 
62703
 
61034
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
62704
@@ -42,143 +55,10 @@ if not CONFIG["MOZ_DEBUG"]:
61035
 if CONFIG["MOZ_DEBUG"] == "1":
62705
 if CONFIG["MOZ_DEBUG"] == "1":
61036
 
62706
 
61037
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
62707
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
61038
-
62708
-
61039
-if CONFIG["OS_TARGET"] == "Android":
62709
-if CONFIG["OS_TARGET"] == "Android":
61040
-
62710
-
62711
-    CXXFLAGS += [
62712
-        "-msse2"
62713
-    ]
62714
-
61041
-    DEFINES["ANDROID"] = True
62715
-    DEFINES["ANDROID"] = True
61042
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
62716
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
61043
-    DEFINES["HAVE_SYS_UIO_H"] = True
62717
-    DEFINES["HAVE_SYS_UIO_H"] = True
61044
-    DEFINES["WEBRTC_ANDROID"] = True
62718
-    DEFINES["WEBRTC_ANDROID"] = True
61045
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
62719
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
61046
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61047
-    DEFINES["WEBRTC_LINUX"] = True
62720
-    DEFINES["WEBRTC_LINUX"] = True
61048
-    DEFINES["WEBRTC_POSIX"] = True
62721
-    DEFINES["WEBRTC_POSIX"] = True
61049
-    DEFINES["_GNU_SOURCE"] = True
62722
-    DEFINES["_GNU_SOURCE"] = True
Lines 61051-61063 index c73282c2ee34..f5f423de241b 100644 Link Here
61051
-    DEFINES["__STDC_FORMAT_MACROS"] = True
62724
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61052
-
62725
-
61053
-    OS_LIBS += [
62726
-    OS_LIBS += [
61054
-        "GLESv2",
61055
-        "log"
62727
-        "log"
61056
-    ]
62728
-    ]
61057
-
62729
-
61058
-if CONFIG["OS_TARGET"] == "Darwin":
62730
-if CONFIG["OS_TARGET"] == "Darwin":
61059
-
62731
-
61060
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62732
-    CXXFLAGS += [
62733
-        "-msse2"
62734
-    ]
62735
-
61061
-    DEFINES["WEBRTC_MAC"] = True
62736
-    DEFINES["WEBRTC_MAC"] = True
61062
-    DEFINES["WEBRTC_POSIX"] = True
62737
-    DEFINES["WEBRTC_POSIX"] = True
61063
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
62738
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 61067-61072 index c73282c2ee34..f5f423de241b 100644 Link Here
61067
-
62742
-
61068
-if CONFIG["OS_TARGET"] == "Linux":
62743
-if CONFIG["OS_TARGET"] == "Linux":
61069
-
62744
-
62745
-    CXXFLAGS += [
62746
-        "-msse2"
62747
-    ]
62748
-
61070
-    DEFINES["USE_AURA"] = "1"
62749
-    DEFINES["USE_AURA"] = "1"
61071
-    DEFINES["USE_GLIB"] = "1"
62750
-    DEFINES["USE_GLIB"] = "1"
61072
-    DEFINES["USE_NSS_CERTS"] = "1"
62751
-    DEFINES["USE_NSS_CERTS"] = "1"
Lines 61075-61097 index c73282c2ee34..f5f423de241b 100644 Link Here
61075
-    DEFINES["WEBRTC_LINUX"] = True
62754
-    DEFINES["WEBRTC_LINUX"] = True
61076
-    DEFINES["WEBRTC_POSIX"] = True
62755
-    DEFINES["WEBRTC_POSIX"] = True
61077
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
62756
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
62757
-    DEFINES["_GNU_SOURCE"] = True
61078
-    DEFINES["_LARGEFILE64_SOURCE"] = True
62758
-    DEFINES["_LARGEFILE64_SOURCE"] = True
61079
-    DEFINES["_LARGEFILE_SOURCE"] = True
62759
-    DEFINES["_LARGEFILE_SOURCE"] = True
61080
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
62760
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
61081
-    DEFINES["__STDC_FORMAT_MACROS"] = True
62761
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61082
-
62762
-
61083
-    OS_LIBS += [
62763
-    OS_LIBS += [
61084
-        "dl",
61085
-        "rt"
62764
-        "rt"
61086
-    ]
62765
-    ]
61087
-
62766
-
61088
-if CONFIG["OS_TARGET"] == "OpenBSD":
62767
-if CONFIG["OS_TARGET"] == "OpenBSD":
61089
-
62768
-
62769
-    CXXFLAGS += [
62770
-        "-msse2"
62771
-    ]
62772
-
61090
-    DEFINES["USE_GLIB"] = "1"
62773
-    DEFINES["USE_GLIB"] = "1"
61091
-    DEFINES["USE_OZONE"] = "1"
62774
-    DEFINES["USE_OZONE"] = "1"
61092
-    DEFINES["USE_X11"] = "1"
62775
-    DEFINES["USE_X11"] = "1"
61093
-    DEFINES["WEBRTC_BSD"] = True
62776
-    DEFINES["WEBRTC_BSD"] = True
61094
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61095
-    DEFINES["WEBRTC_POSIX"] = True
62777
-    DEFINES["WEBRTC_POSIX"] = True
61096
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
62778
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
61097
-    DEFINES["_LARGEFILE64_SOURCE"] = True
62779
-    DEFINES["_LARGEFILE64_SOURCE"] = True
Lines 61107-61113 index c73282c2ee34..f5f423de241b 100644 Link Here
61107
-    DEFINES["PSAPI_VERSION"] = "2"
62789
-    DEFINES["PSAPI_VERSION"] = "2"
61108
-    DEFINES["UNICODE"] = True
62790
-    DEFINES["UNICODE"] = True
61109
-    DEFINES["USE_AURA"] = "1"
62791
-    DEFINES["USE_AURA"] = "1"
61110
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61111
-    DEFINES["WEBRTC_WIN"] = True
62792
-    DEFINES["WEBRTC_WIN"] = True
61112
-    DEFINES["WIN32"] = True
62793
-    DEFINES["WIN32"] = True
61113
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
62794
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 61132-61153 index c73282c2ee34..f5f423de241b 100644 Link Here
61132
-        "secur32",
62813
-        "secur32",
61133
-        "winmm"
62814
-        "winmm"
61134
-    ]
62815
-    ]
61135
+    DEFINES["_DEBUG"] = True
61136
 
61137
 if CONFIG["CPU_ARCH"] == "aarch64":
61138
 
61139
     DEFINES["WEBRTC_ARCH_ARM64"] = True
61140
     DEFINES["WEBRTC_HAS_NEON"] = True
61141
 
61142
-if CONFIG["CPU_ARCH"] == "arm":
61143
-
61144
-    CXXFLAGS += [
61145
-        "-mfpu=neon"
61146
-    ]
61147
-
61148
-    DEFINES["WEBRTC_ARCH_ARM"] = True
61149
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
61150
-    DEFINES["WEBRTC_HAS_NEON"] = True
61151
-
62816
-
61152
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
62817
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
61153
-
62818
-
Lines 61163-61170 index c73282c2ee34..f5f423de241b 100644 Link Here
61163
-
62828
-
61164
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
62829
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
61165
-
62830
-
61166
-    DEFINES["_DEBUG"] = True
62831
     DEFINES["_DEBUG"] = True
61167
-
62832
 
61168
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
62833
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
61169
-
62834
-
61170
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
62835
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 61174-61217 index c73282c2ee34..f5f423de241b 100644 Link Here
61174
 
62839
 
61175
     DEFINES["USE_X11"] = "1"
62840
     DEFINES["USE_X11"] = "1"
61176
 
62841
 
61177
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
62842
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
61178
-
62843
-
61179
-    OS_LIBS += [
62844
-    OS_LIBS += [
61180
-        "android_support",
62845
-        "android_support"
61181
-        "unwind"
62846
-    ]
62847
-
62848
 Library("video_processing_sse2_gn")
62849
diff --git third_party/libwebrtc/moz.build third_party/libwebrtc/moz.build
62850
index 78a668b8646e..69f69fa74b5e 100644
62851
--- third_party/libwebrtc/moz.build
62852
+++ third_party/libwebrtc/moz.build
62853
@@ -26,7 +26,9 @@ DIRS += [
62854
     "/third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn",
62855
     "/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_config_gn",
62856
     "/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn",
62857
+    "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62858
     "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_gn",
62859
+    "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62860
     "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_gn",
62861
     "/third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn",
62862
     "/third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn",
62863
@@ -171,7 +173,9 @@ DIRS += [
62864
     "/third_party/libwebrtc/modules/audio_coding/ilbc_c_gn",
62865
     "/third_party/libwebrtc/modules/audio_coding/ilbc_gn",
62866
     "/third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn",
62867
+    "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62868
     "/third_party/libwebrtc/modules/audio_coding/isac_common_gn",
62869
+    "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62870
     "/third_party/libwebrtc/modules/audio_coding/isac_vad_gn",
62871
     "/third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn",
62872
     "/third_party/libwebrtc/modules/audio_coding/neteq_gn",
62873
@@ -264,6 +268,8 @@ DIRS += [
62874
     "/third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn",
62875
     "/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn",
62876
     "/third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn",
62877
+    "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62878
+    "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
62879
     "/third_party/libwebrtc/modules/module_api_gn",
62880
     "/third_party/libwebrtc/modules/module_api_public_gn",
62881
     "/third_party/libwebrtc/modules/module_fec_api_gn",
62882
@@ -460,224 +466,7 @@ DIRS += [
62883
     "/third_party/libwebrtc/webrtc_gn"
62884
 ]
62885
 
62886
-if CONFIG["OS_TARGET"] == "Android":
62887
-
62888
-    DIRS += [
62889
-        "/third_party/libwebrtc/rtc_base/ifaddrs_android_gn"
62890
-    ]
62891
-
62892
-if CONFIG["OS_TARGET"] == "Darwin":
62893
-
62894
-    DIRS += [
62895
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62896
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62897
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62898
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62899
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62900
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn",
62901
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
62902
-        "/third_party/libwebrtc/rtc_base/system/cocoa_threading_gn",
62903
-        "/third_party/libwebrtc/sdk/base_objc_gn",
62904
-        "/third_party/libwebrtc/sdk/helpers_objc_gn"
62905
-    ]
62906
-
62907
-if CONFIG["OS_TARGET"] == "OpenBSD":
62908
-
62909
-    DIRS += [
62910
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62911
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62912
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62913
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62914
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62915
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn"
62916
-    ]
62917
-
62918
-if CONFIG["OS_TARGET"] == "WINNT":
62919
-
62920
-    DIRS += [
62921
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62922
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62923
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62924
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62925
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62926
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
62927
-        "/third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn",
62928
-        "/third_party/libwebrtc/rtc_base/win/get_activation_factory_gn",
62929
-        "/third_party/libwebrtc/rtc_base/win/hstring_gn",
62930
-        "/third_party/libwebrtc/rtc_base/win/windows_version_gn",
62931
-        "/third_party/libwebrtc/rtc_base/win32_gn"
62932
-    ]
62933
-
62934
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
62935
-
62936
-    DIRS += [
62937
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62938
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62939
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
62940
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
62941
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62942
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62943
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
62944
-    ]
62945
-
62946
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
62947
-
62948
-    DIRS += [
62949
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_fix_gn",
62950
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_fix_gn",
62951
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
62952
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
62953
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_c_arm_asm_gn",
62954
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_c_gn",
62955
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_common_gn",
62956
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_gn",
62957
-        "/third_party/libwebrtc/modules/audio_coding/isac_neon_gn",
62958
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn",
62959
-        "/third_party/libwebrtc/rtc_base/system/asm_defines_gn"
61182
-    ]
62960
-    ]
61183
-
62961
-
61184
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
62962
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
61185
-
62963
-
61186
-    OS_LIBS += [
62964
-    DIRS += [
61187
-        "android_support"
62965
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62966
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62967
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62968
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
62969
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62970
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62971
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
62972
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
62973
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
62974
-    ]
62975
-
62976
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android":
62977
-
62978
-    DIRS += [
62979
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62980
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62981
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62982
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
62983
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62984
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62985
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
62986
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
62987
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
62988
-    ]
62989
-
62990
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Darwin":
62991
-
62992
-    DIRS += [
62993
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
62994
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
62995
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
62996
-    ]
62997
-
62998
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Darwin":
62999
-
63000
-    DIRS += [
63001
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
63002
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
63003
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
63004
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
63005
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
63006
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
61188
-    ]
63007
-    ]
61189
-
63008
-
61190
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
63009
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
61191
-
63010
-
61192
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63011
-    DIRS += [
61193
-    DEFINES["_GNU_SOURCE"] = True
63012
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
63013
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
63014
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
63015
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
63016
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
63017
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
63018
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
63019
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
63020
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
63021
-    ]
61194
-
63022
-
61195
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
63023
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
61196
-
63024
-
61197
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63025
-    DIRS += [
61198
-    DEFINES["_GNU_SOURCE"] = True
63026
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_fix_gn",
63027
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_fix_gn",
63028
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
63029
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
63030
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_c_arm_asm_gn",
63031
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_c_gn",
63032
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_common_gn",
63033
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_gn",
63034
-        "/third_party/libwebrtc/modules/audio_coding/isac_neon_gn",
63035
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
63036
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
63037
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn",
63038
-        "/third_party/libwebrtc/rtc_base/system/asm_defines_gn"
63039
-    ]
63040
-
63041
-if CONFIG["CPU_ARCH"] == "ppc64" and CONFIG["OS_TARGET"] == "Linux":
63042
-
63043
-    DIRS += [
63044
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
63045
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
63046
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
63047
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn"
63048
-    ]
61199
-
63049
-
61200
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
63050
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
61201
-
63051
-
61202
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63052
-    DIRS += [
61203
-    DEFINES["_GNU_SOURCE"] = True
63053
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
63054
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
63055
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
63056
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
63057
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
63058
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
63059
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
63060
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
63061
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
63062
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
63063
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
63064
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
63065
-    ]
61204
-
63066
-
61205
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
63067
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
61206
-
63068
-
61207
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63069
-    DIRS += [
61208
-    DEFINES["_GNU_SOURCE"] = True
63070
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
63071
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
63072
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
63073
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
63074
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
63075
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
63076
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
63077
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
63078
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
63079
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
63080
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
63081
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
63082
-    ]
61209
-
63083
-
61210
 Library("webrtc_vp9_helpers_gn")
63084
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "OpenBSD":
61211
diff --git third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build
63085
-
61212
index 0aaecfdf510a..70a93b65f156 100644
63086
-    DIRS += [
61213
--- third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build
63087
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
61214
+++ third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build
63088
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
63089
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
63090
-    ]
63091
-
63092
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "OpenBSD":
63093
-
63094
-    DIRS += [
63095
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
63096
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
63097
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
63098
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
63099
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
63100
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
63101
-    ]
63102
-
63103
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "WINNT":
63104
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "FreeBSD":
63105
 
63106
     DIRS += [
63107
         "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
63108
@@ -685,7 +474,7 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "WINNT":
63109
         "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
63110
     ]
63111
 
63112
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "WINNT":
63113
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "FreeBSD":
63114
 
63115
     DIRS += [
63116
         "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
63117
@@ -696,7 +485,7 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "WINNT":
63118
         "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
63119
     ]
63120
 
63121
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "WINNT":
63122
+if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "FreeBSD":
63123
 
63124
     DIRS += [
63125
         "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
63126
diff --git third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build
63127
index 5628bb3a4ff8..47fb8bc57c43 100644
63128
--- third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build
63129
+++ third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build
61215
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
63130
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
61216
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63131
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61217
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
63132
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 61233-61239 index 0aaecfdf510a..70a93b65f156 100644 Link Here
61233
 
63148
 
61234
 FINAL_LIBRARY = "webrtc"
63149
 FINAL_LIBRARY = "webrtc"
61235
 
63150
 
61236
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
63151
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
61237
 if CONFIG["MOZ_DEBUG"] == "1":
63152
 if CONFIG["MOZ_DEBUG"] == "1":
61238
 
63153
 
61239
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
63154
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 61252-61257 index 0aaecfdf510a..70a93b65f156 100644 Link Here
61252
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63167
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
61253
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63168
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61254
-
63169
-
63170
-    OS_LIBS += [
63171
-        "GLESv2",
63172
-        "log"
63173
-    ]
63174
-
61255
-if CONFIG["OS_TARGET"] == "Darwin":
63175
-if CONFIG["OS_TARGET"] == "Darwin":
61256
-
63176
-
61257
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63177
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 61317-61322 index 0aaecfdf510a..70a93b65f156 100644 Link Here
61317
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
63237
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
61318
-    DEFINES["_WINDOWS"] = True
63238
-    DEFINES["_WINDOWS"] = True
61319
-    DEFINES["__STD_C"] = True
63239
-    DEFINES["__STD_C"] = True
63240
-
63241
-    OS_LIBS += [
63242
-        "crypt32",
63243
-        "iphlpapi",
63244
-        "secur32",
63245
-        "winmm"
63246
-    ]
61320
+    DEFINES["_DEBUG"] = True
63247
+    DEFINES["_DEBUG"] = True
61321
 
63248
 
61322
 if CONFIG["CPU_ARCH"] == "aarch64":
63249
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 61326-61331 index 0aaecfdf510a..70a93b65f156 100644 Link Here
61326
 
63253
 
61327
-if CONFIG["CPU_ARCH"] == "arm":
63254
-if CONFIG["CPU_ARCH"] == "arm":
61328
-
63255
-
63256
-    CXXFLAGS += [
63257
-        "-mfpu=neon"
63258
-    ]
63259
-
61329
-    DEFINES["WEBRTC_ARCH_ARM"] = True
63260
-    DEFINES["WEBRTC_ARCH_ARM"] = True
61330
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
63261
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
61331
-    DEFINES["WEBRTC_HAS_NEON"] = True
63262
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 61388-61398 index 0aaecfdf510a..70a93b65f156 100644 Link Here
61388
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63319
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61389
-    DEFINES["_GNU_SOURCE"] = True
63320
-    DEFINES["_GNU_SOURCE"] = True
61390
-
63321
-
61391
 Library("denoiser_filter_gn")
63322
 Library("async_resolver_interface_gn")
61392
diff --git third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build
63323
diff --git third_party/libwebrtc/rtc_base/async_socket_gn/moz.build third_party/libwebrtc/rtc_base/async_socket_gn/moz.build
61393
index aa332adfa9a7..2bdd0d2bebbb 100644
63324
index 732d8224bb5a..cd84d89e28c8 100644
61394
--- third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build
63325
--- third_party/libwebrtc/rtc_base/async_socket_gn/moz.build
61395
+++ third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build
63326
+++ third_party/libwebrtc/rtc_base/async_socket_gn/moz.build
61396
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
63327
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
61397
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63328
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61398
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
63329
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 61414-61420 index aa332adfa9a7..2bdd0d2bebbb 100644 Link Here
61414
 
63345
 
61415
 FINAL_LIBRARY = "webrtc"
63346
 FINAL_LIBRARY = "webrtc"
61416
 
63347
 
61417
@@ -47,174 +57,15 @@ if not CONFIG["MOZ_DEBUG"]:
63348
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
61418
 if CONFIG["MOZ_DEBUG"] == "1":
63349
 if CONFIG["MOZ_DEBUG"] == "1":
61419
 
63350
 
61420
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
63351
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 61463-61473 index aa332adfa9a7..2bdd0d2bebbb 100644 Link Here
61463
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63394
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
61464
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63395
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61465
-
63396
-
61466
-    OS_LIBS += [
61467
-        "dl",
61468
-        "rt"
61469
-    ]
61470
-
61471
-if CONFIG["OS_TARGET"] == "OpenBSD":
63397
-if CONFIG["OS_TARGET"] == "OpenBSD":
61472
-
63398
-
61473
-    DEFINES["USE_GLIB"] = "1"
63399
-    DEFINES["USE_GLIB"] = "1"
Lines 61590-61611 index aa332adfa9a7..2bdd0d2bebbb 100644 Link Here
61590
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63516
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61591
-    DEFINES["_GNU_SOURCE"] = True
63517
-    DEFINES["_GNU_SOURCE"] = True
61592
-
63518
-
61593
 Library("video_processing_gn")
63519
 Library("async_socket_gn")
61594
diff --git third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build
63520
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
61595
index 3588b0ac325f..e1d6759739e5 100644
63521
index 10985c3a09a3..12fe81e90a59 100644
61596
--- third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build
63522
--- third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build
61597
+++ third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build
63523
+++ third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build
61598
@@ -12,12 +12,22 @@ AllowCompilerWarnings()
63524
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
61599
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63525
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61600
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
63526
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
61601
 DEFINES["RTC_ENABLE_VP9"] = True
63527
 DEFINES["RTC_ENABLE_VP9"] = True
61602
+DEFINES["USE_GLIB"] = "1"
63528
+DEFINES["USE_GLIB"] = "1"
61603
+DEFINES["USE_OZONE"] = "1"
63529
+DEFINES["USE_OZONE"] = "1"
61604
+DEFINES["WEBRTC_ARCH_ARM64"] = True
61605
+DEFINES["WEBRTC_BSD"] = True
63530
+DEFINES["WEBRTC_BSD"] = True
61606
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
63531
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
61607
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
63532
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
61608
 DEFINES["WEBRTC_HAS_NEON"] = True
61609
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
63533
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
61610
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
63534
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
61611
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
63535
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
Lines 61618-61624 index 3588b0ac325f..e1d6759739e5 100644 Link Here
61618
 
63542
 
61619
 FINAL_LIBRARY = "webrtc"
63543
 FINAL_LIBRARY = "webrtc"
61620
 
63544
 
61621
@@ -43,133 +53,10 @@ if not CONFIG["MOZ_DEBUG"]:
63545
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
61622
 if CONFIG["MOZ_DEBUG"] == "1":
63546
 if CONFIG["MOZ_DEBUG"] == "1":
61623
 
63547
 
61624
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
63548
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 61630-61644 index 3588b0ac325f..e1d6759739e5 100644 Link Here
61630
-    DEFINES["HAVE_SYS_UIO_H"] = True
63554
-    DEFINES["HAVE_SYS_UIO_H"] = True
61631
-    DEFINES["WEBRTC_ANDROID"] = True
63555
-    DEFINES["WEBRTC_ANDROID"] = True
61632
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
63556
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
63557
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61633
-    DEFINES["WEBRTC_LINUX"] = True
63558
-    DEFINES["WEBRTC_LINUX"] = True
61634
-    DEFINES["WEBRTC_POSIX"] = True
63559
-    DEFINES["WEBRTC_POSIX"] = True
61635
-    DEFINES["_GNU_SOURCE"] = True
63560
-    DEFINES["_GNU_SOURCE"] = True
61636
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63561
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
61637
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63562
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61638
-
63563
-
63564
-    OS_LIBS += [
63565
-        "log"
63566
-    ]
63567
-
61639
-if CONFIG["OS_TARGET"] == "Darwin":
63568
-if CONFIG["OS_TARGET"] == "Darwin":
61640
-
63569
-
61641
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
63570
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61642
-    DEFINES["WEBRTC_MAC"] = True
63571
-    DEFINES["WEBRTC_MAC"] = True
61643
-    DEFINES["WEBRTC_POSIX"] = True
63572
-    DEFINES["WEBRTC_POSIX"] = True
61644
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
63573
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 61656-61662 index 3588b0ac325f..e1d6759739e5 100644 Link Here
61656
-    DEFINES["WEBRTC_LINUX"] = True
63585
-    DEFINES["WEBRTC_LINUX"] = True
61657
-    DEFINES["WEBRTC_POSIX"] = True
63586
-    DEFINES["WEBRTC_POSIX"] = True
61658
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
63587
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
61659
-    DEFINES["_GNU_SOURCE"] = True
61660
-    DEFINES["_LARGEFILE64_SOURCE"] = True
63588
-    DEFINES["_LARGEFILE64_SOURCE"] = True
61661
-    DEFINES["_LARGEFILE_SOURCE"] = True
63589
-    DEFINES["_LARGEFILE_SOURCE"] = True
61662
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63590
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
Lines 61667-61674 index 3588b0ac325f..e1d6759739e5 100644 Link Here
61667
-    DEFINES["USE_GLIB"] = "1"
63595
-    DEFINES["USE_GLIB"] = "1"
61668
-    DEFINES["USE_OZONE"] = "1"
63596
-    DEFINES["USE_OZONE"] = "1"
61669
-    DEFINES["USE_X11"] = "1"
63597
-    DEFINES["USE_X11"] = "1"
61670
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
61671
-    DEFINES["WEBRTC_BSD"] = True
63598
-    DEFINES["WEBRTC_BSD"] = True
63599
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61672
-    DEFINES["WEBRTC_POSIX"] = True
63600
-    DEFINES["WEBRTC_POSIX"] = True
61673
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
63601
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
61674
-    DEFINES["_LARGEFILE64_SOURCE"] = True
63602
-    DEFINES["_LARGEFILE64_SOURCE"] = True
Lines 61684-61690 index 3588b0ac325f..e1d6759739e5 100644 Link Here
61684
-    DEFINES["PSAPI_VERSION"] = "2"
63612
-    DEFINES["PSAPI_VERSION"] = "2"
61685
-    DEFINES["UNICODE"] = True
63613
-    DEFINES["UNICODE"] = True
61686
-    DEFINES["USE_AURA"] = "1"
63614
-    DEFINES["USE_AURA"] = "1"
61687
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
63615
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61688
-    DEFINES["WEBRTC_WIN"] = True
63616
-    DEFINES["WEBRTC_WIN"] = True
61689
-    DEFINES["WIN32"] = True
63617
-    DEFINES["WIN32"] = True
61690
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
63618
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 61703-61708 index 3588b0ac325f..e1d6759739e5 100644 Link Here
61703
-    DEFINES["_WINDOWS"] = True
63631
-    DEFINES["_WINDOWS"] = True
61704
-    DEFINES["__STD_C"] = True
63632
-    DEFINES["__STD_C"] = True
61705
-
63633
-
63634
-    OS_LIBS += [
63635
-        "winmm"
63636
-    ]
63637
+    DEFINES["_DEBUG"] = True
63638
 
63639
 if CONFIG["CPU_ARCH"] == "aarch64":
63640
 
63641
     DEFINES["WEBRTC_ARCH_ARM64"] = True
63642
     DEFINES["WEBRTC_HAS_NEON"] = True
63643
 
61706
-if CONFIG["CPU_ARCH"] == "arm":
63644
-if CONFIG["CPU_ARCH"] == "arm":
61707
-
63645
-
61708
-    CXXFLAGS += [
63646
-    CXXFLAGS += [
Lines 61711-61721 index 3588b0ac325f..e1d6759739e5 100644 Link Here
61711
-
63649
-
61712
-    DEFINES["WEBRTC_ARCH_ARM"] = True
63650
-    DEFINES["WEBRTC_ARCH_ARM"] = True
61713
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
63651
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
63652
-    DEFINES["WEBRTC_HAS_NEON"] = True
61714
-
63653
-
61715
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
63654
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
61716
-
63655
-
61717
     DEFINES["_DEBUG"] = True
63656
-    DEFINES["_DEBUG"] = True
61718
 
63657
-
61719
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
63658
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
61720
-
63659
-
61721
-    DEFINES["_DEBUG"] = True
63660
-    DEFINES["_DEBUG"] = True
Lines 61737-61746 index 3588b0ac325f..e1d6759739e5 100644 Link Here
61737
 
63676
 
61738
     DEFINES["USE_X11"] = "1"
63677
     DEFINES["USE_X11"] = "1"
61739
 
63678
 
61740
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
61741
-
61742
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
61743
-
61744
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
63679
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
61745
-
63680
-
61746
-    OS_LIBS += [
63681
-    OS_LIBS += [
Lines 61748-61777 index 3588b0ac325f..e1d6759739e5 100644 Link Here
61748
-        "unwind"
63683
-        "unwind"
61749
-    ]
63684
-    ]
61750
-
63685
-
63686
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
63687
-
63688
-    OS_LIBS += [
63689
-        "android_support"
63690
-    ]
63691
-
61751
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
63692
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
61752
-
63693
-
61753
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
63694
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63695
-    DEFINES["_GNU_SOURCE"] = True
61754
-
63696
-
61755
 Library("video_processing_neon_gn")
63697
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
61756
diff --git third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build
63698
-
61757
index 9d41f521fdb8..0c3a0c9fcefc 100644
63699
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61758
--- third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build
63700
-    DEFINES["_GNU_SOURCE"] = True
61759
+++ third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build
63701
-
61760
@@ -9,14 +9,27 @@
63702
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
61761
 COMPILE_FLAGS["OS_INCLUDES"] = []
63703
-
61762
 AllowCompilerWarnings()
63704
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61763
 
63705
-    DEFINES["_GNU_SOURCE"] = True
61764
+CXXFLAGS += [
63706
-
61765
+    "-msse2"
63707
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
61766
+]
63708
-
61767
+
63709
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63710
-    DEFINES["_GNU_SOURCE"] = True
63711
-
63712
 Library("audio_format_to_string_gn")
63713
diff --git third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build
63714
index b3daad93040a..d18471cbb946 100644
63715
--- third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build
63716
+++ third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build
63717
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
61768
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63718
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
61769
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
63719
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
61770
 DEFINES["RTC_ENABLE_VP9"] = True
63720
 DEFINES["RTC_ENABLE_VP9"] = True
61771
+DEFINES["USE_GLIB"] = "1"
63721
+DEFINES["USE_GLIB"] = "1"
61772
+DEFINES["USE_OZONE"] = "1"
63722
+DEFINES["USE_OZONE"] = "1"
61773
+DEFINES["WEBRTC_BSD"] = True
63723
+DEFINES["WEBRTC_BSD"] = True
61774
 DEFINES["WEBRTC_ENABLE_AVX2"] = True
63724
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
61775
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
63725
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
61776
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
63726
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
61777
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
63727
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
Lines 61785-61806 index 9d41f521fdb8..0c3a0c9fcefc 100644 Link Here
61785
 
63735
 
61786
 FINAL_LIBRARY = "webrtc"
63736
 FINAL_LIBRARY = "webrtc"
61787
 
63737
 
61788
@@ -42,143 +55,10 @@ if not CONFIG["MOZ_DEBUG"]:
63738
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
61789
 if CONFIG["MOZ_DEBUG"] == "1":
63739
 if CONFIG["MOZ_DEBUG"] == "1":
61790
 
63740
 
61791
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
63741
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
61792
-
63742
-
61793
-if CONFIG["OS_TARGET"] == "Android":
63743
-if CONFIG["OS_TARGET"] == "Android":
61794
-
63744
-
61795
-    CXXFLAGS += [
61796
-        "-msse2"
61797
-    ]
61798
-
61799
-    DEFINES["ANDROID"] = True
63745
-    DEFINES["ANDROID"] = True
61800
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
63746
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
61801
-    DEFINES["HAVE_SYS_UIO_H"] = True
63747
-    DEFINES["HAVE_SYS_UIO_H"] = True
61802
-    DEFINES["WEBRTC_ANDROID"] = True
63748
-    DEFINES["WEBRTC_ANDROID"] = True
61803
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
63749
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
63750
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61804
-    DEFINES["WEBRTC_LINUX"] = True
63751
-    DEFINES["WEBRTC_LINUX"] = True
61805
-    DEFINES["WEBRTC_POSIX"] = True
63752
-    DEFINES["WEBRTC_POSIX"] = True
61806
-    DEFINES["_GNU_SOURCE"] = True
63753
-    DEFINES["_GNU_SOURCE"] = True
Lines 61813-61822 index 9d41f521fdb8..0c3a0c9fcefc 100644 Link Here
61813
-
63760
-
61814
-if CONFIG["OS_TARGET"] == "Darwin":
63761
-if CONFIG["OS_TARGET"] == "Darwin":
61815
-
63762
-
61816
-    CXXFLAGS += [
63763
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61817
-        "-msse2"
61818
-    ]
61819
-
61820
-    DEFINES["WEBRTC_MAC"] = True
63764
-    DEFINES["WEBRTC_MAC"] = True
61821
-    DEFINES["WEBRTC_POSIX"] = True
63765
-    DEFINES["WEBRTC_POSIX"] = True
61822
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
63766
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
Lines 61826-61835 index 9d41f521fdb8..0c3a0c9fcefc 100644 Link Here
61826
-
63770
-
61827
-if CONFIG["OS_TARGET"] == "Linux":
63771
-if CONFIG["OS_TARGET"] == "Linux":
61828
-
63772
-
61829
-    CXXFLAGS += [
61830
-        "-msse2"
61831
-    ]
61832
-
61833
-    DEFINES["USE_AURA"] = "1"
63773
-    DEFINES["USE_AURA"] = "1"
61834
-    DEFINES["USE_GLIB"] = "1"
63774
-    DEFINES["USE_GLIB"] = "1"
61835
-    DEFINES["USE_NSS_CERTS"] = "1"
63775
-    DEFINES["USE_NSS_CERTS"] = "1"
Lines 61838-61863 index 9d41f521fdb8..0c3a0c9fcefc 100644 Link Here
61838
-    DEFINES["WEBRTC_LINUX"] = True
63778
-    DEFINES["WEBRTC_LINUX"] = True
61839
-    DEFINES["WEBRTC_POSIX"] = True
63779
-    DEFINES["WEBRTC_POSIX"] = True
61840
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
63780
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
61841
-    DEFINES["_GNU_SOURCE"] = True
61842
-    DEFINES["_LARGEFILE64_SOURCE"] = True
63781
-    DEFINES["_LARGEFILE64_SOURCE"] = True
61843
-    DEFINES["_LARGEFILE_SOURCE"] = True
63782
-    DEFINES["_LARGEFILE_SOURCE"] = True
61844
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63783
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
61845
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63784
-    DEFINES["__STDC_FORMAT_MACROS"] = True
61846
-
63785
-
61847
-    OS_LIBS += [
61848
-        "rt"
61849
-    ]
61850
-
61851
-if CONFIG["OS_TARGET"] == "OpenBSD":
63786
-if CONFIG["OS_TARGET"] == "OpenBSD":
61852
-
63787
-
61853
-    CXXFLAGS += [
61854
-        "-msse2"
61855
-    ]
61856
-
61857
-    DEFINES["USE_GLIB"] = "1"
63788
-    DEFINES["USE_GLIB"] = "1"
61858
-    DEFINES["USE_OZONE"] = "1"
63789
-    DEFINES["USE_OZONE"] = "1"
61859
-    DEFINES["USE_X11"] = "1"
63790
-    DEFINES["USE_X11"] = "1"
61860
-    DEFINES["WEBRTC_BSD"] = True
63791
-    DEFINES["WEBRTC_BSD"] = True
63792
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61861
-    DEFINES["WEBRTC_POSIX"] = True
63793
-    DEFINES["WEBRTC_POSIX"] = True
61862
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
63794
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
61863
-    DEFINES["_LARGEFILE64_SOURCE"] = True
63795
-    DEFINES["_LARGEFILE64_SOURCE"] = True
Lines 61873-61878 index 9d41f521fdb8..0c3a0c9fcefc 100644 Link Here
61873
-    DEFINES["PSAPI_VERSION"] = "2"
63805
-    DEFINES["PSAPI_VERSION"] = "2"
61874
-    DEFINES["UNICODE"] = True
63806
-    DEFINES["UNICODE"] = True
61875
-    DEFINES["USE_AURA"] = "1"
63807
-    DEFINES["USE_AURA"] = "1"
63808
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
61876
-    DEFINES["WEBRTC_WIN"] = True
63809
-    DEFINES["WEBRTC_WIN"] = True
61877
-    DEFINES["WIN32"] = True
63810
-    DEFINES["WIN32"] = True
61878
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
63811
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
Lines 61890-61903 index 9d41f521fdb8..0c3a0c9fcefc 100644 Link Here
61890
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
63823
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
61891
-    DEFINES["_WINDOWS"] = True
63824
-    DEFINES["_WINDOWS"] = True
61892
-    DEFINES["__STD_C"] = True
63825
-    DEFINES["__STD_C"] = True
63826
+    DEFINES["_DEBUG"] = True
63827
 
63828
 if CONFIG["CPU_ARCH"] == "aarch64":
63829
 
63830
     DEFINES["WEBRTC_ARCH_ARM64"] = True
63831
     DEFINES["WEBRTC_HAS_NEON"] = True
63832
 
63833
-if CONFIG["CPU_ARCH"] == "arm":
61893
-
63834
-
61894
-    OS_LIBS += [
63835
-    CXXFLAGS += [
61895
-        "crypt32",
63836
-        "-mfpu=neon"
61896
-        "iphlpapi",
61897
-        "secur32",
61898
-        "winmm"
61899
-    ]
63837
-    ]
61900
-
63838
-
63839
-    DEFINES["WEBRTC_ARCH_ARM"] = True
63840
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
63841
-    DEFINES["WEBRTC_HAS_NEON"] = True
63842
-
61901
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
63843
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
61902
-
63844
-
61903
-    DEFINES["_DEBUG"] = True
63845
-    DEFINES["_DEBUG"] = True
Lines 61912-61919 index 9d41f521fdb8..0c3a0c9fcefc 100644 Link Here
61912
-
63854
-
61913
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
63855
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
61914
-
63856
-
61915
     DEFINES["_DEBUG"] = True
63857
-    DEFINES["_DEBUG"] = True
61916
 
63858
-
61917
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
63859
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
61918
-
63860
-
61919
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
63861
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 61923-62226 index 9d41f521fdb8..0c3a0c9fcefc 100644 Link Here
61923
 
63865
 
61924
     DEFINES["USE_X11"] = "1"
63866
     DEFINES["USE_X11"] = "1"
61925
 
63867
 
61926
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
61927
-
61928
-    OS_LIBS += [
61929
-        "android_support"
61930
-    ]
61931
-
61932
 Library("video_processing_sse2_gn")
61933
diff --git third_party/libwebrtc/moz.build third_party/libwebrtc/moz.build
61934
index 3b546257660a..c7fa79488695 100644
61935
--- third_party/libwebrtc/moz.build
61936
+++ third_party/libwebrtc/moz.build
61937
@@ -26,7 +26,9 @@ DIRS += [
61938
     "/third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn",
61939
     "/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_config_gn",
61940
     "/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn",
61941
+    "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
61942
     "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_gn",
61943
+    "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
61944
     "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_gn",
61945
     "/third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn",
61946
     "/third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn",
61947
@@ -165,7 +167,9 @@ DIRS += [
61948
     "/third_party/libwebrtc/modules/audio_coding/ilbc_c_gn",
61949
     "/third_party/libwebrtc/modules/audio_coding/ilbc_gn",
61950
     "/third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn",
61951
+    "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
61952
     "/third_party/libwebrtc/modules/audio_coding/isac_common_gn",
61953
+    "/third_party/libwebrtc/modules/audio_coding/isac_gn",
61954
     "/third_party/libwebrtc/modules/audio_coding/isac_vad_gn",
61955
     "/third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn",
61956
     "/third_party/libwebrtc/modules/audio_coding/neteq_gn",
61957
@@ -258,6 +262,9 @@ DIRS += [
61958
     "/third_party/libwebrtc/modules/congestion_controller/goog_cc/send_side_bwe_gn",
61959
     "/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn",
61960
     "/third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn",
61961
+    "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn",
61962
+    "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
61963
+    "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
61964
     "/third_party/libwebrtc/modules/module_api_gn",
61965
     "/third_party/libwebrtc/modules/module_api_public_gn",
61966
     "/third_party/libwebrtc/modules/module_fec_api_gn",
61967
@@ -452,233 +459,7 @@ DIRS += [
61968
     "/third_party/libwebrtc/webrtc_gn"
61969
 ]
61970
 
61971
-if CONFIG["OS_TARGET"] == "Android":
61972
-
61973
-    DIRS += [
61974
-        "/third_party/libwebrtc/rtc_base/ifaddrs_android_gn",
61975
-        "/third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_gn",
61976
-        "/third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_internal_gn"
61977
-    ]
61978
-
61979
-if CONFIG["OS_TARGET"] == "Darwin":
61980
-
61981
-    DIRS += [
61982
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
61983
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
61984
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
61985
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
61986
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn",
61987
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
61988
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn",
61989
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
61990
-        "/third_party/libwebrtc/rtc_base/system/cocoa_threading_gn",
61991
-        "/third_party/libwebrtc/sdk/base_objc_gn",
61992
-        "/third_party/libwebrtc/sdk/helpers_objc_gn"
61993
-    ]
61994
-
61995
-if CONFIG["OS_TARGET"] == "OpenBSD":
61996
-
61997
-    DIRS += [
61998
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
61999
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62000
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62001
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62002
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn",
62003
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62004
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn"
62005
-    ]
62006
-
62007
-if CONFIG["OS_TARGET"] == "WINNT":
62008
-
62009
-    DIRS += [
62010
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62011
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62012
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62013
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62014
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn",
62015
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62016
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
62017
-        "/third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn",
62018
-        "/third_party/libwebrtc/rtc_base/win/get_activation_factory_gn",
62019
-        "/third_party/libwebrtc/rtc_base/win/hstring_gn",
62020
-        "/third_party/libwebrtc/rtc_base/win/windows_version_gn",
62021
-        "/third_party/libwebrtc/rtc_base/win32_gn"
62022
-    ]
62023
-
62024
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Android":
62025
-
62026
-    DIRS += [
62027
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62028
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62029
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
62030
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
62031
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62032
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62033
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
62034
-    ]
62035
-
62036
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
63868
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
62037
-
63869
-
62038
-    DIRS += [
63870
-    OS_LIBS += [
62039
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_fix_gn",
63871
-        "android_support",
62040
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_fix_gn",
63872
-        "unwind"
62041
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
62042
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
62043
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_c_arm_asm_gn",
62044
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_c_gn",
62045
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_common_gn",
62046
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_gn",
62047
-        "/third_party/libwebrtc/modules/audio_coding/isac_neon_gn",
62048
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn",
62049
-        "/third_party/libwebrtc/rtc_base/system/asm_defines_gn"
62050
-    ]
63873
-    ]
62051
-
63874
-
62052
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
63875
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
62053
-
63876
-
62054
-    DIRS += [
63877
-    OS_LIBS += [
62055
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
63878
-        "android_support"
62056
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62057
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62058
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
62059
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62060
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62061
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
62062
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
62063
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
62064
-    ]
62065
-
62066
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android":
62067
-
62068
-    DIRS += [
62069
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62070
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62071
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62072
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
62073
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62074
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62075
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
62076
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
62077
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
62078
-    ]
62079
-
62080
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Darwin":
62081
-
62082
-    DIRS += [
62083
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
62084
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
62085
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
62086
-    ]
62087
-
62088
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Darwin":
62089
-
62090
-    DIRS += [
62091
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62092
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
62093
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
62094
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
62095
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
62096
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
62097
-    ]
63879
-    ]
62098
-
63880
-
62099
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
63881
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
62100
-
63882
-
62101
-    DIRS += [
63883
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62102
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
63884
-    DEFINES["_GNU_SOURCE"] = True
62103
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62104
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
62105
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
62106
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62107
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62108
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn",
62109
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62110
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
62111
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
62112
-    ]
62113
-
63885
-
62114
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
63886
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
62115
-
63887
-
62116
-    DIRS += [
63888
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62117
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_fix_gn",
63889
-    DEFINES["_GNU_SOURCE"] = True
62118
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_fix_gn",
62119
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
62120
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
62121
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_c_arm_asm_gn",
62122
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_c_gn",
62123
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_common_gn",
62124
-        "/third_party/libwebrtc/modules/audio_coding/isac_fix_gn",
62125
-        "/third_party/libwebrtc/modules/audio_coding/isac_neon_gn",
62126
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn",
62127
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62128
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
62129
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn",
62130
-        "/third_party/libwebrtc/rtc_base/system/asm_defines_gn"
62131
-    ]
62132
-
62133
-if CONFIG["CPU_ARCH"] == "ppc64" and CONFIG["OS_TARGET"] == "Linux":
62134
-
62135
-    DIRS += [
62136
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
62137
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62138
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62139
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn"
62140
-    ]
62141
-
63890
-
62142
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
63891
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
62143
-
63892
-
62144
-    DIRS += [
63893
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62145
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
63894
-    DEFINES["_GNU_SOURCE"] = True
62146
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62147
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62148
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
62149
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62150
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62151
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
62152
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
62153
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
62154
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn",
62155
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62156
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
62157
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
62158
-    ]
62159
-
63895
-
62160
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
63896
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
62161
-
63897
-
62162
-    DIRS += [
63898
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62163
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn",
63899
-    DEFINES["_GNU_SOURCE"] = True
62164
-        "/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn",
62165
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62166
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
62167
-        "/third_party/libwebrtc/modules/audio_coding/isac_c_gn",
62168
-        "/third_party/libwebrtc/modules/audio_coding/isac_gn",
62169
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
62170
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
62171
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
62172
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn",
62173
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn",
62174
-        "/third_party/libwebrtc/modules/desktop_capture/primitives_gn",
62175
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
62176
-    ]
62177
-
62178
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "OpenBSD":
62179
-
62180
-    DIRS += [
62181
-        "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
62182
-        "/third_party/libwebrtc/common_audio/common_audio_neon_gn",
62183
-        "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
62184
-    ]
62185
-
62186
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "OpenBSD":
62187
-
62188
-    DIRS += [
62189
-        "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62190
-        "/third_party/libwebrtc/common_audio/common_audio_sse2_gn",
62191
-        "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn",
62192
-        "/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/vector_math_avx2_gn",
62193
-        "/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn",
62194
-        "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
62195
-    ]
62196
-
63900
-
62197
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "WINNT":
63901
 Library("bit_buffer_gn")
62198
+if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "FreeBSD":
63902
diff --git third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build
62199
 
63903
index 5578717236fa..ba596983b322 100644
62200
     DIRS += [
63904
--- third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build
62201
         "/third_party/libwebrtc/common_audio/common_audio_neon_c_gn",
63905
+++ third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build
62202
@@ -686,7 +467,7 @@ if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "WINNT":
62203
         "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn"
62204
     ]
62205
 
62206
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "WINNT":
62207
+if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "FreeBSD":
62208
 
62209
     DIRS += [
62210
         "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62211
@@ -697,7 +478,7 @@ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "WINNT":
62212
         "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn"
62213
     ]
62214
 
62215
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "WINNT":
62216
+if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "FreeBSD":
62217
 
62218
     DIRS += [
62219
         "/third_party/libwebrtc/common_audio/common_audio_avx2_gn",
62220
diff --git third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build
62221
index 5628bb3a4ff8..47fb8bc57c43 100644
62222
--- third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build
62223
+++ third_party/libwebrtc/rtc_base/async_resolver_interface_gn/moz.build
62224
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
63906
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
62225
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63907
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
62226
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
63908
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 62242-62248 index 5628bb3a4ff8..47fb8bc57c43 100644 Link Here
62242
 
63924
 
62243
 FINAL_LIBRARY = "webrtc"
63925
 FINAL_LIBRARY = "webrtc"
62244
 
63926
 
62245
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
63927
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
62246
 if CONFIG["MOZ_DEBUG"] == "1":
63928
 if CONFIG["MOZ_DEBUG"] == "1":
62247
 
63929
 
62248
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
63930
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 62262-62268 index 5628bb3a4ff8..47fb8bc57c43 100644 Link Here
62262
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63944
-    DEFINES["__STDC_FORMAT_MACROS"] = True
62263
-
63945
-
62264
-    OS_LIBS += [
63946
-    OS_LIBS += [
62265
-        "GLESv2",
62266
-        "log"
63947
-        "log"
62267
-    ]
63948
-    ]
62268
-
63949
-
Lines 62331-62343 index 5628bb3a4ff8..47fb8bc57c43 100644 Link Here
62331
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
64012
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
62332
-    DEFINES["_WINDOWS"] = True
64013
-    DEFINES["_WINDOWS"] = True
62333
-    DEFINES["__STD_C"] = True
64014
-    DEFINES["__STD_C"] = True
62334
-
62335
-    OS_LIBS += [
62336
-        "crypt32",
62337
-        "iphlpapi",
62338
-        "secur32",
62339
-        "winmm"
62340
-    ]
62341
+    DEFINES["_DEBUG"] = True
64015
+    DEFINES["_DEBUG"] = True
62342
 
64016
 
62343
 if CONFIG["CPU_ARCH"] == "aarch64":
64017
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 62413-62423 index 5628bb3a4ff8..47fb8bc57c43 100644 Link Here
62413
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64087
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62414
-    DEFINES["_GNU_SOURCE"] = True
64088
-    DEFINES["_GNU_SOURCE"] = True
62415
-
64089
-
62416
 Library("async_resolver_interface_gn")
64090
 Library("bitstream_reader_gn")
62417
diff --git third_party/libwebrtc/rtc_base/async_socket_gn/moz.build third_party/libwebrtc/rtc_base/async_socket_gn/moz.build
64091
diff --git third_party/libwebrtc/rtc_base/buffer_gn/moz.build third_party/libwebrtc/rtc_base/buffer_gn/moz.build
62418
index 732d8224bb5a..cd84d89e28c8 100644
64092
index 153ffc6d7bec..b2d99bd4e310 100644
62419
--- third_party/libwebrtc/rtc_base/async_socket_gn/moz.build
64093
--- third_party/libwebrtc/rtc_base/buffer_gn/moz.build
62420
+++ third_party/libwebrtc/rtc_base/async_socket_gn/moz.build
64094
+++ third_party/libwebrtc/rtc_base/buffer_gn/moz.build
62421
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64095
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
62422
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64096
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
62423
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
64097
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 62439-62445 index 732d8224bb5a..cd84d89e28c8 100644 Link Here
62439
 
64113
 
62440
 FINAL_LIBRARY = "webrtc"
64114
 FINAL_LIBRARY = "webrtc"
62441
 
64115
 
62442
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
64116
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
62443
 if CONFIG["MOZ_DEBUG"] == "1":
64117
 if CONFIG["MOZ_DEBUG"] == "1":
62444
 
64118
 
62445
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
64119
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 62459-62465 index 732d8224bb5a..cd84d89e28c8 100644 Link Here
62459
-    DEFINES["__STDC_FORMAT_MACROS"] = True
64133
-    DEFINES["__STDC_FORMAT_MACROS"] = True
62460
-
64134
-
62461
-    OS_LIBS += [
64135
-    OS_LIBS += [
62462
-        "GLESv2",
62463
-        "log"
64136
-        "log"
62464
-    ]
64137
-    ]
62465
-
64138
-
Lines 62528-62540 index 732d8224bb5a..cd84d89e28c8 100644 Link Here
62528
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
64201
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
62529
-    DEFINES["_WINDOWS"] = True
64202
-    DEFINES["_WINDOWS"] = True
62530
-    DEFINES["__STD_C"] = True
64203
-    DEFINES["__STD_C"] = True
62531
-
62532
-    OS_LIBS += [
62533
-        "crypt32",
62534
-        "iphlpapi",
62535
-        "secur32",
62536
-        "winmm"
62537
-    ]
62538
+    DEFINES["_DEBUG"] = True
64204
+    DEFINES["_DEBUG"] = True
62539
 
64205
 
62540
 if CONFIG["CPU_ARCH"] == "aarch64":
64206
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 62544-62553 index 732d8224bb5a..cd84d89e28c8 100644 Link Here
62544
 
64210
 
62545
-if CONFIG["CPU_ARCH"] == "arm":
64211
-if CONFIG["CPU_ARCH"] == "arm":
62546
-
64212
-
62547
-    CXXFLAGS += [
62548
-        "-mfpu=neon"
62549
-    ]
62550
-
62551
-    DEFINES["WEBRTC_ARCH_ARM"] = True
64213
-    DEFINES["WEBRTC_ARCH_ARM"] = True
62552
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
64214
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
62553
-    DEFINES["WEBRTC_HAS_NEON"] = True
64215
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 62610-62620 index 732d8224bb5a..cd84d89e28c8 100644 Link Here
62610
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64272
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62611
-    DEFINES["_GNU_SOURCE"] = True
64273
-    DEFINES["_GNU_SOURCE"] = True
62612
-
64274
-
62613
 Library("async_socket_gn")
64275
 Library("buffer_gn")
62614
diff --git third_party/libwebrtc/rtc_base/atomicops_gn/moz.build third_party/libwebrtc/rtc_base/atomicops_gn/moz.build
64276
diff --git third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build
62615
index 8194e6319634..739f29eb59d9 100644
64277
index ab65698bbdbc..681652e6c65c 100644
62616
--- third_party/libwebrtc/rtc_base/atomicops_gn/moz.build
64278
--- third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build
62617
+++ third_party/libwebrtc/rtc_base/atomicops_gn/moz.build
64279
+++ third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build
62618
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64280
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
62619
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64281
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
62620
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
64282
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 62636-62642 index 8194e6319634..739f29eb59d9 100644 Link Here
62636
 
64298
 
62637
 FINAL_LIBRARY = "webrtc"
64299
 FINAL_LIBRARY = "webrtc"
62638
 
64300
 
62639
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
64301
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
62640
 if CONFIG["MOZ_DEBUG"] == "1":
64302
 if CONFIG["MOZ_DEBUG"] == "1":
62641
 
64303
 
62642
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
64304
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 62655-62660 index 8194e6319634..739f29eb59d9 100644 Link Here
62655
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
64317
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
62656
-    DEFINES["__STDC_FORMAT_MACROS"] = True
64318
-    DEFINES["__STDC_FORMAT_MACROS"] = True
62657
-
64319
-
64320
-    OS_LIBS += [
64321
-        "log"
64322
-    ]
64323
-
62658
-if CONFIG["OS_TARGET"] == "Darwin":
64324
-if CONFIG["OS_TARGET"] == "Darwin":
62659
-
64325
-
62660
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64326
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 62729-62734 index 8194e6319634..739f29eb59d9 100644 Link Here
62729
 
64395
 
62730
-if CONFIG["CPU_ARCH"] == "arm":
64396
-if CONFIG["CPU_ARCH"] == "arm":
62731
-
64397
-
64398
-    CXXFLAGS += [
64399
-        "-mfpu=neon"
64400
-    ]
64401
-
62732
-    DEFINES["WEBRTC_ARCH_ARM"] = True
64402
-    DEFINES["WEBRTC_ARCH_ARM"] = True
62733
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
64403
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
62734
-    DEFINES["WEBRTC_HAS_NEON"] = True
64404
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 62791-62801 index 8194e6319634..739f29eb59d9 100644 Link Here
62791
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64461
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62792
-    DEFINES["_GNU_SOURCE"] = True
64462
-    DEFINES["_GNU_SOURCE"] = True
62793
-
64463
-
62794
 Library("atomicops_gn")
64464
 Library("byte_buffer_gn")
62795
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
64465
diff --git third_party/libwebrtc/rtc_base/byte_order_gn/moz.build third_party/libwebrtc/rtc_base/byte_order_gn/moz.build
62796
index 10985c3a09a3..12fe81e90a59 100644
64466
index 3cda1af49dc2..9f18b513a3e7 100644
62797
--- third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build
64467
--- third_party/libwebrtc/rtc_base/byte_order_gn/moz.build
62798
+++ third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build
64468
+++ third_party/libwebrtc/rtc_base/byte_order_gn/moz.build
62799
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64469
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
62800
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64470
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
62801
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
64471
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 62817-62823 index 10985c3a09a3..12fe81e90a59 100644 Link Here
62817
 
64487
 
62818
 FINAL_LIBRARY = "webrtc"
64488
 FINAL_LIBRARY = "webrtc"
62819
 
64489
 
62820
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
64490
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
62821
 if CONFIG["MOZ_DEBUG"] == "1":
64491
 if CONFIG["MOZ_DEBUG"] == "1":
62822
 
64492
 
62823
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
64493
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 62836-62845 index 10985c3a09a3..12fe81e90a59 100644 Link Here
62836
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
64506
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
62837
-    DEFINES["__STDC_FORMAT_MACROS"] = True
64507
-    DEFINES["__STDC_FORMAT_MACROS"] = True
62838
-
64508
-
62839
-    OS_LIBS += [
62840
-        "log"
62841
-    ]
62842
-
62843
-if CONFIG["OS_TARGET"] == "Darwin":
64509
-if CONFIG["OS_TARGET"] == "Darwin":
62844
-
64510
-
62845
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64511
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 62905-62914 index 10985c3a09a3..12fe81e90a59 100644 Link Here
62905
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
64571
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
62906
-    DEFINES["_WINDOWS"] = True
64572
-    DEFINES["_WINDOWS"] = True
62907
-    DEFINES["__STD_C"] = True
64573
-    DEFINES["__STD_C"] = True
62908
-
62909
-    OS_LIBS += [
62910
-        "winmm"
62911
-    ]
62912
+    DEFINES["_DEBUG"] = True
64574
+    DEFINES["_DEBUG"] = True
62913
 
64575
 
62914
 if CONFIG["CPU_ARCH"] == "aarch64":
64576
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 62918-62927 index 10985c3a09a3..12fe81e90a59 100644 Link Here
62918
 
64580
 
62919
-if CONFIG["CPU_ARCH"] == "arm":
64581
-if CONFIG["CPU_ARCH"] == "arm":
62920
-
64582
-
62921
-    CXXFLAGS += [
62922
-        "-mfpu=neon"
62923
-    ]
62924
-
62925
-    DEFINES["WEBRTC_ARCH_ARM"] = True
64583
-    DEFINES["WEBRTC_ARCH_ARM"] = True
62926
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
64584
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
62927
-    DEFINES["WEBRTC_HAS_NEON"] = True
64585
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 62984-62994 index 10985c3a09a3..12fe81e90a59 100644 Link Here
62984
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64642
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
62985
-    DEFINES["_GNU_SOURCE"] = True
64643
-    DEFINES["_GNU_SOURCE"] = True
62986
-
64644
-
62987
 Library("audio_format_to_string_gn")
64645
 Library("byte_order_gn")
62988
diff --git third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build
64646
diff --git third_party/libwebrtc/rtc_base/callback_list_gn/moz.build third_party/libwebrtc/rtc_base/callback_list_gn/moz.build
62989
index b3daad93040a..d18471cbb946 100644
64647
index 6c63dc79e25e..9ff476fbcfd0 100644
62990
--- third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build
64648
--- third_party/libwebrtc/rtc_base/callback_list_gn/moz.build
62991
+++ third_party/libwebrtc/rtc_base/bit_buffer_gn/moz.build
64649
+++ third_party/libwebrtc/rtc_base/callback_list_gn/moz.build
62992
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64650
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
62993
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64651
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
62994
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
64652
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 63173-63183 index b3daad93040a..d18471cbb946 100644 Link Here
63173
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64831
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63174
-    DEFINES["_GNU_SOURCE"] = True
64832
-    DEFINES["_GNU_SOURCE"] = True
63175
-
64833
-
63176
 Library("bit_buffer_gn")
64834
 Library("callback_list_gn")
63177
diff --git third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build
64835
diff --git third_party/libwebrtc/rtc_base/checks_gn/moz.build third_party/libwebrtc/rtc_base/checks_gn/moz.build
63178
index 5578717236fa..ba596983b322 100644
64836
index 1c7ee114d266..cbfd21ec0181 100644
63179
--- third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build
64837
--- third_party/libwebrtc/rtc_base/checks_gn/moz.build
63180
+++ third_party/libwebrtc/rtc_base/bitstream_reader_gn/moz.build
64838
+++ third_party/libwebrtc/rtc_base/checks_gn/moz.build
63181
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64839
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
63182
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64840
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63183
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
64841
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 63362-63372 index 5578717236fa..ba596983b322 100644 Link Here
63362
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65020
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63363
-    DEFINES["_GNU_SOURCE"] = True
65021
-    DEFINES["_GNU_SOURCE"] = True
63364
-
65022
-
63365
 Library("bitstream_reader_gn")
65023
 Library("checks_gn")
63366
diff --git third_party/libwebrtc/rtc_base/buffer_gn/moz.build third_party/libwebrtc/rtc_base/buffer_gn/moz.build
65024
diff --git third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build
63367
index 153ffc6d7bec..b2d99bd4e310 100644
65025
index 710110b47814..89cf3756d48f 100644
63368
--- third_party/libwebrtc/rtc_base/buffer_gn/moz.build
65026
--- third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build
63369
+++ third_party/libwebrtc/rtc_base/buffer_gn/moz.build
65027
+++ third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build
63370
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65028
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
63371
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65029
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63372
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
65030
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 63388-63394 index 153ffc6d7bec..b2d99bd4e310 100644 Link Here
63388
 
65046
 
63389
 FINAL_LIBRARY = "webrtc"
65047
 FINAL_LIBRARY = "webrtc"
63390
 
65048
 
63391
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
65049
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
63392
 if CONFIG["MOZ_DEBUG"] == "1":
65050
 if CONFIG["MOZ_DEBUG"] == "1":
63393
 
65051
 
63394
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
65052
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 63407-63416 index 153ffc6d7bec..b2d99bd4e310 100644 Link Here
63407
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
65065
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63408
-    DEFINES["__STDC_FORMAT_MACROS"] = True
65066
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63409
-
65067
-
63410
-    OS_LIBS += [
63411
-        "log"
63412
-    ]
63413
-
63414
-if CONFIG["OS_TARGET"] == "Darwin":
65068
-if CONFIG["OS_TARGET"] == "Darwin":
63415
-
65069
-
63416
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65070
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 63547-63557 index 153ffc6d7bec..b2d99bd4e310 100644 Link Here
63547
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65201
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63548
-    DEFINES["_GNU_SOURCE"] = True
65202
-    DEFINES["_GNU_SOURCE"] = True
63549
-
65203
-
63550
 Library("buffer_gn")
65204
 Library("compile_assert_c_gn")
63551
diff --git third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build
65205
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
63552
index ab65698bbdbc..681652e6c65c 100644
65206
index aeba5a1f25a5..f2fd0ab3ebab 100644
63553
--- third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build
65207
--- third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build
63554
+++ third_party/libwebrtc/rtc_base/byte_buffer_gn/moz.build
65208
+++ third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build
63555
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65209
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
63556
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65210
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63557
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
65211
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 63670-63860 index ab65698bbdbc..681652e6c65c 100644 Link Here
63670
 
65324
 
63671
-if CONFIG["CPU_ARCH"] == "arm":
65325
-if CONFIG["CPU_ARCH"] == "arm":
63672
-
65326
-
63673
-    CXXFLAGS += [
65327
-    CXXFLAGS += [
63674
-        "-mfpu=neon"
65328
-        "-mfpu=neon"
63675
-    ]
65329
-    ]
63676
-
65330
-
63677
-    DEFINES["WEBRTC_ARCH_ARM"] = True
63678
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
63679
-    DEFINES["WEBRTC_HAS_NEON"] = True
63680
-
63681
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
63682
-
63683
-    DEFINES["_DEBUG"] = True
63684
-
63685
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
63686
-
63687
-    DEFINES["_DEBUG"] = True
63688
-
63689
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
63690
-
63691
-    DEFINES["_DEBUG"] = True
63692
-
63693
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
63694
-
63695
-    DEFINES["_DEBUG"] = True
63696
-
63697
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
63698
-
63699
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
63700
-
63701
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
63702
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
63703
 
63704
     DEFINES["USE_X11"] = "1"
63705
 
63706
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
63707
-
63708
-    OS_LIBS += [
63709
-        "android_support",
63710
-        "unwind"
63711
-    ]
63712
-
63713
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
63714
-
63715
-    OS_LIBS += [
63716
-        "android_support"
63717
-    ]
63718
-
63719
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
63720
-
63721
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63722
-    DEFINES["_GNU_SOURCE"] = True
63723
-
63724
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
63725
-
63726
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63727
-    DEFINES["_GNU_SOURCE"] = True
63728
-
63729
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
63730
-
63731
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63732
-    DEFINES["_GNU_SOURCE"] = True
63733
-
63734
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
63735
-
63736
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63737
-    DEFINES["_GNU_SOURCE"] = True
63738
-
63739
 Library("byte_buffer_gn")
63740
diff --git third_party/libwebrtc/rtc_base/byte_order_gn/moz.build third_party/libwebrtc/rtc_base/byte_order_gn/moz.build
63741
index 3cda1af49dc2..9f18b513a3e7 100644
63742
--- third_party/libwebrtc/rtc_base/byte_order_gn/moz.build
63743
+++ third_party/libwebrtc/rtc_base/byte_order_gn/moz.build
63744
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
63745
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63746
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
63747
 DEFINES["RTC_ENABLE_VP9"] = True
63748
+DEFINES["USE_GLIB"] = "1"
63749
+DEFINES["USE_OZONE"] = "1"
63750
+DEFINES["WEBRTC_BSD"] = True
63751
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
63752
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
63753
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
63754
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
63755
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
63756
+DEFINES["WEBRTC_POSIX"] = True
63757
+DEFINES["_FILE_OFFSET_BITS"] = "64"
63758
+DEFINES["_LARGEFILE64_SOURCE"] = True
63759
+DEFINES["_LARGEFILE_SOURCE"] = True
63760
+DEFINES["__STDC_CONSTANT_MACROS"] = True
63761
+DEFINES["__STDC_FORMAT_MACROS"] = True
63762
 
63763
 FINAL_LIBRARY = "webrtc"
63764
 
63765
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
63766
 if CONFIG["MOZ_DEBUG"] == "1":
63767
 
63768
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
63769
-
63770
-if CONFIG["OS_TARGET"] == "Android":
63771
-
63772
-    DEFINES["ANDROID"] = True
63773
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
63774
-    DEFINES["HAVE_SYS_UIO_H"] = True
63775
-    DEFINES["WEBRTC_ANDROID"] = True
63776
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
63777
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63778
-    DEFINES["WEBRTC_LINUX"] = True
63779
-    DEFINES["WEBRTC_POSIX"] = True
63780
-    DEFINES["_GNU_SOURCE"] = True
63781
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63782
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63783
-
63784
-if CONFIG["OS_TARGET"] == "Darwin":
63785
-
63786
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63787
-    DEFINES["WEBRTC_MAC"] = True
63788
-    DEFINES["WEBRTC_POSIX"] = True
63789
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
63790
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
63791
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63792
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63793
-
63794
-if CONFIG["OS_TARGET"] == "Linux":
63795
-
63796
-    DEFINES["USE_AURA"] = "1"
63797
-    DEFINES["USE_GLIB"] = "1"
63798
-    DEFINES["USE_NSS_CERTS"] = "1"
63799
-    DEFINES["USE_OZONE"] = "1"
63800
-    DEFINES["USE_UDEV"] = True
63801
-    DEFINES["WEBRTC_LINUX"] = True
63802
-    DEFINES["WEBRTC_POSIX"] = True
63803
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
63804
-    DEFINES["_LARGEFILE64_SOURCE"] = True
63805
-    DEFINES["_LARGEFILE_SOURCE"] = True
63806
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63807
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63808
-
63809
-if CONFIG["OS_TARGET"] == "OpenBSD":
63810
-
63811
-    DEFINES["USE_GLIB"] = "1"
63812
-    DEFINES["USE_OZONE"] = "1"
63813
-    DEFINES["USE_X11"] = "1"
63814
-    DEFINES["WEBRTC_BSD"] = True
63815
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63816
-    DEFINES["WEBRTC_POSIX"] = True
63817
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
63818
-    DEFINES["_LARGEFILE64_SOURCE"] = True
63819
-    DEFINES["_LARGEFILE_SOURCE"] = True
63820
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
63821
-    DEFINES["__STDC_FORMAT_MACROS"] = True
63822
-
63823
-if CONFIG["OS_TARGET"] == "WINNT":
63824
-
63825
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
63826
-    DEFINES["NOMINMAX"] = True
63827
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
63828
-    DEFINES["PSAPI_VERSION"] = "2"
63829
-    DEFINES["UNICODE"] = True
63830
-    DEFINES["USE_AURA"] = "1"
63831
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63832
-    DEFINES["WEBRTC_WIN"] = True
63833
-    DEFINES["WIN32"] = True
63834
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
63835
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
63836
-    DEFINES["WINVER"] = "0x0A00"
63837
-    DEFINES["_ATL_NO_OPENGL"] = True
63838
-    DEFINES["_CRT_RAND_S"] = True
63839
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
63840
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
63841
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
63842
-    DEFINES["_HAS_NODISCARD"] = True
63843
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
63844
-    DEFINES["_SECURE_ATL"] = True
63845
-    DEFINES["_UNICODE"] = True
63846
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
63847
-    DEFINES["_WINDOWS"] = True
63848
-    DEFINES["__STD_C"] = True
63849
+    DEFINES["_DEBUG"] = True
63850
 
63851
 if CONFIG["CPU_ARCH"] == "aarch64":
63852
 
63853
     DEFINES["WEBRTC_ARCH_ARM64"] = True
63854
     DEFINES["WEBRTC_HAS_NEON"] = True
63855
 
63856
-if CONFIG["CPU_ARCH"] == "arm":
63857
-
63858
-    DEFINES["WEBRTC_ARCH_ARM"] = True
65331
-    DEFINES["WEBRTC_ARCH_ARM"] = True
63859
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
65332
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
63860
-    DEFINES["WEBRTC_HAS_NEON"] = True
65333
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 63917-63927 index 3cda1af49dc2..9f18b513a3e7 100644 Link Here
63917
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65390
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
63918
-    DEFINES["_GNU_SOURCE"] = True
65391
-    DEFINES["_GNU_SOURCE"] = True
63919
-
65392
-
63920
 Library("byte_order_gn")
65393
 Library("flat_containers_internal_gn")
63921
diff --git third_party/libwebrtc/rtc_base/callback_list_gn/moz.build third_party/libwebrtc/rtc_base/callback_list_gn/moz.build
65394
diff --git third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build
63922
index 6c63dc79e25e..9ff476fbcfd0 100644
65395
index 0f8ada65b808..a7da0c928a3f 100644
63923
--- third_party/libwebrtc/rtc_base/callback_list_gn/moz.build
65396
--- third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build
63924
+++ third_party/libwebrtc/rtc_base/callback_list_gn/moz.build
65397
+++ third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build
63925
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65398
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
63926
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65399
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
63927
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
65400
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 63943-63949 index 6c63dc79e25e..9ff476fbcfd0 100644 Link Here
63943
 
65416
 
63944
 FINAL_LIBRARY = "webrtc"
65417
 FINAL_LIBRARY = "webrtc"
63945
 
65418
 
63946
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
65419
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
63947
 if CONFIG["MOZ_DEBUG"] == "1":
65420
 if CONFIG["MOZ_DEBUG"] == "1":
63948
 
65421
 
63949
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
65422
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 64040-64049 index 6c63dc79e25e..9ff476fbcfd0 100644 Link Here
64040
 
65513
 
64041
-if CONFIG["CPU_ARCH"] == "arm":
65514
-if CONFIG["CPU_ARCH"] == "arm":
64042
-
65515
-
64043
-    CXXFLAGS += [
65516
-    DEFINES["WEBRTC_ARCH_ARM"] = True
64044
-        "-mfpu=neon"
65517
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
65518
-    DEFINES["WEBRTC_HAS_NEON"] = True
65519
-
65520
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
65521
-
65522
-    DEFINES["_DEBUG"] = True
65523
-
65524
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
65525
-
65526
-    DEFINES["_DEBUG"] = True
65527
-
65528
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
65529
-
65530
-    DEFINES["_DEBUG"] = True
65531
-
65532
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
65533
-
65534
-    DEFINES["_DEBUG"] = True
65535
-
65536
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
65537
-
65538
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
65539
-
65540
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
65541
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
65542
 
65543
     DEFINES["USE_X11"] = "1"
65544
 
65545
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
65546
-
65547
-    OS_LIBS += [
65548
-        "android_support",
65549
-        "unwind"
65550
-    ]
65551
-
65552
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
65553
-
65554
-    OS_LIBS += [
65555
-        "android_support"
65556
-    ]
65557
-
65558
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
65559
-
65560
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65561
-    DEFINES["_GNU_SOURCE"] = True
65562
-
65563
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
65564
-
65565
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65566
-    DEFINES["_GNU_SOURCE"] = True
65567
-
65568
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
65569
-
65570
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65571
-    DEFINES["_GNU_SOURCE"] = True
65572
-
65573
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
65574
-
65575
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65576
-    DEFINES["_GNU_SOURCE"] = True
65577
-
65578
 Library("flat_map_gn")
65579
diff --git third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build
65580
index 78923e89eab3..2eb4118af594 100644
65581
--- third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build
65582
+++ third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build
65583
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65584
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65585
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
65586
 DEFINES["RTC_ENABLE_VP9"] = True
65587
+DEFINES["USE_GLIB"] = "1"
65588
+DEFINES["USE_OZONE"] = "1"
65589
+DEFINES["WEBRTC_BSD"] = True
65590
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
65591
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
65592
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
65593
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
65594
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
65595
+DEFINES["WEBRTC_POSIX"] = True
65596
+DEFINES["_FILE_OFFSET_BITS"] = "64"
65597
+DEFINES["_LARGEFILE64_SOURCE"] = True
65598
+DEFINES["_LARGEFILE_SOURCE"] = True
65599
+DEFINES["__STDC_CONSTANT_MACROS"] = True
65600
+DEFINES["__STDC_FORMAT_MACROS"] = True
65601
 
65602
 FINAL_LIBRARY = "webrtc"
65603
 
65604
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
65605
 if CONFIG["MOZ_DEBUG"] == "1":
65606
 
65607
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
65608
-
65609
-if CONFIG["OS_TARGET"] == "Android":
65610
-
65611
-    DEFINES["ANDROID"] = True
65612
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
65613
-    DEFINES["HAVE_SYS_UIO_H"] = True
65614
-    DEFINES["WEBRTC_ANDROID"] = True
65615
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
65616
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65617
-    DEFINES["WEBRTC_LINUX"] = True
65618
-    DEFINES["WEBRTC_POSIX"] = True
65619
-    DEFINES["_GNU_SOURCE"] = True
65620
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
65621
-    DEFINES["__STDC_FORMAT_MACROS"] = True
65622
-
65623
-    OS_LIBS += [
65624
-        "log"
64045
-    ]
65625
-    ]
64046
-
65626
-
65627
-if CONFIG["OS_TARGET"] == "Darwin":
65628
-
65629
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65630
-    DEFINES["WEBRTC_MAC"] = True
65631
-    DEFINES["WEBRTC_POSIX"] = True
65632
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
65633
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
65634
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
65635
-    DEFINES["__STDC_FORMAT_MACROS"] = True
65636
-
65637
-if CONFIG["OS_TARGET"] == "Linux":
65638
-
65639
-    DEFINES["USE_AURA"] = "1"
65640
-    DEFINES["USE_GLIB"] = "1"
65641
-    DEFINES["USE_NSS_CERTS"] = "1"
65642
-    DEFINES["USE_OZONE"] = "1"
65643
-    DEFINES["USE_UDEV"] = True
65644
-    DEFINES["WEBRTC_LINUX"] = True
65645
-    DEFINES["WEBRTC_POSIX"] = True
65646
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
65647
-    DEFINES["_LARGEFILE64_SOURCE"] = True
65648
-    DEFINES["_LARGEFILE_SOURCE"] = True
65649
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
65650
-    DEFINES["__STDC_FORMAT_MACROS"] = True
65651
-
65652
-if CONFIG["OS_TARGET"] == "OpenBSD":
65653
-
65654
-    DEFINES["USE_GLIB"] = "1"
65655
-    DEFINES["USE_OZONE"] = "1"
65656
-    DEFINES["USE_X11"] = "1"
65657
-    DEFINES["WEBRTC_BSD"] = True
65658
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65659
-    DEFINES["WEBRTC_POSIX"] = True
65660
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
65661
-    DEFINES["_LARGEFILE64_SOURCE"] = True
65662
-    DEFINES["_LARGEFILE_SOURCE"] = True
65663
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
65664
-    DEFINES["__STDC_FORMAT_MACROS"] = True
65665
-
65666
-if CONFIG["OS_TARGET"] == "WINNT":
65667
-
65668
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
65669
-    DEFINES["NOMINMAX"] = True
65670
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
65671
-    DEFINES["PSAPI_VERSION"] = "2"
65672
-    DEFINES["UNICODE"] = True
65673
-    DEFINES["USE_AURA"] = "1"
65674
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65675
-    DEFINES["WEBRTC_WIN"] = True
65676
-    DEFINES["WIN32"] = True
65677
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
65678
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
65679
-    DEFINES["WINVER"] = "0x0A00"
65680
-    DEFINES["_ATL_NO_OPENGL"] = True
65681
-    DEFINES["_CRT_RAND_S"] = True
65682
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
65683
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
65684
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
65685
-    DEFINES["_HAS_NODISCARD"] = True
65686
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
65687
-    DEFINES["_SECURE_ATL"] = True
65688
-    DEFINES["_UNICODE"] = True
65689
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
65690
-    DEFINES["_WINDOWS"] = True
65691
-    DEFINES["__STD_C"] = True
65692
+    DEFINES["_DEBUG"] = True
65693
 
65694
 if CONFIG["CPU_ARCH"] == "aarch64":
65695
 
65696
     DEFINES["WEBRTC_ARCH_ARM64"] = True
65697
     DEFINES["WEBRTC_HAS_NEON"] = True
65698
 
65699
-if CONFIG["CPU_ARCH"] == "arm":
65700
-
64047
-    DEFINES["WEBRTC_ARCH_ARM"] = True
65701
-    DEFINES["WEBRTC_ARCH_ARM"] = True
64048
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
65702
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
64049
-    DEFINES["WEBRTC_HAS_NEON"] = True
65703
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 64106-64116 index 6c63dc79e25e..9ff476fbcfd0 100644 Link Here
64106
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65760
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64107
-    DEFINES["_GNU_SOURCE"] = True
65761
-    DEFINES["_GNU_SOURCE"] = True
64108
-
65762
-
64109
 Library("callback_list_gn")
65763
 Library("flat_set_gn")
64110
diff --git third_party/libwebrtc/rtc_base/checks_gn/moz.build third_party/libwebrtc/rtc_base/checks_gn/moz.build
65764
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
64111
index 1c7ee114d266..cbfd21ec0181 100644
65765
index 5a3b34c3eb3f..42099791f250 100644
64112
--- third_party/libwebrtc/rtc_base/checks_gn/moz.build
65766
--- third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build
64113
+++ third_party/libwebrtc/rtc_base/checks_gn/moz.build
65767
+++ third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build
64114
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65768
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64115
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65769
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64116
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
65770
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 64295-64305 index 1c7ee114d266..cbfd21ec0181 100644 Link Here
64295
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65949
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64296
-    DEFINES["_GNU_SOURCE"] = True
65950
-    DEFINES["_GNU_SOURCE"] = True
64297
-
65951
-
64298
 Library("checks_gn")
65952
 Library("copy_on_write_buffer_gn")
64299
diff --git third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build
65953
diff --git third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build
64300
index 710110b47814..89cf3756d48f 100644
65954
index 9e2ce84542b5..62e32f186625 100644
64301
--- third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build
65955
--- third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build
64302
+++ third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build
65956
+++ third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build
64303
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65957
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64304
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65958
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64305
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
65959
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 64321-64327 index 710110b47814..89cf3756d48f 100644 Link Here
64321
 
65975
 
64322
 FINAL_LIBRARY = "webrtc"
65976
 FINAL_LIBRARY = "webrtc"
64323
 
65977
 
64324
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
65978
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
64325
 if CONFIG["MOZ_DEBUG"] == "1":
65979
 if CONFIG["MOZ_DEBUG"] == "1":
64326
 
65980
 
64327
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
65981
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 64340-64345 index 710110b47814..89cf3756d48f 100644 Link Here
64340
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
65994
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
64341
-    DEFINES["__STDC_FORMAT_MACROS"] = True
65995
-    DEFINES["__STDC_FORMAT_MACROS"] = True
64342
-
65996
-
65997
-    OS_LIBS += [
65998
-        "log"
65999
-    ]
66000
-
64343
-if CONFIG["OS_TARGET"] == "Darwin":
66001
-if CONFIG["OS_TARGET"] == "Darwin":
64344
-
66002
-
64345
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66003
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 64414-64419 index 710110b47814..89cf3756d48f 100644 Link Here
64414
 
66072
 
64415
-if CONFIG["CPU_ARCH"] == "arm":
66073
-if CONFIG["CPU_ARCH"] == "arm":
64416
-
66074
-
66075
-    CXXFLAGS += [
66076
-        "-mfpu=neon"
66077
-    ]
66078
-
64417
-    DEFINES["WEBRTC_ARCH_ARM"] = True
66079
-    DEFINES["WEBRTC_ARCH_ARM"] = True
64418
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
66080
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
64419
-    DEFINES["WEBRTC_HAS_NEON"] = True
66081
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 64476-64486 index 710110b47814..89cf3756d48f 100644 Link Here
64476
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66138
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64477
-    DEFINES["_GNU_SOURCE"] = True
66139
-    DEFINES["_GNU_SOURCE"] = True
64478
-
66140
-
64479
 Library("compile_assert_c_gn")
66141
 Library("criticalsection_gn")
64480
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
66142
diff --git third_party/libwebrtc/rtc_base/divide_round_gn/moz.build third_party/libwebrtc/rtc_base/divide_round_gn/moz.build
64481
index aeba5a1f25a5..f2fd0ab3ebab 100644
66143
index 0a389c181a0f..b8aa831636e1 100644
64482
--- third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build
66144
--- third_party/libwebrtc/rtc_base/divide_round_gn/moz.build
64483
+++ third_party/libwebrtc/rtc_base/containers/flat_containers_internal_gn/moz.build
66145
+++ third_party/libwebrtc/rtc_base/divide_round_gn/moz.build
64484
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66146
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64485
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66147
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64486
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
66148
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 64502-64508 index aeba5a1f25a5..f2fd0ab3ebab 100644 Link Here
64502
 
66164
 
64503
 FINAL_LIBRARY = "webrtc"
66165
 FINAL_LIBRARY = "webrtc"
64504
 
66166
 
64505
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
66167
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
64506
 if CONFIG["MOZ_DEBUG"] == "1":
66168
 if CONFIG["MOZ_DEBUG"] == "1":
64507
 
66169
 
64508
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
66170
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 64599-64608 index aeba5a1f25a5..f2fd0ab3ebab 100644 Link Here
64599
 
66261
 
64600
-if CONFIG["CPU_ARCH"] == "arm":
66262
-if CONFIG["CPU_ARCH"] == "arm":
64601
-
66263
-
64602
-    CXXFLAGS += [
64603
-        "-mfpu=neon"
64604
-    ]
64605
-
64606
-    DEFINES["WEBRTC_ARCH_ARM"] = True
66264
-    DEFINES["WEBRTC_ARCH_ARM"] = True
64607
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
66265
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
64608
-    DEFINES["WEBRTC_HAS_NEON"] = True
66266
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 64665-64675 index aeba5a1f25a5..f2fd0ab3ebab 100644 Link Here
64665
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66323
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64666
-    DEFINES["_GNU_SOURCE"] = True
66324
-    DEFINES["_GNU_SOURCE"] = True
64667
-
66325
-
64668
 Library("flat_containers_internal_gn")
66326
 Library("divide_round_gn")
64669
diff --git third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build
66327
diff --git third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build
64670
index 0f8ada65b808..a7da0c928a3f 100644
66328
index 50d367865f42..a2edb19a6a18 100644
64671
--- third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build
66329
--- third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build
64672
+++ third_party/libwebrtc/rtc_base/containers/flat_map_gn/moz.build
66330
+++ third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build
64673
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66331
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64674
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66332
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64675
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
66333
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 64691-64697 index 0f8ada65b808..a7da0c928a3f 100644 Link Here
64691
 
66349
 
64692
 FINAL_LIBRARY = "webrtc"
66350
 FINAL_LIBRARY = "webrtc"
64693
 
66351
 
64694
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
66352
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
64695
 if CONFIG["MOZ_DEBUG"] == "1":
66353
 if CONFIG["MOZ_DEBUG"] == "1":
64696
 
66354
 
64697
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
66355
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 64779-64969 index 0f8ada65b808..a7da0c928a3f 100644 Link Here
64779
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
66437
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
64780
-    DEFINES["_WINDOWS"] = True
66438
-    DEFINES["_WINDOWS"] = True
64781
-    DEFINES["__STD_C"] = True
66439
-    DEFINES["__STD_C"] = True
64782
+    DEFINES["_DEBUG"] = True
64783
 
64784
 if CONFIG["CPU_ARCH"] == "aarch64":
64785
 
64786
     DEFINES["WEBRTC_ARCH_ARM64"] = True
64787
     DEFINES["WEBRTC_HAS_NEON"] = True
64788
 
64789
-if CONFIG["CPU_ARCH"] == "arm":
64790
-
64791
-    DEFINES["WEBRTC_ARCH_ARM"] = True
64792
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
64793
-    DEFINES["WEBRTC_HAS_NEON"] = True
64794
-
64795
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
64796
-
64797
-    DEFINES["_DEBUG"] = True
64798
-
64799
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
64800
-
64801
-    DEFINES["_DEBUG"] = True
64802
-
64803
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
64804
-
64805
-    DEFINES["_DEBUG"] = True
64806
-
64807
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
64808
-
64809
-    DEFINES["_DEBUG"] = True
64810
-
64811
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
64812
-
64813
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
64814
-
64815
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
64816
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
64817
 
64818
     DEFINES["USE_X11"] = "1"
64819
 
64820
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
64821
-
64822
-    OS_LIBS += [
64823
-        "android_support",
64824
-        "unwind"
64825
-    ]
64826
-
64827
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
64828
-
64829
-    OS_LIBS += [
64830
-        "android_support"
64831
-    ]
64832
-
64833
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
64834
-
64835
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64836
-    DEFINES["_GNU_SOURCE"] = True
64837
-
64838
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
64839
-
64840
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64841
-    DEFINES["_GNU_SOURCE"] = True
64842
-
64843
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
64844
-
64845
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64846
-    DEFINES["_GNU_SOURCE"] = True
64847
-
64848
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
64849
-
64850
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64851
-    DEFINES["_GNU_SOURCE"] = True
64852
-
64853
 Library("flat_map_gn")
64854
diff --git third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build
64855
index 78923e89eab3..2eb4118af594 100644
64856
--- third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build
64857
+++ third_party/libwebrtc/rtc_base/containers/flat_set_gn/moz.build
64858
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
64859
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
64860
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
64861
 DEFINES["RTC_ENABLE_VP9"] = True
64862
+DEFINES["USE_GLIB"] = "1"
64863
+DEFINES["USE_OZONE"] = "1"
64864
+DEFINES["WEBRTC_BSD"] = True
64865
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
64866
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
64867
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
64868
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
64869
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
64870
+DEFINES["WEBRTC_POSIX"] = True
64871
+DEFINES["_FILE_OFFSET_BITS"] = "64"
64872
+DEFINES["_LARGEFILE64_SOURCE"] = True
64873
+DEFINES["_LARGEFILE_SOURCE"] = True
64874
+DEFINES["__STDC_CONSTANT_MACROS"] = True
64875
+DEFINES["__STDC_FORMAT_MACROS"] = True
64876
 
64877
 FINAL_LIBRARY = "webrtc"
64878
 
64879
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
64880
 if CONFIG["MOZ_DEBUG"] == "1":
64881
 
64882
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
64883
-
64884
-if CONFIG["OS_TARGET"] == "Android":
64885
-
64886
-    DEFINES["ANDROID"] = True
64887
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
64888
-    DEFINES["HAVE_SYS_UIO_H"] = True
64889
-    DEFINES["WEBRTC_ANDROID"] = True
64890
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
64891
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64892
-    DEFINES["WEBRTC_LINUX"] = True
64893
-    DEFINES["WEBRTC_POSIX"] = True
64894
-    DEFINES["_GNU_SOURCE"] = True
64895
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
64896
-    DEFINES["__STDC_FORMAT_MACROS"] = True
64897
-
66440
-
64898
-    OS_LIBS += [
66441
-    OS_LIBS += [
64899
-        "log"
66442
-        "winmm"
64900
-    ]
66443
-    ]
64901
-
64902
-if CONFIG["OS_TARGET"] == "Darwin":
64903
-
64904
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64905
-    DEFINES["WEBRTC_MAC"] = True
64906
-    DEFINES["WEBRTC_POSIX"] = True
64907
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
64908
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
64909
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
64910
-    DEFINES["__STDC_FORMAT_MACROS"] = True
64911
-
64912
-if CONFIG["OS_TARGET"] == "Linux":
64913
-
64914
-    DEFINES["USE_AURA"] = "1"
64915
-    DEFINES["USE_GLIB"] = "1"
64916
-    DEFINES["USE_NSS_CERTS"] = "1"
64917
-    DEFINES["USE_OZONE"] = "1"
64918
-    DEFINES["USE_UDEV"] = True
64919
-    DEFINES["WEBRTC_LINUX"] = True
64920
-    DEFINES["WEBRTC_POSIX"] = True
64921
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
64922
-    DEFINES["_LARGEFILE64_SOURCE"] = True
64923
-    DEFINES["_LARGEFILE_SOURCE"] = True
64924
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
64925
-    DEFINES["__STDC_FORMAT_MACROS"] = True
64926
-
64927
-if CONFIG["OS_TARGET"] == "OpenBSD":
64928
-
64929
-    DEFINES["USE_GLIB"] = "1"
64930
-    DEFINES["USE_OZONE"] = "1"
64931
-    DEFINES["USE_X11"] = "1"
64932
-    DEFINES["WEBRTC_BSD"] = True
64933
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64934
-    DEFINES["WEBRTC_POSIX"] = True
64935
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
64936
-    DEFINES["_LARGEFILE64_SOURCE"] = True
64937
-    DEFINES["_LARGEFILE_SOURCE"] = True
64938
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
64939
-    DEFINES["__STDC_FORMAT_MACROS"] = True
64940
-
64941
-if CONFIG["OS_TARGET"] == "WINNT":
64942
-
64943
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
64944
-    DEFINES["NOMINMAX"] = True
64945
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
64946
-    DEFINES["PSAPI_VERSION"] = "2"
64947
-    DEFINES["UNICODE"] = True
64948
-    DEFINES["USE_AURA"] = "1"
64949
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
64950
-    DEFINES["WEBRTC_WIN"] = True
64951
-    DEFINES["WIN32"] = True
64952
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
64953
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
64954
-    DEFINES["WINVER"] = "0x0A00"
64955
-    DEFINES["_ATL_NO_OPENGL"] = True
64956
-    DEFINES["_CRT_RAND_S"] = True
64957
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
64958
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
64959
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
64960
-    DEFINES["_HAS_NODISCARD"] = True
64961
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
64962
-    DEFINES["_SECURE_ATL"] = True
64963
-    DEFINES["_UNICODE"] = True
64964
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
64965
-    DEFINES["_WINDOWS"] = True
64966
-    DEFINES["__STD_C"] = True
64967
+    DEFINES["_DEBUG"] = True
66444
+    DEFINES["_DEBUG"] = True
64968
 
66445
 
64969
 if CONFIG["CPU_ARCH"] == "aarch64":
66446
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 64973-64978 index 78923e89eab3..2eb4118af594 100644 Link Here
64973
 
66450
 
64974
-if CONFIG["CPU_ARCH"] == "arm":
66451
-if CONFIG["CPU_ARCH"] == "arm":
64975
-
66452
-
66453
-    CXXFLAGS += [
66454
-        "-mfpu=neon"
66455
-    ]
66456
-
64976
-    DEFINES["WEBRTC_ARCH_ARM"] = True
66457
-    DEFINES["WEBRTC_ARCH_ARM"] = True
64977
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
66458
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
64978
-    DEFINES["WEBRTC_HAS_NEON"] = True
66459
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 65035-65045 index 78923e89eab3..2eb4118af594 100644 Link Here
65035
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66516
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65036
-    DEFINES["_GNU_SOURCE"] = True
66517
-    DEFINES["_GNU_SOURCE"] = True
65037
-
66518
-
65038
 Library("flat_set_gn")
66519
 Library("event_tracer_gn")
65039
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
66520
diff --git third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build
65040
index 5a3b34c3eb3f..42099791f250 100644
66521
index 6fae52bb42f3..74a792863f98 100644
65041
--- third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build
66522
--- third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build
65042
+++ third_party/libwebrtc/rtc_base/copy_on_write_buffer_gn/moz.build
66523
+++ third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build
65043
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66524
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65044
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66525
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65045
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
66526
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 65061-65067 index 5a3b34c3eb3f..42099791f250 100644 Link Here
65061
 
66542
 
65062
 FINAL_LIBRARY = "webrtc"
66543
 FINAL_LIBRARY = "webrtc"
65063
 
66544
 
65064
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
66545
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
65065
 if CONFIG["MOZ_DEBUG"] == "1":
66546
 if CONFIG["MOZ_DEBUG"] == "1":
65066
 
66547
 
65067
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
66548
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 65149-65154 index 5a3b34c3eb3f..42099791f250 100644 Link Here
65149
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
66630
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
65150
-    DEFINES["_WINDOWS"] = True
66631
-    DEFINES["_WINDOWS"] = True
65151
-    DEFINES["__STD_C"] = True
66632
-    DEFINES["__STD_C"] = True
66633
-
66634
-    OS_LIBS += [
66635
-        "winmm"
66636
-    ]
65152
+    DEFINES["_DEBUG"] = True
66637
+    DEFINES["_DEBUG"] = True
65153
 
66638
 
65154
 if CONFIG["CPU_ARCH"] == "aarch64":
66639
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 65224-65234 index 5a3b34c3eb3f..42099791f250 100644 Link Here
65224
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66709
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65225
-    DEFINES["_GNU_SOURCE"] = True
66710
-    DEFINES["_GNU_SOURCE"] = True
65226
-
66711
-
65227
 Library("copy_on_write_buffer_gn")
66712
 Library("alr_experiment_gn")
65228
diff --git third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build
66713
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
65229
index 9e2ce84542b5..62e32f186625 100644
66714
index 4e7e01cb33c9..ad9fa6f31eb9 100644
65230
--- third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build
66715
--- third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build
65231
+++ third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build
66716
+++ third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build
65232
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66717
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65233
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66718
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65234
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
66719
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 65250-65256 index 9e2ce84542b5..62e32f186625 100644 Link Here
65250
 
66735
 
65251
 FINAL_LIBRARY = "webrtc"
66736
 FINAL_LIBRARY = "webrtc"
65252
 
66737
 
65253
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
66738
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
65254
 if CONFIG["MOZ_DEBUG"] == "1":
66739
 if CONFIG["MOZ_DEBUG"] == "1":
65255
 
66740
 
65256
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
66741
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 65338-65343 index 9e2ce84542b5..62e32f186625 100644 Link Here
65338
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
66823
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
65339
-    DEFINES["_WINDOWS"] = True
66824
-    DEFINES["_WINDOWS"] = True
65340
-    DEFINES["__STD_C"] = True
66825
-    DEFINES["__STD_C"] = True
66826
-
66827
-    OS_LIBS += [
66828
-        "winmm"
66829
-    ]
65341
+    DEFINES["_DEBUG"] = True
66830
+    DEFINES["_DEBUG"] = True
65342
 
66831
 
65343
 if CONFIG["CPU_ARCH"] == "aarch64":
66832
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 65413-65423 index 9e2ce84542b5..62e32f186625 100644 Link Here
65413
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66902
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65414
-    DEFINES["_GNU_SOURCE"] = True
66903
-    DEFINES["_GNU_SOURCE"] = True
65415
-
66904
-
65416
 Library("criticalsection_gn")
66905
 Library("balanced_degradation_settings_gn")
65417
diff --git third_party/libwebrtc/rtc_base/divide_round_gn/moz.build third_party/libwebrtc/rtc_base/divide_round_gn/moz.build
66906
diff --git third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build
65418
index 0a389c181a0f..b8aa831636e1 100644
66907
index b77512ed7ca4..f883d87512f8 100644
65419
--- third_party/libwebrtc/rtc_base/divide_round_gn/moz.build
66908
--- third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build
65420
+++ third_party/libwebrtc/rtc_base/divide_round_gn/moz.build
66909
+++ third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build
65421
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66910
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65422
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66911
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65423
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
66912
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 65439-65445 index 0a389c181a0f..b8aa831636e1 100644 Link Here
65439
 
66928
 
65440
 FINAL_LIBRARY = "webrtc"
66929
 FINAL_LIBRARY = "webrtc"
65441
 
66930
 
65442
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
66931
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
65443
 if CONFIG["MOZ_DEBUG"] == "1":
66932
 if CONFIG["MOZ_DEBUG"] == "1":
65444
 
66933
 
65445
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
66934
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 65527-65532 index 0a389c181a0f..b8aa831636e1 100644 Link Here
65527
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
67016
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
65528
-    DEFINES["_WINDOWS"] = True
67017
-    DEFINES["_WINDOWS"] = True
65529
-    DEFINES["__STD_C"] = True
67018
-    DEFINES["__STD_C"] = True
67019
-
67020
-    OS_LIBS += [
67021
-        "winmm"
67022
-    ]
65530
+    DEFINES["_DEBUG"] = True
67023
+    DEFINES["_DEBUG"] = True
65531
 
67024
 
65532
 if CONFIG["CPU_ARCH"] == "aarch64":
67025
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 65536-65541 index 0a389c181a0f..b8aa831636e1 100644 Link Here
65536
 
67029
 
65537
-if CONFIG["CPU_ARCH"] == "arm":
67030
-if CONFIG["CPU_ARCH"] == "arm":
65538
-
67031
-
67032
-    CXXFLAGS += [
67033
-        "-mfpu=neon"
67034
-    ]
67035
-
65539
-    DEFINES["WEBRTC_ARCH_ARM"] = True
67036
-    DEFINES["WEBRTC_ARCH_ARM"] = True
65540
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
67037
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
65541
-    DEFINES["WEBRTC_HAS_NEON"] = True
67038
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 65598-65608 index 0a389c181a0f..b8aa831636e1 100644 Link Here
65598
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67095
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65599
-    DEFINES["_GNU_SOURCE"] = True
67096
-    DEFINES["_GNU_SOURCE"] = True
65600
-
67097
-
65601
 Library("divide_round_gn")
67098
 Library("bandwidth_quality_scaler_settings_gn")
65602
diff --git third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build
67099
diff --git third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build
65603
index 50d367865f42..a2edb19a6a18 100644
67100
index b2eda23031d9..c2aefebf335f 100644
65604
--- third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build
67101
--- third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build
65605
+++ third_party/libwebrtc/rtc_base/event_tracer_gn/moz.build
67102
+++ third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build
65606
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67103
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65607
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67104
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65608
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
67105
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 65791-65801 index 50d367865f42..a2edb19a6a18 100644 Link Here
65791
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67288
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65792
-    DEFINES["_GNU_SOURCE"] = True
67289
-    DEFINES["_GNU_SOURCE"] = True
65793
-
67290
-
65794
 Library("event_tracer_gn")
67291
 Library("cpu_speed_experiment_gn")
65795
diff --git third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build
67292
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
65796
index 6fae52bb42f3..74a792863f98 100644
67293
index 28b528d00af0..dc663b172140 100644
65797
--- third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build
67294
--- third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build
65798
+++ third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build
67295
+++ third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build
65799
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67296
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65800
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67297
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65801
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
67298
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 65984-65994 index 6fae52bb42f3..74a792863f98 100644 Link Here
65984
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67481
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
65985
-    DEFINES["_GNU_SOURCE"] = True
67482
-    DEFINES["_GNU_SOURCE"] = True
65986
-
67483
-
65987
 Library("alr_experiment_gn")
67484
 Library("encoder_info_settings_gn")
65988
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
67485
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
65989
index 4e7e01cb33c9..ad9fa6f31eb9 100644
67486
index b87d19dcfa02..79155a069937 100644
65990
--- third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build
67487
--- third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build
65991
+++ third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build
67488
+++ third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build
65992
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67489
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
65993
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67490
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
65994
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
67491
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 66010-66016 index 4e7e01cb33c9..ad9fa6f31eb9 100644 Link Here
66010
 
67507
 
66011
 FINAL_LIBRARY = "webrtc"
67508
 FINAL_LIBRARY = "webrtc"
66012
 
67509
 
66013
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
67510
@@ -44,165 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
66014
 if CONFIG["MOZ_DEBUG"] == "1":
67511
 if CONFIG["MOZ_DEBUG"] == "1":
66015
 
67512
 
66016
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
67513
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 66177-66187 index 4e7e01cb33c9..ad9fa6f31eb9 100644 Link Here
66177
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67674
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66178
-    DEFINES["_GNU_SOURCE"] = True
67675
-    DEFINES["_GNU_SOURCE"] = True
66179
-
67676
-
66180
 Library("balanced_degradation_settings_gn")
67677
 Library("field_trial_parser_gn")
66181
diff --git third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build
67678
diff --git third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build
66182
index b77512ed7ca4..f883d87512f8 100644
67679
index d99945875231..8c5e660e2d89 100644
66183
--- third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build
67680
--- third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build
66184
+++ third_party/libwebrtc/rtc_base/experiments/bandwidth_quality_scaler_settings_gn/moz.build
67681
+++ third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build
66185
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67682
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66186
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67683
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66187
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
67684
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 66370-66380 index b77512ed7ca4..f883d87512f8 100644 Link Here
66370
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67867
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66371
-    DEFINES["_GNU_SOURCE"] = True
67868
-    DEFINES["_GNU_SOURCE"] = True
66372
-
67869
-
66373
 Library("bandwidth_quality_scaler_settings_gn")
67870
 Library("jitter_upper_bound_experiment_gn")
66374
diff --git third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build
67871
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
66375
index b2eda23031d9..c2aefebf335f 100644
67872
index 4fc29dd00bdc..981a45f0db1c 100644
66376
--- third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build
67873
--- third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build
66377
+++ third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build
67874
+++ third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build
66378
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67875
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66379
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67876
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66380
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
67877
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 66563-66573 index b2eda23031d9..c2aefebf335f 100644 Link Here
66563
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68060
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66564
-    DEFINES["_GNU_SOURCE"] = True
68061
-    DEFINES["_GNU_SOURCE"] = True
66565
-
68062
-
66566
 Library("cpu_speed_experiment_gn")
68063
 Library("keyframe_interval_settings_experiment_gn")
66567
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
68064
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
66568
index 28b528d00af0..dc663b172140 100644
68065
index eb804281b3b4..b1ca07bf3516 100644
66569
--- third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build
68066
--- third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build
66570
+++ third_party/libwebrtc/rtc_base/experiments/encoder_info_settings_gn/moz.build
68067
+++ third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build
66571
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68068
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66572
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68069
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66573
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
68070
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 66756-66766 index 28b528d00af0..dc663b172140 100644 Link Here
66756
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68253
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66757
-    DEFINES["_GNU_SOURCE"] = True
68254
-    DEFINES["_GNU_SOURCE"] = True
66758
-
68255
-
66759
 Library("encoder_info_settings_gn")
68256
 Library("min_video_bitrate_experiment_gn")
66760
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
68257
diff --git third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build
66761
index b87d19dcfa02..79155a069937 100644
68258
index b1c8c0d0f5da..4161e1d2d4c4 100644
66762
--- third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build
68259
--- third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build
66763
+++ third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build
68260
+++ third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build
66764
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68261
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66765
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68262
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66766
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
68263
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 66782-66788 index b87d19dcfa02..79155a069937 100644 Link Here
66782
 
68279
 
66783
 FINAL_LIBRARY = "webrtc"
68280
 FINAL_LIBRARY = "webrtc"
66784
 
68281
 
66785
@@ -44,165 +54,15 @@ if not CONFIG["MOZ_DEBUG"]:
68282
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
66786
 if CONFIG["MOZ_DEBUG"] == "1":
68283
 if CONFIG["MOZ_DEBUG"] == "1":
66787
 
68284
 
66788
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
68285
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 66949-66959 index b87d19dcfa02..79155a069937 100644 Link Here
66949
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68446
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
66950
-    DEFINES["_GNU_SOURCE"] = True
68447
-    DEFINES["_GNU_SOURCE"] = True
66951
-
68448
-
66952
 Library("field_trial_parser_gn")
68449
 Library("quality_rampup_experiment_gn")
66953
diff --git third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build
68450
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
66954
index d99945875231..8c5e660e2d89 100644
68451
index e03ac53c529c..86fc14d049d4 100644
66955
--- third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build
68452
--- third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build
66956
+++ third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build
68453
+++ third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build
66957
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68454
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
66958
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68455
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
66959
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
68456
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 67142-67152 index d99945875231..8c5e660e2d89 100644 Link Here
67142
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68639
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67143
-    DEFINES["_GNU_SOURCE"] = True
68640
-    DEFINES["_GNU_SOURCE"] = True
67144
-
68641
-
67145
 Library("jitter_upper_bound_experiment_gn")
68642
 Library("quality_scaler_settings_gn")
67146
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
68643
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
67147
index 4fc29dd00bdc..981a45f0db1c 100644
68644
index 8eab3b601803..589003868373 100644
67148
--- third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build
68645
--- third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build
67149
+++ third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build
68646
+++ third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build
67150
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68647
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67151
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68648
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67152
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
68649
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 67335-67345 index 4fc29dd00bdc..981a45f0db1c 100644 Link Here
67335
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68832
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67336
-    DEFINES["_GNU_SOURCE"] = True
68833
-    DEFINES["_GNU_SOURCE"] = True
67337
-
68834
-
67338
 Library("keyframe_interval_settings_experiment_gn")
68835
 Library("quality_scaling_experiment_gn")
67339
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
68836
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
67340
index eb804281b3b4..b1ca07bf3516 100644
68837
index 0d2c512c84c9..0685f26b42d7 100644
67341
--- third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build
68838
--- third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build
67342
+++ third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build
68839
+++ third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build
67343
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68840
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67344
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68841
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67345
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
68842
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 67528-67538 index eb804281b3b4..b1ca07bf3516 100644 Link Here
67528
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69025
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67529
-    DEFINES["_GNU_SOURCE"] = True
69026
-    DEFINES["_GNU_SOURCE"] = True
67530
-
69027
-
67531
 Library("min_video_bitrate_experiment_gn")
69028
 Library("rate_control_settings_gn")
67532
diff --git third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build
69029
diff --git third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build
67533
index b1c8c0d0f5da..4161e1d2d4c4 100644
69030
index a2d84caa9cb3..a279d9d22081 100644
67534
--- third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build
69031
--- third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build
67535
+++ third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build
69032
+++ third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build
67536
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69033
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67537
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69034
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67538
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
69035
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 67721-67731 index b1c8c0d0f5da..4161e1d2d4c4 100644 Link Here
67721
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69218
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67722
-    DEFINES["_GNU_SOURCE"] = True
69219
-    DEFINES["_GNU_SOURCE"] = True
67723
-
69220
-
67724
 Library("quality_rampup_experiment_gn")
69221
 Library("rtt_mult_experiment_gn")
67725
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
69222
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
67726
index e03ac53c529c..86fc14d049d4 100644
69223
index 587c408000b8..d03c88253ad4 100644
67727
--- third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build
69224
--- third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build
67728
+++ third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build
69225
+++ third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build
67729
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69226
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67730
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69227
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67731
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
69228
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 67914-67924 index e03ac53c529c..86fc14d049d4 100644 Link Here
67914
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69411
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
67915
-    DEFINES["_GNU_SOURCE"] = True
69412
-    DEFINES["_GNU_SOURCE"] = True
67916
-
69413
-
67917
 Library("quality_scaler_settings_gn")
69414
 Library("stable_target_rate_experiment_gn")
67918
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
69415
diff --git third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build
67919
index 8eab3b601803..589003868373 100644
69416
index 1823f5043239..95ed70141a86 100644
67920
--- third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build
69417
--- third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build
67921
+++ third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build
69418
+++ third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build
67922
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69419
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
67923
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69420
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
67924
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
69421
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 67940-67946 index 8eab3b601803..589003868373 100644 Link Here
67940
 
69437
 
67941
 FINAL_LIBRARY = "webrtc"
69438
 FINAL_LIBRARY = "webrtc"
67942
 
69439
 
67943
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
69440
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
67944
 if CONFIG["MOZ_DEBUG"] == "1":
69441
 if CONFIG["MOZ_DEBUG"] == "1":
67945
 
69442
 
67946
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
69443
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 67959-67968 index 8eab3b601803..589003868373 100644 Link Here
67959
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
69456
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
67960
-    DEFINES["__STDC_FORMAT_MACROS"] = True
69457
-    DEFINES["__STDC_FORMAT_MACROS"] = True
67961
-
69458
-
67962
-    OS_LIBS += [
67963
-        "log"
67964
-    ]
67965
-
67966
-if CONFIG["OS_TARGET"] == "Darwin":
69459
-if CONFIG["OS_TARGET"] == "Darwin":
67967
-
69460
-
67968
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69461
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 68028-68037 index 8eab3b601803..589003868373 100644 Link Here
68028
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
69521
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
68029
-    DEFINES["_WINDOWS"] = True
69522
-    DEFINES["_WINDOWS"] = True
68030
-    DEFINES["__STD_C"] = True
69523
-    DEFINES["__STD_C"] = True
68031
-
68032
-    OS_LIBS += [
68033
-        "winmm"
68034
-    ]
68035
+    DEFINES["_DEBUG"] = True
69524
+    DEFINES["_DEBUG"] = True
68036
 
69525
 
68037
 if CONFIG["CPU_ARCH"] == "aarch64":
69526
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 68041-68050 index 8eab3b601803..589003868373 100644 Link Here
68041
 
69530
 
68042
-if CONFIG["CPU_ARCH"] == "arm":
69531
-if CONFIG["CPU_ARCH"] == "arm":
68043
-
69532
-
68044
-    CXXFLAGS += [
68045
-        "-mfpu=neon"
68046
-    ]
68047
-
68048
-    DEFINES["WEBRTC_ARCH_ARM"] = True
69533
-    DEFINES["WEBRTC_ARCH_ARM"] = True
68049
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
69534
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
68050
-    DEFINES["WEBRTC_HAS_NEON"] = True
69535
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 68107-68117 index 8eab3b601803..589003868373 100644 Link Here
68107
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69592
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68108
-    DEFINES["_GNU_SOURCE"] = True
69593
-    DEFINES["_GNU_SOURCE"] = True
68109
-
69594
-
68110
 Library("quality_scaling_experiment_gn")
69595
 Library("gtest_prod_gn")
68111
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
69596
diff --git third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build
68112
index 0d2c512c84c9..0685f26b42d7 100644
69597
index b4a901c6ef51..371cbfdafaa5 100644
68113
--- third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build
69598
--- third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build
68114
+++ third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build
69599
+++ third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build
68115
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69600
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68116
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69601
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68117
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
69602
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 68133-68139 index 0d2c512c84c9..0685f26b42d7 100644 Link Here
68133
 
69618
 
68134
 FINAL_LIBRARY = "webrtc"
69619
 FINAL_LIBRARY = "webrtc"
68135
 
69620
 
68136
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
69621
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
68137
 if CONFIG["MOZ_DEBUG"] == "1":
69622
 if CONFIG["MOZ_DEBUG"] == "1":
68138
 
69623
 
68139
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
69624
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 68221-68230 index 0d2c512c84c9..0685f26b42d7 100644 Link Here
68221
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
69706
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
68222
-    DEFINES["_WINDOWS"] = True
69707
-    DEFINES["_WINDOWS"] = True
68223
-    DEFINES["__STD_C"] = True
69708
-    DEFINES["__STD_C"] = True
68224
-
68225
-    OS_LIBS += [
68226
-        "winmm"
68227
-    ]
68228
+    DEFINES["_DEBUG"] = True
69709
+    DEFINES["_DEBUG"] = True
68229
 
69710
 
68230
 if CONFIG["CPU_ARCH"] == "aarch64":
69711
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 68300-68310 index 0d2c512c84c9..0685f26b42d7 100644 Link Here
68300
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69781
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68301
-    DEFINES["_GNU_SOURCE"] = True
69782
-    DEFINES["_GNU_SOURCE"] = True
68302
-
69783
-
68303
 Library("rate_control_settings_gn")
69784
 Library("histogram_percentile_counter_gn")
68304
diff --git third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build
69785
diff --git third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build
68305
index a2d84caa9cb3..a279d9d22081 100644
69786
deleted file mode 100644
68306
--- third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build
69787
index 404b7f5f924a..000000000000
68307
+++ third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build
69788
--- third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build
69789
+++ /dev/null
69790
@@ -1,88 +0,0 @@
69791
-# This Source Code Form is subject to the terms of the Mozilla Public
69792
-# License, v. 2.0. If a copy of the MPL was not distributed with this
69793
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
69794
-
69795
-
69796
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
69797
-  ### DO NOT edit it by hand.                                       ###
69798
-
69799
-COMPILE_FLAGS["OS_INCLUDES"] = []
69800
-AllowCompilerWarnings()
69801
-
69802
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69803
-DEFINES["ANDROID"] = True
69804
-DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
69805
-DEFINES["HAVE_SYS_UIO_H"] = True
69806
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
69807
-DEFINES["RTC_ENABLE_VP9"] = True
69808
-DEFINES["WEBRTC_ANDROID"] = True
69809
-DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
69810
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
69811
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
69812
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
69813
-DEFINES["WEBRTC_LINUX"] = True
69814
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
69815
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
69816
-DEFINES["WEBRTC_POSIX"] = True
69817
-DEFINES["_GNU_SOURCE"] = True
69818
-DEFINES["__STDC_CONSTANT_MACROS"] = True
69819
-DEFINES["__STDC_FORMAT_MACROS"] = True
69820
-
69821
-FINAL_LIBRARY = "webrtc"
69822
-
69823
-
69824
-LOCAL_INCLUDES += [
69825
-    "!/ipc/ipdl/_ipdlheaders",
69826
-    "/ipc/chromium/src",
69827
-    "/third_party/libwebrtc/",
69828
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
69829
-    "/tools/profiler/public"
69830
-]
69831
-
69832
-OS_LIBS += [
69833
-    "GLESv2",
69834
-    "log"
69835
-]
69836
-
69837
-UNIFIED_SOURCES += [
69838
-    "/third_party/libwebrtc/rtc_base/ifaddrs_android.cc"
69839
-]
69840
-
69841
-if not CONFIG["MOZ_DEBUG"]:
69842
-
69843
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
69844
-    DEFINES["NDEBUG"] = True
69845
-    DEFINES["NVALGRIND"] = True
69846
-
69847
-if CONFIG["MOZ_DEBUG"] == "1":
69848
-
69849
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
69850
-    DEFINES["_DEBUG"] = True
69851
-
69852
-if CONFIG["CPU_ARCH"] == "aarch64":
69853
-
69854
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
69855
-    DEFINES["WEBRTC_HAS_NEON"] = True
69856
-
69857
-if CONFIG["CPU_ARCH"] == "arm":
69858
-
69859
-    CXXFLAGS += [
69860
-        "-mfpu=neon"
69861
-    ]
69862
-
69863
-    DEFINES["WEBRTC_ARCH_ARM"] = True
69864
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
69865
-    DEFINES["WEBRTC_HAS_NEON"] = True
69866
-
69867
-    OS_LIBS += [
69868
-        "android_support",
69869
-        "unwind"
69870
-    ]
69871
-
69872
-if CONFIG["CPU_ARCH"] == "x86":
69873
-
69874
-    OS_LIBS += [
69875
-        "android_support"
69876
-    ]
69877
-
69878
-Library("ifaddrs_android_gn")
69879
diff --git third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build
69880
index 7b8ac423f8d1..fda3fcb7ee03 100644
69881
--- third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build
69882
+++ third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build
68308
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69883
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68309
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69884
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68310
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
69885
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 68326-68332 index a2d84caa9cb3..a279d9d22081 100644 Link Here
68326
 
69901
 
68327
 FINAL_LIBRARY = "webrtc"
69902
 FINAL_LIBRARY = "webrtc"
68328
 
69903
 
68329
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
69904
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
68330
 if CONFIG["MOZ_DEBUG"] == "1":
69905
 if CONFIG["MOZ_DEBUG"] == "1":
68331
 
69906
 
68332
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
69907
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 68345-68354 index a2d84caa9cb3..a279d9d22081 100644 Link Here
68345
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
69920
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
68346
-    DEFINES["__STDC_FORMAT_MACROS"] = True
69921
-    DEFINES["__STDC_FORMAT_MACROS"] = True
68347
-
69922
-
68348
-    OS_LIBS += [
68349
-        "log"
68350
-    ]
68351
-
68352
-if CONFIG["OS_TARGET"] == "Darwin":
69923
-if CONFIG["OS_TARGET"] == "Darwin":
68353
-
69924
-
68354
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69925
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 68414-68423 index a2d84caa9cb3..a279d9d22081 100644 Link Here
68414
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
69985
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
68415
-    DEFINES["_WINDOWS"] = True
69986
-    DEFINES["_WINDOWS"] = True
68416
-    DEFINES["__STD_C"] = True
69987
-    DEFINES["__STD_C"] = True
68417
-
68418
-    OS_LIBS += [
68419
-        "winmm"
68420
-    ]
68421
+    DEFINES["_DEBUG"] = True
69988
+    DEFINES["_DEBUG"] = True
68422
 
69989
 
68423
 if CONFIG["CPU_ARCH"] == "aarch64":
69990
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 68427-68436 index a2d84caa9cb3..a279d9d22081 100644 Link Here
68427
 
69994
 
68428
-if CONFIG["CPU_ARCH"] == "arm":
69995
-if CONFIG["CPU_ARCH"] == "arm":
68429
-
69996
-
68430
-    CXXFLAGS += [
68431
-        "-mfpu=neon"
68432
-    ]
68433
-
68434
-    DEFINES["WEBRTC_ARCH_ARM"] = True
69997
-    DEFINES["WEBRTC_ARCH_ARM"] = True
68435
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
69998
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
68436
-    DEFINES["WEBRTC_HAS_NEON"] = True
69999
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 68493-68503 index a2d84caa9cb3..a279d9d22081 100644 Link Here
68493
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70056
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68494
-    DEFINES["_GNU_SOURCE"] = True
70057
-    DEFINES["_GNU_SOURCE"] = True
68495
-
70058
-
68496
 Library("rtt_mult_experiment_gn")
70059
 Library("ignore_wundef_gn")
68497
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
70060
diff --git third_party/libwebrtc/rtc_base/ip_address_gn/moz.build third_party/libwebrtc/rtc_base/ip_address_gn/moz.build
68498
index 587c408000b8..d03c88253ad4 100644
70061
index 686dd85e6761..fe2c7a08a1a8 100644
68499
--- third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build
70062
--- third_party/libwebrtc/rtc_base/ip_address_gn/moz.build
68500
+++ third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build
70063
+++ third_party/libwebrtc/rtc_base/ip_address_gn/moz.build
68501
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70064
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68502
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70065
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68503
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
70066
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 68519-68525 index 587c408000b8..d03c88253ad4 100644 Link Here
68519
 
70082
 
68520
 FINAL_LIBRARY = "webrtc"
70083
 FINAL_LIBRARY = "webrtc"
68521
 
70084
 
68522
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
70085
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
68523
 if CONFIG["MOZ_DEBUG"] == "1":
70086
 if CONFIG["MOZ_DEBUG"] == "1":
68524
 
70087
 
68525
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
70088
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 68539-68544 index 587c408000b8..d03c88253ad4 100644 Link Here
68539
-    DEFINES["__STDC_FORMAT_MACROS"] = True
70102
-    DEFINES["__STDC_FORMAT_MACROS"] = True
68540
-
70103
-
68541
-    OS_LIBS += [
70104
-    OS_LIBS += [
70105
-        "GLESv2",
68542
-        "log"
70106
-        "log"
68543
-    ]
70107
-    ]
68544
-
70108
-
Lines 68609-68614 index 587c408000b8..d03c88253ad4 100644 Link Here
68609
-    DEFINES["__STD_C"] = True
70173
-    DEFINES["__STD_C"] = True
68610
-
70174
-
68611
-    OS_LIBS += [
70175
-    OS_LIBS += [
70176
-        "crypt32",
70177
-        "iphlpapi",
70178
-        "secur32",
68612
-        "winmm"
70179
-        "winmm"
68613
-    ]
70180
-    ]
68614
+    DEFINES["_DEBUG"] = True
70181
+    DEFINES["_DEBUG"] = True
Lines 68686-68696 index 587c408000b8..d03c88253ad4 100644 Link Here
68686
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70253
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68687
-    DEFINES["_GNU_SOURCE"] = True
70254
-    DEFINES["_GNU_SOURCE"] = True
68688
-
70255
-
68689
 Library("stable_target_rate_experiment_gn")
70256
 Library("ip_address_gn")
68690
diff --git third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build
70257
diff --git third_party/libwebrtc/rtc_base/location_gn/moz.build third_party/libwebrtc/rtc_base/location_gn/moz.build
68691
index 1823f5043239..95ed70141a86 100644
70258
index e5ccd52a24a3..61b1ea14bb0e 100644
68692
--- third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build
70259
--- third_party/libwebrtc/rtc_base/location_gn/moz.build
68693
+++ third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build
70260
+++ third_party/libwebrtc/rtc_base/location_gn/moz.build
68694
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70261
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68695
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70262
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68696
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
70263
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 68712-68718 index 1823f5043239..95ed70141a86 100644 Link Here
68712
 
70279
 
68713
 FINAL_LIBRARY = "webrtc"
70280
 FINAL_LIBRARY = "webrtc"
68714
 
70281
 
68715
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
70282
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
68716
 if CONFIG["MOZ_DEBUG"] == "1":
70283
 if CONFIG["MOZ_DEBUG"] == "1":
68717
 
70284
 
68718
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
70285
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 68805-68810 index 1823f5043239..95ed70141a86 100644 Link Here
68805
 
70372
 
68806
-if CONFIG["CPU_ARCH"] == "arm":
70373
-if CONFIG["CPU_ARCH"] == "arm":
68807
-
70374
-
70375
-    CXXFLAGS += [
70376
-        "-mfpu=neon"
70377
-    ]
70378
-
68808
-    DEFINES["WEBRTC_ARCH_ARM"] = True
70379
-    DEFINES["WEBRTC_ARCH_ARM"] = True
68809
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
70380
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
68810
-    DEFINES["WEBRTC_HAS_NEON"] = True
70381
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 68867-68877 index 1823f5043239..95ed70141a86 100644 Link Here
68867
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70438
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
68868
-    DEFINES["_GNU_SOURCE"] = True
70439
-    DEFINES["_GNU_SOURCE"] = True
68869
-
70440
-
68870
 Library("gtest_prod_gn")
70441
 Library("location_gn")
68871
diff --git third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build
70442
diff --git third_party/libwebrtc/rtc_base/logging_gn/moz.build third_party/libwebrtc/rtc_base/logging_gn/moz.build
68872
index b4a901c6ef51..371cbfdafaa5 100644
70443
index 25c1b293e768..1ee3e013fdf4 100644
68873
--- third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build
70444
--- third_party/libwebrtc/rtc_base/logging_gn/moz.build
68874
+++ third_party/libwebrtc/rtc_base/histogram_percentile_counter_gn/moz.build
70445
+++ third_party/libwebrtc/rtc_base/logging_gn/moz.build
68875
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70446
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
68876
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70447
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
68877
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
70448
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 68893-68899 index b4a901c6ef51..371cbfdafaa5 100644 Link Here
68893
 
70464
 
68894
 FINAL_LIBRARY = "webrtc"
70465
 FINAL_LIBRARY = "webrtc"
68895
 
70466
 
68896
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
70467
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
68897
 if CONFIG["MOZ_DEBUG"] == "1":
70468
 if CONFIG["MOZ_DEBUG"] == "1":
68898
 
70469
 
68899
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
70470
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 68981-68986 index b4a901c6ef51..371cbfdafaa5 100644 Link Here
68981
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
70552
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
68982
-    DEFINES["_WINDOWS"] = True
70553
-    DEFINES["_WINDOWS"] = True
68983
-    DEFINES["__STD_C"] = True
70554
-    DEFINES["__STD_C"] = True
70555
-
70556
-    OS_LIBS += [
70557
-        "winmm"
70558
-    ]
68984
+    DEFINES["_DEBUG"] = True
70559
+    DEFINES["_DEBUG"] = True
68985
 
70560
 
68986
 if CONFIG["CPU_ARCH"] == "aarch64":
70561
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 69056-69160 index b4a901c6ef51..371cbfdafaa5 100644 Link Here
69056
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70631
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69057
-    DEFINES["_GNU_SOURCE"] = True
70632
-    DEFINES["_GNU_SOURCE"] = True
69058
-
70633
-
69059
 Library("histogram_percentile_counter_gn")
70634
 Library("logging_gn")
69060
diff --git third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build
70635
diff --git third_party/libwebrtc/rtc_base/macromagic_gn/moz.build third_party/libwebrtc/rtc_base/macromagic_gn/moz.build
69061
deleted file mode 100644
70636
index acc69504c3b6..1d52ca24913f 100644
69062
index 404b7f5f924a..000000000000
70637
--- third_party/libwebrtc/rtc_base/macromagic_gn/moz.build
69063
--- third_party/libwebrtc/rtc_base/ifaddrs_android_gn/moz.build
70638
+++ third_party/libwebrtc/rtc_base/macromagic_gn/moz.build
69064
+++ /dev/null
69065
@@ -1,88 +0,0 @@
69066
-# This Source Code Form is subject to the terms of the Mozilla Public
69067
-# License, v. 2.0. If a copy of the MPL was not distributed with this
69068
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
69069
-
69070
-
69071
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
69072
-  ### DO NOT edit it by hand.                                       ###
69073
-
69074
-COMPILE_FLAGS["OS_INCLUDES"] = []
69075
-AllowCompilerWarnings()
69076
-
69077
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69078
-DEFINES["ANDROID"] = True
69079
-DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
69080
-DEFINES["HAVE_SYS_UIO_H"] = True
69081
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
69082
-DEFINES["RTC_ENABLE_VP9"] = True
69083
-DEFINES["WEBRTC_ANDROID"] = True
69084
-DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
69085
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
69086
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
69087
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
69088
-DEFINES["WEBRTC_LINUX"] = True
69089
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
69090
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
69091
-DEFINES["WEBRTC_POSIX"] = True
69092
-DEFINES["_GNU_SOURCE"] = True
69093
-DEFINES["__STDC_CONSTANT_MACROS"] = True
69094
-DEFINES["__STDC_FORMAT_MACROS"] = True
69095
-
69096
-FINAL_LIBRARY = "webrtc"
69097
-
69098
-
69099
-LOCAL_INCLUDES += [
69100
-    "!/ipc/ipdl/_ipdlheaders",
69101
-    "/ipc/chromium/src",
69102
-    "/third_party/libwebrtc/",
69103
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
69104
-    "/tools/profiler/public"
69105
-]
69106
-
69107
-OS_LIBS += [
69108
-    "GLESv2",
69109
-    "log"
69110
-]
69111
-
69112
-UNIFIED_SOURCES += [
69113
-    "/third_party/libwebrtc/rtc_base/ifaddrs_android.cc"
69114
-]
69115
-
69116
-if not CONFIG["MOZ_DEBUG"]:
69117
-
69118
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
69119
-    DEFINES["NDEBUG"] = True
69120
-    DEFINES["NVALGRIND"] = True
69121
-
69122
-if CONFIG["MOZ_DEBUG"] == "1":
69123
-
69124
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
69125
-    DEFINES["_DEBUG"] = True
69126
-
69127
-if CONFIG["CPU_ARCH"] == "aarch64":
69128
-
69129
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
69130
-    DEFINES["WEBRTC_HAS_NEON"] = True
69131
-
69132
-if CONFIG["CPU_ARCH"] == "arm":
69133
-
69134
-    CXXFLAGS += [
69135
-        "-mfpu=neon"
69136
-    ]
69137
-
69138
-    DEFINES["WEBRTC_ARCH_ARM"] = True
69139
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
69140
-    DEFINES["WEBRTC_HAS_NEON"] = True
69141
-
69142
-    OS_LIBS += [
69143
-        "android_support",
69144
-        "unwind"
69145
-    ]
69146
-
69147
-if CONFIG["CPU_ARCH"] == "x86":
69148
-
69149
-    OS_LIBS += [
69150
-        "android_support"
69151
-    ]
69152
-
69153
-Library("ifaddrs_android_gn")
69154
diff --git third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build
69155
index 7b8ac423f8d1..fda3fcb7ee03 100644
69156
--- third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build
69157
+++ third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build
69158
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70639
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69159
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70640
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69160
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
70641
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 69331-69341 index 7b8ac423f8d1..fda3fcb7ee03 100644 Link Here
69331
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70812
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69332
-    DEFINES["_GNU_SOURCE"] = True
70813
-    DEFINES["_GNU_SOURCE"] = True
69333
-
70814
-
69334
 Library("ignore_wundef_gn")
70815
 Library("macromagic_gn")
69335
diff --git third_party/libwebrtc/rtc_base/ip_address_gn/moz.build third_party/libwebrtc/rtc_base/ip_address_gn/moz.build
70816
diff --git third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build
69336
index 686dd85e6761..fe2c7a08a1a8 100644
70817
index aeb28674b90e..36f62de9f2ec 100644
69337
--- third_party/libwebrtc/rtc_base/ip_address_gn/moz.build
70818
--- third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build
69338
+++ third_party/libwebrtc/rtc_base/ip_address_gn/moz.build
70819
+++ third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build
69339
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70820
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69340
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70821
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69341
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
70822
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 69357-69363 index 686dd85e6761..fe2c7a08a1a8 100644 Link Here
69357
 
70838
 
69358
 FINAL_LIBRARY = "webrtc"
70839
 FINAL_LIBRARY = "webrtc"
69359
 
70840
 
69360
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
70841
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
69361
 if CONFIG["MOZ_DEBUG"] == "1":
70842
 if CONFIG["MOZ_DEBUG"] == "1":
69362
 
70843
 
69363
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
70844
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 69377-69383 index 686dd85e6761..fe2c7a08a1a8 100644 Link Here
69377
-    DEFINES["__STDC_FORMAT_MACROS"] = True
70858
-    DEFINES["__STDC_FORMAT_MACROS"] = True
69378
-
70859
-
69379
-    OS_LIBS += [
70860
-    OS_LIBS += [
69380
-        "GLESv2",
69381
-        "log"
70861
-        "log"
69382
-    ]
70862
-    ]
69383
-
70863
-
Lines 69446-69458 index 686dd85e6761..fe2c7a08a1a8 100644 Link Here
69446
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
70926
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
69447
-    DEFINES["_WINDOWS"] = True
70927
-    DEFINES["_WINDOWS"] = True
69448
-    DEFINES["__STD_C"] = True
70928
-    DEFINES["__STD_C"] = True
69449
-
69450
-    OS_LIBS += [
69451
-        "crypt32",
69452
-        "iphlpapi",
69453
-        "secur32",
69454
-        "winmm"
69455
-    ]
69456
+    DEFINES["_DEBUG"] = True
70929
+    DEFINES["_DEBUG"] = True
69457
 
70930
 
69458
 if CONFIG["CPU_ARCH"] == "aarch64":
70931
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 69528-69538 index 686dd85e6761..fe2c7a08a1a8 100644 Link Here
69528
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71001
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69529
-    DEFINES["_GNU_SOURCE"] = True
71002
-    DEFINES["_GNU_SOURCE"] = True
69530
-
71003
-
69531
 Library("ip_address_gn")
71004
 Library("aligned_malloc_gn")
69532
diff --git third_party/libwebrtc/rtc_base/location_gn/moz.build third_party/libwebrtc/rtc_base/location_gn/moz.build
71005
diff --git third_party/libwebrtc/rtc_base/memory/always_valid_pointer_gn/moz.build third_party/libwebrtc/rtc_base/memory/always_valid_pointer_gn/moz.build
69533
index e5ccd52a24a3..61b1ea14bb0e 100644
71006
index 3e4d3419f80b..9d6236051c42 100644
69534
--- third_party/libwebrtc/rtc_base/location_gn/moz.build
71007
--- third_party/libwebrtc/rtc_base/memory/always_valid_pointer_gn/moz.build
69535
+++ third_party/libwebrtc/rtc_base/location_gn/moz.build
71008
+++ third_party/libwebrtc/rtc_base/memory/always_valid_pointer_gn/moz.build
69536
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71009
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69537
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71010
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69538
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
71011
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 69554-69560 index e5ccd52a24a3..61b1ea14bb0e 100644 Link Here
69554
 
71027
 
69555
 FINAL_LIBRARY = "webrtc"
71028
 FINAL_LIBRARY = "webrtc"
69556
 
71029
 
69557
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
71030
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
69558
 if CONFIG["MOZ_DEBUG"] == "1":
71031
 if CONFIG["MOZ_DEBUG"] == "1":
69559
 
71032
 
69560
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
71033
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 69573-69578 index e5ccd52a24a3..61b1ea14bb0e 100644 Link Here
69573
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
71046
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
69574
-    DEFINES["__STDC_FORMAT_MACROS"] = True
71047
-    DEFINES["__STDC_FORMAT_MACROS"] = True
69575
-
71048
-
71049
-    OS_LIBS += [
71050
-        "log"
71051
-    ]
71052
-
69576
-if CONFIG["OS_TARGET"] == "Darwin":
71053
-if CONFIG["OS_TARGET"] == "Darwin":
69577
-
71054
-
69578
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71055
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 69647-69656 index e5ccd52a24a3..61b1ea14bb0e 100644 Link Here
69647
 
71124
 
69648
-if CONFIG["CPU_ARCH"] == "arm":
71125
-if CONFIG["CPU_ARCH"] == "arm":
69649
-
71126
-
69650
-    CXXFLAGS += [
69651
-        "-mfpu=neon"
69652
-    ]
69653
-
69654
-    DEFINES["WEBRTC_ARCH_ARM"] = True
71127
-    DEFINES["WEBRTC_ARCH_ARM"] = True
69655
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
71128
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
69656
-    DEFINES["WEBRTC_HAS_NEON"] = True
71129
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 69713-69723 index e5ccd52a24a3..61b1ea14bb0e 100644 Link Here
69713
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71186
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69714
-    DEFINES["_GNU_SOURCE"] = True
71187
-    DEFINES["_GNU_SOURCE"] = True
69715
-
71188
-
69716
 Library("location_gn")
71189
 Library("always_valid_pointer_gn")
69717
diff --git third_party/libwebrtc/rtc_base/logging_gn/moz.build third_party/libwebrtc/rtc_base/logging_gn/moz.build
71190
diff --git third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build
69718
index 25c1b293e768..1ee3e013fdf4 100644
71191
index d41b52655bce..522cda07763b 100644
69719
--- third_party/libwebrtc/rtc_base/logging_gn/moz.build
71192
--- third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build
69720
+++ third_party/libwebrtc/rtc_base/logging_gn/moz.build
71193
+++ third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build
69721
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71194
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69722
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71195
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69723
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
71196
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 69739-69745 index 25c1b293e768..1ee3e013fdf4 100644 Link Here
69739
 
71212
 
69740
 FINAL_LIBRARY = "webrtc"
71213
 FINAL_LIBRARY = "webrtc"
69741
 
71214
 
69742
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
71215
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
69743
 if CONFIG["MOZ_DEBUG"] == "1":
71216
 if CONFIG["MOZ_DEBUG"] == "1":
69744
 
71217
 
69745
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
71218
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 69827-69836 index 25c1b293e768..1ee3e013fdf4 100644 Link Here
69827
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
71300
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
69828
-    DEFINES["_WINDOWS"] = True
71301
-    DEFINES["_WINDOWS"] = True
69829
-    DEFINES["__STD_C"] = True
71302
-    DEFINES["__STD_C"] = True
69830
-
69831
-    OS_LIBS += [
69832
-        "winmm"
69833
-    ]
69834
+    DEFINES["_DEBUG"] = True
71303
+    DEFINES["_DEBUG"] = True
69835
 
71304
 
69836
 if CONFIG["CPU_ARCH"] == "aarch64":
71305
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 69840-69849 index 25c1b293e768..1ee3e013fdf4 100644 Link Here
69840
 
71309
 
69841
-if CONFIG["CPU_ARCH"] == "arm":
71310
-if CONFIG["CPU_ARCH"] == "arm":
69842
-
71311
-
69843
-    CXXFLAGS += [
69844
-        "-mfpu=neon"
69845
-    ]
69846
-
69847
-    DEFINES["WEBRTC_ARCH_ARM"] = True
71312
-    DEFINES["WEBRTC_ARCH_ARM"] = True
69848
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
71313
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
69849
-    DEFINES["WEBRTC_HAS_NEON"] = True
71314
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 69906-69916 index 25c1b293e768..1ee3e013fdf4 100644 Link Here
69906
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71371
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
69907
-    DEFINES["_GNU_SOURCE"] = True
71372
-    DEFINES["_GNU_SOURCE"] = True
69908
-
71373
-
69909
 Library("logging_gn")
71374
 Library("mod_ops_gn")
69910
diff --git third_party/libwebrtc/rtc_base/macromagic_gn/moz.build third_party/libwebrtc/rtc_base/macromagic_gn/moz.build
71375
diff --git third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build
69911
index acc69504c3b6..1d52ca24913f 100644
71376
index 0764466d8e3b..5f2029471f2f 100644
69912
--- third_party/libwebrtc/rtc_base/macromagic_gn/moz.build
71377
--- third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build
69913
+++ third_party/libwebrtc/rtc_base/macromagic_gn/moz.build
71378
+++ third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build
69914
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71379
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
69915
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71380
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
69916
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
71381
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 69932-69938 index acc69504c3b6..1d52ca24913f 100644 Link Here
69932
 
71397
 
69933
 FINAL_LIBRARY = "webrtc"
71398
 FINAL_LIBRARY = "webrtc"
69934
 
71399
 
69935
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
71400
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
69936
 if CONFIG["MOZ_DEBUG"] == "1":
71401
 if CONFIG["MOZ_DEBUG"] == "1":
69937
 
71402
 
69938
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
71403
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 69951-69956 index acc69504c3b6..1d52ca24913f 100644 Link Here
69951
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
71416
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
69952
-    DEFINES["__STDC_FORMAT_MACROS"] = True
71417
-    DEFINES["__STDC_FORMAT_MACROS"] = True
69953
-
71418
-
71419
-    OS_LIBS += [
71420
-        "log"
71421
-    ]
71422
-
69954
-if CONFIG["OS_TARGET"] == "Darwin":
71423
-if CONFIG["OS_TARGET"] == "Darwin":
69955
-
71424
-
69956
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71425
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 70087-70097 index acc69504c3b6..1d52ca24913f 100644 Link Here
70087
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71556
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70088
-    DEFINES["_GNU_SOURCE"] = True
71557
-    DEFINES["_GNU_SOURCE"] = True
70089
-
71558
-
70090
 Library("macromagic_gn")
71559
 Library("moving_max_counter_gn")
70091
diff --git third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build
71560
diff --git third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build
70092
index aeb28674b90e..36f62de9f2ec 100644
71561
index 9544696f1008..d58709a21a1e 100644
70093
--- third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build
71562
--- third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build
70094
+++ third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build
71563
+++ third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build
70095
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71564
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70096
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71565
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70097
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
71566
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 70113-70119 index aeb28674b90e..36f62de9f2ec 100644 Link Here
70113
 
71582
 
70114
 FINAL_LIBRARY = "webrtc"
71583
 FINAL_LIBRARY = "webrtc"
70115
 
71584
 
70116
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
71585
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
70117
 if CONFIG["MOZ_DEBUG"] == "1":
71586
 if CONFIG["MOZ_DEBUG"] == "1":
70118
 
71587
 
70119
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
71588
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 70133-70138 index aeb28674b90e..36f62de9f2ec 100644 Link Here
70133
-    DEFINES["__STDC_FORMAT_MACROS"] = True
71602
-    DEFINES["__STDC_FORMAT_MACROS"] = True
70134
-
71603
-
70135
-    OS_LIBS += [
71604
-    OS_LIBS += [
71605
-        "GLESv2",
70136
-        "log"
71606
-        "log"
70137
-    ]
71607
-    ]
70138
-
71608
-
Lines 70201-70206 index aeb28674b90e..36f62de9f2ec 100644 Link Here
70201
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
71671
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
70202
-    DEFINES["_WINDOWS"] = True
71672
-    DEFINES["_WINDOWS"] = True
70203
-    DEFINES["__STD_C"] = True
71673
-    DEFINES["__STD_C"] = True
71674
-
71675
-    OS_LIBS += [
71676
-        "crypt32",
71677
-        "iphlpapi",
71678
-        "secur32",
71679
-        "winmm"
71680
-    ]
70204
+    DEFINES["_DEBUG"] = True
71681
+    DEFINES["_DEBUG"] = True
70205
 
71682
 
70206
 if CONFIG["CPU_ARCH"] == "aarch64":
71683
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 70276-70286 index aeb28674b90e..36f62de9f2ec 100644 Link Here
70276
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71753
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70277
-    DEFINES["_GNU_SOURCE"] = True
71754
-    DEFINES["_GNU_SOURCE"] = True
70278
-
71755
-
70279
 Library("aligned_malloc_gn")
71756
 Library("net_helpers_gn")
70280
diff --git third_party/libwebrtc/rtc_base/memory/always_valid_pointer_gn/moz.build third_party/libwebrtc/rtc_base/memory/always_valid_pointer_gn/moz.build
71757
diff --git third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build
70281
index 3e4d3419f80b..9d6236051c42 100644
71758
index e91b1ddbda6c..1d867252d81c 100644
70282
--- third_party/libwebrtc/rtc_base/memory/always_valid_pointer_gn/moz.build
71759
--- third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build
70283
+++ third_party/libwebrtc/rtc_base/memory/always_valid_pointer_gn/moz.build
71760
+++ third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build
70284
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71761
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70285
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71762
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70286
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
71763
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 70302-70308 index 3e4d3419f80b..9d6236051c42 100644 Link Here
70302
 
71779
 
70303
 FINAL_LIBRARY = "webrtc"
71780
 FINAL_LIBRARY = "webrtc"
70304
 
71781
 
70305
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
71782
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
70306
 if CONFIG["MOZ_DEBUG"] == "1":
71783
 if CONFIG["MOZ_DEBUG"] == "1":
70307
 
71784
 
70308
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
71785
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 70321-70330 index 3e4d3419f80b..9d6236051c42 100644 Link Here
70321
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
71798
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
70322
-    DEFINES["__STDC_FORMAT_MACROS"] = True
71799
-    DEFINES["__STDC_FORMAT_MACROS"] = True
70323
-
71800
-
70324
-    OS_LIBS += [
70325
-        "log"
70326
-    ]
70327
-
70328
-if CONFIG["OS_TARGET"] == "Darwin":
71801
-if CONFIG["OS_TARGET"] == "Darwin":
70329
-
71802
-
70330
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71803
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 70399-70404 index 3e4d3419f80b..9d6236051c42 100644 Link Here
70399
 
71872
 
70400
-if CONFIG["CPU_ARCH"] == "arm":
71873
-if CONFIG["CPU_ARCH"] == "arm":
70401
-
71874
-
71875
-    CXXFLAGS += [
71876
-        "-mfpu=neon"
71877
-    ]
71878
-
70402
-    DEFINES["WEBRTC_ARCH_ARM"] = True
71879
-    DEFINES["WEBRTC_ARCH_ARM"] = True
70403
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
71880
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
70404
-    DEFINES["WEBRTC_HAS_NEON"] = True
71881
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 70461-70471 index 3e4d3419f80b..9d6236051c42 100644 Link Here
70461
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71938
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70462
-    DEFINES["_GNU_SOURCE"] = True
71939
-    DEFINES["_GNU_SOURCE"] = True
70463
-
71940
-
70464
 Library("always_valid_pointer_gn")
71941
 Library("sent_packet_gn")
70465
diff --git third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build
71942
diff --git third_party/libwebrtc/rtc_base/network_constants_gn/moz.build third_party/libwebrtc/rtc_base/network_constants_gn/moz.build
70466
index d41b52655bce..522cda07763b 100644
71943
index 14b68b441e64..ba1b2ca9935f 100644
70467
--- third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build
71944
--- third_party/libwebrtc/rtc_base/network_constants_gn/moz.build
70468
+++ third_party/libwebrtc/rtc_base/mod_ops_gn/moz.build
71945
+++ third_party/libwebrtc/rtc_base/network_constants_gn/moz.build
70469
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71946
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70470
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71947
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70471
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
71948
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 70487-70493 index d41b52655bce..522cda07763b 100644 Link Here
70487
 
71964
 
70488
 FINAL_LIBRARY = "webrtc"
71965
 FINAL_LIBRARY = "webrtc"
70489
 
71966
 
70490
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
71967
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
70491
 if CONFIG["MOZ_DEBUG"] == "1":
71968
 if CONFIG["MOZ_DEBUG"] == "1":
70492
 
71969
 
70493
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
71970
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 70584-70589 index d41b52655bce..522cda07763b 100644 Link Here
70584
 
72061
 
70585
-if CONFIG["CPU_ARCH"] == "arm":
72062
-if CONFIG["CPU_ARCH"] == "arm":
70586
-
72063
-
72064
-    CXXFLAGS += [
72065
-        "-mfpu=neon"
72066
-    ]
72067
-
70587
-    DEFINES["WEBRTC_ARCH_ARM"] = True
72068
-    DEFINES["WEBRTC_ARCH_ARM"] = True
70588
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
72069
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
70589
-    DEFINES["WEBRTC_HAS_NEON"] = True
72070
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 70646-70656 index d41b52655bce..522cda07763b 100644 Link Here
70646
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72127
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70647
-    DEFINES["_GNU_SOURCE"] = True
72128
-    DEFINES["_GNU_SOURCE"] = True
70648
-
72129
-
70649
 Library("mod_ops_gn")
72130
 Library("network_constants_gn")
70650
diff --git third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build
72131
diff --git third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build
70651
index 0764466d8e3b..5f2029471f2f 100644
72132
index 52ae3bc16660..16674329bbce 100644
70652
--- third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build
72133
--- third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build
70653
+++ third_party/libwebrtc/rtc_base/moving_max_counter_gn/moz.build
72134
+++ third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build
70654
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72135
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70655
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72136
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70656
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
72137
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 70672-70678 index 0764466d8e3b..5f2029471f2f 100644 Link Here
70672
 
72153
 
70673
 FINAL_LIBRARY = "webrtc"
72154
 FINAL_LIBRARY = "webrtc"
70674
 
72155
 
70675
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
72156
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
70676
 if CONFIG["MOZ_DEBUG"] == "1":
72157
 if CONFIG["MOZ_DEBUG"] == "1":
70677
 
72158
 
70678
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
72159
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 70692-70697 index 0764466d8e3b..5f2029471f2f 100644 Link Here
70692
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72173
-    DEFINES["__STDC_FORMAT_MACROS"] = True
70693
-
72174
-
70694
-    OS_LIBS += [
72175
-    OS_LIBS += [
72176
-        "GLESv2",
70695
-        "log"
72177
-        "log"
70696
-    ]
72178
-    ]
70697
-
72179
-
Lines 70760-70765 index 0764466d8e3b..5f2029471f2f 100644 Link Here
70760
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
72242
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
70761
-    DEFINES["_WINDOWS"] = True
72243
-    DEFINES["_WINDOWS"] = True
70762
-    DEFINES["__STD_C"] = True
72244
-    DEFINES["__STD_C"] = True
72245
-
72246
-    OS_LIBS += [
72247
-        "crypt32",
72248
-        "iphlpapi",
72249
-        "secur32",
72250
-        "winmm"
72251
-    ]
70763
+    DEFINES["_DEBUG"] = True
72252
+    DEFINES["_DEBUG"] = True
70764
 
72253
 
70765
 if CONFIG["CPU_ARCH"] == "aarch64":
72254
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 70769-70774 index 0764466d8e3b..5f2029471f2f 100644 Link Here
70769
 
72258
 
70770
-if CONFIG["CPU_ARCH"] == "arm":
72259
-if CONFIG["CPU_ARCH"] == "arm":
70771
-
72260
-
72261
-    CXXFLAGS += [
72262
-        "-mfpu=neon"
72263
-    ]
72264
-
70772
-    DEFINES["WEBRTC_ARCH_ARM"] = True
72265
-    DEFINES["WEBRTC_ARCH_ARM"] = True
70773
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
72266
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
70774
-    DEFINES["WEBRTC_HAS_NEON"] = True
72267
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 70831-70841 index 0764466d8e3b..5f2029471f2f 100644 Link Here
70831
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72324
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
70832
-    DEFINES["_GNU_SOURCE"] = True
72325
-    DEFINES["_GNU_SOURCE"] = True
70833
-
72326
-
70834
 Library("moving_max_counter_gn")
72327
 Library("null_socket_server_gn")
70835
diff --git third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build
72328
diff --git third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build
70836
index 9544696f1008..d58709a21a1e 100644
72329
index a10089f6f666..8485d4793a5e 100644
70837
--- third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build
72330
--- third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build
70838
+++ third_party/libwebrtc/rtc_base/net_helpers_gn/moz.build
72331
+++ third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build
70839
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72332
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
70840
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72333
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
70841
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
72334
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 70857-70863 index 9544696f1008..d58709a21a1e 100644 Link Here
70857
 
72350
 
70858
 FINAL_LIBRARY = "webrtc"
72351
 FINAL_LIBRARY = "webrtc"
70859
 
72352
 
70860
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
72353
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
70861
 if CONFIG["MOZ_DEBUG"] == "1":
72354
 if CONFIG["MOZ_DEBUG"] == "1":
70862
 
72355
 
70863
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
72356
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 70877-70883 index 9544696f1008..d58709a21a1e 100644 Link Here
70877
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72370
-    DEFINES["__STDC_FORMAT_MACROS"] = True
70878
-
72371
-
70879
-    OS_LIBS += [
72372
-    OS_LIBS += [
70880
-        "GLESv2",
70881
-        "log"
72373
-        "log"
70882
-    ]
72374
-    ]
70883
-
72375
-
Lines 70946-70958 index 9544696f1008..d58709a21a1e 100644 Link Here
70946
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
72438
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
70947
-    DEFINES["_WINDOWS"] = True
72439
-    DEFINES["_WINDOWS"] = True
70948
-    DEFINES["__STD_C"] = True
72440
-    DEFINES["__STD_C"] = True
70949
-
70950
-    OS_LIBS += [
70951
-        "crypt32",
70952
-        "iphlpapi",
70953
-        "secur32",
70954
-        "winmm"
70955
-    ]
70956
+    DEFINES["_DEBUG"] = True
72441
+    DEFINES["_DEBUG"] = True
70957
 
72442
 
70958
 if CONFIG["CPU_ARCH"] == "aarch64":
72443
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 70962-70971 index 9544696f1008..d58709a21a1e 100644 Link Here
70962
 
72447
 
70963
-if CONFIG["CPU_ARCH"] == "arm":
72448
-if CONFIG["CPU_ARCH"] == "arm":
70964
-
72449
-
70965
-    CXXFLAGS += [
70966
-        "-mfpu=neon"
70967
-    ]
70968
-
70969
-    DEFINES["WEBRTC_ARCH_ARM"] = True
72450
-    DEFINES["WEBRTC_ARCH_ARM"] = True
70970
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
72451
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
70971
-    DEFINES["WEBRTC_HAS_NEON"] = True
72452
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 71028-71038 index 9544696f1008..d58709a21a1e 100644 Link Here
71028
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72509
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71029
-    DEFINES["_GNU_SOURCE"] = True
72510
-    DEFINES["_GNU_SOURCE"] = True
71030
-
72511
-
71031
 Library("net_helpers_gn")
72512
 Library("one_time_event_gn")
71032
diff --git third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build
72513
diff --git third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build
71033
index e91b1ddbda6c..1d867252d81c 100644
72514
index c759dfd0eebd..96517102c624 100644
71034
--- third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build
72515
--- third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build
71035
+++ third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build
72516
+++ third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build
71036
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72517
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71037
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72518
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71038
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
72519
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 71054-71060 index e91b1ddbda6c..1d867252d81c 100644 Link Here
71054
 
72535
 
71055
 FINAL_LIBRARY = "webrtc"
72536
 FINAL_LIBRARY = "webrtc"
71056
 
72537
 
71057
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
72538
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
71058
 if CONFIG["MOZ_DEBUG"] == "1":
72539
 if CONFIG["MOZ_DEBUG"] == "1":
71059
 
72540
 
71060
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
72541
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 71073-71078 index e91b1ddbda6c..1d867252d81c 100644 Link Here
71073
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
72554
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
71074
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72555
-    DEFINES["__STDC_FORMAT_MACROS"] = True
71075
-
72556
-
72557
-    OS_LIBS += [
72558
-        "log"
72559
-    ]
72560
-
71076
-if CONFIG["OS_TARGET"] == "Darwin":
72561
-if CONFIG["OS_TARGET"] == "Darwin":
71077
-
72562
-
71078
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72563
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 71138-71143 index e91b1ddbda6c..1d867252d81c 100644 Link Here
71138
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
72623
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
71139
-    DEFINES["_WINDOWS"] = True
72624
-    DEFINES["_WINDOWS"] = True
71140
-    DEFINES["__STD_C"] = True
72625
-    DEFINES["__STD_C"] = True
72626
-
72627
-    OS_LIBS += [
72628
-        "winmm"
72629
-    ]
71141
+    DEFINES["_DEBUG"] = True
72630
+    DEFINES["_DEBUG"] = True
71142
 
72631
 
71143
 if CONFIG["CPU_ARCH"] == "aarch64":
72632
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 71213-71223 index e91b1ddbda6c..1d867252d81c 100644 Link Here
71213
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72702
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71214
-    DEFINES["_GNU_SOURCE"] = True
72703
-    DEFINES["_GNU_SOURCE"] = True
71215
-
72704
-
71216
 Library("sent_packet_gn")
72705
 Library("platform_thread_gn")
71217
diff --git third_party/libwebrtc/rtc_base/network_constants_gn/moz.build third_party/libwebrtc/rtc_base/network_constants_gn/moz.build
72706
diff --git third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build
71218
index 14b68b441e64..ba1b2ca9935f 100644
72707
index 5962bb527ef7..506d35309aed 100644
71219
--- third_party/libwebrtc/rtc_base/network_constants_gn/moz.build
72708
--- third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build
71220
+++ third_party/libwebrtc/rtc_base/network_constants_gn/moz.build
72709
+++ third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build
71221
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72710
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71222
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72711
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71223
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
72712
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 71239-71245 index 14b68b441e64..ba1b2ca9935f 100644 Link Here
71239
 
72728
 
71240
 FINAL_LIBRARY = "webrtc"
72729
 FINAL_LIBRARY = "webrtc"
71241
 
72730
 
71242
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
72731
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
71243
 if CONFIG["MOZ_DEBUG"] == "1":
72732
 if CONFIG["MOZ_DEBUG"] == "1":
71244
 
72733
 
71245
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
72734
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 71258-71267 index 14b68b441e64..ba1b2ca9935f 100644 Link Here
71258
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
72747
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
71259
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72748
-    DEFINES["__STDC_FORMAT_MACROS"] = True
71260
-
72749
-
71261
-    OS_LIBS += [
71262
-        "log"
71263
-    ]
71264
-
71265
-if CONFIG["OS_TARGET"] == "Darwin":
72750
-if CONFIG["OS_TARGET"] == "Darwin":
71266
-
72751
-
71267
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72752
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 71402-71412 index 14b68b441e64..ba1b2ca9935f 100644 Link Here
71402
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72887
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71403
-    DEFINES["_GNU_SOURCE"] = True
72888
-    DEFINES["_GNU_SOURCE"] = True
71404
-
72889
-
71405
 Library("network_constants_gn")
72890
 Library("platform_thread_types_gn")
71406
diff --git third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build
72891
diff --git third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build
71407
index 52ae3bc16660..16674329bbce 100644
72892
index 48de05c6565d..c1a93ff618ca 100644
71408
--- third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build
72893
--- third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build
71409
+++ third_party/libwebrtc/rtc_base/null_socket_server_gn/moz.build
72894
+++ third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build
71410
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72895
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71411
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72896
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71412
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
72897
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 71428-71434 index 52ae3bc16660..16674329bbce 100644 Link Here
71428
 
72913
 
71429
 FINAL_LIBRARY = "webrtc"
72914
 FINAL_LIBRARY = "webrtc"
71430
 
72915
 
71431
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
72916
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
71432
 if CONFIG["MOZ_DEBUG"] == "1":
72917
 if CONFIG["MOZ_DEBUG"] == "1":
71433
 
72918
 
71434
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
72919
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 71447-71457 index 52ae3bc16660..16674329bbce 100644 Link Here
71447
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
72932
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
71448
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72933
-    DEFINES["__STDC_FORMAT_MACROS"] = True
71449
-
72934
-
71450
-    OS_LIBS += [
71451
-        "GLESv2",
71452
-        "log"
71453
-    ]
71454
-
71455
-if CONFIG["OS_TARGET"] == "Darwin":
72935
-if CONFIG["OS_TARGET"] == "Darwin":
71456
-
72936
-
71457
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72937
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 71517-71529 index 52ae3bc16660..16674329bbce 100644 Link Here
71517
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
72997
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
71518
-    DEFINES["_WINDOWS"] = True
72998
-    DEFINES["_WINDOWS"] = True
71519
-    DEFINES["__STD_C"] = True
72999
-    DEFINES["__STD_C"] = True
71520
-
71521
-    OS_LIBS += [
71522
-        "crypt32",
71523
-        "iphlpapi",
71524
-        "secur32",
71525
-        "winmm"
71526
-    ]
71527
+    DEFINES["_DEBUG"] = True
73000
+    DEFINES["_DEBUG"] = True
71528
 
73001
 
71529
 if CONFIG["CPU_ARCH"] == "aarch64":
73002
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 71533-71542 index 52ae3bc16660..16674329bbce 100644 Link Here
71533
 
73006
 
71534
-if CONFIG["CPU_ARCH"] == "arm":
73007
-if CONFIG["CPU_ARCH"] == "arm":
71535
-
73008
-
71536
-    CXXFLAGS += [
71537
-        "-mfpu=neon"
71538
-    ]
71539
-
71540
-    DEFINES["WEBRTC_ARCH_ARM"] = True
73009
-    DEFINES["WEBRTC_ARCH_ARM"] = True
71541
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
73010
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
71542
-    DEFINES["WEBRTC_HAS_NEON"] = True
73011
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 71599-71609 index 52ae3bc16660..16674329bbce 100644 Link Here
71599
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73068
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71600
-    DEFINES["_GNU_SOURCE"] = True
73069
-    DEFINES["_GNU_SOURCE"] = True
71601
-
73070
-
71602
 Library("null_socket_server_gn")
73071
 Library("protobuf_utils_gn")
71603
diff --git third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build
73072
diff --git third_party/libwebrtc/rtc_base/race_checker_gn/moz.build third_party/libwebrtc/rtc_base/race_checker_gn/moz.build
71604
index a10089f6f666..8485d4793a5e 100644
73073
index e1eee7aaa3b1..f23e850ec5b3 100644
71605
--- third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build
73074
--- third_party/libwebrtc/rtc_base/race_checker_gn/moz.build
71606
+++ third_party/libwebrtc/rtc_base/one_time_event_gn/moz.build
73075
+++ third_party/libwebrtc/rtc_base/race_checker_gn/moz.build
71607
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73076
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71608
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73077
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71609
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
73078
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 71625-71631 index a10089f6f666..8485d4793a5e 100644 Link Here
71625
 
73094
 
71626
 FINAL_LIBRARY = "webrtc"
73095
 FINAL_LIBRARY = "webrtc"
71627
 
73096
 
71628
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
73097
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
71629
 if CONFIG["MOZ_DEBUG"] == "1":
73098
 if CONFIG["MOZ_DEBUG"] == "1":
71630
 
73099
 
71631
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
73100
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 71722-71727 index a10089f6f666..8485d4793a5e 100644 Link Here
71722
 
73191
 
71723
-if CONFIG["CPU_ARCH"] == "arm":
73192
-if CONFIG["CPU_ARCH"] == "arm":
71724
-
73193
-
73194
-    CXXFLAGS += [
73195
-        "-mfpu=neon"
73196
-    ]
73197
-
71725
-    DEFINES["WEBRTC_ARCH_ARM"] = True
73198
-    DEFINES["WEBRTC_ARCH_ARM"] = True
71726
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
73199
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
71727
-    DEFINES["WEBRTC_HAS_NEON"] = True
73200
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 71784-71794 index a10089f6f666..8485d4793a5e 100644 Link Here
71784
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73257
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71785
-    DEFINES["_GNU_SOURCE"] = True
73258
-    DEFINES["_GNU_SOURCE"] = True
71786
-
73259
-
71787
 Library("one_time_event_gn")
73260
 Library("race_checker_gn")
71788
diff --git third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build
73261
diff --git third_party/libwebrtc/rtc_base/random_gn/moz.build third_party/libwebrtc/rtc_base/random_gn/moz.build
71789
index c759dfd0eebd..96517102c624 100644
73262
index a0f473e42d34..39ae2da973a6 100644
71790
--- third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build
73263
--- third_party/libwebrtc/rtc_base/random_gn/moz.build
71791
+++ third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build
73264
+++ third_party/libwebrtc/rtc_base/random_gn/moz.build
71792
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73265
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71793
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73266
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71794
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
73267
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 71810-71816 index c759dfd0eebd..96517102c624 100644 Link Here
71810
 
73283
 
71811
 FINAL_LIBRARY = "webrtc"
73284
 FINAL_LIBRARY = "webrtc"
71812
 
73285
 
71813
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
73286
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
71814
 if CONFIG["MOZ_DEBUG"] == "1":
73287
 if CONFIG["MOZ_DEBUG"] == "1":
71815
 
73288
 
71816
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
73289
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 71898-71907 index c759dfd0eebd..96517102c624 100644 Link Here
71898
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
73371
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
71899
-    DEFINES["_WINDOWS"] = True
73372
-    DEFINES["_WINDOWS"] = True
71900
-    DEFINES["__STD_C"] = True
73373
-    DEFINES["__STD_C"] = True
71901
-
71902
-    OS_LIBS += [
71903
-        "winmm"
71904
-    ]
71905
+    DEFINES["_DEBUG"] = True
73374
+    DEFINES["_DEBUG"] = True
71906
 
73375
 
71907
 if CONFIG["CPU_ARCH"] == "aarch64":
73376
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 71977-71987 index c759dfd0eebd..96517102c624 100644 Link Here
71977
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73446
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
71978
-    DEFINES["_GNU_SOURCE"] = True
73447
-    DEFINES["_GNU_SOURCE"] = True
71979
-
73448
-
71980
 Library("platform_thread_gn")
73449
 Library("random_gn")
71981
diff --git third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build
73450
diff --git third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build
71982
index 5962bb527ef7..506d35309aed 100644
73451
index f3b81590de11..f71d50ba8718 100644
71983
--- third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build
73452
--- third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build
71984
+++ third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build
73453
+++ third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build
71985
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73454
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
71986
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73455
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
71987
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
73456
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 72003-72009 index 5962bb527ef7..506d35309aed 100644 Link Here
72003
 
73472
 
72004
 FINAL_LIBRARY = "webrtc"
73473
 FINAL_LIBRARY = "webrtc"
72005
 
73474
 
72006
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
73475
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
72007
 if CONFIG["MOZ_DEBUG"] == "1":
73476
 if CONFIG["MOZ_DEBUG"] == "1":
72008
 
73477
 
72009
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
73478
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 72022-72027 index 5962bb527ef7..506d35309aed 100644 Link Here
72022
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
73491
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
72023
-    DEFINES["__STDC_FORMAT_MACROS"] = True
73492
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72024
-
73493
-
73494
-    OS_LIBS += [
73495
-        "log"
73496
-    ]
73497
-
72025
-if CONFIG["OS_TARGET"] == "Darwin":
73498
-if CONFIG["OS_TARGET"] == "Darwin":
72026
-
73499
-
72027
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73500
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 72047-72052 index 5962bb527ef7..506d35309aed 100644 Link Here
72047
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
73520
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
72048
-    DEFINES["__STDC_FORMAT_MACROS"] = True
73521
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72049
-
73522
-
73523
-    OS_LIBS += [
73524
-        "rt"
73525
-    ]
73526
-
72050
-if CONFIG["OS_TARGET"] == "OpenBSD":
73527
-if CONFIG["OS_TARGET"] == "OpenBSD":
72051
-
73528
-
72052
-    DEFINES["USE_GLIB"] = "1"
73529
-    DEFINES["USE_GLIB"] = "1"
Lines 72087-72092 index 5962bb527ef7..506d35309aed 100644 Link Here
72087
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
73564
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
72088
-    DEFINES["_WINDOWS"] = True
73565
-    DEFINES["_WINDOWS"] = True
72089
-    DEFINES["__STD_C"] = True
73566
-    DEFINES["__STD_C"] = True
73567
-
73568
-    OS_LIBS += [
73569
-        "crypt32",
73570
-        "iphlpapi",
73571
-        "secur32",
73572
-        "winmm"
73573
-    ]
72090
+    DEFINES["_DEBUG"] = True
73574
+    DEFINES["_DEBUG"] = True
72091
 
73575
 
72092
 if CONFIG["CPU_ARCH"] == "aarch64":
73576
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 72162-72172 index 5962bb527ef7..506d35309aed 100644 Link Here
72162
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73646
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72163
-    DEFINES["_GNU_SOURCE"] = True
73647
-    DEFINES["_GNU_SOURCE"] = True
72164
-
73648
-
72165
 Library("platform_thread_types_gn")
73649
 Library("rate_limiter_gn")
72166
diff --git third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build
73650
diff --git third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build
72167
index 48de05c6565d..c1a93ff618ca 100644
73651
index fdb081242ba1..432cb13774bf 100644
72168
--- third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build
73652
--- third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build
72169
+++ third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build
73653
+++ third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build
72170
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73654
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72171
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73655
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72172
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
73656
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 72188-72194 index 48de05c6565d..c1a93ff618ca 100644 Link Here
72188
 
73672
 
72189
 FINAL_LIBRARY = "webrtc"
73673
 FINAL_LIBRARY = "webrtc"
72190
 
73674
 
72191
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
73675
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
72192
 if CONFIG["MOZ_DEBUG"] == "1":
73676
 if CONFIG["MOZ_DEBUG"] == "1":
72193
 
73677
 
72194
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
73678
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 72207-72212 index 48de05c6565d..c1a93ff618ca 100644 Link Here
72207
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
73691
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
72208
-    DEFINES["__STDC_FORMAT_MACROS"] = True
73692
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72209
-
73693
-
73694
-    OS_LIBS += [
73695
-        "log"
73696
-    ]
73697
-
72210
-if CONFIG["OS_TARGET"] == "Darwin":
73698
-if CONFIG["OS_TARGET"] == "Darwin":
72211
-
73699
-
72212
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73700
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 72272-72277 index 48de05c6565d..c1a93ff618ca 100644 Link Here
72272
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
73760
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
72273
-    DEFINES["_WINDOWS"] = True
73761
-    DEFINES["_WINDOWS"] = True
72274
-    DEFINES["__STD_C"] = True
73762
-    DEFINES["__STD_C"] = True
73763
-
73764
-    OS_LIBS += [
73765
-        "winmm"
73766
-    ]
72275
+    DEFINES["_DEBUG"] = True
73767
+    DEFINES["_DEBUG"] = True
72276
 
73768
 
72277
 if CONFIG["CPU_ARCH"] == "aarch64":
73769
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 72281-72286 index 48de05c6565d..c1a93ff618ca 100644 Link Here
72281
 
73773
 
72282
-if CONFIG["CPU_ARCH"] == "arm":
73774
-if CONFIG["CPU_ARCH"] == "arm":
72283
-
73775
-
73776
-    CXXFLAGS += [
73777
-        "-mfpu=neon"
73778
-    ]
73779
-
72284
-    DEFINES["WEBRTC_ARCH_ARM"] = True
73780
-    DEFINES["WEBRTC_ARCH_ARM"] = True
72285
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
73781
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
72286
-    DEFINES["WEBRTC_HAS_NEON"] = True
73782
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 72343-72353 index 48de05c6565d..c1a93ff618ca 100644 Link Here
72343
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73839
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72344
-    DEFINES["_GNU_SOURCE"] = True
73840
-    DEFINES["_GNU_SOURCE"] = True
72345
-
73841
-
72346
 Library("protobuf_utils_gn")
73842
 Library("rate_statistics_gn")
72347
diff --git third_party/libwebrtc/rtc_base/race_checker_gn/moz.build third_party/libwebrtc/rtc_base/race_checker_gn/moz.build
73843
diff --git third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build
72348
index e1eee7aaa3b1..f23e850ec5b3 100644
73844
index b793860d1fce..615068342e2c 100644
72349
--- third_party/libwebrtc/rtc_base/race_checker_gn/moz.build
73845
--- third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build
72350
+++ third_party/libwebrtc/rtc_base/race_checker_gn/moz.build
73846
+++ third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build
72351
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73847
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72352
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73848
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72353
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
73849
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 72369-72375 index e1eee7aaa3b1..f23e850ec5b3 100644 Link Here
72369
 
73865
 
72370
 FINAL_LIBRARY = "webrtc"
73866
 FINAL_LIBRARY = "webrtc"
72371
 
73867
 
72372
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
73868
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
72373
 if CONFIG["MOZ_DEBUG"] == "1":
73869
 if CONFIG["MOZ_DEBUG"] == "1":
72374
 
73870
 
72375
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
73871
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 72457-72462 index e1eee7aaa3b1..f23e850ec5b3 100644 Link Here
72457
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
73953
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
72458
-    DEFINES["_WINDOWS"] = True
73954
-    DEFINES["_WINDOWS"] = True
72459
-    DEFINES["__STD_C"] = True
73955
-    DEFINES["__STD_C"] = True
73956
-
73957
-    OS_LIBS += [
73958
-        "winmm"
73959
-    ]
72460
+    DEFINES["_DEBUG"] = True
73960
+    DEFINES["_DEBUG"] = True
72461
 
73961
 
72462
 if CONFIG["CPU_ARCH"] == "aarch64":
73962
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 72532-72542 index e1eee7aaa3b1..f23e850ec5b3 100644 Link Here
72532
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74032
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72533
-    DEFINES["_GNU_SOURCE"] = True
74033
-    DEFINES["_GNU_SOURCE"] = True
72534
-
74034
-
72535
 Library("race_checker_gn")
74035
 Library("rate_tracker_gn")
72536
diff --git third_party/libwebrtc/rtc_base/random_gn/moz.build third_party/libwebrtc/rtc_base/random_gn/moz.build
74036
diff --git third_party/libwebrtc/rtc_base/refcount_gn/moz.build third_party/libwebrtc/rtc_base/refcount_gn/moz.build
72537
index a0f473e42d34..39ae2da973a6 100644
74037
index 765cb316c386..20e25b4b8f4b 100644
72538
--- third_party/libwebrtc/rtc_base/random_gn/moz.build
74038
--- third_party/libwebrtc/rtc_base/refcount_gn/moz.build
72539
+++ third_party/libwebrtc/rtc_base/random_gn/moz.build
74039
+++ third_party/libwebrtc/rtc_base/refcount_gn/moz.build
72540
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74040
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72541
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74041
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72542
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
74042
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 72558-72564 index a0f473e42d34..39ae2da973a6 100644 Link Here
72558
 
74058
 
72559
 FINAL_LIBRARY = "webrtc"
74059
 FINAL_LIBRARY = "webrtc"
72560
 
74060
 
72561
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
74061
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
72562
 if CONFIG["MOZ_DEBUG"] == "1":
74062
 if CONFIG["MOZ_DEBUG"] == "1":
72563
 
74063
 
72564
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
74064
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 72577-72586 index a0f473e42d34..39ae2da973a6 100644 Link Here
72577
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
74077
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
72578
-    DEFINES["__STDC_FORMAT_MACROS"] = True
74078
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72579
-
74079
-
72580
-    OS_LIBS += [
72581
-        "log"
72582
-    ]
72583
-
72584
-if CONFIG["OS_TARGET"] == "Darwin":
74080
-if CONFIG["OS_TARGET"] == "Darwin":
72585
-
74081
-
72586
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74082
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 72655-72664 index a0f473e42d34..39ae2da973a6 100644 Link Here
72655
 
74151
 
72656
-if CONFIG["CPU_ARCH"] == "arm":
74152
-if CONFIG["CPU_ARCH"] == "arm":
72657
-
74153
-
72658
-    CXXFLAGS += [
72659
-        "-mfpu=neon"
72660
-    ]
72661
-
72662
-    DEFINES["WEBRTC_ARCH_ARM"] = True
74154
-    DEFINES["WEBRTC_ARCH_ARM"] = True
72663
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
74155
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
72664
-    DEFINES["WEBRTC_HAS_NEON"] = True
74156
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 72721-72731 index a0f473e42d34..39ae2da973a6 100644 Link Here
72721
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74213
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72722
-    DEFINES["_GNU_SOURCE"] = True
74214
-    DEFINES["_GNU_SOURCE"] = True
72723
-
74215
-
72724
 Library("random_gn")
74216
 Library("refcount_gn")
72725
diff --git third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build
74217
diff --git third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build
72726
index f3b81590de11..f71d50ba8718 100644
74218
index 5b5c4803e02f..2e37d9a011ce 100644
72727
--- third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build
74219
--- third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build
72728
+++ third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build
74220
+++ third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build
72729
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74221
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72730
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74222
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72731
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
74223
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 72747-72753 index f3b81590de11..f71d50ba8718 100644 Link Here
72747
 
74239
 
72748
 FINAL_LIBRARY = "webrtc"
74240
 FINAL_LIBRARY = "webrtc"
72749
 
74241
 
72750
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
74242
@@ -33,6 +43,7 @@ UNIFIED_SOURCES += [
74243
     "/third_party/libwebrtc/rtc_base/crypt_string.cc",
74244
     "/third_party/libwebrtc/rtc_base/data_rate_limiter.cc",
74245
     "/third_party/libwebrtc/rtc_base/file_rotating_stream.cc",
74246
+    "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc",
74247
     "/third_party/libwebrtc/rtc_base/log_sinks.cc",
74248
     "/third_party/libwebrtc/rtc_base/network_route.cc",
74249
     "/third_party/libwebrtc/rtc_base/stream.cc"
74250
@@ -47,191 +58,15 @@ if not CONFIG["MOZ_DEBUG"]:
72751
 if CONFIG["MOZ_DEBUG"] == "1":
74251
 if CONFIG["MOZ_DEBUG"] == "1":
72752
 
74252
 
72753
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
74253
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 72767-72775 index f3b81590de11..f71d50ba8718 100644 Link Here
72767
-    DEFINES["__STDC_FORMAT_MACROS"] = True
74267
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72768
-
74268
-
72769
-    OS_LIBS += [
74269
-    OS_LIBS += [
74270
-        "GLESv2",
72770
-        "log"
74271
-        "log"
72771
-    ]
74272
-    ]
72772
-
74273
-
74274
-    UNIFIED_SOURCES += [
74275
-        "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc"
74276
-    ]
74277
-
72773
-if CONFIG["OS_TARGET"] == "Darwin":
74278
-if CONFIG["OS_TARGET"] == "Darwin":
72774
-
74279
-
72775
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74280
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 72780-72785 index f3b81590de11..f71d50ba8718 100644 Link Here
72780
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
74285
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
72781
-    DEFINES["__STDC_FORMAT_MACROS"] = True
74286
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72782
-
74287
-
74288
-    UNIFIED_SOURCES += [
74289
-        "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc",
74290
-        "/third_party/libwebrtc/rtc_base/mac_ifaddrs_converter.cc"
74291
-    ]
74292
-
72783
-if CONFIG["OS_TARGET"] == "Linux":
74293
-if CONFIG["OS_TARGET"] == "Linux":
72784
-
74294
-
72785
-    DEFINES["USE_AURA"] = "1"
74295
-    DEFINES["USE_AURA"] = "1"
Lines 72796-72804 index f3b81590de11..f71d50ba8718 100644 Link Here
72796
-    DEFINES["__STDC_FORMAT_MACROS"] = True
74306
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72797
-
74307
-
72798
-    OS_LIBS += [
74308
-    OS_LIBS += [
74309
-        "dl",
72799
-        "rt"
74310
-        "rt"
72800
-    ]
74311
-    ]
72801
-
74312
-
74313
-    UNIFIED_SOURCES += [
74314
-        "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc"
74315
-    ]
74316
-
72802
-if CONFIG["OS_TARGET"] == "OpenBSD":
74317
-if CONFIG["OS_TARGET"] == "OpenBSD":
72803
-
74318
-
72804
-    DEFINES["USE_GLIB"] = "1"
74319
-    DEFINES["USE_GLIB"] = "1"
Lines 72813-72818 index f3b81590de11..f71d50ba8718 100644 Link Here
72813
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
74328
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
72814
-    DEFINES["__STDC_FORMAT_MACROS"] = True
74329
-    DEFINES["__STDC_FORMAT_MACROS"] = True
72815
-
74330
-
74331
-    UNIFIED_SOURCES += [
74332
-        "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc"
74333
-    ]
74334
-
72816
-if CONFIG["OS_TARGET"] == "WINNT":
74335
-if CONFIG["OS_TARGET"] == "WINNT":
72817
-
74336
-
72818
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
74337
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
Lines 72921-72931 index f3b81590de11..f71d50ba8718 100644 Link Here
72921
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74440
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
72922
-    DEFINES["_GNU_SOURCE"] = True
74441
-    DEFINES["_GNU_SOURCE"] = True
72923
-
74442
-
72924
 Library("rate_limiter_gn")
74443
 Library("rtc_base_gn")
72925
diff --git third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build
74444
diff --git third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build
72926
index fdb081242ba1..432cb13774bf 100644
74445
index 8357ece6eb30..6c60ddd28df2 100644
72927
--- third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build
74446
--- third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build
72928
+++ third_party/libwebrtc/rtc_base/rate_statistics_gn/moz.build
74447
+++ third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build
72929
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74448
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
72930
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74449
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
72931
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
74450
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 72947-72953 index fdb081242ba1..432cb13774bf 100644 Link Here
72947
 
74466
 
72948
 FINAL_LIBRARY = "webrtc"
74467
 FINAL_LIBRARY = "webrtc"
72949
 
74468
 
72950
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
74469
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
72951
 if CONFIG["MOZ_DEBUG"] == "1":
74470
 if CONFIG["MOZ_DEBUG"] == "1":
72952
 
74471
 
72953
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
74472
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 73035-73044 index fdb081242ba1..432cb13774bf 100644 Link Here
73035
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
74554
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
73036
-    DEFINES["_WINDOWS"] = True
74555
-    DEFINES["_WINDOWS"] = True
73037
-    DEFINES["__STD_C"] = True
74556
-    DEFINES["__STD_C"] = True
73038
-
73039
-    OS_LIBS += [
73040
-        "winmm"
73041
-    ]
73042
+    DEFINES["_DEBUG"] = True
74557
+    DEFINES["_DEBUG"] = True
73043
 
74558
 
73044
 if CONFIG["CPU_ARCH"] == "aarch64":
74559
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 73114-73124 index fdb081242ba1..432cb13774bf 100644 Link Here
73114
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74629
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73115
-    DEFINES["_GNU_SOURCE"] = True
74630
-    DEFINES["_GNU_SOURCE"] = True
73116
-
74631
-
73117
 Library("rate_statistics_gn")
74632
 Library("rtc_event_gn")
73118
diff --git third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build
74633
diff --git third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build
73119
index b793860d1fce..615068342e2c 100644
74634
index 46355c5d0d6c..f2bdd05562f7 100644
73120
--- third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build
74635
--- third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build
73121
+++ third_party/libwebrtc/rtc_base/rate_tracker_gn/moz.build
74636
+++ third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build
73122
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74637
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73123
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74638
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73124
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
74639
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 73140-73146 index b793860d1fce..615068342e2c 100644 Link Here
73140
 
74655
 
73141
 FINAL_LIBRARY = "webrtc"
74656
 FINAL_LIBRARY = "webrtc"
73142
 
74657
 
73143
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
74658
@@ -43,161 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
73144
 if CONFIG["MOZ_DEBUG"] == "1":
74659
 if CONFIG["MOZ_DEBUG"] == "1":
73145
 
74660
 
73146
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
74661
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 73228-73237 index b793860d1fce..615068342e2c 100644 Link Here
73228
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
74743
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
73229
-    DEFINES["_WINDOWS"] = True
74744
-    DEFINES["_WINDOWS"] = True
73230
-    DEFINES["__STD_C"] = True
74745
-    DEFINES["__STD_C"] = True
73231
-
73232
-    OS_LIBS += [
73233
-        "winmm"
73234
-    ]
73235
+    DEFINES["_DEBUG"] = True
74746
+    DEFINES["_DEBUG"] = True
73236
 
74747
 
73237
 if CONFIG["CPU_ARCH"] == "aarch64":
74748
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 73307-73317 index b793860d1fce..615068342e2c 100644 Link Here
73307
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74818
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73308
-    DEFINES["_GNU_SOURCE"] = True
74819
-    DEFINES["_GNU_SOURCE"] = True
73309
-
74820
-
73310
 Library("rate_tracker_gn")
74821
 Library("rtc_numerics_gn")
73311
diff --git third_party/libwebrtc/rtc_base/refcount_gn/moz.build third_party/libwebrtc/rtc_base/refcount_gn/moz.build
74822
diff --git third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build
73312
index 765cb316c386..20e25b4b8f4b 100644
74823
index 333461b952e1..1d8bba37341e 100644
73313
--- third_party/libwebrtc/rtc_base/refcount_gn/moz.build
74824
--- third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build
73314
+++ third_party/libwebrtc/rtc_base/refcount_gn/moz.build
74825
+++ third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build
73315
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74826
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73316
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74827
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73317
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
74828
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 73333-73339 index 765cb316c386..20e25b4b8f4b 100644 Link Here
73333
 
74844
 
73334
 FINAL_LIBRARY = "webrtc"
74845
 FINAL_LIBRARY = "webrtc"
73335
 
74846
 
73336
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
74847
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
73337
 if CONFIG["MOZ_DEBUG"] == "1":
74848
 if CONFIG["MOZ_DEBUG"] == "1":
73338
 
74849
 
73339
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
74850
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 73352-73357 index 765cb316c386..20e25b4b8f4b 100644 Link Here
73352
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
74863
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
73353
-    DEFINES["__STDC_FORMAT_MACROS"] = True
74864
-    DEFINES["__STDC_FORMAT_MACROS"] = True
73354
-
74865
-
74866
-    OS_LIBS += [
74867
-        "log"
74868
-    ]
74869
-
73355
-if CONFIG["OS_TARGET"] == "Darwin":
74870
-if CONFIG["OS_TARGET"] == "Darwin":
73356
-
74871
-
73357
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74872
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 73426-73431 index 765cb316c386..20e25b4b8f4b 100644 Link Here
73426
 
74941
 
73427
-if CONFIG["CPU_ARCH"] == "arm":
74942
-if CONFIG["CPU_ARCH"] == "arm":
73428
-
74943
-
74944
-    CXXFLAGS += [
74945
-        "-mfpu=neon"
74946
-    ]
74947
-
73429
-    DEFINES["WEBRTC_ARCH_ARM"] = True
74948
-    DEFINES["WEBRTC_ARCH_ARM"] = True
73430
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
74949
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
73431
-    DEFINES["WEBRTC_HAS_NEON"] = True
74950
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 73488-73498 index 765cb316c386..20e25b4b8f4b 100644 Link Here
73488
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75007
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73489
-    DEFINES["_GNU_SOURCE"] = True
75008
-    DEFINES["_GNU_SOURCE"] = True
73490
-
75009
-
73491
 Library("refcount_gn")
75010
 Library("rtc_task_queue_gn")
73492
diff --git third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build
75011
diff --git third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build
73493
index 5b5c4803e02f..2e37d9a011ce 100644
75012
index fd120e422965..8147a59fe325 100644
73494
--- third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build
75013
--- third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build
73495
+++ third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build
75014
+++ third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build
73496
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75015
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73497
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75016
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73498
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
75017
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 73514-73528 index 5b5c4803e02f..2e37d9a011ce 100644 Link Here
73514
 
75033
 
73515
 FINAL_LIBRARY = "webrtc"
75034
 FINAL_LIBRARY = "webrtc"
73516
 
75035
 
73517
@@ -33,6 +43,7 @@ UNIFIED_SOURCES += [
75036
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
73518
     "/third_party/libwebrtc/rtc_base/crypt_string.cc",
73519
     "/third_party/libwebrtc/rtc_base/data_rate_limiter.cc",
73520
     "/third_party/libwebrtc/rtc_base/file_rotating_stream.cc",
73521
+    "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc",
73522
     "/third_party/libwebrtc/rtc_base/log_sinks.cc",
73523
     "/third_party/libwebrtc/rtc_base/network_route.cc",
73524
     "/third_party/libwebrtc/rtc_base/stream.cc"
73525
@@ -47,191 +58,15 @@ if not CONFIG["MOZ_DEBUG"]:
73526
 if CONFIG["MOZ_DEBUG"] == "1":
75037
 if CONFIG["MOZ_DEBUG"] == "1":
73527
 
75038
 
73528
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
75039
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 73541-73555 index 5b5c4803e02f..2e37d9a011ce 100644 Link Here
73541
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
75052
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
73542
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75053
-    DEFINES["__STDC_FORMAT_MACROS"] = True
73543
-
75054
-
73544
-    OS_LIBS += [
73545
-        "GLESv2",
73546
-        "log"
73547
-    ]
73548
-
73549
-    UNIFIED_SOURCES += [
73550
-        "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc"
73551
-    ]
73552
-
73553
-if CONFIG["OS_TARGET"] == "Darwin":
75055
-if CONFIG["OS_TARGET"] == "Darwin":
73554
-
75056
-
73555
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75057
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 73560-73570 index 5b5c4803e02f..2e37d9a011ce 100644 Link Here
73560
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
75062
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
73561
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75063
-    DEFINES["__STDC_FORMAT_MACROS"] = True
73562
-
75064
-
73563
-    UNIFIED_SOURCES += [
73564
-        "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc",
73565
-        "/third_party/libwebrtc/rtc_base/mac_ifaddrs_converter.cc"
73566
-    ]
73567
-
73568
-if CONFIG["OS_TARGET"] == "Linux":
75065
-if CONFIG["OS_TARGET"] == "Linux":
73569
-
75066
-
73570
-    DEFINES["USE_AURA"] = "1"
75067
-    DEFINES["USE_AURA"] = "1"
Lines 73580-73594 index 5b5c4803e02f..2e37d9a011ce 100644 Link Here
73580
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
75077
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
73581
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75078
-    DEFINES["__STDC_FORMAT_MACROS"] = True
73582
-
75079
-
73583
-    OS_LIBS += [
73584
-        "dl",
73585
-        "rt"
73586
-    ]
73587
-
73588
-    UNIFIED_SOURCES += [
73589
-        "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc"
73590
-    ]
73591
-
73592
-if CONFIG["OS_TARGET"] == "OpenBSD":
75080
-if CONFIG["OS_TARGET"] == "OpenBSD":
73593
-
75081
-
73594
-    DEFINES["USE_GLIB"] = "1"
75082
-    DEFINES["USE_GLIB"] = "1"
Lines 73603-73612 index 5b5c4803e02f..2e37d9a011ce 100644 Link Here
73603
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
75091
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
73604
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75092
-    DEFINES["__STDC_FORMAT_MACROS"] = True
73605
-
75093
-
73606
-    UNIFIED_SOURCES += [
73607
-        "/third_party/libwebrtc/rtc_base/ifaddrs_converter.cc"
73608
-    ]
73609
-
73610
-if CONFIG["OS_TARGET"] == "WINNT":
75094
-if CONFIG["OS_TARGET"] == "WINNT":
73611
-
75095
-
73612
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
75096
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
Lines 73633-73645 index 5b5c4803e02f..2e37d9a011ce 100644 Link Here
73633
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
75117
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
73634
-    DEFINES["_WINDOWS"] = True
75118
-    DEFINES["_WINDOWS"] = True
73635
-    DEFINES["__STD_C"] = True
75119
-    DEFINES["__STD_C"] = True
73636
-
73637
-    OS_LIBS += [
73638
-        "crypt32",
73639
-        "iphlpapi",
73640
-        "secur32",
73641
-        "winmm"
73642
-    ]
73643
+    DEFINES["_DEBUG"] = True
75120
+    DEFINES["_DEBUG"] = True
73644
 
75121
 
73645
 if CONFIG["CPU_ARCH"] == "aarch64":
75122
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 73649-73658 index 5b5c4803e02f..2e37d9a011ce 100644 Link Here
73649
 
75126
 
73650
-if CONFIG["CPU_ARCH"] == "arm":
75127
-if CONFIG["CPU_ARCH"] == "arm":
73651
-
75128
-
73652
-    CXXFLAGS += [
73653
-        "-mfpu=neon"
73654
-    ]
73655
-
73656
-    DEFINES["WEBRTC_ARCH_ARM"] = True
75129
-    DEFINES["WEBRTC_ARCH_ARM"] = True
73657
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
75130
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
73658
-    DEFINES["WEBRTC_HAS_NEON"] = True
75131
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 73715-73725 index 5b5c4803e02f..2e37d9a011ce 100644 Link Here
73715
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75188
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73716
-    DEFINES["_GNU_SOURCE"] = True
75189
-    DEFINES["_GNU_SOURCE"] = True
73717
-
75190
-
73718
 Library("rtc_base_gn")
75191
 Library("safe_compare_gn")
73719
diff --git third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build
75192
diff --git third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build
73720
index 8357ece6eb30..6c60ddd28df2 100644
75193
index aa5d30753476..23497bfe94f9 100644
73721
--- third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build
75194
--- third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build
73722
+++ third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build
75195
+++ third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build
73723
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75196
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73724
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75197
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73725
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
75198
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 73741-73747 index 8357ece6eb30..6c60ddd28df2 100644 Link Here
73741
 
75214
 
73742
 FINAL_LIBRARY = "webrtc"
75215
 FINAL_LIBRARY = "webrtc"
73743
 
75216
 
73744
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
75217
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
73745
 if CONFIG["MOZ_DEBUG"] == "1":
75218
 if CONFIG["MOZ_DEBUG"] == "1":
73746
 
75219
 
73747
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
75220
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 73838-73847 index 8357ece6eb30..6c60ddd28df2 100644 Link Here
73838
 
75311
 
73839
-if CONFIG["CPU_ARCH"] == "arm":
75312
-if CONFIG["CPU_ARCH"] == "arm":
73840
-
75313
-
73841
-    CXXFLAGS += [
73842
-        "-mfpu=neon"
73843
-    ]
73844
-
73845
-    DEFINES["WEBRTC_ARCH_ARM"] = True
75314
-    DEFINES["WEBRTC_ARCH_ARM"] = True
73846
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
75315
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
73847
-    DEFINES["WEBRTC_HAS_NEON"] = True
75316
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 73904-73914 index 8357ece6eb30..6c60ddd28df2 100644 Link Here
73904
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75373
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
73905
-    DEFINES["_GNU_SOURCE"] = True
75374
-    DEFINES["_GNU_SOURCE"] = True
73906
-
75375
-
73907
 Library("rtc_event_gn")
75376
 Library("safe_conversions_gn")
73908
diff --git third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build
75377
diff --git third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build
73909
index 46355c5d0d6c..f2bdd05562f7 100644
75378
index fd5b77f258ab..27ad4b92689d 100644
73910
--- third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build
75379
--- third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build
73911
+++ third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build
75380
+++ third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build
73912
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75381
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
73913
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75382
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
73914
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
75383
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 73930-73936 index 46355c5d0d6c..f2bdd05562f7 100644 Link Here
73930
 
75399
 
73931
 FINAL_LIBRARY = "webrtc"
75400
 FINAL_LIBRARY = "webrtc"
73932
 
75401
 
73933
@@ -43,161 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
75402
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
73934
 if CONFIG["MOZ_DEBUG"] == "1":
75403
 if CONFIG["MOZ_DEBUG"] == "1":
73935
 
75404
 
73936
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
75405
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 74027-74036 index 46355c5d0d6c..f2bdd05562f7 100644 Link Here
74027
 
75496
 
74028
-if CONFIG["CPU_ARCH"] == "arm":
75497
-if CONFIG["CPU_ARCH"] == "arm":
74029
-
75498
-
74030
-    CXXFLAGS += [
74031
-        "-mfpu=neon"
74032
-    ]
74033
-
74034
-    DEFINES["WEBRTC_ARCH_ARM"] = True
75499
-    DEFINES["WEBRTC_ARCH_ARM"] = True
74035
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
75500
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
74036
-    DEFINES["WEBRTC_HAS_NEON"] = True
75501
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 74093-74103 index 46355c5d0d6c..f2bdd05562f7 100644 Link Here
74093
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75558
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74094
-    DEFINES["_GNU_SOURCE"] = True
75559
-    DEFINES["_GNU_SOURCE"] = True
74095
-
75560
-
74096
 Library("rtc_numerics_gn")
75561
 Library("safe_minmax_gn")
74097
diff --git third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build
75562
diff --git third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build
74098
index 333461b952e1..1d8bba37341e 100644
75563
index da05f0b07f46..92d1c01b52ed 100644
74099
--- third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build
75564
--- third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build
74100
+++ third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build
75565
+++ third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build
74101
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75566
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74102
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75567
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74103
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
75568
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 74282-74292 index 333461b952e1..1d8bba37341e 100644 Link Here
74282
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75747
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74283
-    DEFINES["_GNU_SOURCE"] = True
75748
-    DEFINES["_GNU_SOURCE"] = True
74284
-
75749
-
74285
 Library("rtc_task_queue_gn")
75750
 Library("sample_counter_gn")
74286
diff --git third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build
75751
diff --git third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build
74287
index fd120e422965..8147a59fe325 100644
75752
index 2cd722b53276..bccf19feeb19 100644
74288
--- third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build
75753
--- third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build
74289
+++ third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build
75754
+++ third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build
74290
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75755
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74291
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75756
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74292
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
75757
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 74463-74473 index fd120e422965..8147a59fe325 100644 Link Here
74463
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75928
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74464
-    DEFINES["_GNU_SOURCE"] = True
75929
-    DEFINES["_GNU_SOURCE"] = True
74465
-
75930
-
74466
 Library("safe_compare_gn")
75931
 Library("sanitizer_gn")
74467
diff --git third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build
75932
diff --git third_party/libwebrtc/rtc_base/socket_address_gn/moz.build third_party/libwebrtc/rtc_base/socket_address_gn/moz.build
74468
index aa5d30753476..23497bfe94f9 100644
75933
index 615800aaf567..e8fb17f6a5b9 100644
74469
--- third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build
75934
--- third_party/libwebrtc/rtc_base/socket_address_gn/moz.build
74470
+++ third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build
75935
+++ third_party/libwebrtc/rtc_base/socket_address_gn/moz.build
74471
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75936
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74472
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75937
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74473
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
75938
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 74489-74495 index aa5d30753476..23497bfe94f9 100644 Link Here
74489
 
75954
 
74490
 FINAL_LIBRARY = "webrtc"
75955
 FINAL_LIBRARY = "webrtc"
74491
 
75956
 
74492
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
75957
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
74493
 if CONFIG["MOZ_DEBUG"] == "1":
75958
 if CONFIG["MOZ_DEBUG"] == "1":
74494
 
75959
 
74495
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
75960
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 74509-74514 index aa5d30753476..23497bfe94f9 100644 Link Here
74509
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75974
-    DEFINES["__STDC_FORMAT_MACROS"] = True
74510
-
75975
-
74511
-    OS_LIBS += [
75976
-    OS_LIBS += [
75977
-        "GLESv2",
74512
-        "log"
75978
-        "log"
74513
-    ]
75979
-    ]
74514
-
75980
-
Lines 74577-74582 index aa5d30753476..23497bfe94f9 100644 Link Here
74577
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
76043
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
74578
-    DEFINES["_WINDOWS"] = True
76044
-    DEFINES["_WINDOWS"] = True
74579
-    DEFINES["__STD_C"] = True
76045
-    DEFINES["__STD_C"] = True
76046
-
76047
-    OS_LIBS += [
76048
-        "crypt32",
76049
-        "iphlpapi",
76050
-        "secur32",
76051
-        "winmm"
76052
-    ]
74580
+    DEFINES["_DEBUG"] = True
76053
+    DEFINES["_DEBUG"] = True
74581
 
76054
 
74582
 if CONFIG["CPU_ARCH"] == "aarch64":
76055
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 74586-74591 index aa5d30753476..23497bfe94f9 100644 Link Here
74586
 
76059
 
74587
-if CONFIG["CPU_ARCH"] == "arm":
76060
-if CONFIG["CPU_ARCH"] == "arm":
74588
-
76061
-
76062
-    CXXFLAGS += [
76063
-        "-mfpu=neon"
76064
-    ]
76065
-
74589
-    DEFINES["WEBRTC_ARCH_ARM"] = True
76066
-    DEFINES["WEBRTC_ARCH_ARM"] = True
74590
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
76067
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
74591
-    DEFINES["WEBRTC_HAS_NEON"] = True
76068
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 74648-74658 index aa5d30753476..23497bfe94f9 100644 Link Here
74648
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76125
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74649
-    DEFINES["_GNU_SOURCE"] = True
76126
-    DEFINES["_GNU_SOURCE"] = True
74650
-
76127
-
74651
 Library("safe_conversions_gn")
76128
 Library("socket_address_gn")
74652
diff --git third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build
76129
diff --git third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build
74653
index fd5b77f258ab..27ad4b92689d 100644
76130
index c8ec2004a876..5c8f28025406 100644
74654
--- third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build
76131
--- third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build
74655
+++ third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build
76132
+++ third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build
74656
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76133
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74657
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76134
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74658
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
76135
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 74674-74680 index fd5b77f258ab..27ad4b92689d 100644 Link Here
74674
 
76151
 
74675
 FINAL_LIBRARY = "webrtc"
76152
 FINAL_LIBRARY = "webrtc"
74676
 
76153
 
74677
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
76154
@@ -37,165 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
74678
 if CONFIG["MOZ_DEBUG"] == "1":
76155
 if CONFIG["MOZ_DEBUG"] == "1":
74679
 
76156
 
74680
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
76157
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 74694-74699 index fd5b77f258ab..27ad4b92689d 100644 Link Here
74694
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76171
-    DEFINES["__STDC_FORMAT_MACROS"] = True
74695
-
76172
-
74696
-    OS_LIBS += [
76173
-    OS_LIBS += [
76174
-        "GLESv2",
74697
-        "log"
76175
-        "log"
74698
-    ]
76176
-    ]
74699
-
76177
-
Lines 74762-74767 index fd5b77f258ab..27ad4b92689d 100644 Link Here
74762
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
76240
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
74763
-    DEFINES["_WINDOWS"] = True
76241
-    DEFINES["_WINDOWS"] = True
74764
-    DEFINES["__STD_C"] = True
76242
-    DEFINES["__STD_C"] = True
76243
-
76244
-    OS_LIBS += [
76245
-        "crypt32",
76246
-        "iphlpapi",
76247
-        "secur32",
76248
-        "winmm"
76249
-    ]
74765
+    DEFINES["_DEBUG"] = True
76250
+    DEFINES["_DEBUG"] = True
74766
 
76251
 
74767
 if CONFIG["CPU_ARCH"] == "aarch64":
76252
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 74833-74843 index fd5b77f258ab..27ad4b92689d 100644 Link Here
74833
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76318
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
74834
-    DEFINES["_GNU_SOURCE"] = True
76319
-    DEFINES["_GNU_SOURCE"] = True
74835
-
76320
-
74836
 Library("safe_minmax_gn")
76321
 Library("socket_factory_gn")
74837
diff --git third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build
76322
diff --git third_party/libwebrtc/rtc_base/socket_gn/moz.build third_party/libwebrtc/rtc_base/socket_gn/moz.build
74838
index da05f0b07f46..92d1c01b52ed 100644
76323
index a77aa3b56628..6e658e258670 100644
74839
--- third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build
76324
--- third_party/libwebrtc/rtc_base/socket_gn/moz.build
74840
+++ third_party/libwebrtc/rtc_base/sample_counter_gn/moz.build
76325
+++ third_party/libwebrtc/rtc_base/socket_gn/moz.build
74841
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76326
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
74842
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76327
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
74843
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
76328
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 74859-74865 index da05f0b07f46..92d1c01b52ed 100644 Link Here
74859
 
76344
 
74860
 FINAL_LIBRARY = "webrtc"
76345
 FINAL_LIBRARY = "webrtc"
74861
 
76346
 
74862
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
76347
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
74863
 if CONFIG["MOZ_DEBUG"] == "1":
76348
 if CONFIG["MOZ_DEBUG"] == "1":
74864
 
76349
 
74865
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
76350
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 74879-74884 index da05f0b07f46..92d1c01b52ed 100644 Link Here
74879
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76364
-    DEFINES["__STDC_FORMAT_MACROS"] = True
74880
-
76365
-
74881
-    OS_LIBS += [
76366
-    OS_LIBS += [
76367
-        "GLESv2",
74882
-        "log"
76368
-        "log"
74883
-    ]
76369
-    ]
74884
-
76370
-
Lines 74947-74952 index da05f0b07f46..92d1c01b52ed 100644 Link Here
74947
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
76433
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
74948
-    DEFINES["_WINDOWS"] = True
76434
-    DEFINES["_WINDOWS"] = True
74949
-    DEFINES["__STD_C"] = True
76435
-    DEFINES["__STD_C"] = True
76436
-
76437
-    OS_LIBS += [
76438
-        "crypt32",
76439
-        "iphlpapi",
76440
-        "secur32",
76441
-        "winmm"
76442
-    ]
74950
+    DEFINES["_DEBUG"] = True
76443
+    DEFINES["_DEBUG"] = True
74951
 
76444
 
74952
 if CONFIG["CPU_ARCH"] == "aarch64":
76445
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 75022-75032 index da05f0b07f46..92d1c01b52ed 100644 Link Here
75022
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76515
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75023
-    DEFINES["_GNU_SOURCE"] = True
76516
-    DEFINES["_GNU_SOURCE"] = True
75024
-
76517
-
75025
 Library("sample_counter_gn")
76518
 Library("socket_gn")
75026
diff --git third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build
76519
diff --git third_party/libwebrtc/rtc_base/socket_server_gn/moz.build third_party/libwebrtc/rtc_base/socket_server_gn/moz.build
75027
index 2cd722b53276..bccf19feeb19 100644
76520
index 03c9f6c70a20..69625cc108ab 100644
75028
--- third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build
76521
--- third_party/libwebrtc/rtc_base/socket_server_gn/moz.build
75029
+++ third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build
76522
+++ third_party/libwebrtc/rtc_base/socket_server_gn/moz.build
75030
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76523
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75031
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76524
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75032
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
76525
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 75048-75054 index 2cd722b53276..bccf19feeb19 100644 Link Here
75048
 
76541
 
75049
 FINAL_LIBRARY = "webrtc"
76542
 FINAL_LIBRARY = "webrtc"
75050
 
76543
 
75051
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
76544
@@ -37,165 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
75052
 if CONFIG["MOZ_DEBUG"] == "1":
76545
 if CONFIG["MOZ_DEBUG"] == "1":
75053
 
76546
 
75054
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
76547
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 75067-75072 index 2cd722b53276..bccf19feeb19 100644 Link Here
75067
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
76560
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
75068
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76561
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75069
-
76562
-
76563
-    OS_LIBS += [
76564
-        "GLESv2",
76565
-        "log"
76566
-    ]
76567
-
75070
-if CONFIG["OS_TARGET"] == "Darwin":
76568
-if CONFIG["OS_TARGET"] == "Darwin":
75071
-
76569
-
75072
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76570
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 75132-75137 index 2cd722b53276..bccf19feeb19 100644 Link Here
75132
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
76630
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
75133
-    DEFINES["_WINDOWS"] = True
76631
-    DEFINES["_WINDOWS"] = True
75134
-    DEFINES["__STD_C"] = True
76632
-    DEFINES["__STD_C"] = True
76633
-
76634
-    OS_LIBS += [
76635
-        "crypt32",
76636
-        "iphlpapi",
76637
-        "secur32",
76638
-        "winmm"
76639
-    ]
75135
+    DEFINES["_DEBUG"] = True
76640
+    DEFINES["_DEBUG"] = True
75136
 
76641
 
75137
 if CONFIG["CPU_ARCH"] == "aarch64":
76642
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 75203-75213 index 2cd722b53276..bccf19feeb19 100644 Link Here
75203
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76708
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75204
-    DEFINES["_GNU_SOURCE"] = True
76709
-    DEFINES["_GNU_SOURCE"] = True
75205
-
76710
-
75206
 Library("sanitizer_gn")
76711
 Library("socket_server_gn")
75207
diff --git third_party/libwebrtc/rtc_base/socket_address_gn/moz.build third_party/libwebrtc/rtc_base/socket_address_gn/moz.build
76712
diff --git third_party/libwebrtc/rtc_base/stringutils_gn/moz.build third_party/libwebrtc/rtc_base/stringutils_gn/moz.build
75208
index 615800aaf567..e8fb17f6a5b9 100644
76713
index a28a8193e323..1ba4ab392fc0 100644
75209
--- third_party/libwebrtc/rtc_base/socket_address_gn/moz.build
76714
--- third_party/libwebrtc/rtc_base/stringutils_gn/moz.build
75210
+++ third_party/libwebrtc/rtc_base/socket_address_gn/moz.build
76715
+++ third_party/libwebrtc/rtc_base/stringutils_gn/moz.build
75211
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76716
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75212
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76717
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75213
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
76718
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 75229-75235 index 615800aaf567..e8fb17f6a5b9 100644 Link Here
75229
 
76734
 
75230
 FINAL_LIBRARY = "webrtc"
76735
 FINAL_LIBRARY = "webrtc"
75231
 
76736
 
75232
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
76737
@@ -45,161 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
75233
 if CONFIG["MOZ_DEBUG"] == "1":
76738
 if CONFIG["MOZ_DEBUG"] == "1":
75234
 
76739
 
75235
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
76740
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 75249-75255 index 615800aaf567..e8fb17f6a5b9 100644 Link Here
75249
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76754
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75250
-
76755
-
75251
-    OS_LIBS += [
76756
-    OS_LIBS += [
75252
-        "GLESv2",
75253
-        "log"
76757
-        "log"
75254
-    ]
76758
-    ]
75255
-
76759
-
Lines 75318-75330 index 615800aaf567..e8fb17f6a5b9 100644 Link Here
75318
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
76822
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
75319
-    DEFINES["_WINDOWS"] = True
76823
-    DEFINES["_WINDOWS"] = True
75320
-    DEFINES["__STD_C"] = True
76824
-    DEFINES["__STD_C"] = True
75321
-
75322
-    OS_LIBS += [
75323
-        "crypt32",
75324
-        "iphlpapi",
75325
-        "secur32",
75326
-        "winmm"
75327
-    ]
75328
+    DEFINES["_DEBUG"] = True
76825
+    DEFINES["_DEBUG"] = True
75329
 
76826
 
75330
 if CONFIG["CPU_ARCH"] == "aarch64":
76827
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 75400-75410 index 615800aaf567..e8fb17f6a5b9 100644 Link Here
75400
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76897
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75401
-    DEFINES["_GNU_SOURCE"] = True
76898
-    DEFINES["_GNU_SOURCE"] = True
75402
-
76899
-
75403
 Library("socket_address_gn")
76900
 Library("stringutils_gn")
75404
diff --git third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build
76901
diff --git third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build
75405
index c8ec2004a876..5c8f28025406 100644
76902
index 9122864ca6c2..a3b46c212962 100644
75406
--- third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build
76903
--- third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build
75407
+++ third_party/libwebrtc/rtc_base/socket_factory_gn/moz.build
76904
+++ third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build
75408
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76905
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75409
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76906
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75410
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
76907
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 75426-75432 index c8ec2004a876..5c8f28025406 100644 Link Here
75426
 
76923
 
75427
 FINAL_LIBRARY = "webrtc"
76924
 FINAL_LIBRARY = "webrtc"
75428
 
76925
 
75429
@@ -37,165 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
76926
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
75430
 if CONFIG["MOZ_DEBUG"] == "1":
76927
 if CONFIG["MOZ_DEBUG"] == "1":
75431
 
76928
 
75432
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
76929
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 75446-75452 index c8ec2004a876..5c8f28025406 100644 Link Here
75446
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76943
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75447
-
76944
-
75448
-    OS_LIBS += [
76945
-    OS_LIBS += [
75449
-        "GLESv2",
75450
-        "log"
76946
-        "log"
75451
-    ]
76947
-    ]
75452
-
76948
-
Lines 75515-75527 index c8ec2004a876..5c8f28025406 100644 Link Here
75515
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
77011
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
75516
-    DEFINES["_WINDOWS"] = True
77012
-    DEFINES["_WINDOWS"] = True
75517
-    DEFINES["__STD_C"] = True
77013
-    DEFINES["__STD_C"] = True
75518
-
75519
-    OS_LIBS += [
75520
-        "crypt32",
75521
-        "iphlpapi",
75522
-        "secur32",
75523
-        "winmm"
75524
-    ]
75525
+    DEFINES["_DEBUG"] = True
77014
+    DEFINES["_DEBUG"] = True
75526
 
77015
 
75527
 if CONFIG["CPU_ARCH"] == "aarch64":
77016
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 75593-75603 index c8ec2004a876..5c8f28025406 100644 Link Here
75593
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77082
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75594
-    DEFINES["_GNU_SOURCE"] = True
77083
-    DEFINES["_GNU_SOURCE"] = True
75595
-
77084
-
75596
 Library("socket_factory_gn")
77085
 Library("swap_queue_gn")
75597
diff --git third_party/libwebrtc/rtc_base/socket_gn/moz.build third_party/libwebrtc/rtc_base/socket_gn/moz.build
77086
diff --git third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build
75598
index a77aa3b56628..6e658e258670 100644
77087
index 60b12d104404..243fe58a51a8 100644
75599
--- third_party/libwebrtc/rtc_base/socket_gn/moz.build
77088
--- third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build
75600
+++ third_party/libwebrtc/rtc_base/socket_gn/moz.build
77089
+++ third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build
75601
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77090
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75602
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77091
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75603
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
77092
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 75619-75625 index a77aa3b56628..6e658e258670 100644 Link Here
75619
 
77108
 
75620
 FINAL_LIBRARY = "webrtc"
77109
 FINAL_LIBRARY = "webrtc"
75621
 
77110
 
75622
@@ -41,169 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
77111
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
75623
 if CONFIG["MOZ_DEBUG"] == "1":
77112
 if CONFIG["MOZ_DEBUG"] == "1":
75624
 
77113
 
75625
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
77114
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 75639-75645 index a77aa3b56628..6e658e258670 100644 Link Here
75639
-    DEFINES["__STDC_FORMAT_MACROS"] = True
77128
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75640
-
77129
-
75641
-    OS_LIBS += [
77130
-    OS_LIBS += [
75642
-        "GLESv2",
75643
-        "log"
77131
-        "log"
75644
-    ]
77132
-    ]
75645
-
77133
-
Lines 75708-75720 index a77aa3b56628..6e658e258670 100644 Link Here
75708
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
77196
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
75709
-    DEFINES["_WINDOWS"] = True
77197
-    DEFINES["_WINDOWS"] = True
75710
-    DEFINES["__STD_C"] = True
77198
-    DEFINES["__STD_C"] = True
75711
-
75712
-    OS_LIBS += [
75713
-        "crypt32",
75714
-        "iphlpapi",
75715
-        "secur32",
75716
-        "winmm"
75717
-    ]
75718
+    DEFINES["_DEBUG"] = True
77199
+    DEFINES["_DEBUG"] = True
75719
 
77200
 
75720
 if CONFIG["CPU_ARCH"] == "aarch64":
77201
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 75724-75733 index a77aa3b56628..6e658e258670 100644 Link Here
75724
 
77205
 
75725
-if CONFIG["CPU_ARCH"] == "arm":
77206
-if CONFIG["CPU_ARCH"] == "arm":
75726
-
77207
-
75727
-    CXXFLAGS += [
75728
-        "-mfpu=neon"
75729
-    ]
75730
-
75731
-    DEFINES["WEBRTC_ARCH_ARM"] = True
77208
-    DEFINES["WEBRTC_ARCH_ARM"] = True
75732
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
77209
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
75733
-    DEFINES["WEBRTC_HAS_NEON"] = True
77210
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 75790-75800 index a77aa3b56628..6e658e258670 100644 Link Here
75790
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77267
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75791
-    DEFINES["_GNU_SOURCE"] = True
77268
-    DEFINES["_GNU_SOURCE"] = True
75792
-
77269
-
75793
 Library("socket_gn")
77270
 Library("mutex_gn")
75794
diff --git third_party/libwebrtc/rtc_base/socket_server_gn/moz.build third_party/libwebrtc/rtc_base/socket_server_gn/moz.build
77271
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
75795
index 03c9f6c70a20..69625cc108ab 100644
77272
index e930dc4eb87f..8ccfb074dfaf 100644
75796
--- third_party/libwebrtc/rtc_base/socket_server_gn/moz.build
77273
--- third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build
75797
+++ third_party/libwebrtc/rtc_base/socket_server_gn/moz.build
77274
+++ third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build
75798
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77275
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75799
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77276
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75800
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
77277
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 75816-75822 index 03c9f6c70a20..69625cc108ab 100644 Link Here
75816
 
77293
 
75817
 FINAL_LIBRARY = "webrtc"
77294
 FINAL_LIBRARY = "webrtc"
75818
 
77295
 
75819
@@ -37,165 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
77296
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
75820
 if CONFIG["MOZ_DEBUG"] == "1":
77297
 if CONFIG["MOZ_DEBUG"] == "1":
75821
 
77298
 
75822
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
77299
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 75836-75842 index 03c9f6c70a20..69625cc108ab 100644 Link Here
75836
-    DEFINES["__STDC_FORMAT_MACROS"] = True
77313
-    DEFINES["__STDC_FORMAT_MACROS"] = True
75837
-
77314
-
75838
-    OS_LIBS += [
77315
-    OS_LIBS += [
75839
-        "GLESv2",
75840
-        "log"
77316
-        "log"
75841
-    ]
77317
-    ]
75842
-
77318
-
Lines 75905-75917 index 03c9f6c70a20..69625cc108ab 100644 Link Here
75905
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
77381
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
75906
-    DEFINES["_WINDOWS"] = True
77382
-    DEFINES["_WINDOWS"] = True
75907
-    DEFINES["__STD_C"] = True
77383
-    DEFINES["__STD_C"] = True
75908
-
75909
-    OS_LIBS += [
75910
-        "crypt32",
75911
-        "iphlpapi",
75912
-        "secur32",
75913
-        "winmm"
75914
-    ]
75915
+    DEFINES["_DEBUG"] = True
77384
+    DEFINES["_DEBUG"] = True
75916
 
77385
 
75917
 if CONFIG["CPU_ARCH"] == "aarch64":
77386
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 75921-75926 index 03c9f6c70a20..69625cc108ab 100644 Link Here
75921
 
77390
 
75922
-if CONFIG["CPU_ARCH"] == "arm":
77391
-if CONFIG["CPU_ARCH"] == "arm":
75923
-
77392
-
77393
-    CXXFLAGS += [
77394
-        "-mfpu=neon"
77395
-    ]
77396
-
75924
-    DEFINES["WEBRTC_ARCH_ARM"] = True
77397
-    DEFINES["WEBRTC_ARCH_ARM"] = True
75925
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
77398
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
75926
-    DEFINES["WEBRTC_HAS_NEON"] = True
77399
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 75983-75993 index 03c9f6c70a20..69625cc108ab 100644 Link Here
75983
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77456
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
75984
-    DEFINES["_GNU_SOURCE"] = True
77457
-    DEFINES["_GNU_SOURCE"] = True
75985
-
77458
-
75986
 Library("socket_server_gn")
77459
 Library("sequence_checker_internal_gn")
75987
diff --git third_party/libwebrtc/rtc_base/stringutils_gn/moz.build third_party/libwebrtc/rtc_base/stringutils_gn/moz.build
77460
diff --git third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build
75988
index a28a8193e323..1ba4ab392fc0 100644
77461
index c1c194d69d18..331e816fc2e4 100644
75989
--- third_party/libwebrtc/rtc_base/stringutils_gn/moz.build
77462
--- third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build
75990
+++ third_party/libwebrtc/rtc_base/stringutils_gn/moz.build
77463
+++ third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build
75991
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77464
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
75992
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77465
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
75993
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
77466
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 76009-76015 index a28a8193e323..1ba4ab392fc0 100644 Link Here
76009
 
77482
 
76010
 FINAL_LIBRARY = "webrtc"
77483
 FINAL_LIBRARY = "webrtc"
76011
 
77484
 
76012
@@ -45,161 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
77485
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
76013
 if CONFIG["MOZ_DEBUG"] == "1":
77486
 if CONFIG["MOZ_DEBUG"] == "1":
76014
 
77487
 
76015
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
77488
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 76028-76037 index a28a8193e323..1ba4ab392fc0 100644 Link Here
76028
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
77501
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
76029
-    DEFINES["__STDC_FORMAT_MACROS"] = True
77502
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76030
-
77503
-
76031
-    OS_LIBS += [
76032
-        "log"
76033
-    ]
76034
-
76035
-if CONFIG["OS_TARGET"] == "Darwin":
77504
-if CONFIG["OS_TARGET"] == "Darwin":
76036
-
77505
-
76037
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77506
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 76172-76182 index a28a8193e323..1ba4ab392fc0 100644 Link Here
76172
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77641
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76173
-    DEFINES["_GNU_SOURCE"] = True
77642
-    DEFINES["_GNU_SOURCE"] = True
76174
-
77643
-
76175
 Library("stringutils_gn")
77644
 Library("yield_gn")
76176
diff --git third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build
77645
diff --git third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build
76177
index 9122864ca6c2..a3b46c212962 100644
77646
index 3f9531ff334a..32428dc7e390 100644
76178
--- third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build
77647
--- third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build
76179
+++ third_party/libwebrtc/rtc_base/swap_queue_gn/moz.build
77648
+++ third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build
76180
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77649
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76181
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77650
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76182
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
77651
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 76198-76204 index 9122864ca6c2..a3b46c212962 100644 Link Here
76198
 
77667
 
76199
 FINAL_LIBRARY = "webrtc"
77668
 FINAL_LIBRARY = "webrtc"
76200
 
77669
 
76201
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
77670
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
76202
 if CONFIG["MOZ_DEBUG"] == "1":
77671
 if CONFIG["MOZ_DEBUG"] == "1":
76203
 
77672
 
76204
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
77673
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 76295-76300 index 9122864ca6c2..a3b46c212962 100644 Link Here
76295
 
77764
 
76296
-if CONFIG["CPU_ARCH"] == "arm":
77765
-if CONFIG["CPU_ARCH"] == "arm":
76297
-
77766
-
77767
-    CXXFLAGS += [
77768
-        "-mfpu=neon"
77769
-    ]
77770
-
76298
-    DEFINES["WEBRTC_ARCH_ARM"] = True
77771
-    DEFINES["WEBRTC_ARCH_ARM"] = True
76299
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
77772
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
76300
-    DEFINES["WEBRTC_HAS_NEON"] = True
77773
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 76357-76367 index 9122864ca6c2..a3b46c212962 100644 Link Here
76357
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77830
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76358
-    DEFINES["_GNU_SOURCE"] = True
77831
-    DEFINES["_GNU_SOURCE"] = True
76359
-
77832
-
76360
 Library("swap_queue_gn")
77833
 Library("yield_policy_gn")
76361
diff --git third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build
77834
diff --git third_party/libwebrtc/rtc_base/system/arch_gn/moz.build third_party/libwebrtc/rtc_base/system/arch_gn/moz.build
76362
index 60b12d104404..243fe58a51a8 100644
77835
index 11ad1ecba2b2..19fddb84d994 100644
76363
--- third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build
77836
--- third_party/libwebrtc/rtc_base/system/arch_gn/moz.build
76364
+++ third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build
77837
+++ third_party/libwebrtc/rtc_base/system/arch_gn/moz.build
76365
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77838
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76366
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77839
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76367
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
77840
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 76383-76389 index 60b12d104404..243fe58a51a8 100644 Link Here
76383
 
77856
 
76384
 FINAL_LIBRARY = "webrtc"
77857
 FINAL_LIBRARY = "webrtc"
76385
 
77858
 
76386
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
77859
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
76387
 if CONFIG["MOZ_DEBUG"] == "1":
77860
 if CONFIG["MOZ_DEBUG"] == "1":
76388
 
77861
 
76389
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
77862
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 76402-76411 index 60b12d104404..243fe58a51a8 100644 Link Here
76402
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
77875
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
76403
-    DEFINES["__STDC_FORMAT_MACROS"] = True
77876
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76404
-
77877
-
76405
-    OS_LIBS += [
76406
-        "log"
76407
-    ]
76408
-
76409
-if CONFIG["OS_TARGET"] == "Darwin":
77878
-if CONFIG["OS_TARGET"] == "Darwin":
76410
-
77879
-
76411
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77880
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 76542-76552 index 60b12d104404..243fe58a51a8 100644 Link Here
76542
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78011
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76543
-    DEFINES["_GNU_SOURCE"] = True
78012
-    DEFINES["_GNU_SOURCE"] = True
76544
-
78013
-
76545
 Library("mutex_gn")
78014
 Library("arch_gn")
76546
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
78015
diff --git third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build
76547
index e930dc4eb87f..8ccfb074dfaf 100644
78016
deleted file mode 100644
76548
--- third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build
78017
index b9564ebb31f8..000000000000
76549
+++ third_party/libwebrtc/rtc_base/synchronization/sequence_checker_internal_gn/moz.build
78018
--- third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build
78019
+++ /dev/null
78020
@@ -1,79 +0,0 @@
78021
-# This Source Code Form is subject to the terms of the Mozilla Public
78022
-# License, v. 2.0. If a copy of the MPL was not distributed with this
78023
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
78024
-
78025
-
78026
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
78027
-  ### DO NOT edit it by hand.                                       ###
78028
-
78029
-COMPILE_FLAGS["OS_INCLUDES"] = []
78030
-AllowCompilerWarnings()
78031
-
78032
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78033
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
78034
-DEFINES["RTC_ENABLE_VP9"] = True
78035
-DEFINES["WEBRTC_ARCH_ARM"] = True
78036
-DEFINES["WEBRTC_ARCH_ARM_V7"] = True
78037
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
78038
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
78039
-DEFINES["WEBRTC_HAS_NEON"] = True
78040
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
78041
-DEFINES["WEBRTC_LINUX"] = True
78042
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
78043
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
78044
-DEFINES["WEBRTC_POSIX"] = True
78045
-DEFINES["_GNU_SOURCE"] = True
78046
-DEFINES["__STDC_CONSTANT_MACROS"] = True
78047
-DEFINES["__STDC_FORMAT_MACROS"] = True
78048
-
78049
-FINAL_LIBRARY = "webrtc"
78050
-
78051
-
78052
-LOCAL_INCLUDES += [
78053
-    "!/ipc/ipdl/_ipdlheaders",
78054
-    "/ipc/chromium/src",
78055
-    "/third_party/libwebrtc/",
78056
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
78057
-    "/tools/profiler/public"
78058
-]
78059
-
78060
-if not CONFIG["MOZ_DEBUG"]:
78061
-
78062
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
78063
-    DEFINES["NDEBUG"] = True
78064
-    DEFINES["NVALGRIND"] = True
78065
-
78066
-if CONFIG["MOZ_DEBUG"] == "1":
78067
-
78068
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
78069
-    DEFINES["_DEBUG"] = True
78070
-
78071
-if CONFIG["OS_TARGET"] == "Android":
78072
-
78073
-    DEFINES["ANDROID"] = True
78074
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
78075
-    DEFINES["HAVE_SYS_UIO_H"] = True
78076
-    DEFINES["WEBRTC_ANDROID"] = True
78077
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
78078
-
78079
-    OS_LIBS += [
78080
-        "android_support",
78081
-        "unwind"
78082
-    ]
78083
-
78084
-if CONFIG["OS_TARGET"] == "Linux":
78085
-
78086
-    DEFINES["USE_AURA"] = "1"
78087
-    DEFINES["USE_GLIB"] = "1"
78088
-    DEFINES["USE_NSS_CERTS"] = "1"
78089
-    DEFINES["USE_OZONE"] = "1"
78090
-    DEFINES["USE_UDEV"] = True
78091
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
78092
-    DEFINES["_LARGEFILE64_SOURCE"] = True
78093
-    DEFINES["_LARGEFILE_SOURCE"] = True
78094
-
78095
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
78096
-
78097
-    DEFINES["USE_X11"] = "1"
78098
-
78099
-Library("asm_defines_gn")
78100
diff --git third_party/libwebrtc/rtc_base/system/assume_gn/moz.build third_party/libwebrtc/rtc_base/system/assume_gn/moz.build
78101
index 890c29b07adb..ad43616a002b 100644
78102
--- third_party/libwebrtc/rtc_base/system/assume_gn/moz.build
78103
+++ third_party/libwebrtc/rtc_base/system/assume_gn/moz.build
76550
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78104
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76551
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78105
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76552
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
78106
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 76568-76574 index e930dc4eb87f..8ccfb074dfaf 100644 Link Here
76568
 
78122
 
76569
 FINAL_LIBRARY = "webrtc"
78123
 FINAL_LIBRARY = "webrtc"
76570
 
78124
 
76571
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
78125
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
76572
 if CONFIG["MOZ_DEBUG"] == "1":
78126
 if CONFIG["MOZ_DEBUG"] == "1":
76573
 
78127
 
76574
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
78128
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 76587-76596 index e930dc4eb87f..8ccfb074dfaf 100644 Link Here
76587
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78141
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
76588
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78142
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76589
-
78143
-
76590
-    OS_LIBS += [
76591
-        "log"
76592
-    ]
76593
-
76594
-if CONFIG["OS_TARGET"] == "Darwin":
78144
-if CONFIG["OS_TARGET"] == "Darwin":
76595
-
78145
-
76596
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78146
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 76665-76674 index e930dc4eb87f..8ccfb074dfaf 100644 Link Here
76665
 
78215
 
76666
-if CONFIG["CPU_ARCH"] == "arm":
78216
-if CONFIG["CPU_ARCH"] == "arm":
76667
-
78217
-
76668
-    CXXFLAGS += [
76669
-        "-mfpu=neon"
76670
-    ]
76671
-
76672
-    DEFINES["WEBRTC_ARCH_ARM"] = True
78218
-    DEFINES["WEBRTC_ARCH_ARM"] = True
76673
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
78219
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
76674
-    DEFINES["WEBRTC_HAS_NEON"] = True
78220
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 76731-76741 index e930dc4eb87f..8ccfb074dfaf 100644 Link Here
76731
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78277
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76732
-    DEFINES["_GNU_SOURCE"] = True
78278
-    DEFINES["_GNU_SOURCE"] = True
76733
-
78279
-
76734
 Library("sequence_checker_internal_gn")
78280
 Library("assume_gn")
76735
diff --git third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build
78281
diff --git third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build
76736
index c1c194d69d18..331e816fc2e4 100644
78282
deleted file mode 100644
76737
--- third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build
78283
index 9885a84ac85a..000000000000
76738
+++ third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build
78284
--- third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build
78285
+++ /dev/null
78286
@@ -1,62 +0,0 @@
78287
-# This Source Code Form is subject to the terms of the Mozilla Public
78288
-# License, v. 2.0. If a copy of the MPL was not distributed with this
78289
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
78290
-
78291
-
78292
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
78293
-  ### DO NOT edit it by hand.                                       ###
78294
-
78295
-CMMFLAGS += [
78296
-    "-fobjc-arc"
78297
-]
78298
-
78299
-COMPILE_FLAGS["OS_INCLUDES"] = []
78300
-AllowCompilerWarnings()
78301
-
78302
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78303
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
78304
-DEFINES["RTC_ENABLE_VP9"] = True
78305
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
78306
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
78307
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
78308
-DEFINES["WEBRTC_MAC"] = True
78309
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
78310
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
78311
-DEFINES["WEBRTC_POSIX"] = True
78312
-DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
78313
-DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
78314
-DEFINES["__STDC_CONSTANT_MACROS"] = True
78315
-DEFINES["__STDC_FORMAT_MACROS"] = True
78316
-
78317
-FINAL_LIBRARY = "webrtc"
78318
-
78319
-
78320
-LOCAL_INCLUDES += [
78321
-    "!/ipc/ipdl/_ipdlheaders",
78322
-    "/ipc/chromium/src",
78323
-    "/third_party/libwebrtc/",
78324
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
78325
-    "/tools/profiler/public"
78326
-]
78327
-
78328
-UNIFIED_SOURCES += [
78329
-    "/third_party/libwebrtc/rtc_base/system/cocoa_threading.mm"
78330
-]
78331
-
78332
-if not CONFIG["MOZ_DEBUG"]:
78333
-
78334
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
78335
-    DEFINES["NDEBUG"] = True
78336
-    DEFINES["NVALGRIND"] = True
78337
-
78338
-if CONFIG["MOZ_DEBUG"] == "1":
78339
-
78340
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
78341
-    DEFINES["_DEBUG"] = True
78342
-
78343
-if CONFIG["CPU_ARCH"] == "aarch64":
78344
-
78345
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
78346
-    DEFINES["WEBRTC_HAS_NEON"] = True
78347
-
78348
-Library("cocoa_threading_gn")
78349
diff --git third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build
78350
index 7dcc5ecaeca6..b4c9c40e90d0 100644
78351
--- third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build
78352
+++ third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build
76739
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78353
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76740
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78354
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76741
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
78355
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 76757-76763 index c1c194d69d18..331e816fc2e4 100644 Link Here
76757
 
78371
 
76758
 FINAL_LIBRARY = "webrtc"
78372
 FINAL_LIBRARY = "webrtc"
76759
 
78373
 
76760
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
78374
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
76761
 if CONFIG["MOZ_DEBUG"] == "1":
78375
 if CONFIG["MOZ_DEBUG"] == "1":
76762
 
78376
 
76763
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
78377
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 76776-76781 index c1c194d69d18..331e816fc2e4 100644 Link Here
76776
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78390
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
76777
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78391
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76778
-
78392
-
78393
-    OS_LIBS += [
78394
-        "log"
78395
-    ]
78396
-
76779
-if CONFIG["OS_TARGET"] == "Darwin":
78397
-if CONFIG["OS_TARGET"] == "Darwin":
76780
-
78398
-
76781
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78399
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 76916-76926 index c1c194d69d18..331e816fc2e4 100644 Link Here
76916
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78534
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
76917
-    DEFINES["_GNU_SOURCE"] = True
78535
-    DEFINES["_GNU_SOURCE"] = True
76918
-
78536
-
76919
 Library("yield_gn")
78537
 Library("file_wrapper_gn")
76920
diff --git third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build
78538
diff --git third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build
76921
index 3f9531ff334a..32428dc7e390 100644
78539
index 53f44fea711e..152615e8312b 100644
76922
--- third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build
78540
--- third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build
76923
+++ third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build
78541
+++ third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build
76924
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78542
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
76925
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78543
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
76926
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
78544
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 76942-76948 index 3f9531ff334a..32428dc7e390 100644 Link Here
76942
 
78560
 
76943
 FINAL_LIBRARY = "webrtc"
78561
 FINAL_LIBRARY = "webrtc"
76944
 
78562
 
76945
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
78563
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
76946
 if CONFIG["MOZ_DEBUG"] == "1":
78564
 if CONFIG["MOZ_DEBUG"] == "1":
76947
 
78565
 
76948
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
78566
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 76961-76970 index 3f9531ff334a..32428dc7e390 100644 Link Here
76961
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78579
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
76962
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78580
-    DEFINES["__STDC_FORMAT_MACROS"] = True
76963
-
78581
-
76964
-    OS_LIBS += [
76965
-        "log"
76966
-    ]
76967
-
76968
-if CONFIG["OS_TARGET"] == "Darwin":
78582
-if CONFIG["OS_TARGET"] == "Darwin":
76969
-
78583
-
76970
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78584
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 77039-77048 index 3f9531ff334a..32428dc7e390 100644 Link Here
77039
 
78653
 
77040
-if CONFIG["CPU_ARCH"] == "arm":
78654
-if CONFIG["CPU_ARCH"] == "arm":
77041
-
78655
-
77042
-    CXXFLAGS += [
77043
-        "-mfpu=neon"
77044
-    ]
77045
-
77046
-    DEFINES["WEBRTC_ARCH_ARM"] = True
78656
-    DEFINES["WEBRTC_ARCH_ARM"] = True
77047
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
78657
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
77048
-    DEFINES["WEBRTC_HAS_NEON"] = True
78658
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 77105-77115 index 3f9531ff334a..32428dc7e390 100644 Link Here
77105
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78715
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77106
-    DEFINES["_GNU_SOURCE"] = True
78716
-    DEFINES["_GNU_SOURCE"] = True
77107
-
78717
-
77108
 Library("yield_policy_gn")
78718
 Library("ignore_warnings_gn")
77109
diff --git third_party/libwebrtc/rtc_base/system/arch_gn/moz.build third_party/libwebrtc/rtc_base/system/arch_gn/moz.build
78719
diff --git third_party/libwebrtc/rtc_base/system/inline_gn/moz.build third_party/libwebrtc/rtc_base/system/inline_gn/moz.build
77110
index 11ad1ecba2b2..19fddb84d994 100644
78720
index e8568c6f63ee..4f6d21fda069 100644
77111
--- third_party/libwebrtc/rtc_base/system/arch_gn/moz.build
78721
--- third_party/libwebrtc/rtc_base/system/inline_gn/moz.build
77112
+++ third_party/libwebrtc/rtc_base/system/arch_gn/moz.build
78722
+++ third_party/libwebrtc/rtc_base/system/inline_gn/moz.build
77113
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78723
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77114
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78724
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77115
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
78725
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 77286-77381 index 11ad1ecba2b2..19fddb84d994 100644 Link Here
77286
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78896
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77287
-    DEFINES["_GNU_SOURCE"] = True
78897
-    DEFINES["_GNU_SOURCE"] = True
77288
-
78898
-
77289
 Library("arch_gn")
78899
 Library("inline_gn")
77290
diff --git third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build
78900
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
77291
deleted file mode 100644
78901
index f8920b35d245..ca1224c0f3ed 100644
77292
index b9564ebb31f8..000000000000
78902
--- third_party/libwebrtc/rtc_base/system/no_unique_address_gn/moz.build
77293
--- third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build
78903
+++ third_party/libwebrtc/rtc_base/system/no_unique_address_gn/moz.build
77294
+++ /dev/null
77295
@@ -1,79 +0,0 @@
77296
-# This Source Code Form is subject to the terms of the Mozilla Public
77297
-# License, v. 2.0. If a copy of the MPL was not distributed with this
77298
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
77299
-
77300
-
77301
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
77302
-  ### DO NOT edit it by hand.                                       ###
77303
-
77304
-COMPILE_FLAGS["OS_INCLUDES"] = []
77305
-AllowCompilerWarnings()
77306
-
77307
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77308
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
77309
-DEFINES["RTC_ENABLE_VP9"] = True
77310
-DEFINES["WEBRTC_ARCH_ARM"] = True
77311
-DEFINES["WEBRTC_ARCH_ARM_V7"] = True
77312
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
77313
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
77314
-DEFINES["WEBRTC_HAS_NEON"] = True
77315
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
77316
-DEFINES["WEBRTC_LINUX"] = True
77317
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
77318
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
77319
-DEFINES["WEBRTC_POSIX"] = True
77320
-DEFINES["_GNU_SOURCE"] = True
77321
-DEFINES["__STDC_CONSTANT_MACROS"] = True
77322
-DEFINES["__STDC_FORMAT_MACROS"] = True
77323
-
77324
-FINAL_LIBRARY = "webrtc"
77325
-
77326
-
77327
-LOCAL_INCLUDES += [
77328
-    "!/ipc/ipdl/_ipdlheaders",
77329
-    "/ipc/chromium/src",
77330
-    "/third_party/libwebrtc/",
77331
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
77332
-    "/tools/profiler/public"
77333
-]
77334
-
77335
-if not CONFIG["MOZ_DEBUG"]:
77336
-
77337
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
77338
-    DEFINES["NDEBUG"] = True
77339
-    DEFINES["NVALGRIND"] = True
77340
-
77341
-if CONFIG["MOZ_DEBUG"] == "1":
77342
-
77343
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
77344
-    DEFINES["_DEBUG"] = True
77345
-
77346
-if CONFIG["OS_TARGET"] == "Android":
77347
-
77348
-    DEFINES["ANDROID"] = True
77349
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
77350
-    DEFINES["HAVE_SYS_UIO_H"] = True
77351
-    DEFINES["WEBRTC_ANDROID"] = True
77352
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
77353
-
77354
-    OS_LIBS += [
77355
-        "android_support",
77356
-        "unwind"
77357
-    ]
77358
-
77359
-if CONFIG["OS_TARGET"] == "Linux":
77360
-
77361
-    DEFINES["USE_AURA"] = "1"
77362
-    DEFINES["USE_GLIB"] = "1"
77363
-    DEFINES["USE_NSS_CERTS"] = "1"
77364
-    DEFINES["USE_OZONE"] = "1"
77365
-    DEFINES["USE_UDEV"] = True
77366
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
77367
-    DEFINES["_LARGEFILE64_SOURCE"] = True
77368
-    DEFINES["_LARGEFILE_SOURCE"] = True
77369
-
77370
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
77371
-
77372
-    DEFINES["USE_X11"] = "1"
77373
-
77374
-Library("asm_defines_gn")
77375
diff --git third_party/libwebrtc/rtc_base/system/assume_gn/moz.build third_party/libwebrtc/rtc_base/system/assume_gn/moz.build
77376
index 890c29b07adb..ad43616a002b 100644
77377
--- third_party/libwebrtc/rtc_base/system/assume_gn/moz.build
77378
+++ third_party/libwebrtc/rtc_base/system/assume_gn/moz.build
77379
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78904
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77380
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78905
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77381
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
78906
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 77552-77630 index 890c29b07adb..ad43616a002b 100644 Link Here
77552
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79077
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77553
-    DEFINES["_GNU_SOURCE"] = True
79078
-    DEFINES["_GNU_SOURCE"] = True
77554
-
79079
-
77555
 Library("assume_gn")
79080
 Library("no_unique_address_gn")
77556
diff --git third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build
79081
diff --git third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build
77557
deleted file mode 100644
79082
index beb3a726f2a4..0516b3ad4df8 100644
77558
index 9885a84ac85a..000000000000
79083
--- third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build
77559
--- third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build
79084
+++ third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build
77560
+++ /dev/null
77561
@@ -1,62 +0,0 @@
77562
-# This Source Code Form is subject to the terms of the Mozilla Public
77563
-# License, v. 2.0. If a copy of the MPL was not distributed with this
77564
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
77565
-
77566
-
77567
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
77568
-  ### DO NOT edit it by hand.                                       ###
77569
-
77570
-CMMFLAGS += [
77571
-    "-fobjc-arc"
77572
-]
77573
-
77574
-COMPILE_FLAGS["OS_INCLUDES"] = []
77575
-AllowCompilerWarnings()
77576
-
77577
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77578
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
77579
-DEFINES["RTC_ENABLE_VP9"] = True
77580
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
77581
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
77582
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
77583
-DEFINES["WEBRTC_MAC"] = True
77584
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
77585
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
77586
-DEFINES["WEBRTC_POSIX"] = True
77587
-DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
77588
-DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
77589
-DEFINES["__STDC_CONSTANT_MACROS"] = True
77590
-DEFINES["__STDC_FORMAT_MACROS"] = True
77591
-
77592
-FINAL_LIBRARY = "webrtc"
77593
-
77594
-
77595
-LOCAL_INCLUDES += [
77596
-    "!/ipc/ipdl/_ipdlheaders",
77597
-    "/ipc/chromium/src",
77598
-    "/third_party/libwebrtc/",
77599
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
77600
-    "/tools/profiler/public"
77601
-]
77602
-
77603
-UNIFIED_SOURCES += [
77604
-    "/third_party/libwebrtc/rtc_base/system/cocoa_threading.mm"
77605
-]
77606
-
77607
-if not CONFIG["MOZ_DEBUG"]:
77608
-
77609
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
77610
-    DEFINES["NDEBUG"] = True
77611
-    DEFINES["NVALGRIND"] = True
77612
-
77613
-if CONFIG["MOZ_DEBUG"] == "1":
77614
-
77615
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
77616
-    DEFINES["_DEBUG"] = True
77617
-
77618
-if CONFIG["CPU_ARCH"] == "aarch64":
77619
-
77620
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
77621
-    DEFINES["WEBRTC_HAS_NEON"] = True
77622
-
77623
-Library("cocoa_threading_gn")
77624
diff --git third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build
77625
index 7dcc5ecaeca6..b4c9c40e90d0 100644
77626
--- third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build
77627
+++ third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build
77628
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
79085
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77629
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79086
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77630
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
79087
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 77646-77652 index 7dcc5ecaeca6..b4c9c40e90d0 100644 Link Here
77646
 
79103
 
77647
 FINAL_LIBRARY = "webrtc"
79104
 FINAL_LIBRARY = "webrtc"
77648
 
79105
 
77649
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
79106
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
77650
 if CONFIG["MOZ_DEBUG"] == "1":
79107
 if CONFIG["MOZ_DEBUG"] == "1":
77651
 
79108
 
77652
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
79109
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 77665-77674 index 7dcc5ecaeca6..b4c9c40e90d0 100644 Link Here
77665
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
79122
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
77666
-    DEFINES["__STDC_FORMAT_MACROS"] = True
79123
-    DEFINES["__STDC_FORMAT_MACROS"] = True
77667
-
79124
-
77668
-    OS_LIBS += [
77669
-        "log"
77670
-    ]
77671
-
77672
-if CONFIG["OS_TARGET"] == "Darwin":
79125
-if CONFIG["OS_TARGET"] == "Darwin":
77673
-
79126
-
77674
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79127
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 77743-77752 index 7dcc5ecaeca6..b4c9c40e90d0 100644 Link Here
77743
 
79196
 
77744
-if CONFIG["CPU_ARCH"] == "arm":
79197
-if CONFIG["CPU_ARCH"] == "arm":
77745
-
79198
-
77746
-    CXXFLAGS += [
77747
-        "-mfpu=neon"
77748
-    ]
77749
-
77750
-    DEFINES["WEBRTC_ARCH_ARM"] = True
79199
-    DEFINES["WEBRTC_ARCH_ARM"] = True
77751
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
79200
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
77752
-    DEFINES["WEBRTC_HAS_NEON"] = True
79201
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 77809-77819 index 7dcc5ecaeca6..b4c9c40e90d0 100644 Link Here
77809
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79258
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77810
-    DEFINES["_GNU_SOURCE"] = True
79259
-    DEFINES["_GNU_SOURCE"] = True
77811
-
79260
-
77812
 Library("file_wrapper_gn")
79261
 Library("rtc_export_gn")
77813
diff --git third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build
79262
diff --git third_party/libwebrtc/rtc_base/system/unused_gn/moz.build third_party/libwebrtc/rtc_base/system/unused_gn/moz.build
77814
index 53f44fea711e..152615e8312b 100644
79263
index 2de3ad5f5565..70942ab98bbe 100644
77815
--- third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build
79264
--- third_party/libwebrtc/rtc_base/system/unused_gn/moz.build
77816
+++ third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build
79265
+++ third_party/libwebrtc/rtc_base/system/unused_gn/moz.build
77817
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
79266
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77818
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79267
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
77819
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
79268
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 77990-78000 index 53f44fea711e..152615e8312b 100644 Link Here
77990
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79439
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
77991
-    DEFINES["_GNU_SOURCE"] = True
79440
-    DEFINES["_GNU_SOURCE"] = True
77992
-
79441
-
77993
 Library("ignore_warnings_gn")
79442
 Library("unused_gn")
77994
diff --git third_party/libwebrtc/rtc_base/system/inline_gn/moz.build third_party/libwebrtc/rtc_base/system/inline_gn/moz.build
79443
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
77995
index e8568c6f63ee..4f6d21fda069 100644
79444
index 3a3b4a4b13cf..7594e86586e5 100644
77996
--- third_party/libwebrtc/rtc_base/system/inline_gn/moz.build
79445
--- third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build
77997
+++ third_party/libwebrtc/rtc_base/system/inline_gn/moz.build
79446
+++ third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build
77998
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
79447
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
77999
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79448
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78000
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
79449
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 78171-78181 index e8568c6f63ee..4f6d21fda069 100644 Link Here
78171
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79620
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78172
-    DEFINES["_GNU_SOURCE"] = True
79621
-    DEFINES["_GNU_SOURCE"] = True
78173
-
79622
-
78174
 Library("inline_gn")
79623
 Library("warn_current_thread_is_deadlocked_gn")
78175
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
79624
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
78176
index f8920b35d245..ca1224c0f3ed 100644
79625
index 46a6acae4497..06150956fbb0 100644
78177
--- third_party/libwebrtc/rtc_base/system/no_unique_address_gn/moz.build
79626
--- third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build
78178
+++ third_party/libwebrtc/rtc_base/system/no_unique_address_gn/moz.build
79627
+++ third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build
78179
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
79628
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78180
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79629
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78181
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
79630
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 78197-78203 index f8920b35d245..ca1224c0f3ed 100644 Link Here
78197
 
79646
 
78198
 FINAL_LIBRARY = "webrtc"
79647
 FINAL_LIBRARY = "webrtc"
78199
 
79648
 
78200
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
79649
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
78201
 if CONFIG["MOZ_DEBUG"] == "1":
79650
 if CONFIG["MOZ_DEBUG"] == "1":
78202
 
79651
 
78203
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
79652
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 78216-78402 index f8920b35d245..ca1224c0f3ed 100644 Link Here
78216
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
79665
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78217
-    DEFINES["__STDC_FORMAT_MACROS"] = True
79666
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78218
-
79667
-
78219
-if CONFIG["OS_TARGET"] == "Darwin":
78220
-
78221
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78222
-    DEFINES["WEBRTC_MAC"] = True
78223
-    DEFINES["WEBRTC_POSIX"] = True
78224
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
78225
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
78226
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78227
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78228
-
78229
-if CONFIG["OS_TARGET"] == "Linux":
78230
-
78231
-    DEFINES["USE_AURA"] = "1"
78232
-    DEFINES["USE_GLIB"] = "1"
78233
-    DEFINES["USE_NSS_CERTS"] = "1"
78234
-    DEFINES["USE_OZONE"] = "1"
78235
-    DEFINES["USE_UDEV"] = True
78236
-    DEFINES["WEBRTC_LINUX"] = True
78237
-    DEFINES["WEBRTC_POSIX"] = True
78238
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
78239
-    DEFINES["_LARGEFILE64_SOURCE"] = True
78240
-    DEFINES["_LARGEFILE_SOURCE"] = True
78241
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78242
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78243
-
78244
-if CONFIG["OS_TARGET"] == "OpenBSD":
78245
-
78246
-    DEFINES["USE_GLIB"] = "1"
78247
-    DEFINES["USE_OZONE"] = "1"
78248
-    DEFINES["USE_X11"] = "1"
78249
-    DEFINES["WEBRTC_BSD"] = True
78250
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78251
-    DEFINES["WEBRTC_POSIX"] = True
78252
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
78253
-    DEFINES["_LARGEFILE64_SOURCE"] = True
78254
-    DEFINES["_LARGEFILE_SOURCE"] = True
78255
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78256
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78257
-
78258
-if CONFIG["OS_TARGET"] == "WINNT":
78259
-
78260
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
78261
-    DEFINES["NOMINMAX"] = True
78262
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
78263
-    DEFINES["PSAPI_VERSION"] = "2"
78264
-    DEFINES["UNICODE"] = True
78265
-    DEFINES["USE_AURA"] = "1"
78266
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78267
-    DEFINES["WEBRTC_WIN"] = True
78268
-    DEFINES["WIN32"] = True
78269
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
78270
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
78271
-    DEFINES["WINVER"] = "0x0A00"
78272
-    DEFINES["_ATL_NO_OPENGL"] = True
78273
-    DEFINES["_CRT_RAND_S"] = True
78274
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
78275
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
78276
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
78277
-    DEFINES["_HAS_NODISCARD"] = True
78278
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
78279
-    DEFINES["_SECURE_ATL"] = True
78280
-    DEFINES["_UNICODE"] = True
78281
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
78282
-    DEFINES["_WINDOWS"] = True
78283
-    DEFINES["__STD_C"] = True
78284
+    DEFINES["_DEBUG"] = True
78285
 
78286
 if CONFIG["CPU_ARCH"] == "aarch64":
78287
 
78288
     DEFINES["WEBRTC_ARCH_ARM64"] = True
78289
     DEFINES["WEBRTC_HAS_NEON"] = True
78290
 
78291
-if CONFIG["CPU_ARCH"] == "arm":
78292
-
78293
-    DEFINES["WEBRTC_ARCH_ARM"] = True
78294
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
78295
-    DEFINES["WEBRTC_HAS_NEON"] = True
78296
-
78297
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
78298
-
78299
-    DEFINES["_DEBUG"] = True
78300
-
78301
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
78302
-
78303
-    DEFINES["_DEBUG"] = True
78304
-
78305
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
78306
-
78307
-    DEFINES["_DEBUG"] = True
78308
-
78309
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
78310
-
78311
-    DEFINES["_DEBUG"] = True
78312
-
78313
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
78314
-
78315
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
78316
-
78317
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
78318
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
78319
 
78320
     DEFINES["USE_X11"] = "1"
78321
 
78322
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
78323
-
78324
-    OS_LIBS += [
79668
-    OS_LIBS += [
78325
-        "android_support",
79669
-        "log"
78326
-        "unwind"
78327
-    ]
78328
-
78329
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
78330
-
78331
-    OS_LIBS += [
78332
-        "android_support"
78333
-    ]
79670
-    ]
78334
-
79671
-
78335
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
78336
-
78337
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78338
-    DEFINES["_GNU_SOURCE"] = True
78339
-
78340
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
78341
-
78342
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78343
-    DEFINES["_GNU_SOURCE"] = True
78344
-
78345
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
78346
-
78347
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78348
-    DEFINES["_GNU_SOURCE"] = True
78349
-
78350
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
78351
-
78352
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78353
-    DEFINES["_GNU_SOURCE"] = True
78354
-
78355
 Library("no_unique_address_gn")
78356
diff --git third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build
78357
index beb3a726f2a4..0516b3ad4df8 100644
78358
--- third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build
78359
+++ third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build
78360
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78361
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78362
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
78363
 DEFINES["RTC_ENABLE_VP9"] = True
78364
+DEFINES["USE_GLIB"] = "1"
78365
+DEFINES["USE_OZONE"] = "1"
78366
+DEFINES["WEBRTC_BSD"] = True
78367
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
78368
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
78369
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
78370
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
78371
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
78372
+DEFINES["WEBRTC_POSIX"] = True
78373
+DEFINES["_FILE_OFFSET_BITS"] = "64"
78374
+DEFINES["_LARGEFILE64_SOURCE"] = True
78375
+DEFINES["_LARGEFILE_SOURCE"] = True
78376
+DEFINES["__STDC_CONSTANT_MACROS"] = True
78377
+DEFINES["__STDC_FORMAT_MACROS"] = True
78378
 
78379
 FINAL_LIBRARY = "webrtc"
78380
 
78381
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
78382
 if CONFIG["MOZ_DEBUG"] == "1":
78383
 
78384
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
78385
-
78386
-if CONFIG["OS_TARGET"] == "Android":
78387
-
78388
-    DEFINES["ANDROID"] = True
78389
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
78390
-    DEFINES["HAVE_SYS_UIO_H"] = True
78391
-    DEFINES["WEBRTC_ANDROID"] = True
78392
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
78393
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78394
-    DEFINES["WEBRTC_LINUX"] = True
78395
-    DEFINES["WEBRTC_POSIX"] = True
78396
-    DEFINES["_GNU_SOURCE"] = True
78397
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78398
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78399
-
78400
-if CONFIG["OS_TARGET"] == "Darwin":
79672
-if CONFIG["OS_TARGET"] == "Darwin":
78401
-
79673
-
78402
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79674
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 78422-78427 index beb3a726f2a4..0516b3ad4df8 100644 Link Here
78422
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
79694
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78423
-    DEFINES["__STDC_FORMAT_MACROS"] = True
79695
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78424
-
79696
-
79697
-    OS_LIBS += [
79698
-        "rt"
79699
-    ]
79700
-
78425
-if CONFIG["OS_TARGET"] == "OpenBSD":
79701
-if CONFIG["OS_TARGET"] == "OpenBSD":
78426
-
79702
-
78427
-    DEFINES["USE_GLIB"] = "1"
79703
-    DEFINES["USE_GLIB"] = "1"
Lines 78462-78467 index beb3a726f2a4..0516b3ad4df8 100644 Link Here
78462
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
79738
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
78463
-    DEFINES["_WINDOWS"] = True
79739
-    DEFINES["_WINDOWS"] = True
78464
-    DEFINES["__STD_C"] = True
79740
-    DEFINES["__STD_C"] = True
79741
-
79742
-    OS_LIBS += [
79743
-        "crypt32",
79744
-        "iphlpapi",
79745
-        "secur32",
79746
-        "winmm"
79747
-    ]
78465
+    DEFINES["_DEBUG"] = True
79748
+    DEFINES["_DEBUG"] = True
78466
 
79749
 
78467
 if CONFIG["CPU_ARCH"] == "aarch64":
79750
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 78471-78476 index beb3a726f2a4..0516b3ad4df8 100644 Link Here
78471
 
79754
 
78472
-if CONFIG["CPU_ARCH"] == "arm":
79755
-if CONFIG["CPU_ARCH"] == "arm":
78473
-
79756
-
79757
-    CXXFLAGS += [
79758
-        "-mfpu=neon"
79759
-    ]
79760
-
78474
-    DEFINES["WEBRTC_ARCH_ARM"] = True
79761
-    DEFINES["WEBRTC_ARCH_ARM"] = True
78475
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
79762
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
78476
-    DEFINES["WEBRTC_HAS_NEON"] = True
79763
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 78533-78543 index beb3a726f2a4..0516b3ad4df8 100644 Link Here
78533
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79820
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78534
-    DEFINES["_GNU_SOURCE"] = True
79821
-    DEFINES["_GNU_SOURCE"] = True
78535
-
79822
-
78536
 Library("rtc_export_gn")
79823
 Library("repeating_task_gn")
78537
diff --git third_party/libwebrtc/rtc_base/system/unused_gn/moz.build third_party/libwebrtc/rtc_base/system/unused_gn/moz.build
79824
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
78538
index 2de3ad5f5565..70942ab98bbe 100644
79825
index c123810d56dc..a4bd3ae0e8d0 100644
78539
--- third_party/libwebrtc/rtc_base/system/unused_gn/moz.build
79826
--- third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build
78540
+++ third_party/libwebrtc/rtc_base/system/unused_gn/moz.build
79827
+++ third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build
78541
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
79828
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78542
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79829
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78543
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
79830
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 78559-78565 index 2de3ad5f5565..70942ab98bbe 100644 Link Here
78559
 
79846
 
78560
 FINAL_LIBRARY = "webrtc"
79847
 FINAL_LIBRARY = "webrtc"
78561
 
79848
 
78562
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
79849
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
78563
 if CONFIG["MOZ_DEBUG"] == "1":
79850
 if CONFIG["MOZ_DEBUG"] == "1":
78564
 
79851
 
78565
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
79852
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 78578-78583 index 2de3ad5f5565..70942ab98bbe 100644 Link Here
78578
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
79865
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
78579
-    DEFINES["__STDC_FORMAT_MACROS"] = True
79866
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78580
-
79867
-
79868
-    OS_LIBS += [
79869
-        "log"
79870
-    ]
79871
-
78581
-if CONFIG["OS_TARGET"] == "Darwin":
79872
-if CONFIG["OS_TARGET"] == "Darwin":
78582
-
79873
-
78583
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79874
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 78652-78657 index 2de3ad5f5565..70942ab98bbe 100644 Link Here
78652
 
79943
 
78653
-if CONFIG["CPU_ARCH"] == "arm":
79944
-if CONFIG["CPU_ARCH"] == "arm":
78654
-
79945
-
79946
-    CXXFLAGS += [
79947
-        "-mfpu=neon"
79948
-    ]
79949
-
78655
-    DEFINES["WEBRTC_ARCH_ARM"] = True
79950
-    DEFINES["WEBRTC_ARCH_ARM"] = True
78656
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
79951
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
78657
-    DEFINES["WEBRTC_HAS_NEON"] = True
79952
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 78714-78724 index 2de3ad5f5565..70942ab98bbe 100644 Link Here
78714
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80009
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78715
-    DEFINES["_GNU_SOURCE"] = True
80010
-    DEFINES["_GNU_SOURCE"] = True
78716
-
80011
-
78717
 Library("unused_gn")
80012
 Library("base64_gn")
78718
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
80013
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
78719
index 3a3b4a4b13cf..7594e86586e5 100644
80014
index 7d7f8864f3e8..f51bf20a585b 100644
78720
--- third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build
80015
--- third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build
78721
+++ third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build
80016
+++ third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build
78722
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80017
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78723
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80018
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78724
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
80019
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 78740-78746 index 3a3b4a4b13cf..7594e86586e5 100644 Link Here
78740
 
80035
 
78741
 FINAL_LIBRARY = "webrtc"
80036
 FINAL_LIBRARY = "webrtc"
78742
 
80037
 
78743
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
80038
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
78744
 if CONFIG["MOZ_DEBUG"] == "1":
80039
 if CONFIG["MOZ_DEBUG"] == "1":
78745
 
80040
 
78746
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80041
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 78833-78838 index 3a3b4a4b13cf..7594e86586e5 100644 Link Here
78833
 
80128
 
78834
-if CONFIG["CPU_ARCH"] == "arm":
80129
-if CONFIG["CPU_ARCH"] == "arm":
78835
-
80130
-
80131
-    CXXFLAGS += [
80132
-        "-mfpu=neon"
80133
-    ]
80134
-
78836
-    DEFINES["WEBRTC_ARCH_ARM"] = True
80135
-    DEFINES["WEBRTC_ARCH_ARM"] = True
78837
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
80136
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
78838
-    DEFINES["WEBRTC_HAS_NEON"] = True
80137
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 78895-78905 index 3a3b4a4b13cf..7594e86586e5 100644 Link Here
78895
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80194
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
78896
-    DEFINES["_GNU_SOURCE"] = True
80195
-    DEFINES["_GNU_SOURCE"] = True
78897
-
80196
-
78898
 Library("warn_current_thread_is_deadlocked_gn")
80197
 Library("sigslot_gn")
78899
diff --git third_party/libwebrtc/rtc_base/task_utils/pending_task_safety_flag_gn/moz.build third_party/libwebrtc/rtc_base/task_utils/pending_task_safety_flag_gn/moz.build
80198
diff --git third_party/libwebrtc/rtc_base/threading_gn/moz.build third_party/libwebrtc/rtc_base/threading_gn/moz.build
78900
index f330b9926bcf..90ba23ecca27 100644
80199
index 56207997aec8..903dc4e0bb74 100644
78901
--- third_party/libwebrtc/rtc_base/task_utils/pending_task_safety_flag_gn/moz.build
80200
--- third_party/libwebrtc/rtc_base/threading_gn/moz.build
78902
+++ third_party/libwebrtc/rtc_base/task_utils/pending_task_safety_flag_gn/moz.build
80201
+++ third_party/libwebrtc/rtc_base/threading_gn/moz.build
78903
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80202
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
78904
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80203
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
78905
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
80204
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 78921-78927 index f330b9926bcf..90ba23ecca27 100644 Link Here
78921
 
80220
 
78922
 FINAL_LIBRARY = "webrtc"
80221
 FINAL_LIBRARY = "webrtc"
78923
 
80222
 
78924
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
80223
@@ -47,169 +57,15 @@ if not CONFIG["MOZ_DEBUG"]:
78925
 if CONFIG["MOZ_DEBUG"] == "1":
80224
 if CONFIG["MOZ_DEBUG"] == "1":
78926
 
80225
 
78927
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80226
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 78941-78946 index f330b9926bcf..90ba23ecca27 100644 Link Here
78941
-    DEFINES["__STDC_FORMAT_MACROS"] = True
80240
-    DEFINES["__STDC_FORMAT_MACROS"] = True
78942
-
80241
-
78943
-    OS_LIBS += [
80242
-    OS_LIBS += [
80243
-        "GLESv2",
78944
-        "log"
80244
-        "log"
78945
-    ]
80245
-    ]
78946
-
80246
-
Lines 79009-79014 index f330b9926bcf..90ba23ecca27 100644 Link Here
79009
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
80309
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
79010
-    DEFINES["_WINDOWS"] = True
80310
-    DEFINES["_WINDOWS"] = True
79011
-    DEFINES["__STD_C"] = True
80311
-    DEFINES["__STD_C"] = True
80312
-
80313
-    OS_LIBS += [
80314
-        "crypt32",
80315
-        "iphlpapi",
80316
-        "secur32",
80317
-        "winmm"
80318
-    ]
79012
+    DEFINES["_DEBUG"] = True
80319
+    DEFINES["_DEBUG"] = True
79013
 
80320
 
79014
 if CONFIG["CPU_ARCH"] == "aarch64":
80321
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 79084-79094 index f330b9926bcf..90ba23ecca27 100644 Link Here
79084
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80391
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79085
-    DEFINES["_GNU_SOURCE"] = True
80392
-    DEFINES["_GNU_SOURCE"] = True
79086
-
80393
-
79087
 Library("pending_task_safety_flag_gn")
80394
 Library("threading_gn")
79088
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
80395
diff --git third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build
79089
index 46a6acae4497..06150956fbb0 100644
80396
index af464b00bdd8..4e0d38f5dbd5 100644
79090
--- third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build
80397
--- third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build
79091
+++ third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build
80398
+++ third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build
79092
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80399
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
79093
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80400
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79094
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
80401
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 79110-79116 index 46a6acae4497..06150956fbb0 100644 Link Here
79110
 
80417
 
79111
 FINAL_LIBRARY = "webrtc"
80418
 FINAL_LIBRARY = "webrtc"
79112
 
80419
 
79113
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
80420
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
79114
 if CONFIG["MOZ_DEBUG"] == "1":
80421
 if CONFIG["MOZ_DEBUG"] == "1":
79115
 
80422
 
79116
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80423
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 79158-79167 index 46a6acae4497..06150956fbb0 100644 Link Here
79158
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
80465
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
79159
-    DEFINES["__STDC_FORMAT_MACROS"] = True
80466
-    DEFINES["__STDC_FORMAT_MACROS"] = True
79160
-
80467
-
79161
-    OS_LIBS += [
79162
-        "rt"
79163
-    ]
79164
-
79165
-if CONFIG["OS_TARGET"] == "OpenBSD":
80468
-if CONFIG["OS_TARGET"] == "OpenBSD":
79166
-
80469
-
79167
-    DEFINES["USE_GLIB"] = "1"
80470
-    DEFINES["USE_GLIB"] = "1"
Lines 79202-79214 index 46a6acae4497..06150956fbb0 100644 Link Here
79202
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
80505
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
79203
-    DEFINES["_WINDOWS"] = True
80506
-    DEFINES["_WINDOWS"] = True
79204
-    DEFINES["__STD_C"] = True
80507
-    DEFINES["__STD_C"] = True
79205
-
79206
-    OS_LIBS += [
79207
-        "crypt32",
79208
-        "iphlpapi",
79209
-        "secur32",
79210
-        "winmm"
79211
-    ]
79212
+    DEFINES["_DEBUG"] = True
80508
+    DEFINES["_DEBUG"] = True
79213
 
80509
 
79214
 if CONFIG["CPU_ARCH"] == "aarch64":
80510
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 79284-79294 index 46a6acae4497..06150956fbb0 100644 Link Here
79284
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80580
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79285
-    DEFINES["_GNU_SOURCE"] = True
80581
-    DEFINES["_GNU_SOURCE"] = True
79286
-
80582
-
79287
 Library("repeating_task_gn")
80583
 Library("timestamp_extrapolator_gn")
79288
diff --git third_party/libwebrtc/rtc_base/task_utils/to_queued_task_gn/moz.build third_party/libwebrtc/rtc_base/task_utils/to_queued_task_gn/moz.build
80584
diff --git third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build
79289
index 4133cceb8920..377053ce68a7 100644
80585
index be466ada874c..f6723437f53d 100644
79290
--- third_party/libwebrtc/rtc_base/task_utils/to_queued_task_gn/moz.build
80586
--- third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build
79291
+++ third_party/libwebrtc/rtc_base/task_utils/to_queued_task_gn/moz.build
80587
+++ third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build
79292
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80588
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
79293
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80589
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79294
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
80590
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 79310-79316 index 4133cceb8920..377053ce68a7 100644 Link Here
79310
 
80606
 
79311
 FINAL_LIBRARY = "webrtc"
80607
 FINAL_LIBRARY = "webrtc"
79312
 
80608
 
79313
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
80609
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
79314
 if CONFIG["MOZ_DEBUG"] == "1":
80610
 if CONFIG["MOZ_DEBUG"] == "1":
79315
 
80611
 
79316
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80612
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 79398-79403 index 4133cceb8920..377053ce68a7 100644 Link Here
79398
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
80694
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
79399
-    DEFINES["_WINDOWS"] = True
80695
-    DEFINES["_WINDOWS"] = True
79400
-    DEFINES["__STD_C"] = True
80696
-    DEFINES["__STD_C"] = True
80697
-
80698
-    OS_LIBS += [
80699
-        "winmm"
80700
-    ]
79401
+    DEFINES["_DEBUG"] = True
80701
+    DEFINES["_DEBUG"] = True
79402
 
80702
 
79403
 if CONFIG["CPU_ARCH"] == "aarch64":
80703
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 79407-79412 index 4133cceb8920..377053ce68a7 100644 Link Here
79407
 
80707
 
79408
-if CONFIG["CPU_ARCH"] == "arm":
80708
-if CONFIG["CPU_ARCH"] == "arm":
79409
-
80709
-
80710
-    CXXFLAGS += [
80711
-        "-mfpu=neon"
80712
-    ]
80713
-
79410
-    DEFINES["WEBRTC_ARCH_ARM"] = True
80714
-    DEFINES["WEBRTC_ARCH_ARM"] = True
79411
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
80715
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
79412
-    DEFINES["WEBRTC_HAS_NEON"] = True
80716
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 79469-79480 index 4133cceb8920..377053ce68a7 100644 Link Here
79469
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80773
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79470
-    DEFINES["_GNU_SOURCE"] = True
80774
-    DEFINES["_GNU_SOURCE"] = True
79471
-
80775
-
79472
 Library("to_queued_task_gn")
80776
 Library("timestamp_aligner_gn")
79473
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
80777
diff --git third_party/libwebrtc/rtc_base/timeutils_gn/moz.build third_party/libwebrtc/rtc_base/timeutils_gn/moz.build
79474
index c123810d56dc..a4bd3ae0e8d0 100644
80778
index 782ed92c4944..dd49ac4f6a35 100644
79475
--- third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build
80779
--- third_party/libwebrtc/rtc_base/timeutils_gn/moz.build
79476
+++ third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build
80780
+++ third_party/libwebrtc/rtc_base/timeutils_gn/moz.build
79477
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80781
@@ -12,11 +12,21 @@ AllowCompilerWarnings()
79478
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80782
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79479
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
80783
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
79480
 DEFINES["RTC_ENABLE_VP9"] = True
80784
 DEFINES["RTC_ENABLE_VP9"] = True
Lines 79483-79488 index c123810d56dc..a4bd3ae0e8d0 100644 Link Here
79483
+DEFINES["WEBRTC_BSD"] = True
80787
+DEFINES["WEBRTC_BSD"] = True
79484
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
80788
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
79485
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
80789
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
80790
 DEFINES["WEBRTC_EXCLUDE_SYSTEM_TIME"] = True
79486
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
80791
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
79487
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
80792
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
79488
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
80793
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
Lines 79495-79501 index c123810d56dc..a4bd3ae0e8d0 100644 Link Here
79495
 
80800
 
79496
 FINAL_LIBRARY = "webrtc"
80801
 FINAL_LIBRARY = "webrtc"
79497
 
80802
 
79498
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
80803
@@ -43,165 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
79499
 if CONFIG["MOZ_DEBUG"] == "1":
80804
 if CONFIG["MOZ_DEBUG"] == "1":
79500
 
80805
 
79501
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80806
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 79583-79588 index c123810d56dc..a4bd3ae0e8d0 100644 Link Here
79583
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
80888
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
79584
-    DEFINES["_WINDOWS"] = True
80889
-    DEFINES["_WINDOWS"] = True
79585
-    DEFINES["__STD_C"] = True
80890
-    DEFINES["__STD_C"] = True
80891
-
80892
-    OS_LIBS += [
80893
-        "winmm"
80894
-    ]
79586
+    DEFINES["_DEBUG"] = True
80895
+    DEFINES["_DEBUG"] = True
79587
 
80896
 
79588
 if CONFIG["CPU_ARCH"] == "aarch64":
80897
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 79658-79668 index c123810d56dc..a4bd3ae0e8d0 100644 Link Here
79658
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80967
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79659
-    DEFINES["_GNU_SOURCE"] = True
80968
-    DEFINES["_GNU_SOURCE"] = True
79660
-
80969
-
79661
 Library("base64_gn")
80970
 Library("timeutils_gn")
79662
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
80971
diff --git third_party/libwebrtc/rtc_base/type_traits_gn/moz.build third_party/libwebrtc/rtc_base/type_traits_gn/moz.build
79663
index 7d7f8864f3e8..f51bf20a585b 100644
80972
index 18ffa6ea6955..e2ecd2648914 100644
79664
--- third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build
80973
--- third_party/libwebrtc/rtc_base/type_traits_gn/moz.build
79665
+++ third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build
80974
+++ third_party/libwebrtc/rtc_base/type_traits_gn/moz.build
80975
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80976
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80977
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
80978
 DEFINES["RTC_ENABLE_VP9"] = True
80979
+DEFINES["USE_GLIB"] = "1"
80980
+DEFINES["USE_OZONE"] = "1"
80981
+DEFINES["WEBRTC_BSD"] = True
80982
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
80983
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
80984
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
80985
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
80986
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
80987
+DEFINES["WEBRTC_POSIX"] = True
80988
+DEFINES["_FILE_OFFSET_BITS"] = "64"
80989
+DEFINES["_LARGEFILE64_SOURCE"] = True
80990
+DEFINES["_LARGEFILE_SOURCE"] = True
80991
+DEFINES["__STDC_CONSTANT_MACROS"] = True
80992
+DEFINES["__STDC_FORMAT_MACROS"] = True
80993
 
80994
 FINAL_LIBRARY = "webrtc"
80995
 
80996
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
80997
 if CONFIG["MOZ_DEBUG"] == "1":
80998
 
80999
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81000
-
81001
-if CONFIG["OS_TARGET"] == "Android":
81002
-
81003
-    DEFINES["ANDROID"] = True
81004
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
81005
-    DEFINES["HAVE_SYS_UIO_H"] = True
81006
-    DEFINES["WEBRTC_ANDROID"] = True
81007
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
81008
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81009
-    DEFINES["WEBRTC_LINUX"] = True
81010
-    DEFINES["WEBRTC_POSIX"] = True
81011
-    DEFINES["_GNU_SOURCE"] = True
81012
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81013
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81014
-
81015
-if CONFIG["OS_TARGET"] == "Darwin":
81016
-
81017
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81018
-    DEFINES["WEBRTC_MAC"] = True
81019
-    DEFINES["WEBRTC_POSIX"] = True
81020
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
81021
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
81022
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81023
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81024
-
81025
-if CONFIG["OS_TARGET"] == "Linux":
81026
-
81027
-    DEFINES["USE_AURA"] = "1"
81028
-    DEFINES["USE_GLIB"] = "1"
81029
-    DEFINES["USE_NSS_CERTS"] = "1"
81030
-    DEFINES["USE_OZONE"] = "1"
81031
-    DEFINES["USE_UDEV"] = True
81032
-    DEFINES["WEBRTC_LINUX"] = True
81033
-    DEFINES["WEBRTC_POSIX"] = True
81034
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
81035
-    DEFINES["_LARGEFILE64_SOURCE"] = True
81036
-    DEFINES["_LARGEFILE_SOURCE"] = True
81037
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81038
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81039
-
81040
-if CONFIG["OS_TARGET"] == "OpenBSD":
81041
-
81042
-    DEFINES["USE_GLIB"] = "1"
81043
-    DEFINES["USE_OZONE"] = "1"
81044
-    DEFINES["USE_X11"] = "1"
81045
-    DEFINES["WEBRTC_BSD"] = True
81046
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81047
-    DEFINES["WEBRTC_POSIX"] = True
81048
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
81049
-    DEFINES["_LARGEFILE64_SOURCE"] = True
81050
-    DEFINES["_LARGEFILE_SOURCE"] = True
81051
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81052
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81053
-
81054
-if CONFIG["OS_TARGET"] == "WINNT":
81055
-
81056
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
81057
-    DEFINES["NOMINMAX"] = True
81058
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
81059
-    DEFINES["PSAPI_VERSION"] = "2"
81060
-    DEFINES["UNICODE"] = True
81061
-    DEFINES["USE_AURA"] = "1"
81062
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81063
-    DEFINES["WEBRTC_WIN"] = True
81064
-    DEFINES["WIN32"] = True
81065
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
81066
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81067
-    DEFINES["WINVER"] = "0x0A00"
81068
-    DEFINES["_ATL_NO_OPENGL"] = True
81069
-    DEFINES["_CRT_RAND_S"] = True
81070
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81071
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81072
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
81073
-    DEFINES["_HAS_NODISCARD"] = True
81074
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81075
-    DEFINES["_SECURE_ATL"] = True
81076
-    DEFINES["_UNICODE"] = True
81077
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
81078
-    DEFINES["_WINDOWS"] = True
81079
-    DEFINES["__STD_C"] = True
81080
+    DEFINES["_DEBUG"] = True
81081
 
81082
 if CONFIG["CPU_ARCH"] == "aarch64":
81083
 
81084
     DEFINES["WEBRTC_ARCH_ARM64"] = True
81085
     DEFINES["WEBRTC_HAS_NEON"] = True
81086
 
81087
-if CONFIG["CPU_ARCH"] == "arm":
81088
-
81089
-    DEFINES["WEBRTC_ARCH_ARM"] = True
81090
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
81091
-    DEFINES["WEBRTC_HAS_NEON"] = True
81092
-
81093
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
81094
-
81095
-    DEFINES["_DEBUG"] = True
81096
-
81097
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
81098
-
81099
-    DEFINES["_DEBUG"] = True
81100
-
81101
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
81102
-
81103
-    DEFINES["_DEBUG"] = True
81104
-
81105
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
81106
-
81107
-    DEFINES["_DEBUG"] = True
81108
-
81109
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
81110
-
81111
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
81112
-
81113
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
81114
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
81115
 
81116
     DEFINES["USE_X11"] = "1"
81117
 
81118
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
81119
-
81120
-    OS_LIBS += [
81121
-        "android_support",
81122
-        "unwind"
81123
-    ]
81124
-
81125
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
81126
-
81127
-    OS_LIBS += [
81128
-        "android_support"
81129
-    ]
81130
-
81131
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
81132
-
81133
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81134
-    DEFINES["_GNU_SOURCE"] = True
81135
-
81136
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
81137
-
81138
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81139
-    DEFINES["_GNU_SOURCE"] = True
81140
-
81141
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
81142
-
81143
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81144
-    DEFINES["_GNU_SOURCE"] = True
81145
-
81146
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
81147
-
81148
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81149
-    DEFINES["_GNU_SOURCE"] = True
81150
-
81151
 Library("type_traits_gn")
81152
diff --git third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build
81153
index 16a72f40d74b..f0d8aac6e18f 100644
81154
--- third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build
81155
+++ third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build
79666
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
81156
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
79667
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81157
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79668
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81158
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 79684-79690 index 7d7f8864f3e8..f51bf20a585b 100644 Link Here
79684
 
81174
 
79685
 FINAL_LIBRARY = "webrtc"
81175
 FINAL_LIBRARY = "webrtc"
79686
 
81176
 
79687
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
81177
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
79688
 if CONFIG["MOZ_DEBUG"] == "1":
81178
 if CONFIG["MOZ_DEBUG"] == "1":
79689
 
81179
 
79690
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81180
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 79703-79708 index 7d7f8864f3e8..f51bf20a585b 100644 Link Here
79703
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81193
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
79704
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81194
-    DEFINES["__STDC_FORMAT_MACROS"] = True
79705
-
81195
-
81196
-    OS_LIBS += [
81197
-        "log"
81198
-    ]
81199
-
79706
-if CONFIG["OS_TARGET"] == "Darwin":
81200
-if CONFIG["OS_TARGET"] == "Darwin":
79707
-
81201
-
79708
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81202
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 79777-79786 index 7d7f8864f3e8..f51bf20a585b 100644 Link Here
79777
 
81271
 
79778
-if CONFIG["CPU_ARCH"] == "arm":
81272
-if CONFIG["CPU_ARCH"] == "arm":
79779
-
81273
-
79780
-    CXXFLAGS += [
79781
-        "-mfpu=neon"
79782
-    ]
79783
-
79784
-    DEFINES["WEBRTC_ARCH_ARM"] = True
81274
-    DEFINES["WEBRTC_ARCH_ARM"] = True
79785
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
81275
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
79786
-    DEFINES["WEBRTC_HAS_NEON"] = True
81276
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 79843-79853 index 7d7f8864f3e8..f51bf20a585b 100644 Link Here
79843
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81333
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
79844
-    DEFINES["_GNU_SOURCE"] = True
81334
-    DEFINES["_GNU_SOURCE"] = True
79845
-
81335
-
79846
 Library("sigslot_gn")
81336
 Library("unit_base_gn")
79847
diff --git third_party/libwebrtc/rtc_base/threading_gn/moz.build third_party/libwebrtc/rtc_base/threading_gn/moz.build
81337
diff --git third_party/libwebrtc/rtc_base/untyped_function_gn/moz.build third_party/libwebrtc/rtc_base/untyped_function_gn/moz.build
79848
index 56207997aec8..903dc4e0bb74 100644
81338
index b0f228c1463d..87020062c90b 100644
79849
--- third_party/libwebrtc/rtc_base/threading_gn/moz.build
81339
--- third_party/libwebrtc/rtc_base/untyped_function_gn/moz.build
79850
+++ third_party/libwebrtc/rtc_base/threading_gn/moz.build
81340
+++ third_party/libwebrtc/rtc_base/untyped_function_gn/moz.build
79851
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
81341
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
79852
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81342
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
79853
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81343
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 79869-79875 index 56207997aec8..903dc4e0bb74 100644 Link Here
79869
 
81359
 
79870
 FINAL_LIBRARY = "webrtc"
81360
 FINAL_LIBRARY = "webrtc"
79871
 
81361
 
79872
@@ -47,169 +57,15 @@ if not CONFIG["MOZ_DEBUG"]:
81362
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
79873
 if CONFIG["MOZ_DEBUG"] == "1":
81363
 if CONFIG["MOZ_DEBUG"] == "1":
79874
 
81364
 
79875
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81365
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 79888-79898 index 56207997aec8..903dc4e0bb74 100644 Link Here
79888
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81378
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
79889
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81379
-    DEFINES["__STDC_FORMAT_MACROS"] = True
79890
-
81380
-
79891
-    OS_LIBS += [
79892
-        "GLESv2",
79893
-        "log"
79894
-    ]
79895
-
79896
-if CONFIG["OS_TARGET"] == "Darwin":
81381
-if CONFIG["OS_TARGET"] == "Darwin":
79897
-
81382
-
79898
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81383
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 79958-79970 index 56207997aec8..903dc4e0bb74 100644 Link Here
79958
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
81443
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
79959
-    DEFINES["_WINDOWS"] = True
81444
-    DEFINES["_WINDOWS"] = True
79960
-    DEFINES["__STD_C"] = True
81445
-    DEFINES["__STD_C"] = True
79961
-
79962
-    OS_LIBS += [
79963
-        "crypt32",
79964
-        "iphlpapi",
79965
-        "secur32",
79966
-        "winmm"
79967
-    ]
79968
+    DEFINES["_DEBUG"] = True
81446
+    DEFINES["_DEBUG"] = True
79969
 
81447
 
79970
 if CONFIG["CPU_ARCH"] == "aarch64":
81448
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 79974-79983 index 56207997aec8..903dc4e0bb74 100644 Link Here
79974
 
81452
 
79975
-if CONFIG["CPU_ARCH"] == "arm":
81453
-if CONFIG["CPU_ARCH"] == "arm":
79976
-
81454
-
79977
-    CXXFLAGS += [
79978
-        "-mfpu=neon"
79979
-    ]
79980
-
79981
-    DEFINES["WEBRTC_ARCH_ARM"] = True
81455
-    DEFINES["WEBRTC_ARCH_ARM"] = True
79982
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
81456
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
79983
-    DEFINES["WEBRTC_HAS_NEON"] = True
81457
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 80040-80050 index 56207997aec8..903dc4e0bb74 100644 Link Here
80040
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81514
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80041
-    DEFINES["_GNU_SOURCE"] = True
81515
-    DEFINES["_GNU_SOURCE"] = True
80042
-
81516
-
80043
 Library("threading_gn")
81517
 Library("untyped_function_gn")
80044
diff --git third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build
81518
diff --git third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build
80045
index af464b00bdd8..4e0d38f5dbd5 100644
81519
index 11b148352fb2..bd171a928126 100644
80046
--- third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build
81520
--- third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build
80047
+++ third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build
81521
+++ third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build
80048
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
81522
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80049
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81523
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80050
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81524
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 80229-80433 index af464b00bdd8..4e0d38f5dbd5 100644 Link Here
80229
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81703
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80230
-    DEFINES["_GNU_SOURCE"] = True
81704
-    DEFINES["_GNU_SOURCE"] = True
80231
-
81705
-
80232
 Library("timestamp_extrapolator_gn")
81706
 Library("weak_ptr_gn")
80233
diff --git third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build
81707
diff --git third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn/moz.build third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn/moz.build
80234
index be466ada874c..f6723437f53d 100644
81708
deleted file mode 100644
80235
--- third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build
81709
index 285700f44e15..000000000000
80236
+++ third_party/libwebrtc/rtc_base/timestamp_aligner_gn/moz.build
81710
--- third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn/moz.build
80237
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
81711
+++ /dev/null
80238
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81712
@@ -1,75 +0,0 @@
80239
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81713
-# This Source Code Form is subject to the terms of the Mozilla Public
80240
 DEFINES["RTC_ENABLE_VP9"] = True
81714
-# License, v. 2.0. If a copy of the MPL was not distributed with this
80241
+DEFINES["USE_GLIB"] = "1"
81715
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
80242
+DEFINES["USE_OZONE"] = "1"
80243
+DEFINES["WEBRTC_BSD"] = True
80244
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
80245
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
80246
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
80247
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
80248
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
80249
+DEFINES["WEBRTC_POSIX"] = True
80250
+DEFINES["_FILE_OFFSET_BITS"] = "64"
80251
+DEFINES["_LARGEFILE64_SOURCE"] = True
80252
+DEFINES["_LARGEFILE_SOURCE"] = True
80253
+DEFINES["__STDC_CONSTANT_MACROS"] = True
80254
+DEFINES["__STDC_FORMAT_MACROS"] = True
80255
 
80256
 FINAL_LIBRARY = "webrtc"
80257
 
80258
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
80259
 if CONFIG["MOZ_DEBUG"] == "1":
80260
 
80261
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80262
-
81716
-
80263
-if CONFIG["OS_TARGET"] == "Android":
80264
-
81717
-
80265
-    DEFINES["ANDROID"] = True
81718
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
80266
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
81719
-  ### DO NOT edit it by hand.                                       ###
80267
-    DEFINES["HAVE_SYS_UIO_H"] = True
81720
-
80268
-    DEFINES["WEBRTC_ANDROID"] = True
81721
-COMPILE_FLAGS["OS_INCLUDES"] = []
80269
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
81722
-AllowCompilerWarnings()
80270
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81723
-
80271
-    DEFINES["WEBRTC_LINUX"] = True
81724
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80272
-    DEFINES["WEBRTC_POSIX"] = True
81725
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
80273
-    DEFINES["_GNU_SOURCE"] = True
81726
-DEFINES["NOMINMAX"] = True
80274
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81727
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
80275
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81728
-DEFINES["PSAPI_VERSION"] = "2"
81729
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81730
-DEFINES["RTC_ENABLE_VP9"] = True
81731
-DEFINES["UNICODE"] = True
81732
-DEFINES["USE_AURA"] = "1"
81733
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81734
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81735
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81736
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81737
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81738
-DEFINES["WEBRTC_WIN"] = True
81739
-DEFINES["WIN32"] = True
81740
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
81741
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81742
-DEFINES["WINVER"] = "0x0A00"
81743
-DEFINES["_ATL_NO_OPENGL"] = True
81744
-DEFINES["_CRT_RAND_S"] = True
81745
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81746
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81747
-DEFINES["_HAS_EXCEPTIONS"] = "0"
81748
-DEFINES["_HAS_NODISCARD"] = True
81749
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81750
-DEFINES["_SECURE_ATL"] = True
81751
-DEFINES["_UNICODE"] = True
81752
-DEFINES["_WIN32_WINNT"] = "0x0A00"
81753
-DEFINES["_WINDOWS"] = True
81754
-DEFINES["__STD_C"] = True
81755
-
81756
-FINAL_LIBRARY = "webrtc"
81757
-
81758
-
81759
-LOCAL_INCLUDES += [
81760
-    "!/ipc/ipdl/_ipdlheaders",
81761
-    "/ipc/chromium/src",
81762
-    "/third_party/libwebrtc/",
81763
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
81764
-    "/tools/profiler/public"
81765
-]
81766
-
81767
-UNIFIED_SOURCES += [
81768
-    "/third_party/libwebrtc/rtc_base/win/create_direct3d_device.cc"
81769
-]
81770
-
81771
-if not CONFIG["MOZ_DEBUG"]:
81772
-
81773
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
81774
-    DEFINES["NDEBUG"] = True
81775
-    DEFINES["NVALGRIND"] = True
81776
-
81777
-if CONFIG["MOZ_DEBUG"] == "1":
81778
-
81779
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81780
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
81781
-
81782
-if CONFIG["CPU_ARCH"] == "aarch64":
81783
-
81784
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
81785
-    DEFINES["WEBRTC_HAS_NEON"] = True
81786
-
81787
-Library("create_direct3d_device_gn")
81788
diff --git third_party/libwebrtc/rtc_base/win/get_activation_factory_gn/moz.build third_party/libwebrtc/rtc_base/win/get_activation_factory_gn/moz.build
81789
deleted file mode 100644
81790
index e5469ac129ce..000000000000
81791
--- third_party/libwebrtc/rtc_base/win/get_activation_factory_gn/moz.build
81792
+++ /dev/null
81793
@@ -1,75 +0,0 @@
81794
-# This Source Code Form is subject to the terms of the Mozilla Public
81795
-# License, v. 2.0. If a copy of the MPL was not distributed with this
81796
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
81797
-
81798
-
81799
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
81800
-  ### DO NOT edit it by hand.                                       ###
81801
-
81802
-COMPILE_FLAGS["OS_INCLUDES"] = []
81803
-AllowCompilerWarnings()
81804
-
81805
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81806
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
81807
-DEFINES["NOMINMAX"] = True
81808
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
81809
-DEFINES["PSAPI_VERSION"] = "2"
81810
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81811
-DEFINES["RTC_ENABLE_VP9"] = True
81812
-DEFINES["UNICODE"] = True
81813
-DEFINES["USE_AURA"] = "1"
81814
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81815
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81816
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81817
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81818
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81819
-DEFINES["WEBRTC_WIN"] = True
81820
-DEFINES["WIN32"] = True
81821
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
81822
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81823
-DEFINES["WINVER"] = "0x0A00"
81824
-DEFINES["_ATL_NO_OPENGL"] = True
81825
-DEFINES["_CRT_RAND_S"] = True
81826
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81827
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81828
-DEFINES["_HAS_EXCEPTIONS"] = "0"
81829
-DEFINES["_HAS_NODISCARD"] = True
81830
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81831
-DEFINES["_SECURE_ATL"] = True
81832
-DEFINES["_UNICODE"] = True
81833
-DEFINES["_WIN32_WINNT"] = "0x0A00"
81834
-DEFINES["_WINDOWS"] = True
81835
-DEFINES["__STD_C"] = True
81836
-
81837
-FINAL_LIBRARY = "webrtc"
81838
-
81839
-
81840
-LOCAL_INCLUDES += [
81841
-    "!/ipc/ipdl/_ipdlheaders",
81842
-    "/ipc/chromium/src",
81843
-    "/third_party/libwebrtc/",
81844
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
81845
-    "/tools/profiler/public"
81846
-]
81847
-
81848
-UNIFIED_SOURCES += [
81849
-    "/third_party/libwebrtc/rtc_base/win/get_activation_factory.cc"
81850
-]
81851
-
81852
-if not CONFIG["MOZ_DEBUG"]:
81853
-
81854
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
81855
-    DEFINES["NDEBUG"] = True
81856
-    DEFINES["NVALGRIND"] = True
81857
-
81858
-if CONFIG["MOZ_DEBUG"] == "1":
81859
-
81860
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81861
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
81862
-
81863
-if CONFIG["CPU_ARCH"] == "aarch64":
81864
-
81865
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
81866
-    DEFINES["WEBRTC_HAS_NEON"] = True
81867
-
81868
-Library("get_activation_factory_gn")
81869
diff --git third_party/libwebrtc/rtc_base/win/hstring_gn/moz.build third_party/libwebrtc/rtc_base/win/hstring_gn/moz.build
81870
deleted file mode 100644
81871
index eb715b9756f7..000000000000
81872
--- third_party/libwebrtc/rtc_base/win/hstring_gn/moz.build
81873
+++ /dev/null
81874
@@ -1,75 +0,0 @@
81875
-# This Source Code Form is subject to the terms of the Mozilla Public
81876
-# License, v. 2.0. If a copy of the MPL was not distributed with this
81877
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
81878
-
81879
-
81880
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
81881
-  ### DO NOT edit it by hand.                                       ###
81882
-
81883
-COMPILE_FLAGS["OS_INCLUDES"] = []
81884
-AllowCompilerWarnings()
81885
-
81886
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81887
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
81888
-DEFINES["NOMINMAX"] = True
81889
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
81890
-DEFINES["PSAPI_VERSION"] = "2"
81891
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81892
-DEFINES["RTC_ENABLE_VP9"] = True
81893
-DEFINES["UNICODE"] = True
81894
-DEFINES["USE_AURA"] = "1"
81895
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81896
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81897
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81898
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81899
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81900
-DEFINES["WEBRTC_WIN"] = True
81901
-DEFINES["WIN32"] = True
81902
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
81903
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81904
-DEFINES["WINVER"] = "0x0A00"
81905
-DEFINES["_ATL_NO_OPENGL"] = True
81906
-DEFINES["_CRT_RAND_S"] = True
81907
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81908
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81909
-DEFINES["_HAS_EXCEPTIONS"] = "0"
81910
-DEFINES["_HAS_NODISCARD"] = True
81911
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81912
-DEFINES["_SECURE_ATL"] = True
81913
-DEFINES["_UNICODE"] = True
81914
-DEFINES["_WIN32_WINNT"] = "0x0A00"
81915
-DEFINES["_WINDOWS"] = True
81916
-DEFINES["__STD_C"] = True
81917
-
81918
-FINAL_LIBRARY = "webrtc"
81919
-
81920
-
81921
-LOCAL_INCLUDES += [
81922
-    "!/ipc/ipdl/_ipdlheaders",
81923
-    "/ipc/chromium/src",
81924
-    "/third_party/libwebrtc/",
81925
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
81926
-    "/tools/profiler/public"
81927
-]
81928
-
81929
-SOURCES += [
81930
-    "/third_party/libwebrtc/rtc_base/win/hstring.cc"
81931
-]
80276
-
81932
-
80277
-    OS_LIBS += [
81933
-if not CONFIG["MOZ_DEBUG"]:
80278
-        "log"
80279
-    ]
80280
-
81934
-
80281
-if CONFIG["OS_TARGET"] == "Darwin":
81935
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
81936
-    DEFINES["NDEBUG"] = True
81937
-    DEFINES["NVALGRIND"] = True
80282
-
81938
-
80283
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81939
-if CONFIG["MOZ_DEBUG"] == "1":
80284
-    DEFINES["WEBRTC_MAC"] = True
80285
-    DEFINES["WEBRTC_POSIX"] = True
80286
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
80287
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
80288
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
80289
-    DEFINES["__STDC_FORMAT_MACROS"] = True
80290
-
81940
-
80291
-if CONFIG["OS_TARGET"] == "Linux":
81941
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81942
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
80292
-
81943
-
80293
-    DEFINES["USE_AURA"] = "1"
81944
-if CONFIG["CPU_ARCH"] == "aarch64":
80294
-    DEFINES["USE_GLIB"] = "1"
80295
-    DEFINES["USE_NSS_CERTS"] = "1"
80296
-    DEFINES["USE_OZONE"] = "1"
80297
-    DEFINES["USE_UDEV"] = True
80298
-    DEFINES["WEBRTC_LINUX"] = True
80299
-    DEFINES["WEBRTC_POSIX"] = True
80300
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
80301
-    DEFINES["_LARGEFILE64_SOURCE"] = True
80302
-    DEFINES["_LARGEFILE_SOURCE"] = True
80303
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
80304
-    DEFINES["__STDC_FORMAT_MACROS"] = True
80305
-
81945
-
80306
-if CONFIG["OS_TARGET"] == "OpenBSD":
81946
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
81947
-    DEFINES["WEBRTC_HAS_NEON"] = True
80307
-
81948
-
80308
-    DEFINES["USE_GLIB"] = "1"
81949
-Library("hstring_gn")
80309
-    DEFINES["USE_OZONE"] = "1"
81950
diff --git third_party/libwebrtc/rtc_base/win/windows_version_gn/moz.build third_party/libwebrtc/rtc_base/win/windows_version_gn/moz.build
80310
-    DEFINES["USE_X11"] = "1"
81951
deleted file mode 100644
80311
-    DEFINES["WEBRTC_BSD"] = True
81952
index 3c7eb72713d5..000000000000
80312
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81953
--- third_party/libwebrtc/rtc_base/win/windows_version_gn/moz.build
80313
-    DEFINES["WEBRTC_POSIX"] = True
81954
+++ /dev/null
80314
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
81955
@@ -1,75 +0,0 @@
80315
-    DEFINES["_LARGEFILE64_SOURCE"] = True
81956
-# This Source Code Form is subject to the terms of the Mozilla Public
80316
-    DEFINES["_LARGEFILE_SOURCE"] = True
81957
-# License, v. 2.0. If a copy of the MPL was not distributed with this
80317
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81958
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
80318
-    DEFINES["__STDC_FORMAT_MACROS"] = True
80319
-
81959
-
80320
-if CONFIG["OS_TARGET"] == "WINNT":
80321
-
81960
-
80322
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
81961
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
80323
-    DEFINES["NOMINMAX"] = True
81962
-  ### DO NOT edit it by hand.                                       ###
80324
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
80325
-    DEFINES["PSAPI_VERSION"] = "2"
80326
-    DEFINES["UNICODE"] = True
80327
-    DEFINES["USE_AURA"] = "1"
80328
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80329
-    DEFINES["WEBRTC_WIN"] = True
80330
-    DEFINES["WIN32"] = True
80331
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
80332
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
80333
-    DEFINES["WINVER"] = "0x0A00"
80334
-    DEFINES["_ATL_NO_OPENGL"] = True
80335
-    DEFINES["_CRT_RAND_S"] = True
80336
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
80337
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
80338
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
80339
-    DEFINES["_HAS_NODISCARD"] = True
80340
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
80341
-    DEFINES["_SECURE_ATL"] = True
80342
-    DEFINES["_UNICODE"] = True
80343
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
80344
-    DEFINES["_WINDOWS"] = True
80345
-    DEFINES["__STD_C"] = True
80346
-
81963
-
80347
-    OS_LIBS += [
81964
-COMPILE_FLAGS["OS_INCLUDES"] = []
80348
-        "winmm"
81965
-AllowCompilerWarnings()
80349
-    ]
80350
+    DEFINES["_DEBUG"] = True
80351
 
80352
 if CONFIG["CPU_ARCH"] == "aarch64":
80353
 
80354
     DEFINES["WEBRTC_ARCH_ARM64"] = True
80355
     DEFINES["WEBRTC_HAS_NEON"] = True
80356
 
80357
-if CONFIG["CPU_ARCH"] == "arm":
80358
-
81966
-
80359
-    CXXFLAGS += [
81967
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80360
-        "-mfpu=neon"
81968
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
80361
-    ]
81969
-DEFINES["NOMINMAX"] = True
81970
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
81971
-DEFINES["PSAPI_VERSION"] = "2"
81972
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81973
-DEFINES["RTC_ENABLE_VP9"] = True
81974
-DEFINES["UNICODE"] = True
81975
-DEFINES["USE_AURA"] = "1"
81976
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81977
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81978
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81979
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81980
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81981
-DEFINES["WEBRTC_WIN"] = True
81982
-DEFINES["WIN32"] = True
81983
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
81984
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81985
-DEFINES["WINVER"] = "0x0A00"
81986
-DEFINES["_ATL_NO_OPENGL"] = True
81987
-DEFINES["_CRT_RAND_S"] = True
81988
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81989
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81990
-DEFINES["_HAS_EXCEPTIONS"] = "0"
81991
-DEFINES["_HAS_NODISCARD"] = True
81992
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81993
-DEFINES["_SECURE_ATL"] = True
81994
-DEFINES["_UNICODE"] = True
81995
-DEFINES["_WIN32_WINNT"] = "0x0A00"
81996
-DEFINES["_WINDOWS"] = True
81997
-DEFINES["__STD_C"] = True
80362
-
81998
-
80363
-    DEFINES["WEBRTC_ARCH_ARM"] = True
81999
-FINAL_LIBRARY = "webrtc"
80364
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
80365
-    DEFINES["WEBRTC_HAS_NEON"] = True
80366
-
82000
-
80367
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
80368
-
82001
-
80369
-    DEFINES["_DEBUG"] = True
82002
-LOCAL_INCLUDES += [
82003
-    "!/ipc/ipdl/_ipdlheaders",
82004
-    "/ipc/chromium/src",
82005
-    "/third_party/libwebrtc/",
82006
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
82007
-    "/tools/profiler/public"
82008
-]
80370
-
82009
-
80371
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
82010
-UNIFIED_SOURCES += [
82011
-    "/third_party/libwebrtc/rtc_base/win/windows_version.cc"
82012
-]
80372
-
82013
-
80373
-    DEFINES["_DEBUG"] = True
82014
-if not CONFIG["MOZ_DEBUG"]:
80374
-
82015
-
80375
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
82016
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
82017
-    DEFINES["NDEBUG"] = True
82018
-    DEFINES["NVALGRIND"] = True
80376
-
82019
-
80377
-    DEFINES["_DEBUG"] = True
82020
-if CONFIG["MOZ_DEBUG"] == "1":
80378
-
82021
-
80379
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
82022
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
82023
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
80380
-
82024
-
80381
-    DEFINES["_DEBUG"] = True
82025
-if CONFIG["CPU_ARCH"] == "aarch64":
80382
-
82026
-
80383
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
82027
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
82028
-    DEFINES["WEBRTC_HAS_NEON"] = True
80384
-
82029
-
80385
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
82030
-Library("windows_version_gn")
82031
diff --git third_party/libwebrtc/rtc_base/win32_gn/moz.build third_party/libwebrtc/rtc_base/win32_gn/moz.build
82032
deleted file mode 100644
82033
index 356c932f58f2..000000000000
82034
--- third_party/libwebrtc/rtc_base/win32_gn/moz.build
82035
+++ /dev/null
82036
@@ -1,84 +0,0 @@
82037
-# This Source Code Form is subject to the terms of the Mozilla Public
82038
-# License, v. 2.0. If a copy of the MPL was not distributed with this
82039
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
80386
-
82040
-
80387
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
80388
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
80389
 
80390
     DEFINES["USE_X11"] = "1"
80391
 
80392
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
80393
-
82041
-
80394
-    OS_LIBS += [
82042
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
80395
-        "android_support",
82043
-  ### DO NOT edit it by hand.                                       ###
80396
-        "unwind"
80397
-    ]
80398
-
82044
-
80399
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
82045
-COMPILE_FLAGS["OS_INCLUDES"] = []
82046
-AllowCompilerWarnings()
80400
-
82047
-
80401
-    OS_LIBS += [
82048
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80402
-        "android_support"
82049
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
80403
-    ]
82050
-DEFINES["NOMINMAX"] = True
82051
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
82052
-DEFINES["PSAPI_VERSION"] = "2"
82053
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82054
-DEFINES["RTC_ENABLE_VP9"] = True
82055
-DEFINES["UNICODE"] = True
82056
-DEFINES["USE_AURA"] = "1"
82057
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
82058
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
82059
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
82060
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
82061
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
82062
-DEFINES["WEBRTC_WIN"] = True
82063
-DEFINES["WIN32"] = True
82064
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
82065
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
82066
-DEFINES["WINVER"] = "0x0A00"
82067
-DEFINES["_ATL_NO_OPENGL"] = True
82068
-DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
82069
-DEFINES["_CRT_RAND_S"] = True
82070
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
82071
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
82072
-DEFINES["_HAS_EXCEPTIONS"] = "0"
82073
-DEFINES["_HAS_NODISCARD"] = True
82074
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
82075
-DEFINES["_SECURE_ATL"] = True
82076
-DEFINES["_UNICODE"] = True
82077
-DEFINES["_WIN32_WINNT"] = "0x0A00"
82078
-DEFINES["_WINDOWS"] = True
82079
-DEFINES["__STD_C"] = True
80404
-
82080
-
80405
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
82081
-FINAL_LIBRARY = "webrtc"
80406
-
82082
-
80407
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80408
-    DEFINES["_GNU_SOURCE"] = True
80409
-
82083
-
80410
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
82084
-LOCAL_INCLUDES += [
82085
-    "!/ipc/ipdl/_ipdlheaders",
82086
-    "/ipc/chromium/src",
82087
-    "/third_party/libwebrtc/",
82088
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
82089
-    "/tools/profiler/public"
82090
-]
80411
-
82091
-
80412
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82092
-OS_LIBS += [
80413
-    DEFINES["_GNU_SOURCE"] = True
82093
-    "crypt32",
82094
-    "iphlpapi",
82095
-    "secur32",
82096
-    "winmm"
82097
-]
80414
-
82098
-
80415
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
82099
-UNIFIED_SOURCES += [
82100
-    "/third_party/libwebrtc/rtc_base/win32.cc",
82101
-    "/third_party/libwebrtc/rtc_base/win32_window.cc"
82102
-]
80416
-
82103
-
80417
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82104
-if not CONFIG["MOZ_DEBUG"]:
80418
-    DEFINES["_GNU_SOURCE"] = True
80419
-
82105
-
80420
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
82106
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
82107
-    DEFINES["NDEBUG"] = True
82108
-    DEFINES["NVALGRIND"] = True
80421
-
82109
-
80422
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82110
-if CONFIG["MOZ_DEBUG"] == "1":
80423
-    DEFINES["_GNU_SOURCE"] = True
80424
-
82111
-
80425
 Library("timestamp_aligner_gn")
82112
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80426
diff --git third_party/libwebrtc/rtc_base/timeutils_gn/moz.build third_party/libwebrtc/rtc_base/timeutils_gn/moz.build
82113
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
80427
index 782ed92c4944..dd49ac4f6a35 100644
82114
-
80428
--- third_party/libwebrtc/rtc_base/timeutils_gn/moz.build
82115
-if CONFIG["CPU_ARCH"] == "aarch64":
80429
+++ third_party/libwebrtc/rtc_base/timeutils_gn/moz.build
82116
-
80430
@@ -12,11 +12,21 @@ AllowCompilerWarnings()
82117
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
82118
-    DEFINES["WEBRTC_HAS_NEON"] = True
82119
-
82120
-Library("win32_gn")
82121
diff --git third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build
82122
index 1b5f0d9528a1..86eb1881eba8 100644
82123
--- third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build
82124
+++ third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build
82125
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80431
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82126
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80432
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82127
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
80433
 DEFINES["RTC_ENABLE_VP9"] = True
82128
 DEFINES["RTC_ENABLE_VP9"] = True
Lines 80436-80442 index 782ed92c4944..dd49ac4f6a35 100644 Link Here
80436
+DEFINES["WEBRTC_BSD"] = True
82131
+DEFINES["WEBRTC_BSD"] = True
80437
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
82132
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
80438
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
82133
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
80439
 DEFINES["WEBRTC_EXCLUDE_SYSTEM_TIME"] = True
80440
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
82134
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
80441
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
82135
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
80442
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
82136
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
Lines 80449-80455 index 782ed92c4944..dd49ac4f6a35 100644 Link Here
80449
 
82143
 
80450
 FINAL_LIBRARY = "webrtc"
82144
 FINAL_LIBRARY = "webrtc"
80451
 
82145
 
80452
@@ -43,165 +53,15 @@ if not CONFIG["MOZ_DEBUG"]:
82146
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
80453
 if CONFIG["MOZ_DEBUG"] == "1":
82147
 if CONFIG["MOZ_DEBUG"] == "1":
80454
 
82148
 
80455
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
82149
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 80537-80546 index 782ed92c4944..dd49ac4f6a35 100644 Link Here
80537
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
82231
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
80538
-    DEFINES["_WINDOWS"] = True
82232
-    DEFINES["_WINDOWS"] = True
80539
-    DEFINES["__STD_C"] = True
82233
-    DEFINES["__STD_C"] = True
80540
-
80541
-    OS_LIBS += [
80542
-        "winmm"
80543
-    ]
80544
+    DEFINES["_DEBUG"] = True
82234
+    DEFINES["_DEBUG"] = True
80545
 
82235
 
80546
 if CONFIG["CPU_ARCH"] == "aarch64":
82236
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 80616-80807 index 782ed92c4944..dd49ac4f6a35 100644 Link Here
80616
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82306
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80617
-    DEFINES["_GNU_SOURCE"] = True
82307
-    DEFINES["_GNU_SOURCE"] = True
80618
-
82308
-
80619
 Library("timeutils_gn")
82309
 Library("zero_memory_gn")
80620
diff --git third_party/libwebrtc/rtc_base/type_traits_gn/moz.build third_party/libwebrtc/rtc_base/type_traits_gn/moz.build
82310
diff --git third_party/libwebrtc/sdk/base_objc_gn/moz.build third_party/libwebrtc/sdk/base_objc_gn/moz.build
80621
index 18ffa6ea6955..e2ecd2648914 100644
82311
deleted file mode 100644
80622
--- third_party/libwebrtc/rtc_base/type_traits_gn/moz.build
82312
index 95464447d39b..000000000000
80623
+++ third_party/libwebrtc/rtc_base/type_traits_gn/moz.build
82313
--- third_party/libwebrtc/sdk/base_objc_gn/moz.build
80624
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
82314
+++ /dev/null
80625
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82315
@@ -1,74 +0,0 @@
80626
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82316
-# This Source Code Form is subject to the terms of the Mozilla Public
80627
 DEFINES["RTC_ENABLE_VP9"] = True
82317
-# License, v. 2.0. If a copy of the MPL was not distributed with this
80628
+DEFINES["USE_GLIB"] = "1"
82318
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
80629
+DEFINES["USE_OZONE"] = "1"
80630
+DEFINES["WEBRTC_BSD"] = True
80631
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
80632
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
80633
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
80634
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
80635
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
80636
+DEFINES["WEBRTC_POSIX"] = True
80637
+DEFINES["_FILE_OFFSET_BITS"] = "64"
80638
+DEFINES["_LARGEFILE64_SOURCE"] = True
80639
+DEFINES["_LARGEFILE_SOURCE"] = True
80640
+DEFINES["__STDC_CONSTANT_MACROS"] = True
80641
+DEFINES["__STDC_FORMAT_MACROS"] = True
80642
 
80643
 FINAL_LIBRARY = "webrtc"
80644
 
80645
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
80646
 if CONFIG["MOZ_DEBUG"] == "1":
80647
 
80648
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80649
-
80650
-if CONFIG["OS_TARGET"] == "Android":
80651
-
82319
-
80652
-    DEFINES["ANDROID"] = True
80653
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
80654
-    DEFINES["HAVE_SYS_UIO_H"] = True
80655
-    DEFINES["WEBRTC_ANDROID"] = True
80656
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
80657
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80658
-    DEFINES["WEBRTC_LINUX"] = True
80659
-    DEFINES["WEBRTC_POSIX"] = True
80660
-    DEFINES["_GNU_SOURCE"] = True
80661
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
80662
-    DEFINES["__STDC_FORMAT_MACROS"] = True
80663
-
82320
-
80664
-if CONFIG["OS_TARGET"] == "Darwin":
82321
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
82322
-  ### DO NOT edit it by hand.                                       ###
80665
-
82323
-
80666
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82324
-CMFLAGS += [
80667
-    DEFINES["WEBRTC_MAC"] = True
82325
-    "-fobjc-arc"
80668
-    DEFINES["WEBRTC_POSIX"] = True
82326
-]
80669
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
80670
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
80671
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
80672
-    DEFINES["__STDC_FORMAT_MACROS"] = True
80673
-
82327
-
80674
-if CONFIG["OS_TARGET"] == "Linux":
82328
-CMMFLAGS += [
82329
-    "-fobjc-arc"
82330
-]
80675
-
82331
-
80676
-    DEFINES["USE_AURA"] = "1"
82332
-COMPILE_FLAGS["OS_INCLUDES"] = []
80677
-    DEFINES["USE_GLIB"] = "1"
82333
-AllowCompilerWarnings()
80678
-    DEFINES["USE_NSS_CERTS"] = "1"
80679
-    DEFINES["USE_OZONE"] = "1"
80680
-    DEFINES["USE_UDEV"] = True
80681
-    DEFINES["WEBRTC_LINUX"] = True
80682
-    DEFINES["WEBRTC_POSIX"] = True
80683
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
80684
-    DEFINES["_LARGEFILE64_SOURCE"] = True
80685
-    DEFINES["_LARGEFILE_SOURCE"] = True
80686
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
80687
-    DEFINES["__STDC_FORMAT_MACROS"] = True
80688
-
82334
-
80689
-if CONFIG["OS_TARGET"] == "OpenBSD":
82335
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82336
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82337
-DEFINES["RTC_ENABLE_VP9"] = True
82338
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
82339
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
82340
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
82341
-DEFINES["WEBRTC_MAC"] = True
82342
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
82343
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
82344
-DEFINES["WEBRTC_POSIX"] = True
82345
-DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
82346
-DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
82347
-DEFINES["__STDC_CONSTANT_MACROS"] = True
82348
-DEFINES["__STDC_FORMAT_MACROS"] = True
80690
-
82349
-
80691
-    DEFINES["USE_GLIB"] = "1"
82350
-FINAL_LIBRARY = "webrtc"
80692
-    DEFINES["USE_OZONE"] = "1"
80693
-    DEFINES["USE_X11"] = "1"
80694
-    DEFINES["WEBRTC_BSD"] = True
80695
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80696
-    DEFINES["WEBRTC_POSIX"] = True
80697
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
80698
-    DEFINES["_LARGEFILE64_SOURCE"] = True
80699
-    DEFINES["_LARGEFILE_SOURCE"] = True
80700
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
80701
-    DEFINES["__STDC_FORMAT_MACROS"] = True
80702
-
82351
-
80703
-if CONFIG["OS_TARGET"] == "WINNT":
80704
-
82352
-
80705
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
82353
-LOCAL_INCLUDES += [
80706
-    DEFINES["NOMINMAX"] = True
82354
-    "!/ipc/ipdl/_ipdlheaders",
80707
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
82355
-    "/ipc/chromium/src",
80708
-    DEFINES["PSAPI_VERSION"] = "2"
82356
-    "/third_party/libwebrtc/",
80709
-    DEFINES["UNICODE"] = True
82357
-    "/third_party/libwebrtc/sdk/objc/",
80710
-    DEFINES["USE_AURA"] = "1"
82358
-    "/third_party/libwebrtc/sdk/objc/base/",
80711
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82359
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
80712
-    DEFINES["WEBRTC_WIN"] = True
82360
-    "/tools/profiler/public"
80713
-    DEFINES["WIN32"] = True
82361
-]
80714
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
80715
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
80716
-    DEFINES["WINVER"] = "0x0A00"
80717
-    DEFINES["_ATL_NO_OPENGL"] = True
80718
-    DEFINES["_CRT_RAND_S"] = True
80719
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
80720
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
80721
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
80722
-    DEFINES["_HAS_NODISCARD"] = True
80723
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
80724
-    DEFINES["_SECURE_ATL"] = True
80725
-    DEFINES["_UNICODE"] = True
80726
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
80727
-    DEFINES["_WINDOWS"] = True
80728
-    DEFINES["__STD_C"] = True
80729
+    DEFINES["_DEBUG"] = True
80730
 
80731
 if CONFIG["CPU_ARCH"] == "aarch64":
80732
 
80733
     DEFINES["WEBRTC_ARCH_ARM64"] = True
80734
     DEFINES["WEBRTC_HAS_NEON"] = True
80735
 
80736
-if CONFIG["CPU_ARCH"] == "arm":
80737
-
82362
-
80738
-    DEFINES["WEBRTC_ARCH_ARM"] = True
82363
-UNIFIED_SOURCES += [
80739
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
82364
-    "/third_party/libwebrtc/sdk/objc/base/RTCEncodedImage.m",
80740
-    DEFINES["WEBRTC_HAS_NEON"] = True
82365
-    "/third_party/libwebrtc/sdk/objc/base/RTCLogging.mm",
82366
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoCapturer.m",
82367
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoCodecInfo.m",
82368
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoEncoderQpThresholds.m",
82369
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoEncoderSettings.m",
82370
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoFrame.mm"
82371
-]
80741
-
82372
-
80742
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
82373
-if not CONFIG["MOZ_DEBUG"]:
80743
-
82374
-
80744
-    DEFINES["_DEBUG"] = True
82375
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
82376
-    DEFINES["NDEBUG"] = True
82377
-    DEFINES["NVALGRIND"] = True
80745
-
82378
-
80746
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
82379
-if CONFIG["MOZ_DEBUG"] == "1":
80747
-
82380
-
82381
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80748
-    DEFINES["_DEBUG"] = True
82382
-    DEFINES["_DEBUG"] = True
80749
-
82383
-
80750
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
82384
-if CONFIG["CPU_ARCH"] == "aarch64":
80751
-
82385
-
80752
-    DEFINES["_DEBUG"] = True
82386
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
82387
-    DEFINES["WEBRTC_HAS_NEON"] = True
80753
-
82388
-
80754
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
82389
-Library("base_objc_gn")
82390
diff --git third_party/libwebrtc/sdk/helpers_objc_gn/moz.build third_party/libwebrtc/sdk/helpers_objc_gn/moz.build
82391
deleted file mode 100644
82392
index 234fe71d1d25..000000000000
82393
--- third_party/libwebrtc/sdk/helpers_objc_gn/moz.build
82394
+++ /dev/null
82395
@@ -1,70 +0,0 @@
82396
-# This Source Code Form is subject to the terms of the Mozilla Public
82397
-# License, v. 2.0. If a copy of the MPL was not distributed with this
82398
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
80755
-
82399
-
80756
-    DEFINES["_DEBUG"] = True
80757
-
82400
-
80758
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
82401
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
82402
-  ### DO NOT edit it by hand.                                       ###
80759
-
82403
-
80760
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
82404
-CMFLAGS += [
82405
-    "-fobjc-arc"
82406
-]
80761
-
82407
-
80762
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
82408
-CMMFLAGS += [
80763
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
82409
-    "-fobjc-arc"
80764
 
82410
-]
80765
     DEFINES["USE_X11"] = "1"
80766
 
80767
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
80768
-
82411
-
80769
-    OS_LIBS += [
82412
-COMPILE_FLAGS["OS_INCLUDES"] = []
80770
-        "android_support",
82413
-AllowCompilerWarnings()
80771
-        "unwind"
82414
-
80772
-    ]
82415
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82416
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82417
-DEFINES["RTC_ENABLE_VP9"] = True
82418
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
82419
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
82420
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
82421
-DEFINES["WEBRTC_MAC"] = True
82422
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
82423
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
82424
-DEFINES["WEBRTC_POSIX"] = True
82425
-DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
82426
-DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
82427
-DEFINES["__STDC_CONSTANT_MACROS"] = True
82428
-DEFINES["__STDC_FORMAT_MACROS"] = True
80773
-
82429
-
80774
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
82430
-FINAL_LIBRARY = "webrtc"
80775
-
82431
-
80776
-    OS_LIBS += [
80777
-        "android_support"
80778
-    ]
80779
-
82432
-
80780
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
82433
-LOCAL_INCLUDES += [
82434
-    "!/ipc/ipdl/_ipdlheaders",
82435
-    "/ipc/chromium/src",
82436
-    "/third_party/libwebrtc/",
82437
-    "/third_party/libwebrtc/sdk/objc/",
82438
-    "/third_party/libwebrtc/sdk/objc/base/",
82439
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
82440
-    "/tools/profiler/public"
82441
-]
80781
-
82442
-
80782
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82443
-UNIFIED_SOURCES += [
80783
-    DEFINES["_GNU_SOURCE"] = True
82444
-    "/third_party/libwebrtc/sdk/objc/helpers/AVCaptureSession+DevicePosition.mm",
82445
-    "/third_party/libwebrtc/sdk/objc/helpers/NSString+StdString.mm",
82446
-    "/third_party/libwebrtc/sdk/objc/helpers/RTCDispatcher.m"
82447
-]
80784
-
82448
-
80785
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
82449
-if not CONFIG["MOZ_DEBUG"]:
80786
-
82450
-
80787
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82451
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
80788
-    DEFINES["_GNU_SOURCE"] = True
82452
-    DEFINES["NDEBUG"] = True
82453
-    DEFINES["NVALGRIND"] = True
80789
-
82454
-
80790
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
82455
-if CONFIG["MOZ_DEBUG"] == "1":
80791
-
82456
-
80792
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82457
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
80793
-    DEFINES["_GNU_SOURCE"] = True
82458
-    DEFINES["_DEBUG"] = True
80794
-
82459
-
80795
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
82460
-if CONFIG["CPU_ARCH"] == "aarch64":
80796
-
82461
-
80797
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82462
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
80798
-    DEFINES["_GNU_SOURCE"] = True
82463
-    DEFINES["WEBRTC_HAS_NEON"] = True
80799
-
82464
-
80800
 Library("type_traits_gn")
82465
-Library("helpers_objc_gn")
80801
diff --git third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build
82466
diff --git third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build
80802
index 16a72f40d74b..f0d8aac6e18f 100644
82467
index ed0facb6bf83..2a2e962fbd6e 100644
80803
--- third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build
82468
--- third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build
80804
+++ third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build
82469
+++ third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build
80805
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
82470
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80806
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82471
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80807
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82472
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 80823-80829 index 16a72f40d74b..f0d8aac6e18f 100644 Link Here
80823
 
82488
 
80824
 FINAL_LIBRARY = "webrtc"
82489
 FINAL_LIBRARY = "webrtc"
80825
 
82490
 
80826
@@ -37,157 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
82491
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
80827
 if CONFIG["MOZ_DEBUG"] == "1":
82492
 if CONFIG["MOZ_DEBUG"] == "1":
80828
 
82493
 
80829
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
82494
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 80920-80925 index 16a72f40d74b..f0d8aac6e18f 100644 Link Here
80920
 
82585
 
80921
-if CONFIG["CPU_ARCH"] == "arm":
82586
-if CONFIG["CPU_ARCH"] == "arm":
80922
-
82587
-
82588
-    CXXFLAGS += [
82589
-        "-mfpu=neon"
82590
-    ]
82591
-
80923
-    DEFINES["WEBRTC_ARCH_ARM"] = True
82592
-    DEFINES["WEBRTC_ARCH_ARM"] = True
80924
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
82593
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
80925
-    DEFINES["WEBRTC_HAS_NEON"] = True
82594
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 80982-80992 index 16a72f40d74b..f0d8aac6e18f 100644 Link Here
80982
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82651
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
80983
-    DEFINES["_GNU_SOURCE"] = True
82652
-    DEFINES["_GNU_SOURCE"] = True
80984
-
82653
-
80985
 Library("unit_base_gn")
82654
 Library("denormal_disabler_gn")
80986
diff --git third_party/libwebrtc/rtc_base/untyped_function_gn/moz.build third_party/libwebrtc/rtc_base/untyped_function_gn/moz.build
82655
diff --git third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build
80987
index b0f228c1463d..87020062c90b 100644
82656
index 6fe8360de36e..b8dcc03c5611 100644
80988
--- third_party/libwebrtc/rtc_base/untyped_function_gn/moz.build
82657
--- third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build
80989
+++ third_party/libwebrtc/rtc_base/untyped_function_gn/moz.build
82658
+++ third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build
80990
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
82659
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
80991
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82660
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
80992
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82661
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 81008-81014 index b0f228c1463d..87020062c90b 100644 Link Here
81008
 
82677
 
81009
 FINAL_LIBRARY = "webrtc"
82678
 FINAL_LIBRARY = "webrtc"
81010
 
82679
 
81011
@@ -37,153 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
82680
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
81012
 if CONFIG["MOZ_DEBUG"] == "1":
82681
 if CONFIG["MOZ_DEBUG"] == "1":
81013
 
82682
 
81014
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
82683
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 81027-81032 index b0f228c1463d..87020062c90b 100644 Link Here
81027
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82696
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81028
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82697
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81029
-
82698
-
82699
-    OS_LIBS += [
82700
-        "log"
82701
-    ]
82702
-
81030
-if CONFIG["OS_TARGET"] == "Darwin":
82703
-if CONFIG["OS_TARGET"] == "Darwin":
81031
-
82704
-
81032
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82705
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 81092-81097 index b0f228c1463d..87020062c90b 100644 Link Here
81092
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
82765
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
81093
-    DEFINES["_WINDOWS"] = True
82766
-    DEFINES["_WINDOWS"] = True
81094
-    DEFINES["__STD_C"] = True
82767
-    DEFINES["__STD_C"] = True
82768
-
82769
-    OS_LIBS += [
82770
-        "winmm"
82771
-    ]
81095
+    DEFINES["_DEBUG"] = True
82772
+    DEFINES["_DEBUG"] = True
81096
 
82773
 
81097
 if CONFIG["CPU_ARCH"] == "aarch64":
82774
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 81101-81106 index b0f228c1463d..87020062c90b 100644 Link Here
81101
 
82778
 
81102
-if CONFIG["CPU_ARCH"] == "arm":
82779
-if CONFIG["CPU_ARCH"] == "arm":
81103
-
82780
-
82781
-    CXXFLAGS += [
82782
-        "-mfpu=neon"
82783
-    ]
82784
-
81104
-    DEFINES["WEBRTC_ARCH_ARM"] = True
82785
-    DEFINES["WEBRTC_ARCH_ARM"] = True
81105
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
82786
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
81106
-    DEFINES["WEBRTC_HAS_NEON"] = True
82787
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 81163-81173 index b0f228c1463d..87020062c90b 100644 Link Here
81163
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82844
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81164
-    DEFINES["_GNU_SOURCE"] = True
82845
-    DEFINES["_GNU_SOURCE"] = True
81165
-
82846
-
81166
 Library("untyped_function_gn")
82847
 Library("field_trial_gn")
81167
diff --git third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build
82848
diff --git third_party/libwebrtc/system_wrappers/metrics_gn/moz.build third_party/libwebrtc/system_wrappers/metrics_gn/moz.build
81168
index 11b148352fb2..bd171a928126 100644
82849
index b17503cb5956..d6cc8db5aee7 100644
81169
--- third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build
82850
--- third_party/libwebrtc/system_wrappers/metrics_gn/moz.build
81170
+++ third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build
82851
+++ third_party/libwebrtc/system_wrappers/metrics_gn/moz.build
81171
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
82852
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
81172
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82853
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81173
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82854
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 81339-81776 index 11b148352fb2..bd171a928126 100644 Link Here
81339
-
83020
-
81340
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
83021
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
81341
-
83022
-
81342
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
83023
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81343
-    DEFINES["_GNU_SOURCE"] = True
83024
-    DEFINES["_GNU_SOURCE"] = True
81344
-
81345
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
81346
-
81347
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81348
-    DEFINES["_GNU_SOURCE"] = True
81349
-
81350
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
81351
-
81352
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81353
-    DEFINES["_GNU_SOURCE"] = True
81354
-
81355
 Library("weak_ptr_gn")
81356
diff --git third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn/moz.build third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn/moz.build
81357
deleted file mode 100644
81358
index 285700f44e15..000000000000
81359
--- third_party/libwebrtc/rtc_base/win/create_direct3d_device_gn/moz.build
81360
+++ /dev/null
81361
@@ -1,75 +0,0 @@
81362
-# This Source Code Form is subject to the terms of the Mozilla Public
81363
-# License, v. 2.0. If a copy of the MPL was not distributed with this
81364
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
81365
-
81366
-
81367
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
81368
-  ### DO NOT edit it by hand.                                       ###
81369
-
81370
-COMPILE_FLAGS["OS_INCLUDES"] = []
81371
-AllowCompilerWarnings()
81372
-
81373
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81374
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
81375
-DEFINES["NOMINMAX"] = True
81376
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
81377
-DEFINES["PSAPI_VERSION"] = "2"
81378
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81379
-DEFINES["RTC_ENABLE_VP9"] = True
81380
-DEFINES["UNICODE"] = True
81381
-DEFINES["USE_AURA"] = "1"
81382
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81383
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81384
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81385
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81386
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81387
-DEFINES["WEBRTC_WIN"] = True
81388
-DEFINES["WIN32"] = True
81389
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
81390
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81391
-DEFINES["WINVER"] = "0x0A00"
81392
-DEFINES["_ATL_NO_OPENGL"] = True
81393
-DEFINES["_CRT_RAND_S"] = True
81394
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81395
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81396
-DEFINES["_HAS_EXCEPTIONS"] = "0"
81397
-DEFINES["_HAS_NODISCARD"] = True
81398
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81399
-DEFINES["_SECURE_ATL"] = True
81400
-DEFINES["_UNICODE"] = True
81401
-DEFINES["_WIN32_WINNT"] = "0x0A00"
81402
-DEFINES["_WINDOWS"] = True
81403
-DEFINES["__STD_C"] = True
81404
-
81405
-FINAL_LIBRARY = "webrtc"
81406
-
81407
-
81408
-LOCAL_INCLUDES += [
81409
-    "!/ipc/ipdl/_ipdlheaders",
81410
-    "/ipc/chromium/src",
81411
-    "/third_party/libwebrtc/",
81412
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
81413
-    "/tools/profiler/public"
81414
-]
81415
-
81416
-UNIFIED_SOURCES += [
81417
-    "/third_party/libwebrtc/rtc_base/win/create_direct3d_device.cc"
81418
-]
81419
-
81420
-if not CONFIG["MOZ_DEBUG"]:
81421
-
81422
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
81423
-    DEFINES["NDEBUG"] = True
81424
-    DEFINES["NVALGRIND"] = True
81425
-
81426
-if CONFIG["MOZ_DEBUG"] == "1":
81427
-
81428
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81429
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
81430
-
81431
-if CONFIG["CPU_ARCH"] == "aarch64":
81432
-
81433
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
81434
-    DEFINES["WEBRTC_HAS_NEON"] = True
81435
-
81436
-Library("create_direct3d_device_gn")
81437
diff --git third_party/libwebrtc/rtc_base/win/get_activation_factory_gn/moz.build third_party/libwebrtc/rtc_base/win/get_activation_factory_gn/moz.build
81438
deleted file mode 100644
81439
index e5469ac129ce..000000000000
81440
--- third_party/libwebrtc/rtc_base/win/get_activation_factory_gn/moz.build
81441
+++ /dev/null
81442
@@ -1,75 +0,0 @@
81443
-# This Source Code Form is subject to the terms of the Mozilla Public
81444
-# License, v. 2.0. If a copy of the MPL was not distributed with this
81445
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
81446
-
81447
-
81448
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
81449
-  ### DO NOT edit it by hand.                                       ###
81450
-
81451
-COMPILE_FLAGS["OS_INCLUDES"] = []
81452
-AllowCompilerWarnings()
81453
-
81454
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81455
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
81456
-DEFINES["NOMINMAX"] = True
81457
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
81458
-DEFINES["PSAPI_VERSION"] = "2"
81459
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81460
-DEFINES["RTC_ENABLE_VP9"] = True
81461
-DEFINES["UNICODE"] = True
81462
-DEFINES["USE_AURA"] = "1"
81463
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81464
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81465
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81466
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81467
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81468
-DEFINES["WEBRTC_WIN"] = True
81469
-DEFINES["WIN32"] = True
81470
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
81471
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81472
-DEFINES["WINVER"] = "0x0A00"
81473
-DEFINES["_ATL_NO_OPENGL"] = True
81474
-DEFINES["_CRT_RAND_S"] = True
81475
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81476
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81477
-DEFINES["_HAS_EXCEPTIONS"] = "0"
81478
-DEFINES["_HAS_NODISCARD"] = True
81479
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81480
-DEFINES["_SECURE_ATL"] = True
81481
-DEFINES["_UNICODE"] = True
81482
-DEFINES["_WIN32_WINNT"] = "0x0A00"
81483
-DEFINES["_WINDOWS"] = True
81484
-DEFINES["__STD_C"] = True
81485
-
81486
-FINAL_LIBRARY = "webrtc"
81487
-
81488
-
81489
-LOCAL_INCLUDES += [
81490
-    "!/ipc/ipdl/_ipdlheaders",
81491
-    "/ipc/chromium/src",
81492
-    "/third_party/libwebrtc/",
81493
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
81494
-    "/tools/profiler/public"
81495
-]
81496
-
81497
-UNIFIED_SOURCES += [
81498
-    "/third_party/libwebrtc/rtc_base/win/get_activation_factory.cc"
81499
-]
81500
-
81501
-if not CONFIG["MOZ_DEBUG"]:
81502
-
81503
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
81504
-    DEFINES["NDEBUG"] = True
81505
-    DEFINES["NVALGRIND"] = True
81506
-
81507
-if CONFIG["MOZ_DEBUG"] == "1":
81508
-
81509
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81510
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
81511
-
81512
-if CONFIG["CPU_ARCH"] == "aarch64":
81513
-
81514
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
81515
-    DEFINES["WEBRTC_HAS_NEON"] = True
81516
-
81517
-Library("get_activation_factory_gn")
81518
diff --git third_party/libwebrtc/rtc_base/win/hstring_gn/moz.build third_party/libwebrtc/rtc_base/win/hstring_gn/moz.build
81519
deleted file mode 100644
81520
index eb715b9756f7..000000000000
81521
--- third_party/libwebrtc/rtc_base/win/hstring_gn/moz.build
81522
+++ /dev/null
81523
@@ -1,75 +0,0 @@
81524
-# This Source Code Form is subject to the terms of the Mozilla Public
81525
-# License, v. 2.0. If a copy of the MPL was not distributed with this
81526
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
81527
-
81528
-
81529
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
81530
-  ### DO NOT edit it by hand.                                       ###
81531
-
81532
-COMPILE_FLAGS["OS_INCLUDES"] = []
81533
-AllowCompilerWarnings()
81534
-
81535
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81536
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
81537
-DEFINES["NOMINMAX"] = True
81538
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
81539
-DEFINES["PSAPI_VERSION"] = "2"
81540
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81541
-DEFINES["RTC_ENABLE_VP9"] = True
81542
-DEFINES["UNICODE"] = True
81543
-DEFINES["USE_AURA"] = "1"
81544
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81545
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81546
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81547
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81548
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81549
-DEFINES["WEBRTC_WIN"] = True
81550
-DEFINES["WIN32"] = True
81551
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
81552
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81553
-DEFINES["WINVER"] = "0x0A00"
81554
-DEFINES["_ATL_NO_OPENGL"] = True
81555
-DEFINES["_CRT_RAND_S"] = True
81556
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81557
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81558
-DEFINES["_HAS_EXCEPTIONS"] = "0"
81559
-DEFINES["_HAS_NODISCARD"] = True
81560
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81561
-DEFINES["_SECURE_ATL"] = True
81562
-DEFINES["_UNICODE"] = True
81563
-DEFINES["_WIN32_WINNT"] = "0x0A00"
81564
-DEFINES["_WINDOWS"] = True
81565
-DEFINES["__STD_C"] = True
81566
-
81567
-FINAL_LIBRARY = "webrtc"
81568
-
81569
-
81570
-LOCAL_INCLUDES += [
81571
-    "!/ipc/ipdl/_ipdlheaders",
81572
-    "/ipc/chromium/src",
81573
-    "/third_party/libwebrtc/",
81574
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
81575
-    "/tools/profiler/public"
81576
-]
81577
-
81578
-SOURCES += [
81579
-    "/third_party/libwebrtc/rtc_base/win/hstring.cc"
81580
-]
81581
-
81582
-if not CONFIG["MOZ_DEBUG"]:
81583
-
81584
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
81585
-    DEFINES["NDEBUG"] = True
81586
-    DEFINES["NVALGRIND"] = True
81587
-
81588
-if CONFIG["MOZ_DEBUG"] == "1":
81589
-
81590
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81591
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
81592
-
81593
-if CONFIG["CPU_ARCH"] == "aarch64":
81594
-
81595
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
81596
-    DEFINES["WEBRTC_HAS_NEON"] = True
81597
-
81598
-Library("hstring_gn")
81599
diff --git third_party/libwebrtc/rtc_base/win/windows_version_gn/moz.build third_party/libwebrtc/rtc_base/win/windows_version_gn/moz.build
81600
deleted file mode 100644
81601
index 3c7eb72713d5..000000000000
81602
--- third_party/libwebrtc/rtc_base/win/windows_version_gn/moz.build
81603
+++ /dev/null
81604
@@ -1,75 +0,0 @@
81605
-# This Source Code Form is subject to the terms of the Mozilla Public
81606
-# License, v. 2.0. If a copy of the MPL was not distributed with this
81607
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
81608
-
81609
-
81610
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
81611
-  ### DO NOT edit it by hand.                                       ###
81612
-
81613
-COMPILE_FLAGS["OS_INCLUDES"] = []
81614
-AllowCompilerWarnings()
81615
-
81616
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81617
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
81618
-DEFINES["NOMINMAX"] = True
81619
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
81620
-DEFINES["PSAPI_VERSION"] = "2"
81621
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81622
-DEFINES["RTC_ENABLE_VP9"] = True
81623
-DEFINES["UNICODE"] = True
81624
-DEFINES["USE_AURA"] = "1"
81625
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81626
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81627
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81628
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81629
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81630
-DEFINES["WEBRTC_WIN"] = True
81631
-DEFINES["WIN32"] = True
81632
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
81633
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81634
-DEFINES["WINVER"] = "0x0A00"
81635
-DEFINES["_ATL_NO_OPENGL"] = True
81636
-DEFINES["_CRT_RAND_S"] = True
81637
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81638
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81639
-DEFINES["_HAS_EXCEPTIONS"] = "0"
81640
-DEFINES["_HAS_NODISCARD"] = True
81641
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81642
-DEFINES["_SECURE_ATL"] = True
81643
-DEFINES["_UNICODE"] = True
81644
-DEFINES["_WIN32_WINNT"] = "0x0A00"
81645
-DEFINES["_WINDOWS"] = True
81646
-DEFINES["__STD_C"] = True
81647
-
81648
-FINAL_LIBRARY = "webrtc"
81649
-
81650
-
81651
-LOCAL_INCLUDES += [
81652
-    "!/ipc/ipdl/_ipdlheaders",
81653
-    "/ipc/chromium/src",
81654
-    "/third_party/libwebrtc/",
81655
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
81656
-    "/tools/profiler/public"
81657
-]
81658
-
81659
-UNIFIED_SOURCES += [
81660
-    "/third_party/libwebrtc/rtc_base/win/windows_version.cc"
81661
-]
81662
-
81663
-if not CONFIG["MOZ_DEBUG"]:
81664
-
81665
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
81666
-    DEFINES["NDEBUG"] = True
81667
-    DEFINES["NVALGRIND"] = True
81668
-
81669
-if CONFIG["MOZ_DEBUG"] == "1":
81670
-
81671
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
81672
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
81673
-
81674
-if CONFIG["CPU_ARCH"] == "aarch64":
81675
-
81676
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
81677
-    DEFINES["WEBRTC_HAS_NEON"] = True
81678
-
81679
-Library("windows_version_gn")
81680
diff --git third_party/libwebrtc/rtc_base/win32_gn/moz.build third_party/libwebrtc/rtc_base/win32_gn/moz.build
81681
deleted file mode 100644
81682
index 356c932f58f2..000000000000
81683
--- third_party/libwebrtc/rtc_base/win32_gn/moz.build
81684
+++ /dev/null
81685
@@ -1,84 +0,0 @@
81686
-# This Source Code Form is subject to the terms of the Mozilla Public
81687
-# License, v. 2.0. If a copy of the MPL was not distributed with this
81688
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
81689
-
81690
-
81691
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
81692
-  ### DO NOT edit it by hand.                                       ###
81693
-
81694
-COMPILE_FLAGS["OS_INCLUDES"] = []
81695
-AllowCompilerWarnings()
81696
-
81697
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81698
-DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
81699
-DEFINES["NOMINMAX"] = True
81700
-DEFINES["NTDDI_VERSION"] = "0x0A000000"
81701
-DEFINES["PSAPI_VERSION"] = "2"
81702
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81703
-DEFINES["RTC_ENABLE_VP9"] = True
81704
-DEFINES["UNICODE"] = True
81705
-DEFINES["USE_AURA"] = "1"
81706
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81707
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81708
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81709
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81710
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81711
-DEFINES["WEBRTC_WIN"] = True
81712
-DEFINES["WIN32"] = True
81713
-DEFINES["WIN32_LEAN_AND_MEAN"] = True
81714
-DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
81715
-DEFINES["WINVER"] = "0x0A00"
81716
-DEFINES["_ATL_NO_OPENGL"] = True
81717
-DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
81718
-DEFINES["_CRT_RAND_S"] = True
81719
-DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
81720
-DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
81721
-DEFINES["_HAS_EXCEPTIONS"] = "0"
81722
-DEFINES["_HAS_NODISCARD"] = True
81723
-DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
81724
-DEFINES["_SECURE_ATL"] = True
81725
-DEFINES["_UNICODE"] = True
81726
-DEFINES["_WIN32_WINNT"] = "0x0A00"
81727
-DEFINES["_WINDOWS"] = True
81728
-DEFINES["__STD_C"] = True
81729
-
81730
-FINAL_LIBRARY = "webrtc"
81731
-
81732
-
81733
-LOCAL_INCLUDES += [
81734
-    "!/ipc/ipdl/_ipdlheaders",
81735
-    "/ipc/chromium/src",
81736
-    "/third_party/libwebrtc/",
81737
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
81738
-    "/tools/profiler/public"
81739
-]
81740
-
81741
-OS_LIBS += [
81742
-    "crypt32",
81743
-    "iphlpapi",
81744
-    "secur32",
81745
-    "winmm"
81746
-]
81747
-
81748
-UNIFIED_SOURCES += [
81749
-    "/third_party/libwebrtc/rtc_base/win32.cc",
81750
-    "/third_party/libwebrtc/rtc_base/win32_window.cc"
81751
-]
81752
-
81753
-if not CONFIG["MOZ_DEBUG"]:
81754
-
81755
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
81756
-    DEFINES["NDEBUG"] = True
81757
-    DEFINES["NVALGRIND"] = True
81758
-
83025
-
81759
-if CONFIG["MOZ_DEBUG"] == "1":
83026
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
81760
-
83027
-
81761
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
83028
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81762
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
83029
-    DEFINES["_GNU_SOURCE"] = True
81763
-
83030
-
81764
-if CONFIG["CPU_ARCH"] == "aarch64":
83031
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
81765
-
83032
-
81766
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
83033
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81767
-    DEFINES["WEBRTC_HAS_NEON"] = True
83034
-    DEFINES["_GNU_SOURCE"] = True
81768
-
83035
-
81769
-Library("win32_gn")
83036
 Library("metrics_gn")
81770
diff --git third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build
83037
diff --git third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build
81771
index 1b5f0d9528a1..86eb1881eba8 100644
83038
index 46d6c227154e..2641fd638072 100644
81772
--- third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build
83039
--- third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build
81773
+++ third_party/libwebrtc/rtc_base/zero_memory_gn/moz.build
83040
+++ third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build
81774
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
83041
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
81775
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
83042
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81776
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
83043
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 81792-81798 index 1b5f0d9528a1..86eb1881eba8 100644 Link Here
81792
 
83059
 
81793
 FINAL_LIBRARY = "webrtc"
83060
 FINAL_LIBRARY = "webrtc"
81794
 
83061
 
81795
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
83062
@@ -45,182 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
81796
 if CONFIG["MOZ_DEBUG"] == "1":
83063
 if CONFIG["MOZ_DEBUG"] == "1":
81797
 
83064
 
81798
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
83065
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 81811-81816 index 1b5f0d9528a1..86eb1881eba8 100644 Link Here
81811
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
83078
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81812
-    DEFINES["__STDC_FORMAT_MACROS"] = True
83079
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81813
-
83080
-
83081
-    LOCAL_INCLUDES += [
83082
-        "/config/external/nspr/",
83083
-        "/nsprpub/lib/ds/",
83084
-        "/nsprpub/pr/include/"
83085
-    ]
83086
-
81814
-    OS_LIBS += [
83087
-    OS_LIBS += [
81815
-        "log"
83088
-        "log"
81816
-    ]
83089
-    ]
Lines 81840-81845 index 1b5f0d9528a1..86eb1881eba8 100644 Link Here
81840
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
83113
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
81841
-    DEFINES["__STDC_FORMAT_MACROS"] = True
83114
-    DEFINES["__STDC_FORMAT_MACROS"] = True
81842
-
83115
-
83116
-    OS_LIBS += [
83117
-        "rt"
83118
-    ]
83119
-
83120
-    UNIFIED_SOURCES += [
83121
-        "/third_party/libwebrtc/system_wrappers/source/cpu_features_linux.cc"
83122
-    ]
83123
-
81843
-if CONFIG["OS_TARGET"] == "OpenBSD":
83124
-if CONFIG["OS_TARGET"] == "OpenBSD":
81844
-
83125
-
81845
-    DEFINES["USE_GLIB"] = "1"
83126
-    DEFINES["USE_GLIB"] = "1"
Lines 81880-81885 index 1b5f0d9528a1..86eb1881eba8 100644 Link Here
81880
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
83161
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
81881
-    DEFINES["_WINDOWS"] = True
83162
-    DEFINES["_WINDOWS"] = True
81882
-    DEFINES["__STD_C"] = True
83163
-    DEFINES["__STD_C"] = True
83164
-
83165
-    OS_LIBS += [
83166
-        "crypt32",
83167
-        "iphlpapi",
83168
-        "secur32",
83169
-        "winmm"
83170
-    ]
81883
+    DEFINES["_DEBUG"] = True
83171
+    DEFINES["_DEBUG"] = True
81884
 
83172
 
81885
 if CONFIG["CPU_ARCH"] == "aarch64":
83173
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 81955-82121 index 1b5f0d9528a1..86eb1881eba8 100644 Link Here
81955
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
83243
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
81956
-    DEFINES["_GNU_SOURCE"] = True
83244
-    DEFINES["_GNU_SOURCE"] = True
81957
-
83245
-
81958
 Library("zero_memory_gn")
83246
 Library("system_wrappers_gn")
81959
diff --git third_party/libwebrtc/sdk/base_objc_gn/moz.build third_party/libwebrtc/sdk/base_objc_gn/moz.build
83247
diff --git third_party/libwebrtc/test/rtp_test_utils_gn/moz.build third_party/libwebrtc/test/rtp_test_utils_gn/moz.build
81960
deleted file mode 100644
83248
index f5dd5dd860e5..c4184eeaf57b 100644
81961
index 95464447d39b..000000000000
83249
--- third_party/libwebrtc/test/rtp_test_utils_gn/moz.build
81962
--- third_party/libwebrtc/sdk/base_objc_gn/moz.build
83250
+++ third_party/libwebrtc/test/rtp_test_utils_gn/moz.build
81963
+++ /dev/null
81964
@@ -1,74 +0,0 @@
81965
-# This Source Code Form is subject to the terms of the Mozilla Public
81966
-# License, v. 2.0. If a copy of the MPL was not distributed with this
81967
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
81968
-
81969
-
81970
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
81971
-  ### DO NOT edit it by hand.                                       ###
81972
-
81973
-CMFLAGS += [
81974
-    "-fobjc-arc"
81975
-]
81976
-
81977
-CMMFLAGS += [
81978
-    "-fobjc-arc"
81979
-]
81980
-
81981
-COMPILE_FLAGS["OS_INCLUDES"] = []
81982
-AllowCompilerWarnings()
81983
-
81984
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
81985
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
81986
-DEFINES["RTC_ENABLE_VP9"] = True
81987
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
81988
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
81989
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
81990
-DEFINES["WEBRTC_MAC"] = True
81991
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
81992
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
81993
-DEFINES["WEBRTC_POSIX"] = True
81994
-DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
81995
-DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
81996
-DEFINES["__STDC_CONSTANT_MACROS"] = True
81997
-DEFINES["__STDC_FORMAT_MACROS"] = True
81998
-
81999
-FINAL_LIBRARY = "webrtc"
82000
-
82001
-
82002
-LOCAL_INCLUDES += [
82003
-    "!/ipc/ipdl/_ipdlheaders",
82004
-    "/ipc/chromium/src",
82005
-    "/third_party/libwebrtc/",
82006
-    "/third_party/libwebrtc/sdk/objc/",
82007
-    "/third_party/libwebrtc/sdk/objc/base/",
82008
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
82009
-    "/tools/profiler/public"
82010
-]
82011
-
82012
-UNIFIED_SOURCES += [
82013
-    "/third_party/libwebrtc/sdk/objc/base/RTCEncodedImage.m",
82014
-    "/third_party/libwebrtc/sdk/objc/base/RTCLogging.mm",
82015
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoCapturer.m",
82016
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoCodecInfo.m",
82017
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoEncoderQpThresholds.m",
82018
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoEncoderSettings.m",
82019
-    "/third_party/libwebrtc/sdk/objc/base/RTCVideoFrame.mm"
82020
-]
82021
-
82022
-if not CONFIG["MOZ_DEBUG"]:
82023
-
82024
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
82025
-    DEFINES["NDEBUG"] = True
82026
-    DEFINES["NVALGRIND"] = True
82027
-
82028
-if CONFIG["MOZ_DEBUG"] == "1":
82029
-
82030
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
82031
-    DEFINES["_DEBUG"] = True
82032
-
82033
-if CONFIG["CPU_ARCH"] == "aarch64":
82034
-
82035
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
82036
-    DEFINES["WEBRTC_HAS_NEON"] = True
82037
-
82038
-Library("base_objc_gn")
82039
diff --git third_party/libwebrtc/sdk/helpers_objc_gn/moz.build third_party/libwebrtc/sdk/helpers_objc_gn/moz.build
82040
deleted file mode 100644
82041
index 234fe71d1d25..000000000000
82042
--- third_party/libwebrtc/sdk/helpers_objc_gn/moz.build
82043
+++ /dev/null
82044
@@ -1,70 +0,0 @@
82045
-# This Source Code Form is subject to the terms of the Mozilla Public
82046
-# License, v. 2.0. If a copy of the MPL was not distributed with this
82047
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
82048
-
82049
-
82050
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
82051
-  ### DO NOT edit it by hand.                                       ###
82052
-
82053
-CMFLAGS += [
82054
-    "-fobjc-arc"
82055
-]
82056
-
82057
-CMMFLAGS += [
82058
-    "-fobjc-arc"
82059
-]
82060
-
82061
-COMPILE_FLAGS["OS_INCLUDES"] = []
82062
-AllowCompilerWarnings()
82063
-
82064
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82065
-DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82066
-DEFINES["RTC_ENABLE_VP9"] = True
82067
-DEFINES["WEBRTC_ENABLE_AVX2"] = True
82068
-DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
82069
-DEFINES["WEBRTC_LIBRARY_IMPL"] = True
82070
-DEFINES["WEBRTC_MAC"] = True
82071
-DEFINES["WEBRTC_MOZILLA_BUILD"] = True
82072
-DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
82073
-DEFINES["WEBRTC_POSIX"] = True
82074
-DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
82075
-DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
82076
-DEFINES["__STDC_CONSTANT_MACROS"] = True
82077
-DEFINES["__STDC_FORMAT_MACROS"] = True
82078
-
82079
-FINAL_LIBRARY = "webrtc"
82080
-
82081
-
82082
-LOCAL_INCLUDES += [
82083
-    "!/ipc/ipdl/_ipdlheaders",
82084
-    "/ipc/chromium/src",
82085
-    "/third_party/libwebrtc/",
82086
-    "/third_party/libwebrtc/sdk/objc/",
82087
-    "/third_party/libwebrtc/sdk/objc/base/",
82088
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
82089
-    "/tools/profiler/public"
82090
-]
82091
-
82092
-UNIFIED_SOURCES += [
82093
-    "/third_party/libwebrtc/sdk/objc/helpers/AVCaptureSession+DevicePosition.mm",
82094
-    "/third_party/libwebrtc/sdk/objc/helpers/NSString+StdString.mm",
82095
-    "/third_party/libwebrtc/sdk/objc/helpers/RTCDispatcher.m"
82096
-]
82097
-
82098
-if not CONFIG["MOZ_DEBUG"]:
82099
-
82100
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
82101
-    DEFINES["NDEBUG"] = True
82102
-    DEFINES["NVALGRIND"] = True
82103
-
82104
-if CONFIG["MOZ_DEBUG"] == "1":
82105
-
82106
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
82107
-    DEFINES["_DEBUG"] = True
82108
-
82109
-if CONFIG["CPU_ARCH"] == "aarch64":
82110
-
82111
-    DEFINES["WEBRTC_ARCH_ARM64"] = True
82112
-    DEFINES["WEBRTC_HAS_NEON"] = True
82113
-
82114
-Library("helpers_objc_gn")
82115
diff --git third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build
82116
index ed0facb6bf83..2a2e962fbd6e 100644
82117
--- third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build
82118
+++ third_party/libwebrtc/system_wrappers/denormal_disabler_gn/moz.build
82119
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
83251
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
82120
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
83252
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82121
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
83253
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 82137-82143 index ed0facb6bf83..2a2e962fbd6e 100644 Link Here
82137
 
83269
 
82138
 FINAL_LIBRARY = "webrtc"
83270
 FINAL_LIBRARY = "webrtc"
82139
 
83271
 
82140
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
83272
@@ -37,170 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
82141
 if CONFIG["MOZ_DEBUG"] == "1":
83273
 if CONFIG["MOZ_DEBUG"] == "1":
82142
 
83274
 
82143
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
83275
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 82157-82162 index ed0facb6bf83..2a2e962fbd6e 100644 Link Here
82157
-    DEFINES["__STDC_FORMAT_MACROS"] = True
83289
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82158
-
83290
-
82159
-    OS_LIBS += [
83291
-    OS_LIBS += [
83292
-        "GLESv2",
82160
-        "log"
83293
-        "log"
82161
-    ]
83294
-    ]
82162
-
83295
-
Lines 82185-82190 index ed0facb6bf83..2a2e962fbd6e 100644 Link Here
82185
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
83318
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82186
-    DEFINES["__STDC_FORMAT_MACROS"] = True
83319
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82187
-
83320
-
83321
-    OS_LIBS += [
83322
-        "dl",
83323
-        "rt"
83324
-    ]
83325
-
82188
-if CONFIG["OS_TARGET"] == "OpenBSD":
83326
-if CONFIG["OS_TARGET"] == "OpenBSD":
82189
-
83327
-
82190
-    DEFINES["USE_GLIB"] = "1"
83328
-    DEFINES["USE_GLIB"] = "1"
Lines 82225-82230 index ed0facb6bf83..2a2e962fbd6e 100644 Link Here
82225
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
83363
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
82226
-    DEFINES["_WINDOWS"] = True
83364
-    DEFINES["_WINDOWS"] = True
82227
-    DEFINES["__STD_C"] = True
83365
-    DEFINES["__STD_C"] = True
83366
-
83367
-    OS_LIBS += [
83368
-        "crypt32",
83369
-        "iphlpapi",
83370
-        "secur32",
83371
-        "winmm"
83372
-    ]
82228
+    DEFINES["_DEBUG"] = True
83373
+    DEFINES["_DEBUG"] = True
82229
 
83374
 
82230
 if CONFIG["CPU_ARCH"] == "aarch64":
83375
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 82234-82243 index ed0facb6bf83..2a2e962fbd6e 100644 Link Here
82234
 
83379
 
82235
-if CONFIG["CPU_ARCH"] == "arm":
83380
-if CONFIG["CPU_ARCH"] == "arm":
82236
-
83381
-
82237
-    CXXFLAGS += [
82238
-        "-mfpu=neon"
82239
-    ]
82240
-
82241
-    DEFINES["WEBRTC_ARCH_ARM"] = True
83382
-    DEFINES["WEBRTC_ARCH_ARM"] = True
82242
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
83383
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
82243
-    DEFINES["WEBRTC_HAS_NEON"] = True
83384
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 82300-82332 index ed0facb6bf83..2a2e962fbd6e 100644 Link Here
82300
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
83441
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82301
-    DEFINES["_GNU_SOURCE"] = True
83442
-    DEFINES["_GNU_SOURCE"] = True
82302
-
83443
-
82303
 Library("denormal_disabler_gn")
83444
 Library("rtp_test_utils_gn")
82304
diff --git third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build
83445
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build
82305
index 6fe8360de36e..b8dcc03c5611 100644
83446
index 9f6b45a412ad..40b0de7e0875 100644
82306
--- third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build
83447
--- third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build
82307
+++ third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build
83448
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build
82308
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
83449
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83450
 AllowCompilerWarnings()
83451
 
82309
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
83452
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82310
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82311
 DEFINES["RTC_ENABLE_VP9"] = True
82312
+DEFINES["USE_GLIB"] = "1"
83453
+DEFINES["USE_GLIB"] = "1"
82313
+DEFINES["USE_OZONE"] = "1"
83454
+DEFINES["USE_OZONE"] = "1"
82314
+DEFINES["WEBRTC_BSD"] = True
82315
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
82316
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
82317
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
82318
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
82319
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
82320
+DEFINES["WEBRTC_POSIX"] = True
82321
+DEFINES["_FILE_OFFSET_BITS"] = "64"
83455
+DEFINES["_FILE_OFFSET_BITS"] = "64"
82322
+DEFINES["_LARGEFILE64_SOURCE"] = True
83456
+DEFINES["_LARGEFILE64_SOURCE"] = True
82323
+DEFINES["_LARGEFILE_SOURCE"] = True
83457
+DEFINES["_LARGEFILE_SOURCE"] = True
82324
+DEFINES["__STDC_CONSTANT_MACROS"] = True
82325
+DEFINES["__STDC_FORMAT_MACROS"] = True
82326
 
83458
 
82327
 FINAL_LIBRARY = "webrtc"
83459
 FINAL_LIBRARY = "webrtc"
82328
 
83460
 
82329
@@ -41,165 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
83461
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
82330
 if CONFIG["MOZ_DEBUG"] == "1":
83462
 if CONFIG["MOZ_DEBUG"] == "1":
82331
 
83463
 
82332
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
83464
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 82336-82363 index 6fe8360de36e..b8dcc03c5611 100644 Link Here
82336
-    DEFINES["ANDROID"] = True
83468
-    DEFINES["ANDROID"] = True
82337
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
83469
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
82338
-    DEFINES["HAVE_SYS_UIO_H"] = True
83470
-    DEFINES["HAVE_SYS_UIO_H"] = True
82339
-    DEFINES["WEBRTC_ANDROID"] = True
82340
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
82341
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82342
-    DEFINES["WEBRTC_LINUX"] = True
82343
-    DEFINES["WEBRTC_POSIX"] = True
82344
-    DEFINES["_GNU_SOURCE"] = True
83471
-    DEFINES["_GNU_SOURCE"] = True
82345
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82346
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82347
-
82348
-    OS_LIBS += [
82349
-        "log"
82350
-    ]
82351
-
83472
-
82352
-if CONFIG["OS_TARGET"] == "Darwin":
83473
-if CONFIG["OS_TARGET"] == "Darwin":
82353
-
83474
-
82354
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82355
-    DEFINES["WEBRTC_MAC"] = True
82356
-    DEFINES["WEBRTC_POSIX"] = True
82357
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
83475
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
82358
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
83476
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
82359
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82360
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82361
-
83477
-
82362
-if CONFIG["OS_TARGET"] == "Linux":
83478
-if CONFIG["OS_TARGET"] == "Linux":
82363
-
83479
-
Lines 82366-82392 index 6fe8360de36e..b8dcc03c5611 100644 Link Here
82366
-    DEFINES["USE_NSS_CERTS"] = "1"
83482
-    DEFINES["USE_NSS_CERTS"] = "1"
82367
-    DEFINES["USE_OZONE"] = "1"
83483
-    DEFINES["USE_OZONE"] = "1"
82368
-    DEFINES["USE_UDEV"] = True
83484
-    DEFINES["USE_UDEV"] = True
82369
-    DEFINES["WEBRTC_LINUX"] = True
82370
-    DEFINES["WEBRTC_POSIX"] = True
82371
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
83485
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
82372
-    DEFINES["_LARGEFILE64_SOURCE"] = True
83486
-    DEFINES["_LARGEFILE64_SOURCE"] = True
82373
-    DEFINES["_LARGEFILE_SOURCE"] = True
83487
-    DEFINES["_LARGEFILE_SOURCE"] = True
82374
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82375
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82376
-
83488
-
82377
-if CONFIG["OS_TARGET"] == "OpenBSD":
83489
-if CONFIG["OS_TARGET"] == "OpenBSD":
82378
-
83490
-
82379
-    DEFINES["USE_GLIB"] = "1"
83491
-    DEFINES["USE_GLIB"] = "1"
82380
-    DEFINES["USE_OZONE"] = "1"
83492
-    DEFINES["USE_OZONE"] = "1"
82381
-    DEFINES["USE_X11"] = "1"
83493
-    DEFINES["USE_X11"] = "1"
82382
-    DEFINES["WEBRTC_BSD"] = True
82383
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82384
-    DEFINES["WEBRTC_POSIX"] = True
82385
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
83494
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
82386
-    DEFINES["_LARGEFILE64_SOURCE"] = True
83495
-    DEFINES["_LARGEFILE64_SOURCE"] = True
82387
-    DEFINES["_LARGEFILE_SOURCE"] = True
83496
-    DEFINES["_LARGEFILE_SOURCE"] = True
82388
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82389
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82390
-
83497
-
82391
-if CONFIG["OS_TARGET"] == "WINNT":
83498
-if CONFIG["OS_TARGET"] == "WINNT":
82392
-
83499
-
Lines 82396-82413 index 6fe8360de36e..b8dcc03c5611 100644 Link Here
82396
-    DEFINES["PSAPI_VERSION"] = "2"
83503
-    DEFINES["PSAPI_VERSION"] = "2"
82397
-    DEFINES["UNICODE"] = True
83504
-    DEFINES["UNICODE"] = True
82398
-    DEFINES["USE_AURA"] = "1"
83505
-    DEFINES["USE_AURA"] = "1"
82399
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82400
-    DEFINES["WEBRTC_WIN"] = True
82401
-    DEFINES["WIN32"] = True
83506
-    DEFINES["WIN32"] = True
82402
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
83507
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
82403
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
83508
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
82404
-    DEFINES["WINVER"] = "0x0A00"
83509
-    DEFINES["WINVER"] = "0x0A00"
82405
-    DEFINES["_ATL_NO_OPENGL"] = True
83510
-    DEFINES["_ATL_NO_OPENGL"] = True
83511
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
83512
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
82406
-    DEFINES["_CRT_RAND_S"] = True
83513
-    DEFINES["_CRT_RAND_S"] = True
82407
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
83514
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
82408
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
83515
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
82409
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
83516
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
82410
-    DEFINES["_HAS_NODISCARD"] = True
82411
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
83517
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
82412
-    DEFINES["_SECURE_ATL"] = True
83518
-    DEFINES["_SECURE_ATL"] = True
82413
-    DEFINES["_UNICODE"] = True
83519
-    DEFINES["_UNICODE"] = True
Lines 82415-82439 index 6fe8360de36e..b8dcc03c5611 100644 Link Here
82415
-    DEFINES["_WINDOWS"] = True
83521
-    DEFINES["_WINDOWS"] = True
82416
-    DEFINES["__STD_C"] = True
83522
-    DEFINES["__STD_C"] = True
82417
-
83523
-
83524
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
83525
-
83526
-    DEFINES["_DEBUG"] = True
83527
-
83528
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
83529
-
83530
-    DEFINES["_DEBUG"] = True
83531
-
83532
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83533
-
83534
     DEFINES["_DEBUG"] = True
83535
 
83536
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
83537
-
83538
-    DEFINES["_DEBUG"] = True
83539
-
83540
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
83541
-
83542
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
83543
-
83544
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83545
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
83546
 
83547
     DEFINES["USE_X11"] = "1"
83548
 
83549
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
83550
-
82418
-    OS_LIBS += [
83551
-    OS_LIBS += [
82419
-        "winmm"
83552
-        "android_support",
83553
-        "unwind"
82420
-    ]
83554
-    ]
82421
+    DEFINES["_DEBUG"] = True
83555
-
83556
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
83557
-
83558
-    OS_LIBS += [
83559
-        "android_support"
83560
-    ]
83561
-
83562
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
83563
-
83564
-    DEFINES["_GNU_SOURCE"] = True
83565
-
83566
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
83567
-
83568
-    DEFINES["_GNU_SOURCE"] = True
83569
-
83570
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
83571
-
83572
-    DEFINES["_GNU_SOURCE"] = True
83573
-
83574
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
83575
-
83576
-    DEFINES["_GNU_SOURCE"] = True
83577
-
83578
 Library("algorithm_gn")
83579
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build
83580
index 461ee70d7ebe..462dd153bed5 100644
83581
--- third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build
83582
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build
83583
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83584
 AllowCompilerWarnings()
82422
 
83585
 
82423
 if CONFIG["CPU_ARCH"] == "aarch64":
83586
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
83587
+DEFINES["USE_GLIB"] = "1"
83588
+DEFINES["USE_OZONE"] = "1"
83589
+DEFINES["_FILE_OFFSET_BITS"] = "64"
83590
+DEFINES["_LARGEFILE64_SOURCE"] = True
83591
+DEFINES["_LARGEFILE_SOURCE"] = True
82424
 
83592
 
82425
     DEFINES["WEBRTC_ARCH_ARM64"] = True
83593
 FINAL_LIBRARY = "webrtc"
82426
     DEFINES["WEBRTC_HAS_NEON"] = True
82427
 
83594
 
82428
-if CONFIG["CPU_ARCH"] == "arm":
83595
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
83596
 if CONFIG["MOZ_DEBUG"] == "1":
83597
 
83598
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
82429
-
83599
-
82430
-    CXXFLAGS += [
83600
-if CONFIG["OS_TARGET"] == "Android":
82431
-        "-mfpu=neon"
82432
-    ]
82433
-
83601
-
82434
-    DEFINES["WEBRTC_ARCH_ARM"] = True
83602
-    DEFINES["ANDROID"] = True
82435
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
83603
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
82436
-    DEFINES["WEBRTC_HAS_NEON"] = True
83604
-    DEFINES["HAVE_SYS_UIO_H"] = True
83605
-    DEFINES["_GNU_SOURCE"] = True
83606
-
83607
-if CONFIG["OS_TARGET"] == "Darwin":
83608
-
83609
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
83610
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
83611
-
83612
-if CONFIG["OS_TARGET"] == "Linux":
83613
-
83614
-    DEFINES["USE_AURA"] = "1"
83615
-    DEFINES["USE_GLIB"] = "1"
83616
-    DEFINES["USE_NSS_CERTS"] = "1"
83617
-    DEFINES["USE_OZONE"] = "1"
83618
-    DEFINES["USE_UDEV"] = True
83619
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
83620
-    DEFINES["_LARGEFILE64_SOURCE"] = True
83621
-    DEFINES["_LARGEFILE_SOURCE"] = True
83622
-
83623
-if CONFIG["OS_TARGET"] == "OpenBSD":
83624
-
83625
-    DEFINES["USE_GLIB"] = "1"
83626
-    DEFINES["USE_OZONE"] = "1"
83627
-    DEFINES["USE_X11"] = "1"
83628
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
83629
-    DEFINES["_LARGEFILE64_SOURCE"] = True
83630
-    DEFINES["_LARGEFILE_SOURCE"] = True
83631
-
83632
-if CONFIG["OS_TARGET"] == "WINNT":
83633
-
83634
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
83635
-    DEFINES["NOMINMAX"] = True
83636
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
83637
-    DEFINES["PSAPI_VERSION"] = "2"
83638
-    DEFINES["UNICODE"] = True
83639
-    DEFINES["USE_AURA"] = "1"
83640
-    DEFINES["WIN32"] = True
83641
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
83642
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
83643
-    DEFINES["WINVER"] = "0x0A00"
83644
-    DEFINES["_ATL_NO_OPENGL"] = True
83645
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
83646
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
83647
-    DEFINES["_CRT_RAND_S"] = True
83648
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
83649
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
83650
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
83651
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
83652
-    DEFINES["_SECURE_ATL"] = True
83653
-    DEFINES["_UNICODE"] = True
83654
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
83655
-    DEFINES["_WINDOWS"] = True
83656
-    DEFINES["__STD_C"] = True
82437
-
83657
-
82438
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
83658
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
82439
-
83659
-
Lines 82445-82452 index 6fe8360de36e..b8dcc03c5611 100644 Link Here
82445
-
83665
-
82446
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83666
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
82447
-
83667
-
82448
-    DEFINES["_DEBUG"] = True
83668
     DEFINES["_DEBUG"] = True
82449
-
83669
 
82450
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
83670
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
82451
-
83671
-
82452
-    DEFINES["_DEBUG"] = True
83672
-    DEFINES["_DEBUG"] = True
Lines 82475-82525 index 6fe8360de36e..b8dcc03c5611 100644 Link Here
82475
-
83695
-
82476
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
83696
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
82477
-
83697
-
82478
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82479
-    DEFINES["_GNU_SOURCE"] = True
83698
-    DEFINES["_GNU_SOURCE"] = True
82480
-
83699
-
82481
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
83700
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
82482
-
83701
-
82483
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82484
-    DEFINES["_GNU_SOURCE"] = True
83702
-    DEFINES["_GNU_SOURCE"] = True
82485
-
83703
-
82486
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
83704
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
82487
-
83705
-
82488
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82489
-    DEFINES["_GNU_SOURCE"] = True
83706
-    DEFINES["_GNU_SOURCE"] = True
82490
-
83707
-
82491
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
83708
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
82492
-
83709
-
82493
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82494
-    DEFINES["_GNU_SOURCE"] = True
83710
-    DEFINES["_GNU_SOURCE"] = True
82495
-
83711
-
82496
 Library("field_trial_gn")
83712
 Library("container_gn")
82497
diff --git third_party/libwebrtc/system_wrappers/metrics_gn/moz.build third_party/libwebrtc/system_wrappers/metrics_gn/moz.build
83713
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build
82498
index b17503cb5956..d6cc8db5aee7 100644
83714
index b3e8809eff73..9284b6479ec7 100644
82499
--- third_party/libwebrtc/system_wrappers/metrics_gn/moz.build
83715
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build
82500
+++ third_party/libwebrtc/system_wrappers/metrics_gn/moz.build
83716
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build
82501
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
83717
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83718
 AllowCompilerWarnings()
83719
 
82502
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
83720
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82503
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82504
 DEFINES["RTC_ENABLE_VP9"] = True
82505
+DEFINES["USE_GLIB"] = "1"
83721
+DEFINES["USE_GLIB"] = "1"
82506
+DEFINES["USE_OZONE"] = "1"
83722
+DEFINES["USE_OZONE"] = "1"
82507
+DEFINES["WEBRTC_BSD"] = True
82508
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
82509
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
82510
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
82511
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
82512
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
82513
+DEFINES["WEBRTC_POSIX"] = True
82514
+DEFINES["_FILE_OFFSET_BITS"] = "64"
83723
+DEFINES["_FILE_OFFSET_BITS"] = "64"
82515
+DEFINES["_LARGEFILE64_SOURCE"] = True
83724
+DEFINES["_LARGEFILE64_SOURCE"] = True
82516
+DEFINES["_LARGEFILE_SOURCE"] = True
83725
+DEFINES["_LARGEFILE_SOURCE"] = True
82517
+DEFINES["__STDC_CONSTANT_MACROS"] = True
82518
+DEFINES["__STDC_FORMAT_MACROS"] = True
82519
 
83726
 
82520
 FINAL_LIBRARY = "webrtc"
83727
 FINAL_LIBRARY = "webrtc"
82521
 
83728
 
82522
@@ -41,161 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
83729
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
82523
 if CONFIG["MOZ_DEBUG"] == "1":
83730
 if CONFIG["MOZ_DEBUG"] == "1":
82524
 
83731
 
82525
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
83732
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 82529-82556 index b17503cb5956..d6cc8db5aee7 100644 Link Here
82529
-    DEFINES["ANDROID"] = True
83736
-    DEFINES["ANDROID"] = True
82530
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
83737
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
82531
-    DEFINES["HAVE_SYS_UIO_H"] = True
83738
-    DEFINES["HAVE_SYS_UIO_H"] = True
82532
-    DEFINES["WEBRTC_ANDROID"] = True
82533
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
82534
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82535
-    DEFINES["WEBRTC_LINUX"] = True
82536
-    DEFINES["WEBRTC_POSIX"] = True
82537
-    DEFINES["_GNU_SOURCE"] = True
83739
-    DEFINES["_GNU_SOURCE"] = True
82538
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82539
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82540
-
82541
-    OS_LIBS += [
82542
-        "log"
82543
-    ]
82544
-
83740
-
82545
-if CONFIG["OS_TARGET"] == "Darwin":
83741
-if CONFIG["OS_TARGET"] == "Darwin":
82546
-
83742
-
82547
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82548
-    DEFINES["WEBRTC_MAC"] = True
82549
-    DEFINES["WEBRTC_POSIX"] = True
82550
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
83743
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
82551
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
83744
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
82552
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82553
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82554
-
83745
-
82555
-if CONFIG["OS_TARGET"] == "Linux":
83746
-if CONFIG["OS_TARGET"] == "Linux":
82556
-
83747
-
Lines 82559-82585 index b17503cb5956..d6cc8db5aee7 100644 Link Here
82559
-    DEFINES["USE_NSS_CERTS"] = "1"
83750
-    DEFINES["USE_NSS_CERTS"] = "1"
82560
-    DEFINES["USE_OZONE"] = "1"
83751
-    DEFINES["USE_OZONE"] = "1"
82561
-    DEFINES["USE_UDEV"] = True
83752
-    DEFINES["USE_UDEV"] = True
82562
-    DEFINES["WEBRTC_LINUX"] = True
82563
-    DEFINES["WEBRTC_POSIX"] = True
82564
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
83753
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
82565
-    DEFINES["_LARGEFILE64_SOURCE"] = True
83754
-    DEFINES["_LARGEFILE64_SOURCE"] = True
82566
-    DEFINES["_LARGEFILE_SOURCE"] = True
83755
-    DEFINES["_LARGEFILE_SOURCE"] = True
82567
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82568
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82569
-
83756
-
82570
-if CONFIG["OS_TARGET"] == "OpenBSD":
83757
-if CONFIG["OS_TARGET"] == "OpenBSD":
82571
-
83758
-
82572
-    DEFINES["USE_GLIB"] = "1"
83759
-    DEFINES["USE_GLIB"] = "1"
82573
-    DEFINES["USE_OZONE"] = "1"
83760
-    DEFINES["USE_OZONE"] = "1"
82574
-    DEFINES["USE_X11"] = "1"
83761
-    DEFINES["USE_X11"] = "1"
82575
-    DEFINES["WEBRTC_BSD"] = True
82576
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82577
-    DEFINES["WEBRTC_POSIX"] = True
82578
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
83762
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
82579
-    DEFINES["_LARGEFILE64_SOURCE"] = True
83763
-    DEFINES["_LARGEFILE64_SOURCE"] = True
82580
-    DEFINES["_LARGEFILE_SOURCE"] = True
83764
-    DEFINES["_LARGEFILE_SOURCE"] = True
82581
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82582
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82583
-
83765
-
82584
-if CONFIG["OS_TARGET"] == "WINNT":
83766
-if CONFIG["OS_TARGET"] == "WINNT":
82585
-
83767
-
Lines 82589-82628 index b17503cb5956..d6cc8db5aee7 100644 Link Here
82589
-    DEFINES["PSAPI_VERSION"] = "2"
83771
-    DEFINES["PSAPI_VERSION"] = "2"
82590
-    DEFINES["UNICODE"] = True
83772
-    DEFINES["UNICODE"] = True
82591
-    DEFINES["USE_AURA"] = "1"
83773
-    DEFINES["USE_AURA"] = "1"
82592
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82593
-    DEFINES["WEBRTC_WIN"] = True
82594
-    DEFINES["WIN32"] = True
83774
-    DEFINES["WIN32"] = True
82595
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
83775
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
82596
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
83776
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
82597
-    DEFINES["WINVER"] = "0x0A00"
83777
-    DEFINES["WINVER"] = "0x0A00"
82598
-    DEFINES["_ATL_NO_OPENGL"] = True
83778
-    DEFINES["_ATL_NO_OPENGL"] = True
83779
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
83780
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
82599
-    DEFINES["_CRT_RAND_S"] = True
83781
-    DEFINES["_CRT_RAND_S"] = True
82600
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
83782
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
82601
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
83783
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
82602
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
83784
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
82603
-    DEFINES["_HAS_NODISCARD"] = True
82604
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
83785
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
82605
-    DEFINES["_SECURE_ATL"] = True
83786
-    DEFINES["_SECURE_ATL"] = True
82606
-    DEFINES["_UNICODE"] = True
83787
-    DEFINES["_UNICODE"] = True
82607
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
83788
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
82608
-    DEFINES["_WINDOWS"] = True
83789
-    DEFINES["_WINDOWS"] = True
82609
-    DEFINES["__STD_C"] = True
83790
-    DEFINES["__STD_C"] = True
82610
+    DEFINES["_DEBUG"] = True
82611
 
82612
 if CONFIG["CPU_ARCH"] == "aarch64":
82613
 
82614
     DEFINES["WEBRTC_ARCH_ARM64"] = True
82615
     DEFINES["WEBRTC_HAS_NEON"] = True
82616
 
82617
-if CONFIG["CPU_ARCH"] == "arm":
82618
-
82619
-    CXXFLAGS += [
82620
-        "-mfpu=neon"
82621
-    ]
82622
-
82623
-    DEFINES["WEBRTC_ARCH_ARM"] = True
82624
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
82625
-    DEFINES["WEBRTC_HAS_NEON"] = True
82626
-
83791
-
82627
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
83792
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
82628
-
83793
-
Lines 82634-82641 index b17503cb5956..d6cc8db5aee7 100644 Link Here
82634
-
83799
-
82635
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83800
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
82636
-
83801
-
82637
-    DEFINES["_DEBUG"] = True
83802
     DEFINES["_DEBUG"] = True
82638
-
83803
 
82639
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
83804
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
82640
-
83805
-
82641
-    DEFINES["_DEBUG"] = True
83806
-    DEFINES["_DEBUG"] = True
Lines 82664-82714 index b17503cb5956..d6cc8db5aee7 100644 Link Here
82664
-
83829
-
82665
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
83830
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
82666
-
83831
-
82667
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82668
-    DEFINES["_GNU_SOURCE"] = True
83832
-    DEFINES["_GNU_SOURCE"] = True
82669
-
83833
-
82670
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
83834
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
82671
-
83835
-
82672
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82673
-    DEFINES["_GNU_SOURCE"] = True
83836
-    DEFINES["_GNU_SOURCE"] = True
82674
-
83837
-
82675
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
83838
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
82676
-
83839
-
82677
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82678
-    DEFINES["_GNU_SOURCE"] = True
83840
-    DEFINES["_GNU_SOURCE"] = True
82679
-
83841
-
82680
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
83842
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
82681
-
83843
-
82682
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82683
-    DEFINES["_GNU_SOURCE"] = True
83844
-    DEFINES["_GNU_SOURCE"] = True
82684
-
83845
-
82685
 Library("metrics_gn")
83846
 Library("atomic_hook_gn")
82686
diff --git third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build
83847
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build
82687
index 46d6c227154e..2641fd638072 100644
83848
index 4233003ad577..914cb7710806 100644
82688
--- third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build
83849
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build
82689
+++ third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build
83850
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build
82690
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
83851
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83852
 AllowCompilerWarnings()
83853
 
82691
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
83854
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82692
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82693
 DEFINES["RTC_ENABLE_VP9"] = True
82694
+DEFINES["USE_GLIB"] = "1"
83855
+DEFINES["USE_GLIB"] = "1"
82695
+DEFINES["USE_OZONE"] = "1"
83856
+DEFINES["USE_OZONE"] = "1"
82696
+DEFINES["WEBRTC_BSD"] = True
82697
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
82698
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
82699
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
82700
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
82701
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
82702
+DEFINES["WEBRTC_POSIX"] = True
82703
+DEFINES["_FILE_OFFSET_BITS"] = "64"
83857
+DEFINES["_FILE_OFFSET_BITS"] = "64"
82704
+DEFINES["_LARGEFILE64_SOURCE"] = True
83858
+DEFINES["_LARGEFILE64_SOURCE"] = True
82705
+DEFINES["_LARGEFILE_SOURCE"] = True
83859
+DEFINES["_LARGEFILE_SOURCE"] = True
82706
+DEFINES["__STDC_CONSTANT_MACROS"] = True
82707
+DEFINES["__STDC_FORMAT_MACROS"] = True
82708
 
83860
 
82709
 FINAL_LIBRARY = "webrtc"
83861
 FINAL_LIBRARY = "webrtc"
82710
 
83862
 
82711
@@ -45,182 +55,15 @@ if not CONFIG["MOZ_DEBUG"]:
83863
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
82712
 if CONFIG["MOZ_DEBUG"] == "1":
83864
 if CONFIG["MOZ_DEBUG"] == "1":
82713
 
83865
 
82714
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
83866
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 82718-82751 index 46d6c227154e..2641fd638072 100644 Link Here
82718
-    DEFINES["ANDROID"] = True
83870
-    DEFINES["ANDROID"] = True
82719
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
83871
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
82720
-    DEFINES["HAVE_SYS_UIO_H"] = True
83872
-    DEFINES["HAVE_SYS_UIO_H"] = True
82721
-    DEFINES["WEBRTC_ANDROID"] = True
82722
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
82723
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82724
-    DEFINES["WEBRTC_LINUX"] = True
82725
-    DEFINES["WEBRTC_POSIX"] = True
82726
-    DEFINES["_GNU_SOURCE"] = True
83873
-    DEFINES["_GNU_SOURCE"] = True
82727
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82728
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82729
-
82730
-    LOCAL_INCLUDES += [
82731
-        "/config/external/nspr/",
82732
-        "/nsprpub/lib/ds/",
82733
-        "/nsprpub/pr/include/"
82734
-    ]
82735
-
82736
-    OS_LIBS += [
82737
-        "log"
82738
-    ]
82739
-
83874
-
82740
-if CONFIG["OS_TARGET"] == "Darwin":
83875
-if CONFIG["OS_TARGET"] == "Darwin":
82741
-
83876
-
82742
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82743
-    DEFINES["WEBRTC_MAC"] = True
82744
-    DEFINES["WEBRTC_POSIX"] = True
82745
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
83877
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
82746
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
83878
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
82747
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82748
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82749
-
83879
-
82750
-if CONFIG["OS_TARGET"] == "Linux":
83880
-if CONFIG["OS_TARGET"] == "Linux":
82751
-
83881
-
Lines 82754-82788 index 46d6c227154e..2641fd638072 100644 Link Here
82754
-    DEFINES["USE_NSS_CERTS"] = "1"
83884
-    DEFINES["USE_NSS_CERTS"] = "1"
82755
-    DEFINES["USE_OZONE"] = "1"
83885
-    DEFINES["USE_OZONE"] = "1"
82756
-    DEFINES["USE_UDEV"] = True
83886
-    DEFINES["USE_UDEV"] = True
82757
-    DEFINES["WEBRTC_LINUX"] = True
82758
-    DEFINES["WEBRTC_POSIX"] = True
82759
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
83887
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
82760
-    DEFINES["_LARGEFILE64_SOURCE"] = True
83888
-    DEFINES["_LARGEFILE64_SOURCE"] = True
82761
-    DEFINES["_LARGEFILE_SOURCE"] = True
83889
-    DEFINES["_LARGEFILE_SOURCE"] = True
82762
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82763
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82764
-
82765
-    OS_LIBS += [
82766
-        "rt"
82767
-    ]
82768
-
82769
-    UNIFIED_SOURCES += [
82770
-        "/third_party/libwebrtc/system_wrappers/source/cpu_features_linux.cc"
82771
-    ]
82772
-
83890
-
82773
-if CONFIG["OS_TARGET"] == "OpenBSD":
83891
-if CONFIG["OS_TARGET"] == "OpenBSD":
82774
-
83892
-
82775
-    DEFINES["USE_GLIB"] = "1"
83893
-    DEFINES["USE_GLIB"] = "1"
82776
-    DEFINES["USE_OZONE"] = "1"
83894
-    DEFINES["USE_OZONE"] = "1"
82777
-    DEFINES["USE_X11"] = "1"
83895
-    DEFINES["USE_X11"] = "1"
82778
-    DEFINES["WEBRTC_BSD"] = True
82779
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82780
-    DEFINES["WEBRTC_POSIX"] = True
82781
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
83896
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
82782
-    DEFINES["_LARGEFILE64_SOURCE"] = True
83897
-    DEFINES["_LARGEFILE64_SOURCE"] = True
82783
-    DEFINES["_LARGEFILE_SOURCE"] = True
83898
-    DEFINES["_LARGEFILE_SOURCE"] = True
82784
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82785
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82786
-
83899
-
82787
-if CONFIG["OS_TARGET"] == "WINNT":
83900
-if CONFIG["OS_TARGET"] == "WINNT":
82788
-
83901
-
Lines 82792-82809 index 46d6c227154e..2641fd638072 100644 Link Here
82792
-    DEFINES["PSAPI_VERSION"] = "2"
83905
-    DEFINES["PSAPI_VERSION"] = "2"
82793
-    DEFINES["UNICODE"] = True
83906
-    DEFINES["UNICODE"] = True
82794
-    DEFINES["USE_AURA"] = "1"
83907
-    DEFINES["USE_AURA"] = "1"
82795
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82796
-    DEFINES["WEBRTC_WIN"] = True
82797
-    DEFINES["WIN32"] = True
83908
-    DEFINES["WIN32"] = True
82798
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
83909
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
82799
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
83910
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
82800
-    DEFINES["WINVER"] = "0x0A00"
83911
-    DEFINES["WINVER"] = "0x0A00"
82801
-    DEFINES["_ATL_NO_OPENGL"] = True
83912
-    DEFINES["_ATL_NO_OPENGL"] = True
83913
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
83914
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
82802
-    DEFINES["_CRT_RAND_S"] = True
83915
-    DEFINES["_CRT_RAND_S"] = True
82803
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
83916
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
82804
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
83917
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
82805
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
83918
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
82806
-    DEFINES["_HAS_NODISCARD"] = True
82807
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
83919
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
82808
-    DEFINES["_SECURE_ATL"] = True
83920
-    DEFINES["_SECURE_ATL"] = True
82809
-    DEFINES["_UNICODE"] = True
83921
-    DEFINES["_UNICODE"] = True
Lines 82811-82839 index 46d6c227154e..2641fd638072 100644 Link Here
82811
-    DEFINES["_WINDOWS"] = True
83923
-    DEFINES["_WINDOWS"] = True
82812
-    DEFINES["__STD_C"] = True
83924
-    DEFINES["__STD_C"] = True
82813
-
83925
-
82814
-    OS_LIBS += [
82815
-        "crypt32",
82816
-        "iphlpapi",
82817
-        "secur32",
82818
-        "winmm"
82819
-    ]
82820
+    DEFINES["_DEBUG"] = True
82821
 
82822
 if CONFIG["CPU_ARCH"] == "aarch64":
82823
 
82824
     DEFINES["WEBRTC_ARCH_ARM64"] = True
82825
     DEFINES["WEBRTC_HAS_NEON"] = True
82826
 
82827
-if CONFIG["CPU_ARCH"] == "arm":
82828
-
82829
-    CXXFLAGS += [
82830
-        "-mfpu=neon"
82831
-    ]
82832
-
82833
-    DEFINES["WEBRTC_ARCH_ARM"] = True
82834
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
82835
-    DEFINES["WEBRTC_HAS_NEON"] = True
82836
-
82837
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
83926
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
82838
-
83927
-
82839
-    DEFINES["_DEBUG"] = True
83928
-    DEFINES["_DEBUG"] = True
Lines 82844-82851 index 46d6c227154e..2641fd638072 100644 Link Here
82844
-
83933
-
82845
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83934
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
82846
-
83935
-
82847
-    DEFINES["_DEBUG"] = True
83936
     DEFINES["_DEBUG"] = True
82848
-
83937
 
82849
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
83938
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
82850
-
83939
-
82851
-    DEFINES["_DEBUG"] = True
83940
-    DEFINES["_DEBUG"] = True
Lines 82874-82924 index 46d6c227154e..2641fd638072 100644 Link Here
82874
-
83963
-
82875
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
83964
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
82876
-
83965
-
82877
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82878
-    DEFINES["_GNU_SOURCE"] = True
83966
-    DEFINES["_GNU_SOURCE"] = True
82879
-
83967
-
82880
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
83968
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
82881
-
83969
-
82882
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82883
-    DEFINES["_GNU_SOURCE"] = True
83970
-    DEFINES["_GNU_SOURCE"] = True
82884
-
83971
-
82885
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
83972
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
82886
-
83973
-
82887
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82888
-    DEFINES["_GNU_SOURCE"] = True
83974
-    DEFINES["_GNU_SOURCE"] = True
82889
-
83975
-
82890
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
83976
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
82891
-
83977
-
82892
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82893
-    DEFINES["_GNU_SOURCE"] = True
83978
-    DEFINES["_GNU_SOURCE"] = True
82894
-
83979
-
82895
 Library("system_wrappers_gn")
83980
 Library("base_internal_gn")
82896
diff --git third_party/libwebrtc/test/rtp_test_utils_gn/moz.build third_party/libwebrtc/test/rtp_test_utils_gn/moz.build
83981
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build
82897
index f5dd5dd860e5..c4184eeaf57b 100644
83982
index 58015ede9d26..5369db6348e3 100644
82898
--- third_party/libwebrtc/test/rtp_test_utils_gn/moz.build
83983
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build
82899
+++ third_party/libwebrtc/test/rtp_test_utils_gn/moz.build
83984
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build
82900
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
83985
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83986
 AllowCompilerWarnings()
83987
 
82901
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
83988
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
82902
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
82903
 DEFINES["RTC_ENABLE_VP9"] = True
82904
+DEFINES["USE_GLIB"] = "1"
83989
+DEFINES["USE_GLIB"] = "1"
82905
+DEFINES["USE_OZONE"] = "1"
83990
+DEFINES["USE_OZONE"] = "1"
82906
+DEFINES["WEBRTC_BSD"] = True
82907
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
82908
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
82909
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
82910
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
82911
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
82912
+DEFINES["WEBRTC_POSIX"] = True
82913
+DEFINES["_FILE_OFFSET_BITS"] = "64"
83991
+DEFINES["_FILE_OFFSET_BITS"] = "64"
82914
+DEFINES["_LARGEFILE64_SOURCE"] = True
83992
+DEFINES["_LARGEFILE64_SOURCE"] = True
82915
+DEFINES["_LARGEFILE_SOURCE"] = True
83993
+DEFINES["_LARGEFILE_SOURCE"] = True
82916
+DEFINES["__STDC_CONSTANT_MACROS"] = True
82917
+DEFINES["__STDC_FORMAT_MACROS"] = True
82918
 
83994
 
82919
 FINAL_LIBRARY = "webrtc"
83995
 FINAL_LIBRARY = "webrtc"
82920
 
83996
 
82921
@@ -37,170 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
83997
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
82922
 if CONFIG["MOZ_DEBUG"] == "1":
83998
 if CONFIG["MOZ_DEBUG"] == "1":
82923
 
83999
 
82924
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
84000
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 82928-82956 index f5dd5dd860e5..c4184eeaf57b 100644 Link Here
82928
-    DEFINES["ANDROID"] = True
84004
-    DEFINES["ANDROID"] = True
82929
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
84005
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
82930
-    DEFINES["HAVE_SYS_UIO_H"] = True
84006
-    DEFINES["HAVE_SYS_UIO_H"] = True
82931
-    DEFINES["WEBRTC_ANDROID"] = True
82932
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
82933
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82934
-    DEFINES["WEBRTC_LINUX"] = True
82935
-    DEFINES["WEBRTC_POSIX"] = True
82936
-    DEFINES["_GNU_SOURCE"] = True
84007
-    DEFINES["_GNU_SOURCE"] = True
82937
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82938
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82939
-
82940
-    OS_LIBS += [
82941
-        "GLESv2",
82942
-        "log"
82943
-    ]
82944
-
84008
-
82945
-if CONFIG["OS_TARGET"] == "Darwin":
84009
-if CONFIG["OS_TARGET"] == "Darwin":
82946
-
84010
-
82947
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82948
-    DEFINES["WEBRTC_MAC"] = True
82949
-    DEFINES["WEBRTC_POSIX"] = True
82950
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
84011
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
82951
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
84012
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
82952
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82953
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82954
-
84013
-
82955
-if CONFIG["OS_TARGET"] == "Linux":
84014
-if CONFIG["OS_TARGET"] == "Linux":
82956
-
84015
-
Lines 82959-82990 index f5dd5dd860e5..c4184eeaf57b 100644 Link Here
82959
-    DEFINES["USE_NSS_CERTS"] = "1"
84018
-    DEFINES["USE_NSS_CERTS"] = "1"
82960
-    DEFINES["USE_OZONE"] = "1"
84019
-    DEFINES["USE_OZONE"] = "1"
82961
-    DEFINES["USE_UDEV"] = True
84020
-    DEFINES["USE_UDEV"] = True
82962
-    DEFINES["WEBRTC_LINUX"] = True
82963
-    DEFINES["WEBRTC_POSIX"] = True
82964
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
84021
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
82965
-    DEFINES["_LARGEFILE64_SOURCE"] = True
84022
-    DEFINES["_LARGEFILE64_SOURCE"] = True
82966
-    DEFINES["_LARGEFILE_SOURCE"] = True
84023
-    DEFINES["_LARGEFILE_SOURCE"] = True
82967
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82968
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82969
-
82970
-    OS_LIBS += [
82971
-        "dl",
82972
-        "rt"
82973
-    ]
82974
-
84024
-
82975
-if CONFIG["OS_TARGET"] == "OpenBSD":
84025
-if CONFIG["OS_TARGET"] == "OpenBSD":
82976
-
84026
-
82977
-    DEFINES["USE_GLIB"] = "1"
84027
-    DEFINES["USE_GLIB"] = "1"
82978
-    DEFINES["USE_OZONE"] = "1"
84028
-    DEFINES["USE_OZONE"] = "1"
82979
-    DEFINES["USE_X11"] = "1"
84029
-    DEFINES["USE_X11"] = "1"
82980
-    DEFINES["WEBRTC_BSD"] = True
82981
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82982
-    DEFINES["WEBRTC_POSIX"] = True
82983
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
84030
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
82984
-    DEFINES["_LARGEFILE64_SOURCE"] = True
84031
-    DEFINES["_LARGEFILE64_SOURCE"] = True
82985
-    DEFINES["_LARGEFILE_SOURCE"] = True
84032
-    DEFINES["_LARGEFILE_SOURCE"] = True
82986
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
82987
-    DEFINES["__STDC_FORMAT_MACROS"] = True
82988
-
84033
-
82989
-if CONFIG["OS_TARGET"] == "WINNT":
84034
-if CONFIG["OS_TARGET"] == "WINNT":
82990
-
84035
-
Lines 82994-83011 index f5dd5dd860e5..c4184eeaf57b 100644 Link Here
82994
-    DEFINES["PSAPI_VERSION"] = "2"
84039
-    DEFINES["PSAPI_VERSION"] = "2"
82995
-    DEFINES["UNICODE"] = True
84040
-    DEFINES["UNICODE"] = True
82996
-    DEFINES["USE_AURA"] = "1"
84041
-    DEFINES["USE_AURA"] = "1"
82997
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
82998
-    DEFINES["WEBRTC_WIN"] = True
82999
-    DEFINES["WIN32"] = True
84042
-    DEFINES["WIN32"] = True
83000
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
84043
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
83001
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
84044
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
83002
-    DEFINES["WINVER"] = "0x0A00"
84045
-    DEFINES["WINVER"] = "0x0A00"
83003
-    DEFINES["_ATL_NO_OPENGL"] = True
84046
-    DEFINES["_ATL_NO_OPENGL"] = True
84047
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
84048
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
83004
-    DEFINES["_CRT_RAND_S"] = True
84049
-    DEFINES["_CRT_RAND_S"] = True
83005
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
84050
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
83006
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
84051
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
83007
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
84052
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
83008
-    DEFINES["_HAS_NODISCARD"] = True
83009
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
84053
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
83010
-    DEFINES["_SECURE_ATL"] = True
84054
-    DEFINES["_SECURE_ATL"] = True
83011
-    DEFINES["_UNICODE"] = True
84055
-    DEFINES["_UNICODE"] = True
Lines 83013-83037 index f5dd5dd860e5..c4184eeaf57b 100644 Link Here
83013
-    DEFINES["_WINDOWS"] = True
84057
-    DEFINES["_WINDOWS"] = True
83014
-    DEFINES["__STD_C"] = True
84058
-    DEFINES["__STD_C"] = True
83015
-
84059
-
83016
-    OS_LIBS += [
83017
-        "crypt32",
83018
-        "iphlpapi",
83019
-        "secur32",
83020
-        "winmm"
83021
-    ]
83022
+    DEFINES["_DEBUG"] = True
83023
 
83024
 if CONFIG["CPU_ARCH"] == "aarch64":
83025
 
83026
     DEFINES["WEBRTC_ARCH_ARM64"] = True
83027
     DEFINES["WEBRTC_HAS_NEON"] = True
83028
 
83029
-if CONFIG["CPU_ARCH"] == "arm":
83030
-
83031
-    DEFINES["WEBRTC_ARCH_ARM"] = True
83032
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
83033
-    DEFINES["WEBRTC_HAS_NEON"] = True
83034
-
83035
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
84060
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
83036
-
84061
-
83037
-    DEFINES["_DEBUG"] = True
84062
-    DEFINES["_DEBUG"] = True
Lines 83042-83049 index f5dd5dd860e5..c4184eeaf57b 100644 Link Here
83042
-
84067
-
83043
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
84068
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83044
-
84069
-
83045
-    DEFINES["_DEBUG"] = True
84070
     DEFINES["_DEBUG"] = True
83046
-
84071
 
83047
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
84072
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
83048
-
84073
-
83049
-    DEFINES["_DEBUG"] = True
84074
-    DEFINES["_DEBUG"] = True
Lines 83072-83100 index f5dd5dd860e5..c4184eeaf57b 100644 Link Here
83072
-
84097
-
83073
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
84098
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
83074
-
84099
-
83075
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
83076
-    DEFINES["_GNU_SOURCE"] = True
84100
-    DEFINES["_GNU_SOURCE"] = True
83077
-
84101
-
83078
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
84102
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
83079
-
84103
-
83080
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
83081
-    DEFINES["_GNU_SOURCE"] = True
84104
-    DEFINES["_GNU_SOURCE"] = True
83082
-
84105
-
83083
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
84106
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
83084
-
84107
-
83085
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
83086
-    DEFINES["_GNU_SOURCE"] = True
84108
-    DEFINES["_GNU_SOURCE"] = True
83087
-
84109
-
83088
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
84110
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
83089
-
84111
-
83090
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
83091
-    DEFINES["_GNU_SOURCE"] = True
84112
-    DEFINES["_GNU_SOURCE"] = True
83092
-
84113
-
83093
 Library("rtp_test_utils_gn")
84114
 Library("config_gn")
83094
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build
84115
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build
83095
index 9f6b45a412ad..40b0de7e0875 100644
84116
index 7d2c3d979f69..0672749e0277 100644
83096
--- third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build
84117
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build
83097
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build
84118
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build
83098
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84119
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83099
 AllowCompilerWarnings()
84120
 AllowCompilerWarnings()
83100
 
84121
 
Lines 83224-83234 index 9f6b45a412ad..40b0de7e0875 100644 Link Here
83224
-
84245
-
83225
-    DEFINES["_GNU_SOURCE"] = True
84246
-    DEFINES["_GNU_SOURCE"] = True
83226
-
84247
-
83227
 Library("algorithm_gn")
84248
 Library("core_headers_gn")
83228
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build
84249
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build
83229
index 461ee70d7ebe..462dd153bed5 100644
84250
index f96ddd93bb4f..9879bb11b81a 100644
83230
--- third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build
84251
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build
83231
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build
84252
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build
83232
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84253
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83233
 AllowCompilerWarnings()
84254
 AllowCompilerWarnings()
83234
 
84255
 
Lines 83241-83247 index 461ee70d7ebe..462dd153bed5 100644 Link Here
83241
 
84262
 
83242
 FINAL_LIBRARY = "webrtc"
84263
 FINAL_LIBRARY = "webrtc"
83243
 
84264
 
83244
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
84265
@@ -35,122 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
83245
 if CONFIG["MOZ_DEBUG"] == "1":
84266
 if CONFIG["MOZ_DEBUG"] == "1":
83246
 
84267
 
83247
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
84268
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 83304-83309 index 461ee70d7ebe..462dd153bed5 100644 Link Here
83304
-    DEFINES["_WINDOWS"] = True
84325
-    DEFINES["_WINDOWS"] = True
83305
-    DEFINES["__STD_C"] = True
84326
-    DEFINES["__STD_C"] = True
83306
-
84327
-
84328
-if CONFIG["CPU_ARCH"] == "arm":
84329
-
84330
-    CXXFLAGS += [
84331
-        "-mfpu=neon"
84332
-    ]
84333
-
83307
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
84334
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
83308
-
84335
-
83309
-    DEFINES["_DEBUG"] = True
84336
-    DEFINES["_DEBUG"] = True
Lines 83313-83325 index 461ee70d7ebe..462dd153bed5 100644 Link Here
83313
-    DEFINES["_DEBUG"] = True
84340
-    DEFINES["_DEBUG"] = True
83314
-
84341
-
83315
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
84342
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83316
-
83317
     DEFINES["_DEBUG"] = True
83318
 
83319
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
83320
-
84343
-
83321
-    DEFINES["_DEBUG"] = True
84344
-    DEFINES["_DEBUG"] = True
83322
-
84345
-
84346
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
84347
-
84348
     DEFINES["_DEBUG"] = True
84349
 
83323
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
84350
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
83324
-
84351
-
83325
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
84352
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 83358-83368 index 461ee70d7ebe..462dd153bed5 100644 Link Here
83358
-
84385
-
83359
-    DEFINES["_GNU_SOURCE"] = True
84386
-    DEFINES["_GNU_SOURCE"] = True
83360
-
84387
-
83361
 Library("container_gn")
84388
 Library("log_severity_gn")
83362
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build
84389
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build
83363
index b3e8809eff73..9284b6479ec7 100644
84390
index 5dc6a845d591..b78073c507d5 100644
83364
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build
84391
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build
83365
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build
84392
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build
83366
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84393
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83367
 AllowCompilerWarnings()
84394
 AllowCompilerWarnings()
83368
 
84395
 
Lines 83375-83381 index b3e8809eff73..9284b6479ec7 100644 Link Here
83375
 
84402
 
83376
 FINAL_LIBRARY = "webrtc"
84403
 FINAL_LIBRARY = "webrtc"
83377
 
84404
 
83378
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
84405
@@ -35,122 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
83379
 if CONFIG["MOZ_DEBUG"] == "1":
84406
 if CONFIG["MOZ_DEBUG"] == "1":
83380
 
84407
 
83381
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
84408
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 83438-83443 index b3e8809eff73..9284b6479ec7 100644 Link Here
83438
-    DEFINES["_WINDOWS"] = True
84465
-    DEFINES["_WINDOWS"] = True
83439
-    DEFINES["__STD_C"] = True
84466
-    DEFINES["__STD_C"] = True
83440
-
84467
-
84468
-if CONFIG["CPU_ARCH"] == "arm":
84469
-
84470
-    CXXFLAGS += [
84471
-        "-mfpu=neon"
84472
-    ]
84473
-
83441
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
84474
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
83442
-
84475
-
83443
-    DEFINES["_DEBUG"] = True
84476
-    DEFINES["_DEBUG"] = True
Lines 83447-83459 index b3e8809eff73..9284b6479ec7 100644 Link Here
83447
-    DEFINES["_DEBUG"] = True
84480
-    DEFINES["_DEBUG"] = True
83448
-
84481
-
83449
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
84482
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83450
-
83451
     DEFINES["_DEBUG"] = True
83452
 
83453
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
83454
-
84483
-
83455
-    DEFINES["_DEBUG"] = True
84484
-    DEFINES["_DEBUG"] = True
83456
-
84485
-
84486
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
84487
-
84488
     DEFINES["_DEBUG"] = True
84489
 
83457
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
84490
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
83458
-
84491
-
83459
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
84492
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 83492-83502 index b3e8809eff73..9284b6479ec7 100644 Link Here
83492
-
84525
-
83493
-    DEFINES["_GNU_SOURCE"] = True
84526
-    DEFINES["_GNU_SOURCE"] = True
83494
-
84527
-
83495
 Library("atomic_hook_gn")
84528
 Library("raw_logging_internal_gn")
83496
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build
84529
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/throw_delegate_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/throw_delegate_gn/moz.build
83497
index 4233003ad577..914cb7710806 100644
84530
index a95db633b3fb..35ec1033253b 100644
83498
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build
84531
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/throw_delegate_gn/moz.build
83499
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build
84532
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/throw_delegate_gn/moz.build
83500
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84533
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83501
 AllowCompilerWarnings()
84534
 AllowCompilerWarnings()
83502
 
84535
 
Lines 83509-83515 index 4233003ad577..914cb7710806 100644 Link Here
83509
 
84542
 
83510
 FINAL_LIBRARY = "webrtc"
84543
 FINAL_LIBRARY = "webrtc"
83511
 
84544
 
83512
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
84545
@@ -35,122 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
83513
 if CONFIG["MOZ_DEBUG"] == "1":
84546
 if CONFIG["MOZ_DEBUG"] == "1":
83514
 
84547
 
83515
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
84548
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 83572-83577 index 4233003ad577..914cb7710806 100644 Link Here
83572
-    DEFINES["_WINDOWS"] = True
84605
-    DEFINES["_WINDOWS"] = True
83573
-    DEFINES["__STD_C"] = True
84606
-    DEFINES["__STD_C"] = True
83574
-
84607
-
84608
-if CONFIG["CPU_ARCH"] == "arm":
84609
-
84610
-    CXXFLAGS += [
84611
-        "-mfpu=neon"
84612
-    ]
84613
-
83575
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
84614
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
83576
-
84615
-
83577
-    DEFINES["_DEBUG"] = True
84616
-    DEFINES["_DEBUG"] = True
Lines 83581-83593 index 4233003ad577..914cb7710806 100644 Link Here
83581
-    DEFINES["_DEBUG"] = True
84620
-    DEFINES["_DEBUG"] = True
83582
-
84621
-
83583
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
84622
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83584
-
83585
     DEFINES["_DEBUG"] = True
83586
 
83587
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
83588
-
84623
-
83589
-    DEFINES["_DEBUG"] = True
84624
-    DEFINES["_DEBUG"] = True
83590
-
84625
-
84626
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
84627
-
84628
     DEFINES["_DEBUG"] = True
84629
 
83591
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
84630
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
83592
-
84631
-
83593
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
84632
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 83626-83636 index 4233003ad577..914cb7710806 100644 Link Here
83626
-
84665
-
83627
-    DEFINES["_GNU_SOURCE"] = True
84666
-    DEFINES["_GNU_SOURCE"] = True
83628
-
84667
-
83629
 Library("base_internal_gn")
84668
 Library("throw_delegate_gn")
83630
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build
84669
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_gn/moz.build
83631
index 58015ede9d26..5369db6348e3 100644
84670
index 4e39dbb89676..061dd886d61b 100644
83632
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build
84671
--- third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_gn/moz.build
83633
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build
84672
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_gn/moz.build
83634
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84673
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83635
 AllowCompilerWarnings()
84674
 AllowCompilerWarnings()
83636
 
84675
 
Lines 83760-83770 index 58015ede9d26..5369db6348e3 100644 Link Here
83760
-
84799
-
83761
-    DEFINES["_GNU_SOURCE"] = True
84800
-    DEFINES["_GNU_SOURCE"] = True
83762
-
84801
-
83763
 Library("config_gn")
84802
 Library("cleanup_gn")
83764
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build
84803
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_internal_gn/moz.build
83765
index 7d2c3d979f69..0672749e0277 100644
84804
index 4d655fcce792..7ff74145e47e 100644
83766
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build
84805
--- third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_internal_gn/moz.build
83767
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build
84806
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_internal_gn/moz.build
83768
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84807
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83769
 AllowCompilerWarnings()
84808
 AllowCompilerWarnings()
83770
 
84809
 
Lines 83894-83904 index 7d2c3d979f69..0672749e0277 100644 Link Here
83894
-
84933
-
83895
-    DEFINES["_GNU_SOURCE"] = True
84934
-    DEFINES["_GNU_SOURCE"] = True
83896
-
84935
-
83897
 Library("core_headers_gn")
84936
 Library("cleanup_internal_gn")
83898
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build
84937
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build
83899
index f96ddd93bb4f..9879bb11b81a 100644
84938
index 7209713cb85a..689837b0c0d3 100644
83900
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build
84939
--- third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build
83901
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build
84940
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build
83902
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84941
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
83903
 AllowCompilerWarnings()
84942
 AllowCompilerWarnings()
83904
 
84943
 
Lines 83911-83917 index f96ddd93bb4f..9879bb11b81a 100644 Link Here
83911
 
84950
 
83912
 FINAL_LIBRARY = "webrtc"
84951
 FINAL_LIBRARY = "webrtc"
83913
 
84952
 
83914
@@ -35,122 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
84953
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
83915
 if CONFIG["MOZ_DEBUG"] == "1":
84954
 if CONFIG["MOZ_DEBUG"] == "1":
83916
 
84955
 
83917
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
84956
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 83974-83985 index f96ddd93bb4f..9879bb11b81a 100644 Link Here
83974
-    DEFINES["_WINDOWS"] = True
85013
-    DEFINES["_WINDOWS"] = True
83975
-    DEFINES["__STD_C"] = True
85014
-    DEFINES["__STD_C"] = True
83976
-
85015
-
83977
-if CONFIG["CPU_ARCH"] == "arm":
83978
-
83979
-    CXXFLAGS += [
83980
-        "-mfpu=neon"
83981
-    ]
83982
-
83983
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
85016
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
83984
-
85017
-
83985
-    DEFINES["_DEBUG"] = True
85018
-    DEFINES["_DEBUG"] = True
Lines 83989-84001 index f96ddd93bb4f..9879bb11b81a 100644 Link Here
83989
-    DEFINES["_DEBUG"] = True
85022
-    DEFINES["_DEBUG"] = True
83990
-
85023
-
83991
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
85024
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
83992
-
83993
-    DEFINES["_DEBUG"] = True
83994
-
83995
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
83996
-
85025
-
83997
     DEFINES["_DEBUG"] = True
85026
     DEFINES["_DEBUG"] = True
83998
 
85027
 
85028
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
85029
-
85030
-    DEFINES["_DEBUG"] = True
85031
-
83999
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
85032
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
84000
-
85033
-
84001
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
85034
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 84034-84044 index f96ddd93bb4f..9879bb11b81a 100644 Link Here
84034
-
85067
-
84035
-    DEFINES["_GNU_SOURCE"] = True
85068
-    DEFINES["_GNU_SOURCE"] = True
84036
-
85069
-
84037
 Library("log_severity_gn")
85070
 Library("compressed_tuple_gn")
84038
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build
85071
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build
84039
index 5dc6a845d591..b78073c507d5 100644
85072
index 70b3e1cb35d4..237e183bc25d 100644
84040
--- third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build
85073
--- third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build
84041
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build
85074
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build
84042
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85075
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84043
 AllowCompilerWarnings()
85076
 AllowCompilerWarnings()
84044
 
85077
 
Lines 84051-84057 index 5dc6a845d591..b78073c507d5 100644 Link Here
84051
 
85084
 
84052
 FINAL_LIBRARY = "webrtc"
85085
 FINAL_LIBRARY = "webrtc"
84053
 
85086
 
84054
@@ -35,122 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
85087
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
84055
 if CONFIG["MOZ_DEBUG"] == "1":
85088
 if CONFIG["MOZ_DEBUG"] == "1":
84056
 
85089
 
84057
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
85090
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 84114-84125 index 5dc6a845d591..b78073c507d5 100644 Link Here
84114
-    DEFINES["_WINDOWS"] = True
85147
-    DEFINES["_WINDOWS"] = True
84115
-    DEFINES["__STD_C"] = True
85148
-    DEFINES["__STD_C"] = True
84116
-
85149
-
84117
-if CONFIG["CPU_ARCH"] == "arm":
84118
-
84119
-    CXXFLAGS += [
84120
-        "-mfpu=neon"
84121
-    ]
84122
-
84123
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
85150
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
84124
-
85151
-
84125
-    DEFINES["_DEBUG"] = True
85152
-    DEFINES["_DEBUG"] = True
Lines 84129-84141 index 5dc6a845d591..b78073c507d5 100644 Link Here
84129
-    DEFINES["_DEBUG"] = True
85156
-    DEFINES["_DEBUG"] = True
84130
-
85157
-
84131
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
85158
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
84132
-
84133
-    DEFINES["_DEBUG"] = True
84134
-
84135
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
84136
-
85159
-
84137
     DEFINES["_DEBUG"] = True
85160
     DEFINES["_DEBUG"] = True
84138
 
85161
 
85162
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
85163
-
85164
-    DEFINES["_DEBUG"] = True
85165
-
84139
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
85166
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
84140
-
85167
-
84141
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
85168
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 84174-84302 index 5dc6a845d591..b78073c507d5 100644 Link Here
84174
-
85201
-
84175
-    DEFINES["_GNU_SOURCE"] = True
85202
-    DEFINES["_GNU_SOURCE"] = True
84176
-
85203
-
84177
 Library("raw_logging_internal_gn")
85204
 Library("flat_hash_map_gn")
84178
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_gn/moz.build
85205
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build
84179
deleted file mode 100644
85206
index 39fbab30d973..f5b45eb3b183 100644
84180
index 6413dbafcb95..000000000000
85207
--- third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build
84181
--- third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_gn/moz.build
85208
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build
84182
+++ /dev/null
85209
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84183
@@ -1,53 +0,0 @@
85210
 AllowCompilerWarnings()
84184
-# This Source Code Form is subject to the terms of the Mozilla Public
85211
 
84185
-# License, v. 2.0. If a copy of the MPL was not distributed with this
85212
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
84186
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
85213
+DEFINES["USE_GLIB"] = "1"
85214
+DEFINES["USE_OZONE"] = "1"
85215
+DEFINES["_FILE_OFFSET_BITS"] = "64"
85216
+DEFINES["_LARGEFILE64_SOURCE"] = True
85217
+DEFINES["_LARGEFILE_SOURCE"] = True
85218
 
85219
 FINAL_LIBRARY = "webrtc"
85220
 
85221
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
85222
 if CONFIG["MOZ_DEBUG"] == "1":
85223
 
85224
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
84187
-
85225
-
85226
-if CONFIG["OS_TARGET"] == "Android":
84188
-
85227
-
84189
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
85228
-    DEFINES["ANDROID"] = True
84190
-  ### DO NOT edit it by hand.                                       ###
85229
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
85230
-    DEFINES["HAVE_SYS_UIO_H"] = True
85231
-    DEFINES["_GNU_SOURCE"] = True
84191
-
85232
-
84192
-COMPILE_FLAGS["OS_INCLUDES"] = []
85233
-if CONFIG["OS_TARGET"] == "Darwin":
84193
-AllowCompilerWarnings()
84194
-
85234
-
84195
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
85235
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
84196
-DEFINES["ANDROID"] = True
85236
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
84197
-DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
84198
-DEFINES["HAVE_SYS_UIO_H"] = True
84199
-DEFINES["_GNU_SOURCE"] = True
84200
-
85237
-
84201
-FINAL_LIBRARY = "webrtc"
85238
-if CONFIG["OS_TARGET"] == "Linux":
84202
-
85239
-
85240
-    DEFINES["USE_AURA"] = "1"
85241
-    DEFINES["USE_GLIB"] = "1"
85242
-    DEFINES["USE_NSS_CERTS"] = "1"
85243
-    DEFINES["USE_OZONE"] = "1"
85244
-    DEFINES["USE_UDEV"] = True
85245
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
85246
-    DEFINES["_LARGEFILE64_SOURCE"] = True
85247
-    DEFINES["_LARGEFILE_SOURCE"] = True
84203
-
85248
-
84204
-LOCAL_INCLUDES += [
85249
-if CONFIG["OS_TARGET"] == "OpenBSD":
84205
-    "!/ipc/ipdl/_ipdlheaders",
84206
-    "/ipc/chromium/src",
84207
-    "/third_party/libwebrtc/",
84208
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
84209
-    "/tools/profiler/public"
84210
-]
84211
-
85250
-
84212
-if not CONFIG["MOZ_DEBUG"]:
85251
-    DEFINES["USE_GLIB"] = "1"
85252
-    DEFINES["USE_OZONE"] = "1"
85253
-    DEFINES["USE_X11"] = "1"
85254
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
85255
-    DEFINES["_LARGEFILE64_SOURCE"] = True
85256
-    DEFINES["_LARGEFILE_SOURCE"] = True
84213
-
85257
-
84214
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
85258
-if CONFIG["OS_TARGET"] == "WINNT":
84215
-    DEFINES["NDEBUG"] = True
84216
-    DEFINES["NVALGRIND"] = True
84217
-
85259
-
84218
-if CONFIG["MOZ_DEBUG"] == "1":
85260
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
85261
-    DEFINES["NOMINMAX"] = True
85262
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
85263
-    DEFINES["PSAPI_VERSION"] = "2"
85264
-    DEFINES["UNICODE"] = True
85265
-    DEFINES["USE_AURA"] = "1"
85266
-    DEFINES["WIN32"] = True
85267
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
85268
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
85269
-    DEFINES["WINVER"] = "0x0A00"
85270
-    DEFINES["_ATL_NO_OPENGL"] = True
85271
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
85272
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
85273
-    DEFINES["_CRT_RAND_S"] = True
85274
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
85275
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
85276
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
85277
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
85278
-    DEFINES["_SECURE_ATL"] = True
85279
-    DEFINES["_UNICODE"] = True
85280
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
85281
-    DEFINES["_WINDOWS"] = True
85282
-    DEFINES["__STD_C"] = True
84219
-
85283
-
84220
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
85284
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
84221
-    DEFINES["_DEBUG"] = True
84222
-
85285
-
84223
-if CONFIG["CPU_ARCH"] == "arm":
85286
-    DEFINES["_DEBUG"] = True
84224
-
85287
-
84225
-    OS_LIBS += [
85288
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
84226
-        "android_support",
84227
-        "unwind"
84228
-    ]
84229
-
85289
-
84230
-if CONFIG["CPU_ARCH"] == "x86":
85290
-    DEFINES["_DEBUG"] = True
84231
-
85291
-
84232
-    OS_LIBS += [
85292
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
84233
-        "android_support"
84234
-    ]
84235
-
85293
-
84236
-Library("cleanup_gn")
85294
     DEFINES["_DEBUG"] = True
84237
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_internal_gn/moz.build
85295
 
84238
deleted file mode 100644
85296
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
84239
index ab9288e847f7..000000000000
84240
--- third_party/libwebrtc/third_party/abseil-cpp/absl/cleanup/cleanup_internal_gn/moz.build
84241
+++ /dev/null
84242
@@ -1,53 +0,0 @@
84243
-# This Source Code Form is subject to the terms of the Mozilla Public
84244
-# License, v. 2.0. If a copy of the MPL was not distributed with this
84245
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
84246
-
85297
-
85298
-    DEFINES["_DEBUG"] = True
84247
-
85299
-
84248
-  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
85300
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
84249
-  ### DO NOT edit it by hand.                                       ###
84250
-
85301
-
84251
-COMPILE_FLAGS["OS_INCLUDES"] = []
85302
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
84252
-AllowCompilerWarnings()
84253
-
85303
-
84254
-DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
85304
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
84255
-DEFINES["ANDROID"] = True
85305
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
84256
-DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
85306
 
84257
-DEFINES["HAVE_SYS_UIO_H"] = True
85307
     DEFINES["USE_X11"] = "1"
84258
-DEFINES["_GNU_SOURCE"] = True
85308
 
85309
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
84259
-
85310
-
84260
-FINAL_LIBRARY = "webrtc"
85311
-    OS_LIBS += [
85312
-        "android_support",
85313
-        "unwind"
85314
-    ]
84261
-
85315
-
85316
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
84262
-
85317
-
84263
-LOCAL_INCLUDES += [
85318
-    OS_LIBS += [
84264
-    "!/ipc/ipdl/_ipdlheaders",
85319
-        "android_support"
84265
-    "/ipc/chromium/src",
85320
-    ]
84266
-    "/third_party/libwebrtc/",
84267
-    "/third_party/libwebrtc/third_party/abseil-cpp/",
84268
-    "/tools/profiler/public"
84269
-]
84270
-
85321
-
84271
-if not CONFIG["MOZ_DEBUG"]:
85322
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
84272
-
85323
-
84273
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
85324
-    DEFINES["_GNU_SOURCE"] = True
84274
-    DEFINES["NDEBUG"] = True
84275
-    DEFINES["NVALGRIND"] = True
84276
-
85325
-
84277
-if CONFIG["MOZ_DEBUG"] == "1":
85326
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
84278
-
85327
-
84279
-    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
85328
-    DEFINES["_GNU_SOURCE"] = True
84280
-    DEFINES["_DEBUG"] = True
84281
-
85329
-
84282
-if CONFIG["CPU_ARCH"] == "arm":
85330
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
84283
-
85331
-
84284
-    OS_LIBS += [
85332
-    DEFINES["_GNU_SOURCE"] = True
84285
-        "android_support",
84286
-        "unwind"
84287
-    ]
84288
-
85333
-
84289
-if CONFIG["CPU_ARCH"] == "x86":
85334
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
84290
-
85335
-
84291
-    OS_LIBS += [
85336
-    DEFINES["_GNU_SOURCE"] = True
84292
-        "android_support"
84293
-    ]
84294
-
85337
-
84295
-Library("cleanup_internal_gn")
85338
 Library("inlined_vector_gn")
84296
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build
85339
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build
84297
index 7209713cb85a..689837b0c0d3 100644
85340
index 6161d5ce01bf..99ad3eae9e46 100644
84298
--- third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build
85341
--- third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build
84299
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build
85342
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build
84300
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85343
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84301
 AllowCompilerWarnings()
85344
 AllowCompilerWarnings()
84302
 
85345
 
Lines 84426-84436 index 7209713cb85a..689837b0c0d3 100644 Link Here
84426
-
85469
-
84427
-    DEFINES["_GNU_SOURCE"] = True
85470
-    DEFINES["_GNU_SOURCE"] = True
84428
-
85471
-
84429
 Library("compressed_tuple_gn")
85472
 Library("inlined_vector_internal_gn")
84430
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build
85473
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/functional/any_invocable_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/functional/any_invocable_gn/moz.build
84431
index 70b3e1cb35d4..237e183bc25d 100644
85474
index 067748c5ac6f..69a36f938696 100644
84432
--- third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build
85475
--- third_party/libwebrtc/third_party/abseil-cpp/absl/functional/any_invocable_gn/moz.build
84433
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build
85476
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/functional/any_invocable_gn/moz.build
84434
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85477
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84435
 AllowCompilerWarnings()
85478
 AllowCompilerWarnings()
84436
 
85479
 
Lines 84560-84570 index 70b3e1cb35d4..237e183bc25d 100644 Link Here
84560
-
85603
-
84561
-    DEFINES["_GNU_SOURCE"] = True
85604
-    DEFINES["_GNU_SOURCE"] = True
84562
-
85605
-
84563
 Library("flat_hash_map_gn")
85606
 Library("any_invocable_gn")
84564
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build
85607
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/functional/bind_front_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/functional/bind_front_gn/moz.build
84565
index 39fbab30d973..f5b45eb3b183 100644
85608
index 64977c41edec..b9f84bae9e9c 100644
84566
--- third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build
85609
--- third_party/libwebrtc/third_party/abseil-cpp/absl/functional/bind_front_gn/moz.build
84567
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build
85610
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/functional/bind_front_gn/moz.build
84568
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85611
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84569
 AllowCompilerWarnings()
85612
 AllowCompilerWarnings()
84570
 
85613
 
Lines 84694-84704 index 39fbab30d973..f5b45eb3b183 100644 Link Here
84694
-
85737
-
84695
-    DEFINES["_GNU_SOURCE"] = True
85738
-    DEFINES["_GNU_SOURCE"] = True
84696
-
85739
-
84697
 Library("inlined_vector_gn")
85740
 Library("bind_front_gn")
84698
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build
85741
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build
84699
index 6161d5ce01bf..99ad3eae9e46 100644
85742
index b98bc24b90d1..ba4d02e31530 100644
84700
--- third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build
85743
--- third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build
84701
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build
85744
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build
84702
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85745
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84703
 AllowCompilerWarnings()
85746
 AllowCompilerWarnings()
84704
 
85747
 
Lines 84828-84838 index 6161d5ce01bf..99ad3eae9e46 100644 Link Here
84828
-
85871
-
84829
-    DEFINES["_GNU_SOURCE"] = True
85872
-    DEFINES["_GNU_SOURCE"] = True
84830
-
85873
-
84831
 Library("inlined_vector_internal_gn")
85874
 Library("memory_gn")
84832
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/functional/bind_front_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/functional/bind_front_gn/moz.build
85875
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build
84833
index 64977c41edec..b9f84bae9e9c 100644
85876
index 639a1bf3ba8d..8ba0ade290ac 100644
84834
--- third_party/libwebrtc/third_party/abseil-cpp/absl/functional/bind_front_gn/moz.build
85877
--- third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build
84835
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/functional/bind_front_gn/moz.build
85878
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build
84836
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85879
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84837
 AllowCompilerWarnings()
85880
 AllowCompilerWarnings()
84838
 
85881
 
Lines 84962-84972 index 64977c41edec..b9f84bae9e9c 100644 Link Here
84962
-
86005
-
84963
-    DEFINES["_GNU_SOURCE"] = True
86006
-    DEFINES["_GNU_SOURCE"] = True
84964
-
86007
-
84965
 Library("bind_front_gn")
86008
 Library("type_traits_gn")
84966
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build
86009
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/bits_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/bits_gn/moz.build
84967
index b98bc24b90d1..ba4d02e31530 100644
86010
index 3d18e6187f5c..8e5d8abf8a36 100644
84968
--- third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build
86011
--- third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/bits_gn/moz.build
84969
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build
86012
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/bits_gn/moz.build
84970
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
86013
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
84971
 AllowCompilerWarnings()
86014
 AllowCompilerWarnings()
84972
 
86015
 
Lines 85096-85106 index b98bc24b90d1..ba4d02e31530 100644 Link Here
85096
-
86139
-
85097
-    DEFINES["_GNU_SOURCE"] = True
86140
-    DEFINES["_GNU_SOURCE"] = True
85098
-
86141
-
85099
 Library("memory_gn")
86142
 Library("bits_gn")
85100
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build
86143
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build
85101
index 639a1bf3ba8d..8ba0ade290ac 100644
86144
index d927703f2116..5dafbbe1c776 100644
85102
--- third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build
86145
--- third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build
85103
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build
86146
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build
85104
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
86147
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85105
 AllowCompilerWarnings()
86148
 AllowCompilerWarnings()
85106
 
86149
 
Lines 85113-85119 index 639a1bf3ba8d..8ba0ade290ac 100644 Link Here
85113
 
86156
 
85114
 FINAL_LIBRARY = "webrtc"
86157
 FINAL_LIBRARY = "webrtc"
85115
 
86158
 
85116
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
86159
@@ -35,122 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
85117
 if CONFIG["MOZ_DEBUG"] == "1":
86160
 if CONFIG["MOZ_DEBUG"] == "1":
85118
 
86161
 
85119
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
86162
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 85176-85181 index 639a1bf3ba8d..8ba0ade290ac 100644 Link Here
85176
-    DEFINES["_WINDOWS"] = True
86219
-    DEFINES["_WINDOWS"] = True
85177
-    DEFINES["__STD_C"] = True
86220
-    DEFINES["__STD_C"] = True
85178
-
86221
-
86222
-if CONFIG["CPU_ARCH"] == "arm":
86223
-
86224
-    CXXFLAGS += [
86225
-        "-mfpu=neon"
86226
-    ]
86227
-
85179
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
86228
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
85180
-
86229
-
85181
-    DEFINES["_DEBUG"] = True
86230
-    DEFINES["_DEBUG"] = True
Lines 85185-85197 index 639a1bf3ba8d..8ba0ade290ac 100644 Link Here
85185
-    DEFINES["_DEBUG"] = True
86234
-    DEFINES["_DEBUG"] = True
85186
-
86235
-
85187
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86236
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
85188
-
85189
     DEFINES["_DEBUG"] = True
85190
 
85191
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
85192
-
86237
-
85193
-    DEFINES["_DEBUG"] = True
86238
-    DEFINES["_DEBUG"] = True
85194
-
86239
-
86240
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
86241
-
86242
     DEFINES["_DEBUG"] = True
86243
 
85195
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
86244
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
85196
-
86245
-
85197
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
86246
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 85230-85240 index 639a1bf3ba8d..8ba0ade290ac 100644 Link Here
85230
-
86279
-
85231
-    DEFINES["_GNU_SOURCE"] = True
86280
-    DEFINES["_GNU_SOURCE"] = True
85232
-
86281
-
85233
 Library("type_traits_gn")
86282
 Library("int128_gn")
85234
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/bits_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/bits_gn/moz.build
86283
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build
85235
index 3d18e6187f5c..8e5d8abf8a36 100644
86284
index a62204b2113c..18ad2847682c 100644
85236
--- third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/bits_gn/moz.build
86285
--- third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build
85237
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/bits_gn/moz.build
86286
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build
85238
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
86287
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85239
 AllowCompilerWarnings()
86288
 AllowCompilerWarnings()
85240
 
86289
 
Lines 85247-85253 index 3d18e6187f5c..8e5d8abf8a36 100644 Link Here
85247
 
86296
 
85248
 FINAL_LIBRARY = "webrtc"
86297
 FINAL_LIBRARY = "webrtc"
85249
 
86298
 
85250
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
86299
@@ -37,122 +42,10 @@ if not CONFIG["MOZ_DEBUG"]:
85251
 if CONFIG["MOZ_DEBUG"] == "1":
86300
 if CONFIG["MOZ_DEBUG"] == "1":
85252
 
86301
 
85253
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
86302
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 85310-85315 index 3d18e6187f5c..8e5d8abf8a36 100644 Link Here
85310
-    DEFINES["_WINDOWS"] = True
86359
-    DEFINES["_WINDOWS"] = True
85311
-    DEFINES["__STD_C"] = True
86360
-    DEFINES["__STD_C"] = True
85312
-
86361
-
86362
-if CONFIG["CPU_ARCH"] == "arm":
86363
-
86364
-    CXXFLAGS += [
86365
-        "-mfpu=neon"
86366
-    ]
86367
-
85313
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
86368
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
85314
-
86369
-
85315
-    DEFINES["_DEBUG"] = True
86370
-    DEFINES["_DEBUG"] = True
Lines 85319-85327 index 3d18e6187f5c..8e5d8abf8a36 100644 Link Here
85319
-    DEFINES["_DEBUG"] = True
86374
-    DEFINES["_DEBUG"] = True
85320
-
86375
-
85321
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86376
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86377
-
86378
-    DEFINES["_DEBUG"] = True
86379
-
86380
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
85322
-
86381
-
85323
     DEFINES["_DEBUG"] = True
86382
     DEFINES["_DEBUG"] = True
85324
 
86383
 
86384
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
86385
-
86386
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
86387
-
86388
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86389
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
86390
 
86391
     DEFINES["USE_X11"] = "1"
86392
 
86393
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
86394
-
86395
-    OS_LIBS += [
86396
-        "android_support",
86397
-        "unwind"
86398
-    ]
86399
-
86400
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
86401
-
86402
-    OS_LIBS += [
86403
-        "android_support"
86404
-    ]
86405
-
86406
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
86407
-
86408
-    DEFINES["_GNU_SOURCE"] = True
86409
-
86410
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
86411
-
86412
-    DEFINES["_GNU_SOURCE"] = True
86413
-
86414
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
86415
-
86416
-    DEFINES["_GNU_SOURCE"] = True
86417
-
86418
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
86419
-
86420
-    DEFINES["_GNU_SOURCE"] = True
86421
-
86422
 Library("internal_gn")
86423
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build
86424
index d855b7beed02..031c9d92eb3b 100644
86425
--- third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build
86426
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build
86427
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
86428
 AllowCompilerWarnings()
86429
 
86430
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
86431
+DEFINES["USE_GLIB"] = "1"
86432
+DEFINES["USE_OZONE"] = "1"
86433
+DEFINES["_FILE_OFFSET_BITS"] = "64"
86434
+DEFINES["_LARGEFILE64_SOURCE"] = True
86435
+DEFINES["_LARGEFILE_SOURCE"] = True
86436
 
86437
 FINAL_LIBRARY = "webrtc"
86438
 
86439
@@ -50,122 +55,10 @@ if not CONFIG["MOZ_DEBUG"]:
86440
 if CONFIG["MOZ_DEBUG"] == "1":
86441
 
86442
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
86443
-
86444
-if CONFIG["OS_TARGET"] == "Android":
86445
-
86446
-    DEFINES["ANDROID"] = True
86447
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
86448
-    DEFINES["HAVE_SYS_UIO_H"] = True
86449
-    DEFINES["_GNU_SOURCE"] = True
86450
-
86451
-if CONFIG["OS_TARGET"] == "Darwin":
86452
-
86453
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
86454
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
86455
-
86456
-if CONFIG["OS_TARGET"] == "Linux":
86457
-
86458
-    DEFINES["USE_AURA"] = "1"
86459
-    DEFINES["USE_GLIB"] = "1"
86460
-    DEFINES["USE_NSS_CERTS"] = "1"
86461
-    DEFINES["USE_OZONE"] = "1"
86462
-    DEFINES["USE_UDEV"] = True
86463
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86464
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86465
-    DEFINES["_LARGEFILE_SOURCE"] = True
86466
-
86467
-if CONFIG["OS_TARGET"] == "OpenBSD":
86468
-
86469
-    DEFINES["USE_GLIB"] = "1"
86470
-    DEFINES["USE_OZONE"] = "1"
86471
-    DEFINES["USE_X11"] = "1"
86472
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86473
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86474
-    DEFINES["_LARGEFILE_SOURCE"] = True
86475
-
86476
-if CONFIG["OS_TARGET"] == "WINNT":
86477
-
86478
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
86479
-    DEFINES["NOMINMAX"] = True
86480
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
86481
-    DEFINES["PSAPI_VERSION"] = "2"
86482
-    DEFINES["UNICODE"] = True
86483
-    DEFINES["USE_AURA"] = "1"
86484
-    DEFINES["WIN32"] = True
86485
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
86486
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
86487
-    DEFINES["WINVER"] = "0x0A00"
86488
-    DEFINES["_ATL_NO_OPENGL"] = True
86489
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
86490
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
86491
-    DEFINES["_CRT_RAND_S"] = True
86492
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
86493
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
86494
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
86495
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
86496
-    DEFINES["_SECURE_ATL"] = True
86497
-    DEFINES["_UNICODE"] = True
86498
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
86499
-    DEFINES["_WINDOWS"] = True
86500
-    DEFINES["__STD_C"] = True
86501
-
86502
-if CONFIG["CPU_ARCH"] == "arm":
86503
-
86504
-    CXXFLAGS += [
86505
-        "-mfpu=neon"
86506
-    ]
86507
-
86508
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
86509
-
86510
-    DEFINES["_DEBUG"] = True
86511
-
86512
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
86513
-
86514
     DEFINES["_DEBUG"] = True
86515
 
86516
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86517
-
86518
-    DEFINES["_DEBUG"] = True
86519
-
85325
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
86520
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
85326
-
86521
-
85327
-    DEFINES["_DEBUG"] = True
86522
-    DEFINES["_DEBUG"] = True
Lines 85364-85374 index 3d18e6187f5c..8e5d8abf8a36 100644 Link Here
85364
-
86559
-
85365
-    DEFINES["_GNU_SOURCE"] = True
86560
-    DEFINES["_GNU_SOURCE"] = True
85366
-
86561
-
85367
 Library("bits_gn")
86562
 Library("strings_gn")
85368
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build
86563
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build
85369
index d927703f2116..5dafbbe1c776 100644
86564
index 146f86e25baa..5448e770c8ed 100644
85370
--- third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build
86565
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build
85371
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build
86566
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build
85372
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
86567
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85373
 AllowCompilerWarnings()
86568
 AllowCompilerWarnings()
85374
 
86569
 
Lines 85504-85514 index d927703f2116..5dafbbe1c776 100644 Link Here
85504
-
86699
-
85505
-    DEFINES["_GNU_SOURCE"] = True
86700
-    DEFINES["_GNU_SOURCE"] = True
85506
-
86701
-
85507
 Library("int128_gn")
86702
 Library("bad_optional_access_gn")
85508
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build
86703
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build
85509
index a62204b2113c..18ad2847682c 100644
86704
index 4af10489f537..3293ff093af5 100644
85510
--- third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build
86705
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build
85511
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build
86706
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build
85512
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
86707
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85513
 AllowCompilerWarnings()
86708
 AllowCompilerWarnings()
85514
 
86709
 
Lines 85521-85527 index a62204b2113c..18ad2847682c 100644 Link Here
85521
 
86716
 
85522
 FINAL_LIBRARY = "webrtc"
86717
 FINAL_LIBRARY = "webrtc"
85523
 
86718
 
85524
@@ -37,122 +42,10 @@ if not CONFIG["MOZ_DEBUG"]:
86719
@@ -35,122 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
85525
 if CONFIG["MOZ_DEBUG"] == "1":
86720
 if CONFIG["MOZ_DEBUG"] == "1":
85526
 
86721
 
85527
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
86722
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 85644-85654 index a62204b2113c..18ad2847682c 100644 Link Here
85644
-
86839
-
85645
-    DEFINES["_GNU_SOURCE"] = True
86840
-    DEFINES["_GNU_SOURCE"] = True
85646
-
86841
-
85647
 Library("internal_gn")
86842
 Library("bad_variant_access_gn")
85648
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build
86843
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build
85649
index d855b7beed02..031c9d92eb3b 100644
86844
index 3b839cf457ba..9ab1def9fe7d 100644
85650
--- third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build
86845
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build
85651
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build
86846
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build
85652
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
86847
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85653
 AllowCompilerWarnings()
86848
 AllowCompilerWarnings()
85654
 
86849
 
Lines 85661-85667 index d855b7beed02..031c9d92eb3b 100644 Link Here
85661
 
86856
 
85662
 FINAL_LIBRARY = "webrtc"
86857
 FINAL_LIBRARY = "webrtc"
85663
 
86858
 
85664
@@ -50,122 +55,10 @@ if not CONFIG["MOZ_DEBUG"]:
86859
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
85665
 if CONFIG["MOZ_DEBUG"] == "1":
86860
 if CONFIG["MOZ_DEBUG"] == "1":
85666
 
86861
 
85667
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
86862
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 85724-85747 index d855b7beed02..031c9d92eb3b 100644 Link Here
85724
-    DEFINES["_WINDOWS"] = True
86919
-    DEFINES["_WINDOWS"] = True
85725
-    DEFINES["__STD_C"] = True
86920
-    DEFINES["__STD_C"] = True
85726
-
86921
-
85727
-if CONFIG["CPU_ARCH"] == "arm":
85728
-
85729
-    CXXFLAGS += [
85730
-        "-mfpu=neon"
85731
-    ]
85732
-
85733
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
86922
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
85734
-
86923
-
85735
-    DEFINES["_DEBUG"] = True
86924
-    DEFINES["_DEBUG"] = True
85736
-
86925
-
85737
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
86926
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
85738
-
85739
     DEFINES["_DEBUG"] = True
85740
 
85741
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
85742
-
86927
-
85743
-    DEFINES["_DEBUG"] = True
86928
-    DEFINES["_DEBUG"] = True
85744
-
86929
-
86930
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86931
-
86932
     DEFINES["_DEBUG"] = True
86933
 
85745
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
86934
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
85746
-
86935
-
85747
-    DEFINES["_DEBUG"] = True
86936
-    DEFINES["_DEBUG"] = True
Lines 85784-85794 index d855b7beed02..031c9d92eb3b 100644 Link Here
85784
-
86973
-
85785
-    DEFINES["_GNU_SOURCE"] = True
86974
-    DEFINES["_GNU_SOURCE"] = True
85786
-
86975
-
85787
 Library("strings_gn")
86976
 Library("optional_gn")
85788
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build
86977
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build
85789
index 146f86e25baa..5448e770c8ed 100644
86978
index 31ab9bee8481..1953f12c2923 100644
85790
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build
86979
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build
85791
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build
86980
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build
85792
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
86981
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85793
 AllowCompilerWarnings()
86982
 AllowCompilerWarnings()
85794
 
86983
 
Lines 85801-85807 index 146f86e25baa..5448e770c8ed 100644 Link Here
85801
 
86990
 
85802
 FINAL_LIBRARY = "webrtc"
86991
 FINAL_LIBRARY = "webrtc"
85803
 
86992
 
85804
@@ -35,122 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
86993
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
85805
 if CONFIG["MOZ_DEBUG"] == "1":
86994
 if CONFIG["MOZ_DEBUG"] == "1":
85806
 
86995
 
85807
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
86996
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 85864-85875 index 146f86e25baa..5448e770c8ed 100644 Link Here
85864
-    DEFINES["_WINDOWS"] = True
87053
-    DEFINES["_WINDOWS"] = True
85865
-    DEFINES["__STD_C"] = True
87054
-    DEFINES["__STD_C"] = True
85866
-
87055
-
85867
-if CONFIG["CPU_ARCH"] == "arm":
85868
-
85869
-    CXXFLAGS += [
85870
-        "-mfpu=neon"
85871
-    ]
85872
-
85873
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
87056
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
85874
-
87057
-
85875
-    DEFINES["_DEBUG"] = True
87058
-    DEFINES["_DEBUG"] = True
Lines 85879-85891 index 146f86e25baa..5448e770c8ed 100644 Link Here
85879
-    DEFINES["_DEBUG"] = True
87062
-    DEFINES["_DEBUG"] = True
85880
-
87063
-
85881
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
87064
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
85882
-
85883
-    DEFINES["_DEBUG"] = True
85884
-
85885
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
85886
-
87065
-
85887
     DEFINES["_DEBUG"] = True
87066
     DEFINES["_DEBUG"] = True
85888
 
87067
 
87068
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
87069
-
87070
-    DEFINES["_DEBUG"] = True
87071
-
85889
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
87072
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
85890
-
87073
-
85891
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
87074
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 85924-85934 index 146f86e25baa..5448e770c8ed 100644 Link Here
85924
-
87107
-
85925
-    DEFINES["_GNU_SOURCE"] = True
87108
-    DEFINES["_GNU_SOURCE"] = True
85926
-
87109
-
85927
 Library("bad_optional_access_gn")
87110
 Library("span_gn")
85928
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build
87111
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build
85929
index 4af10489f537..3293ff093af5 100644
87112
index 406ec1f6a9ac..bdbaa44d33cd 100644
85930
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build
87113
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build
85931
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build
87114
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build
85932
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
87115
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
85933
 AllowCompilerWarnings()
87116
 AllowCompilerWarnings()
85934
 
87117
 
Lines 85941-85947 index 4af10489f537..3293ff093af5 100644 Link Here
85941
 
87124
 
85942
 FINAL_LIBRARY = "webrtc"
87125
 FINAL_LIBRARY = "webrtc"
85943
 
87126
 
85944
@@ -35,122 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
87127
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
85945
 if CONFIG["MOZ_DEBUG"] == "1":
87128
 if CONFIG["MOZ_DEBUG"] == "1":
85946
 
87129
 
85947
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
87130
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 86004-86015 index 4af10489f537..3293ff093af5 100644 Link Here
86004
-    DEFINES["_WINDOWS"] = True
87187
-    DEFINES["_WINDOWS"] = True
86005
-    DEFINES["__STD_C"] = True
87188
-    DEFINES["__STD_C"] = True
86006
-
87189
-
86007
-if CONFIG["CPU_ARCH"] == "arm":
86008
-
86009
-    CXXFLAGS += [
86010
-        "-mfpu=neon"
86011
-    ]
86012
-
86013
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
87190
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
86014
-
87191
-
86015
-    DEFINES["_DEBUG"] = True
87192
-    DEFINES["_DEBUG"] = True
Lines 86019-86031 index 4af10489f537..3293ff093af5 100644 Link Here
86019
-    DEFINES["_DEBUG"] = True
87196
-    DEFINES["_DEBUG"] = True
86020
-
87197
-
86021
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
87198
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86022
-
86023
-    DEFINES["_DEBUG"] = True
86024
-
86025
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
86026
-
87199
-
86027
     DEFINES["_DEBUG"] = True
87200
     DEFINES["_DEBUG"] = True
86028
 
87201
 
87202
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
87203
-
87204
-    DEFINES["_DEBUG"] = True
87205
-
86029
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
87206
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
86030
-
87207
-
86031
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
87208
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
Lines 86064-86074 index 4af10489f537..3293ff093af5 100644 Link Here
86064
-
87241
-
86065
-    DEFINES["_GNU_SOURCE"] = True
87242
-    DEFINES["_GNU_SOURCE"] = True
86066
-
87243
-
86067
 Library("bad_variant_access_gn")
87244
 Library("variant_gn")
86068
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build
87245
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build
86069
index 3b839cf457ba..9ab1def9fe7d 100644
87246
index e4cc97e69fe0..fba5f187fc43 100644
86070
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build
87247
--- third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build
86071
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build
87248
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build
86072
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
87249
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
86073
 AllowCompilerWarnings()
87250
 AllowCompilerWarnings()
86074
 
87251
 
Lines 86198-86221 index 3b839cf457ba..9ab1def9fe7d 100644 Link Here
86198
-
87375
-
86199
-    DEFINES["_GNU_SOURCE"] = True
87376
-    DEFINES["_GNU_SOURCE"] = True
86200
-
87377
-
86201
 Library("optional_gn")
87378
 Library("utility_gn")
86202
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build
87379
diff --git third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build
86203
index 31ab9bee8481..1953f12c2923 100644
87380
index be95ea0b6491..623ae45edde0 100644
86204
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build
87381
--- third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build
86205
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build
87382
+++ third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build
86206
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
87383
@@ -9,6 +9,14 @@
87384
 COMPILE_FLAGS["OS_INCLUDES"] = []
86207
 AllowCompilerWarnings()
87385
 AllowCompilerWarnings()
86208
 
87386
 
86209
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
86210
+DEFINES["USE_GLIB"] = "1"
87387
+DEFINES["USE_GLIB"] = "1"
86211
+DEFINES["USE_OZONE"] = "1"
87388
+DEFINES["USE_OZONE"] = "1"
86212
+DEFINES["_FILE_OFFSET_BITS"] = "64"
87389
+DEFINES["_FILE_OFFSET_BITS"] = "64"
86213
+DEFINES["_LARGEFILE64_SOURCE"] = True
87390
+DEFINES["_LARGEFILE64_SOURCE"] = True
86214
+DEFINES["_LARGEFILE_SOURCE"] = True
87391
+DEFINES["_LARGEFILE_SOURCE"] = True
86215
 
87392
+DEFINES["__STDC_CONSTANT_MACROS"] = True
87393
+DEFINES["__STDC_FORMAT_MACROS"] = True
87394
+
86216
 FINAL_LIBRARY = "webrtc"
87395
 FINAL_LIBRARY = "webrtc"
86217
 
87396
 
86218
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
87397
 
87398
@@ -32,133 +40,14 @@ if not CONFIG["MOZ_DEBUG"]:
86219
 if CONFIG["MOZ_DEBUG"] == "1":
87399
 if CONFIG["MOZ_DEBUG"] == "1":
86220
 
87400
 
86221
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
87401
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 86226-86236 index 31ab9bee8481..1953f12c2923 100644 Link Here
86226
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
87406
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
86227
-    DEFINES["HAVE_SYS_UIO_H"] = True
87407
-    DEFINES["HAVE_SYS_UIO_H"] = True
86228
-    DEFINES["_GNU_SOURCE"] = True
87408
-    DEFINES["_GNU_SOURCE"] = True
87409
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87410
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86229
-
87411
-
86230
-if CONFIG["OS_TARGET"] == "Darwin":
87412
-if CONFIG["OS_TARGET"] == "Darwin":
86231
-
87413
-
86232
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
87414
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
86233
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
87415
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
87416
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87417
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86234
-
87418
-
86235
-if CONFIG["OS_TARGET"] == "Linux":
87419
-if CONFIG["OS_TARGET"] == "Linux":
86236
-
87420
-
Lines 86242-86247 index 31ab9bee8481..1953f12c2923 100644 Link Here
86242
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87426
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86243
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87427
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86244
-    DEFINES["_LARGEFILE_SOURCE"] = True
87428
-    DEFINES["_LARGEFILE_SOURCE"] = True
87429
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87430
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86245
-
87431
-
86246
-if CONFIG["OS_TARGET"] == "OpenBSD":
87432
-if CONFIG["OS_TARGET"] == "OpenBSD":
86247
-
87433
-
Lines 86251-86256 index 31ab9bee8481..1953f12c2923 100644 Link Here
86251
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87437
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86252
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87438
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86253
-    DEFINES["_LARGEFILE_SOURCE"] = True
87439
-    DEFINES["_LARGEFILE_SOURCE"] = True
87440
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87441
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86254
-
87442
-
86255
-if CONFIG["OS_TARGET"] == "WINNT":
87443
-if CONFIG["OS_TARGET"] == "WINNT":
86256
-
87444
-
Lines 86265-86283 index 31ab9bee8481..1953f12c2923 100644 Link Here
86265
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
87453
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
86266
-    DEFINES["WINVER"] = "0x0A00"
87454
-    DEFINES["WINVER"] = "0x0A00"
86267
-    DEFINES["_ATL_NO_OPENGL"] = True
87455
-    DEFINES["_ATL_NO_OPENGL"] = True
86268
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
86269
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
86270
-    DEFINES["_CRT_RAND_S"] = True
87456
-    DEFINES["_CRT_RAND_S"] = True
86271
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
87457
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
86272
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
86273
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
87458
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
87459
-    DEFINES["_HAS_NODISCARD"] = True
86274
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
87460
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
86275
-    DEFINES["_SECURE_ATL"] = True
87461
-    DEFINES["_SECURE_ATL"] = True
86276
-    DEFINES["_UNICODE"] = True
87462
-    DEFINES["_UNICODE"] = True
87463
-    DEFINES["_USE_MATH_DEFINES"] = True
86277
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
87464
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
86278
-    DEFINES["_WINDOWS"] = True
87465
-    DEFINES["_WINDOWS"] = True
86279
-    DEFINES["__STD_C"] = True
87466
-    DEFINES["__STD_C"] = True
86280
-
87467
-
87468
-if CONFIG["CPU_ARCH"] == "arm":
87469
-
87470
-    CFLAGS += [
87471
-        "-mfpu=neon"
87472
-    ]
87473
+    DEFINES["_DEBUG"] = True
87474
 
87475
 if CONFIG["CPU_ARCH"] == "ppc64":
87476
 
87477
     DEFINES["PFFFT_SIMD_DISABLE"] = True
87478
 
86281
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
87479
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
86282
-
87480
-
86283
-    DEFINES["_DEBUG"] = True
87481
-    DEFINES["_DEBUG"] = True
Lines 86288-86295 index 31ab9bee8481..1953f12c2923 100644 Link Here
86288
-
87486
-
86289
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
87487
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86290
-
87488
-
86291
     DEFINES["_DEBUG"] = True
87489
-    DEFINES["_DEBUG"] = True
86292
 
87490
-
86293
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
87491
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
86294
-
87492
-
86295
-    DEFINES["_DEBUG"] = True
87493
-    DEFINES["_DEBUG"] = True
Lines 86332-86355 index 31ab9bee8481..1953f12c2923 100644 Link Here
86332
-
87530
-
86333
-    DEFINES["_GNU_SOURCE"] = True
87531
-    DEFINES["_GNU_SOURCE"] = True
86334
-
87532
-
86335
 Library("span_gn")
87533
 Library("pffft_gn")
86336
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build
87534
diff --git third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build
86337
index 406ec1f6a9ac..bdbaa44d33cd 100644
87535
index 37ea6a91a115..d711f7d67e9c 100644
86338
--- third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build
87536
--- third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build
86339
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build
87537
+++ third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build
86340
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
87538
@@ -9,6 +9,14 @@
87539
 COMPILE_FLAGS["OS_INCLUDES"] = []
86341
 AllowCompilerWarnings()
87540
 AllowCompilerWarnings()
86342
 
87541
 
86343
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
86344
+DEFINES["USE_GLIB"] = "1"
87542
+DEFINES["USE_GLIB"] = "1"
86345
+DEFINES["USE_OZONE"] = "1"
87543
+DEFINES["USE_OZONE"] = "1"
86346
+DEFINES["_FILE_OFFSET_BITS"] = "64"
87544
+DEFINES["_FILE_OFFSET_BITS"] = "64"
86347
+DEFINES["_LARGEFILE64_SOURCE"] = True
87545
+DEFINES["_LARGEFILE64_SOURCE"] = True
86348
+DEFINES["_LARGEFILE_SOURCE"] = True
87546
+DEFINES["_LARGEFILE_SOURCE"] = True
86349
 
87547
+DEFINES["__STDC_CONSTANT_MACROS"] = True
87548
+DEFINES["__STDC_FORMAT_MACROS"] = True
87549
+
86350
 FINAL_LIBRARY = "webrtc"
87550
 FINAL_LIBRARY = "webrtc"
86351
 
87551
 
86352
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
87552
 
87553
@@ -32,128 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
86353
 if CONFIG["MOZ_DEBUG"] == "1":
87554
 if CONFIG["MOZ_DEBUG"] == "1":
86354
 
87555
 
86355
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
87556
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 86360-86370 index 406ec1f6a9ac..bdbaa44d33cd 100644 Link Here
86360
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
87561
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
86361
-    DEFINES["HAVE_SYS_UIO_H"] = True
87562
-    DEFINES["HAVE_SYS_UIO_H"] = True
86362
-    DEFINES["_GNU_SOURCE"] = True
87563
-    DEFINES["_GNU_SOURCE"] = True
87564
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87565
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86363
-
87566
-
86364
-if CONFIG["OS_TARGET"] == "Darwin":
87567
-if CONFIG["OS_TARGET"] == "Darwin":
86365
-
87568
-
86366
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
87569
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
86367
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
87570
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
87571
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87572
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86368
-
87573
-
86369
-if CONFIG["OS_TARGET"] == "Linux":
87574
-if CONFIG["OS_TARGET"] == "Linux":
86370
-
87575
-
Lines 86376-86381 index 406ec1f6a9ac..bdbaa44d33cd 100644 Link Here
86376
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87581
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86377
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87582
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86378
-    DEFINES["_LARGEFILE_SOURCE"] = True
87583
-    DEFINES["_LARGEFILE_SOURCE"] = True
87584
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87585
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86379
-
87586
-
86380
-if CONFIG["OS_TARGET"] == "OpenBSD":
87587
-if CONFIG["OS_TARGET"] == "OpenBSD":
86381
-
87588
-
Lines 86385-86390 index 406ec1f6a9ac..bdbaa44d33cd 100644 Link Here
86385
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87592
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86386
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87593
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86387
-    DEFINES["_LARGEFILE_SOURCE"] = True
87594
-    DEFINES["_LARGEFILE_SOURCE"] = True
87595
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87596
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86388
-
87597
-
86389
-if CONFIG["OS_TARGET"] == "WINNT":
87598
-if CONFIG["OS_TARGET"] == "WINNT":
86390
-
87599
-
Lines 86399-86410 index 406ec1f6a9ac..bdbaa44d33cd 100644 Link Here
86399
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
87608
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
86400
-    DEFINES["WINVER"] = "0x0A00"
87609
-    DEFINES["WINVER"] = "0x0A00"
86401
-    DEFINES["_ATL_NO_OPENGL"] = True
87610
-    DEFINES["_ATL_NO_OPENGL"] = True
86402
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
86403
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
86404
-    DEFINES["_CRT_RAND_S"] = True
87611
-    DEFINES["_CRT_RAND_S"] = True
86405
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
87612
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
86406
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
86407
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
87613
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
87614
-    DEFINES["_HAS_NODISCARD"] = True
86408
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
87615
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
86409
-    DEFINES["_SECURE_ATL"] = True
87616
-    DEFINES["_SECURE_ATL"] = True
86410
-    DEFINES["_UNICODE"] = True
87617
-    DEFINES["_UNICODE"] = True
Lines 86412-86429 index 406ec1f6a9ac..bdbaa44d33cd 100644 Link Here
86412
-    DEFINES["_WINDOWS"] = True
87619
-    DEFINES["_WINDOWS"] = True
86413
-    DEFINES["__STD_C"] = True
87620
-    DEFINES["__STD_C"] = True
86414
-
87621
-
86415
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
87622
-if CONFIG["CPU_ARCH"] == "arm":
86416
-
87623
-
86417
-    DEFINES["_DEBUG"] = True
87624
-    CXXFLAGS += [
87625
-        "-mfpu=neon"
87626
-    ]
86418
-
87627
-
87628
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
87629
-
87630
     DEFINES["_DEBUG"] = True
87631
 
86419
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
87632
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
86420
-
87633
-
86421
-    DEFINES["_DEBUG"] = True
87634
-    DEFINES["_DEBUG"] = True
86422
-
87635
-
86423
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
87636
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86424
-
87637
-
86425
     DEFINES["_DEBUG"] = True
87638
-    DEFINES["_DEBUG"] = True
86426
 
87639
-
86427
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
87640
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
86428
-
87641
-
86429
-    DEFINES["_DEBUG"] = True
87642
-    DEFINES["_DEBUG"] = True
Lines 86466-86489 index 406ec1f6a9ac..bdbaa44d33cd 100644 Link Here
86466
-
87679
-
86467
-    DEFINES["_GNU_SOURCE"] = True
87680
-    DEFINES["_GNU_SOURCE"] = True
86468
-
87681
-
86469
 Library("variant_gn")
87682
 Library("rnn_vad_gn")
86470
diff --git third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build
87683
diff --git third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build
86471
index e4cc97e69fe0..fba5f187fc43 100644
87684
index a1f7c3beeb02..09c4d62a258e 100644
86472
--- third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build
87685
--- third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build
86473
+++ third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build
87686
+++ third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build
86474
@@ -10,6 +10,11 @@ COMPILE_FLAGS["OS_INCLUDES"] = []
87687
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
86475
 AllowCompilerWarnings()
86476
 
86477
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
87688
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
87689
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
87690
 DEFINES["RTC_ENABLE_VP9"] = True
86478
+DEFINES["USE_GLIB"] = "1"
87691
+DEFINES["USE_GLIB"] = "1"
86479
+DEFINES["USE_OZONE"] = "1"
87692
+DEFINES["USE_OZONE"] = "1"
87693
+DEFINES["WEBRTC_BSD"] = True
87694
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
87695
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
87696
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
87697
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
87698
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
87699
+DEFINES["WEBRTC_POSIX"] = True
86480
+DEFINES["_FILE_OFFSET_BITS"] = "64"
87700
+DEFINES["_FILE_OFFSET_BITS"] = "64"
86481
+DEFINES["_LARGEFILE64_SOURCE"] = True
87701
+DEFINES["_LARGEFILE64_SOURCE"] = True
86482
+DEFINES["_LARGEFILE_SOURCE"] = True
87702
+DEFINES["_LARGEFILE_SOURCE"] = True
87703
+DEFINES["__STDC_CONSTANT_MACROS"] = True
87704
+DEFINES["__STDC_FORMAT_MACROS"] = True
86483
 
87705
 
86484
 FINAL_LIBRARY = "webrtc"
87706
 FINAL_LIBRARY = "webrtc"
86485
 
87707
 
86486
@@ -31,116 +36,10 @@ if not CONFIG["MOZ_DEBUG"]:
87708
@@ -50,174 +60,15 @@ if not CONFIG["MOZ_DEBUG"]:
86487
 if CONFIG["MOZ_DEBUG"] == "1":
87709
 if CONFIG["MOZ_DEBUG"] == "1":
86488
 
87710
 
86489
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
87711
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 86493-86504 index e4cc97e69fe0..fba5f187fc43 100644 Link Here
86493
-    DEFINES["ANDROID"] = True
87715
-    DEFINES["ANDROID"] = True
86494
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
87716
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
86495
-    DEFINES["HAVE_SYS_UIO_H"] = True
87717
-    DEFINES["HAVE_SYS_UIO_H"] = True
87718
-    DEFINES["WEBRTC_ANDROID"] = True
87719
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
87720
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87721
-    DEFINES["WEBRTC_LINUX"] = True
87722
-    DEFINES["WEBRTC_POSIX"] = True
86496
-    DEFINES["_GNU_SOURCE"] = True
87723
-    DEFINES["_GNU_SOURCE"] = True
87724
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87725
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87726
-
87727
-    OS_LIBS += [
87728
-        "GLESv2",
87729
-        "log"
87730
-    ]
86497
-
87731
-
86498
-if CONFIG["OS_TARGET"] == "Darwin":
87732
-if CONFIG["OS_TARGET"] == "Darwin":
86499
-
87733
-
87734
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87735
-    DEFINES["WEBRTC_MAC"] = True
87736
-    DEFINES["WEBRTC_POSIX"] = True
86500
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
87737
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
86501
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
87738
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
87739
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87740
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86502
-
87741
-
86503
-if CONFIG["OS_TARGET"] == "Linux":
87742
-if CONFIG["OS_TARGET"] == "Linux":
86504
-
87743
-
Lines 86507-86524 index e4cc97e69fe0..fba5f187fc43 100644 Link Here
86507
-    DEFINES["USE_NSS_CERTS"] = "1"
87746
-    DEFINES["USE_NSS_CERTS"] = "1"
86508
-    DEFINES["USE_OZONE"] = "1"
87747
-    DEFINES["USE_OZONE"] = "1"
86509
-    DEFINES["USE_UDEV"] = True
87748
-    DEFINES["USE_UDEV"] = True
87749
-    DEFINES["WEBRTC_LINUX"] = True
87750
-    DEFINES["WEBRTC_POSIX"] = True
86510
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87751
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86511
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87752
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86512
-    DEFINES["_LARGEFILE_SOURCE"] = True
87753
-    DEFINES["_LARGEFILE_SOURCE"] = True
87754
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87755
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87756
-
87757
-    OS_LIBS += [
87758
-        "dl",
87759
-        "rt"
87760
-    ]
86513
-
87761
-
86514
-if CONFIG["OS_TARGET"] == "OpenBSD":
87762
-if CONFIG["OS_TARGET"] == "OpenBSD":
86515
-
87763
-
86516
-    DEFINES["USE_GLIB"] = "1"
87764
-    DEFINES["USE_GLIB"] = "1"
86517
-    DEFINES["USE_OZONE"] = "1"
87765
-    DEFINES["USE_OZONE"] = "1"
86518
-    DEFINES["USE_X11"] = "1"
87766
-    DEFINES["USE_X11"] = "1"
87767
-    DEFINES["WEBRTC_BSD"] = True
87768
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87769
-    DEFINES["WEBRTC_POSIX"] = True
86519
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87770
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86520
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87771
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86521
-    DEFINES["_LARGEFILE_SOURCE"] = True
87772
-    DEFINES["_LARGEFILE_SOURCE"] = True
87773
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87774
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86522
-
87775
-
86523
-if CONFIG["OS_TARGET"] == "WINNT":
87776
-if CONFIG["OS_TARGET"] == "WINNT":
86524
-
87777
-
Lines 86528-86544 index e4cc97e69fe0..fba5f187fc43 100644 Link Here
86528
-    DEFINES["PSAPI_VERSION"] = "2"
87781
-    DEFINES["PSAPI_VERSION"] = "2"
86529
-    DEFINES["UNICODE"] = True
87782
-    DEFINES["UNICODE"] = True
86530
-    DEFINES["USE_AURA"] = "1"
87783
-    DEFINES["USE_AURA"] = "1"
87784
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87785
-    DEFINES["WEBRTC_WIN"] = True
86531
-    DEFINES["WIN32"] = True
87786
-    DEFINES["WIN32"] = True
86532
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
87787
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
86533
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
87788
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
86534
-    DEFINES["WINVER"] = "0x0A00"
87789
-    DEFINES["WINVER"] = "0x0A00"
86535
-    DEFINES["_ATL_NO_OPENGL"] = True
87790
-    DEFINES["_ATL_NO_OPENGL"] = True
86536
-    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
86537
-    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
86538
-    DEFINES["_CRT_RAND_S"] = True
87791
-    DEFINES["_CRT_RAND_S"] = True
86539
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
87792
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
86540
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
87793
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
86541
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
87794
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
87795
-    DEFINES["_HAS_NODISCARD"] = True
86542
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
87796
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
86543
-    DEFINES["_SECURE_ATL"] = True
87797
-    DEFINES["_SECURE_ATL"] = True
86544
-    DEFINES["_UNICODE"] = True
87798
-    DEFINES["_UNICODE"] = True
Lines 86546-86551 index e4cc97e69fe0..fba5f187fc43 100644 Link Here
86546
-    DEFINES["_WINDOWS"] = True
87800
-    DEFINES["_WINDOWS"] = True
86547
-    DEFINES["__STD_C"] = True
87801
-    DEFINES["__STD_C"] = True
86548
-
87802
-
87803
-    OS_LIBS += [
87804
-        "crypt32",
87805
-        "iphlpapi",
87806
-        "secur32",
87807
-        "winmm"
87808
-    ]
87809
+    DEFINES["_DEBUG"] = True
87810
 
87811
 if CONFIG["CPU_ARCH"] == "aarch64":
87812
 
87813
     DEFINES["WEBRTC_ARCH_ARM64"] = True
87814
     DEFINES["WEBRTC_HAS_NEON"] = True
87815
 
87816
-if CONFIG["CPU_ARCH"] == "arm":
87817
-
87818
-    CXXFLAGS += [
87819
-        "-mfpu=neon"
87820
-    ]
87821
-
87822
-    DEFINES["WEBRTC_ARCH_ARM"] = True
87823
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
87824
-    DEFINES["WEBRTC_HAS_NEON"] = True
87825
-
86549
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
87826
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
86550
-
87827
-
86551
-    DEFINES["_DEBUG"] = True
87828
-    DEFINES["_DEBUG"] = True
Lines 86556-86563 index e4cc97e69fe0..fba5f187fc43 100644 Link Here
86556
-
87833
-
86557
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
87834
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86558
-
87835
-
86559
     DEFINES["_DEBUG"] = True
87836
-    DEFINES["_DEBUG"] = True
86560
 
87837
-
86561
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
87838
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
86562
-
87839
-
86563
-    DEFINES["_DEBUG"] = True
87840
-    DEFINES["_DEBUG"] = True
Lines 86586-86626 index e4cc97e69fe0..fba5f187fc43 100644 Link Here
86586
-
87863
-
86587
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
87864
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
86588
-
87865
-
87866
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
86589
-    DEFINES["_GNU_SOURCE"] = True
87867
-    DEFINES["_GNU_SOURCE"] = True
86590
-
87868
-
86591
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
87869
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
86592
-
87870
-
87871
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
86593
-    DEFINES["_GNU_SOURCE"] = True
87872
-    DEFINES["_GNU_SOURCE"] = True
86594
-
87873
-
86595
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
87874
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
86596
-
87875
-
87876
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
86597
-    DEFINES["_GNU_SOURCE"] = True
87877
-    DEFINES["_GNU_SOURCE"] = True
86598
-
87878
-
86599
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
87879
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
86600
-
87880
-
87881
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
86601
-    DEFINES["_GNU_SOURCE"] = True
87882
-    DEFINES["_GNU_SOURCE"] = True
86602
-
87883
-
86603
 Library("utility_gn")
87884
 Library("video_adaptation_gn")
86604
diff --git third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build
87885
diff --git third_party/libwebrtc/video/decode_synchronizer_gn/moz.build third_party/libwebrtc/video/decode_synchronizer_gn/moz.build
86605
index be95ea0b6491..623ae45edde0 100644
87886
index 413feef38cef..919a2f81dfc3 100644
86606
--- third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build
87887
--- third_party/libwebrtc/video/decode_synchronizer_gn/moz.build
86607
+++ third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build
87888
+++ third_party/libwebrtc/video/decode_synchronizer_gn/moz.build
86608
@@ -9,6 +9,14 @@
87889
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
86609
 COMPILE_FLAGS["OS_INCLUDES"] = []
87890
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
86610
 AllowCompilerWarnings()
87891
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
86611
 
87892
 DEFINES["RTC_ENABLE_VP9"] = True
86612
+DEFINES["USE_GLIB"] = "1"
87893
+DEFINES["USE_GLIB"] = "1"
86613
+DEFINES["USE_OZONE"] = "1"
87894
+DEFINES["USE_OZONE"] = "1"
87895
+DEFINES["WEBRTC_BSD"] = True
87896
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
87897
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
87898
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
87899
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
87900
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
87901
+DEFINES["WEBRTC_POSIX"] = True
86614
+DEFINES["_FILE_OFFSET_BITS"] = "64"
87902
+DEFINES["_FILE_OFFSET_BITS"] = "64"
86615
+DEFINES["_LARGEFILE64_SOURCE"] = True
87903
+DEFINES["_LARGEFILE64_SOURCE"] = True
86616
+DEFINES["_LARGEFILE_SOURCE"] = True
87904
+DEFINES["_LARGEFILE_SOURCE"] = True
86617
+DEFINES["__STDC_CONSTANT_MACROS"] = True
87905
+DEFINES["__STDC_CONSTANT_MACROS"] = True
86618
+DEFINES["__STDC_FORMAT_MACROS"] = True
87906
+DEFINES["__STDC_FORMAT_MACROS"] = True
86619
+
86620
 FINAL_LIBRARY = "webrtc"
86621
 
87907
 
87908
 FINAL_LIBRARY = "webrtc"
86622
 
87909
 
86623
@@ -32,133 +40,14 @@ if not CONFIG["MOZ_DEBUG"]:
87910
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
86624
 if CONFIG["MOZ_DEBUG"] == "1":
87911
 if CONFIG["MOZ_DEBUG"] == "1":
86625
 
87912
 
86626
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
87913
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 86630-86641 index be95ea0b6491..623ae45edde0 100644 Link Here
86630
-    DEFINES["ANDROID"] = True
87917
-    DEFINES["ANDROID"] = True
86631
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
87918
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
86632
-    DEFINES["HAVE_SYS_UIO_H"] = True
87919
-    DEFINES["HAVE_SYS_UIO_H"] = True
87920
-    DEFINES["WEBRTC_ANDROID"] = True
87921
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
87922
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87923
-    DEFINES["WEBRTC_LINUX"] = True
87924
-    DEFINES["WEBRTC_POSIX"] = True
86633
-    DEFINES["_GNU_SOURCE"] = True
87925
-    DEFINES["_GNU_SOURCE"] = True
86634
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87926
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
86635
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87927
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86636
-
87928
-
87929
-    OS_LIBS += [
87930
-        "log"
87931
-    ]
87932
-
86637
-if CONFIG["OS_TARGET"] == "Darwin":
87933
-if CONFIG["OS_TARGET"] == "Darwin":
86638
-
87934
-
87935
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87936
-    DEFINES["WEBRTC_MAC"] = True
87937
-    DEFINES["WEBRTC_POSIX"] = True
86639
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
87938
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
86640
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
87939
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
86641
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87940
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
Lines 86648-86664 index be95ea0b6491..623ae45edde0 100644 Link Here
86648
-    DEFINES["USE_NSS_CERTS"] = "1"
87947
-    DEFINES["USE_NSS_CERTS"] = "1"
86649
-    DEFINES["USE_OZONE"] = "1"
87948
-    DEFINES["USE_OZONE"] = "1"
86650
-    DEFINES["USE_UDEV"] = True
87949
-    DEFINES["USE_UDEV"] = True
87950
-    DEFINES["WEBRTC_LINUX"] = True
87951
-    DEFINES["WEBRTC_POSIX"] = True
86651
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87952
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86652
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87953
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86653
-    DEFINES["_LARGEFILE_SOURCE"] = True
87954
-    DEFINES["_LARGEFILE_SOURCE"] = True
86654
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87955
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
86655
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87956
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86656
-
87957
-
87958
-    OS_LIBS += [
87959
-        "rt"
87960
-    ]
87961
-
86657
-if CONFIG["OS_TARGET"] == "OpenBSD":
87962
-if CONFIG["OS_TARGET"] == "OpenBSD":
86658
-
87963
-
86659
-    DEFINES["USE_GLIB"] = "1"
87964
-    DEFINES["USE_GLIB"] = "1"
86660
-    DEFINES["USE_OZONE"] = "1"
87965
-    DEFINES["USE_OZONE"] = "1"
86661
-    DEFINES["USE_X11"] = "1"
87966
-    DEFINES["USE_X11"] = "1"
87967
-    DEFINES["WEBRTC_BSD"] = True
87968
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87969
-    DEFINES["WEBRTC_POSIX"] = True
86662
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87970
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86663
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87971
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86664
-    DEFINES["_LARGEFILE_SOURCE"] = True
87972
-    DEFINES["_LARGEFILE_SOURCE"] = True
Lines 86673-86678 index be95ea0b6491..623ae45edde0 100644 Link Here
86673
-    DEFINES["PSAPI_VERSION"] = "2"
87981
-    DEFINES["PSAPI_VERSION"] = "2"
86674
-    DEFINES["UNICODE"] = True
87982
-    DEFINES["UNICODE"] = True
86675
-    DEFINES["USE_AURA"] = "1"
87983
-    DEFINES["USE_AURA"] = "1"
87984
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87985
-    DEFINES["WEBRTC_WIN"] = True
86676
-    DEFINES["WIN32"] = True
87986
-    DEFINES["WIN32"] = True
86677
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
87987
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
86678
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
87988
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
Lines 86680-86859 index be95ea0b6491..623ae45edde0 100644 Link Here
86680
-    DEFINES["_ATL_NO_OPENGL"] = True
87990
-    DEFINES["_ATL_NO_OPENGL"] = True
86681
-    DEFINES["_CRT_RAND_S"] = True
87991
-    DEFINES["_CRT_RAND_S"] = True
86682
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
87992
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
87993
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
86683
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
87994
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
86684
-    DEFINES["_HAS_NODISCARD"] = True
87995
-    DEFINES["_HAS_NODISCARD"] = True
86685
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
87996
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
86686
-    DEFINES["_SECURE_ATL"] = True
87997
-    DEFINES["_SECURE_ATL"] = True
86687
-    DEFINES["_UNICODE"] = True
87998
-    DEFINES["_UNICODE"] = True
86688
-    DEFINES["_USE_MATH_DEFINES"] = True
86689
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
87999
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
86690
-    DEFINES["_WINDOWS"] = True
88000
-    DEFINES["_WINDOWS"] = True
86691
-    DEFINES["__STD_C"] = True
88001
-    DEFINES["__STD_C"] = True
86692
-
88002
-
86693
-if CONFIG["CPU_ARCH"] == "arm":
86694
-
86695
-    CFLAGS += [
86696
-        "-mfpu=neon"
86697
-    ]
86698
+    DEFINES["_DEBUG"] = True
86699
 
86700
 if CONFIG["CPU_ARCH"] == "ppc64":
86701
 
86702
     DEFINES["PFFFT_SIMD_DISABLE"] = True
86703
 
86704
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
86705
-
86706
-    DEFINES["_DEBUG"] = True
86707
-
86708
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
86709
-
86710
-    DEFINES["_DEBUG"] = True
86711
-
86712
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86713
-
86714
-    DEFINES["_DEBUG"] = True
86715
-
86716
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
86717
-
86718
-    DEFINES["_DEBUG"] = True
86719
-
86720
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
86721
-
86722
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
86723
-
86724
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
86725
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
86726
 
86727
     DEFINES["USE_X11"] = "1"
86728
 
86729
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
86730
-
86731
-    OS_LIBS += [
88003
-    OS_LIBS += [
86732
-        "android_support",
88004
-        "crypt32",
86733
-        "unwind"
88005
-        "iphlpapi",
86734
-    ]
88006
-        "secur32",
86735
-
88007
-        "winmm"
86736
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
86737
-
86738
-    OS_LIBS += [
86739
-        "android_support"
86740
-    ]
88008
-    ]
86741
-
88009
+    DEFINES["_DEBUG"] = True
86742
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
86743
-
86744
-    DEFINES["_GNU_SOURCE"] = True
86745
-
86746
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
86747
-
86748
-    DEFINES["_GNU_SOURCE"] = True
86749
-
86750
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
86751
-
86752
-    DEFINES["_GNU_SOURCE"] = True
86753
-
86754
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
86755
-
86756
-    DEFINES["_GNU_SOURCE"] = True
86757
-
86758
 Library("pffft_gn")
86759
diff --git third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build
86760
index 37ea6a91a115..d711f7d67e9c 100644
86761
--- third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build
86762
+++ third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build
86763
@@ -9,6 +9,14 @@
86764
 COMPILE_FLAGS["OS_INCLUDES"] = []
86765
 AllowCompilerWarnings()
86766
 
86767
+DEFINES["USE_GLIB"] = "1"
86768
+DEFINES["USE_OZONE"] = "1"
86769
+DEFINES["_FILE_OFFSET_BITS"] = "64"
86770
+DEFINES["_LARGEFILE64_SOURCE"] = True
86771
+DEFINES["_LARGEFILE_SOURCE"] = True
86772
+DEFINES["__STDC_CONSTANT_MACROS"] = True
86773
+DEFINES["__STDC_FORMAT_MACROS"] = True
86774
+
86775
 FINAL_LIBRARY = "webrtc"
86776
 
88010
 
88011
 if CONFIG["CPU_ARCH"] == "aarch64":
86777
 
88012
 
86778
@@ -32,128 +40,10 @@ if not CONFIG["MOZ_DEBUG"]:
88013
     DEFINES["WEBRTC_ARCH_ARM64"] = True
86779
 if CONFIG["MOZ_DEBUG"] == "1":
88014
     DEFINES["WEBRTC_HAS_NEON"] = True
86780
 
88015
 
86781
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
86782
-
86783
-if CONFIG["OS_TARGET"] == "Android":
86784
-
86785
-    DEFINES["ANDROID"] = True
86786
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
86787
-    DEFINES["HAVE_SYS_UIO_H"] = True
86788
-    DEFINES["_GNU_SOURCE"] = True
86789
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
86790
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86791
-
86792
-if CONFIG["OS_TARGET"] == "Darwin":
86793
-
86794
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
86795
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
86796
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
86797
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86798
-
86799
-if CONFIG["OS_TARGET"] == "Linux":
86800
-
86801
-    DEFINES["USE_AURA"] = "1"
86802
-    DEFINES["USE_GLIB"] = "1"
86803
-    DEFINES["USE_NSS_CERTS"] = "1"
86804
-    DEFINES["USE_OZONE"] = "1"
86805
-    DEFINES["USE_UDEV"] = True
86806
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86807
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86808
-    DEFINES["_LARGEFILE_SOURCE"] = True
86809
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
86810
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86811
-
86812
-if CONFIG["OS_TARGET"] == "OpenBSD":
86813
-
86814
-    DEFINES["USE_GLIB"] = "1"
86815
-    DEFINES["USE_OZONE"] = "1"
86816
-    DEFINES["USE_X11"] = "1"
86817
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
86818
-    DEFINES["_LARGEFILE64_SOURCE"] = True
86819
-    DEFINES["_LARGEFILE_SOURCE"] = True
86820
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
86821
-    DEFINES["__STDC_FORMAT_MACROS"] = True
86822
-
86823
-if CONFIG["OS_TARGET"] == "WINNT":
86824
-
86825
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
86826
-    DEFINES["NOMINMAX"] = True
86827
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
86828
-    DEFINES["PSAPI_VERSION"] = "2"
86829
-    DEFINES["UNICODE"] = True
86830
-    DEFINES["USE_AURA"] = "1"
86831
-    DEFINES["WIN32"] = True
86832
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
86833
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
86834
-    DEFINES["WINVER"] = "0x0A00"
86835
-    DEFINES["_ATL_NO_OPENGL"] = True
86836
-    DEFINES["_CRT_RAND_S"] = True
86837
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
86838
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
86839
-    DEFINES["_HAS_NODISCARD"] = True
86840
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
86841
-    DEFINES["_SECURE_ATL"] = True
86842
-    DEFINES["_UNICODE"] = True
86843
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
86844
-    DEFINES["_WINDOWS"] = True
86845
-    DEFINES["__STD_C"] = True
86846
-
86847
-if CONFIG["CPU_ARCH"] == "arm":
88016
-if CONFIG["CPU_ARCH"] == "arm":
86848
-
88017
-
86849
-    CXXFLAGS += [
88018
-    CXXFLAGS += [
86850
-        "-mfpu=neon"
88019
-        "-mfpu=neon"
86851
-    ]
88020
-    ]
86852
-
88021
-
88022
-    DEFINES["WEBRTC_ARCH_ARM"] = True
88023
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
88024
-    DEFINES["WEBRTC_HAS_NEON"] = True
88025
-
86853
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
88026
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
86854
-
88027
-
86855
     DEFINES["_DEBUG"] = True
88028
-    DEFINES["_DEBUG"] = True
86856
 
88029
-
86857
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
88030
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
86858
-
88031
-
86859
-    DEFINES["_DEBUG"] = True
88032
-    DEFINES["_DEBUG"] = True
Lines 86890-86914 index 37ea6a91a115..d711f7d67e9c 100644 Link Here
86890
-
88063
-
86891
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
88064
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
86892
-
88065
-
88066
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
86893
-    DEFINES["_GNU_SOURCE"] = True
88067
-    DEFINES["_GNU_SOURCE"] = True
86894
-
88068
-
86895
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
88069
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
86896
-
88070
-
88071
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
86897
-    DEFINES["_GNU_SOURCE"] = True
88072
-    DEFINES["_GNU_SOURCE"] = True
86898
-
88073
-
86899
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
88074
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
86900
-
88075
-
88076
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
86901
-    DEFINES["_GNU_SOURCE"] = True
88077
-    DEFINES["_GNU_SOURCE"] = True
86902
-
88078
-
86903
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
88079
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
86904
-
88080
-
88081
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
86905
-    DEFINES["_GNU_SOURCE"] = True
88082
-    DEFINES["_GNU_SOURCE"] = True
86906
-
88083
-
86907
 Library("rnn_vad_gn")
88084
 Library("decode_synchronizer_gn")
86908
diff --git third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build
88085
diff --git third_party/libwebrtc/video/frame_buffer_proxy_gn/moz.build third_party/libwebrtc/video/frame_buffer_proxy_gn/moz.build
86909
index a1f7c3beeb02..09c4d62a258e 100644
88086
index d43415a0d44b..c19726355973 100644
86910
--- third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build
88087
--- third_party/libwebrtc/video/frame_buffer_proxy_gn/moz.build
86911
+++ third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build
88088
+++ third_party/libwebrtc/video/frame_buffer_proxy_gn/moz.build
86912
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
88089
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
86913
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
88090
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
86914
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
88091
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 86930-86936 index a1f7c3beeb02..09c4d62a258e 100644 Link Here
86930
 
88107
 
86931
 FINAL_LIBRARY = "webrtc"
88108
 FINAL_LIBRARY = "webrtc"
86932
 
88109
 
86933
@@ -50,174 +60,15 @@ if not CONFIG["MOZ_DEBUG"]:
88110
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
86934
 if CONFIG["MOZ_DEBUG"] == "1":
88111
 if CONFIG["MOZ_DEBUG"] == "1":
86935
 
88112
 
86936
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
88113
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 87106-87116 index a1f7c3beeb02..09c4d62a258e 100644 Link Here
87106
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
88283
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87107
-    DEFINES["_GNU_SOURCE"] = True
88284
-    DEFINES["_GNU_SOURCE"] = True
87108
-
88285
-
87109
 Library("video_adaptation_gn")
88286
 Library("frame_buffer_proxy_gn")
87110
diff --git third_party/libwebrtc/video/decode_synchronizer_gn/moz.build third_party/libwebrtc/video/decode_synchronizer_gn/moz.build
88287
diff --git third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build
87111
index 413feef38cef..919a2f81dfc3 100644
88288
index 1f9b0da3e765..afedfd58ecca 100644
87112
--- third_party/libwebrtc/video/decode_synchronizer_gn/moz.build
88289
--- third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build
87113
+++ third_party/libwebrtc/video/decode_synchronizer_gn/moz.build
88290
+++ third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build
87114
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
88291
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
87115
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
88292
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
87116
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
88293
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 87306-87316 index 413feef38cef..919a2f81dfc3 100644 Link Here
87306
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
88483
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87307
-    DEFINES["_GNU_SOURCE"] = True
88484
-    DEFINES["_GNU_SOURCE"] = True
87308
-
88485
-
87309
 Library("decode_synchronizer_gn")
88486
 Library("frame_cadence_adapter_gn")
87310
diff --git third_party/libwebrtc/video/frame_buffer_proxy_gn/moz.build third_party/libwebrtc/video/frame_buffer_proxy_gn/moz.build
88487
diff --git third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build
87311
index d43415a0d44b..c19726355973 100644
88488
index f5abae5c998e..b1350324b8c9 100644
87312
--- third_party/libwebrtc/video/frame_buffer_proxy_gn/moz.build
88489
--- third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build
87313
+++ third_party/libwebrtc/video/frame_buffer_proxy_gn/moz.build
88490
+++ third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build
87314
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
88491
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
87315
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
88492
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
87316
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
88493
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 87332-87338 index d43415a0d44b..c19726355973 100644 Link Here
87332
 
88509
 
87333
 FINAL_LIBRARY = "webrtc"
88510
 FINAL_LIBRARY = "webrtc"
87334
 
88511
 
87335
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
88512
@@ -37,168 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
87336
 if CONFIG["MOZ_DEBUG"] == "1":
88513
 if CONFIG["MOZ_DEBUG"] == "1":
87337
 
88514
 
87338
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
88515
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 87352-87358 index d43415a0d44b..c19726355973 100644 Link Here
87352
-    DEFINES["__STDC_FORMAT_MACROS"] = True
88529
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87353
-
88530
-
87354
-    OS_LIBS += [
88531
-    OS_LIBS += [
87355
-        "GLESv2",
87356
-        "log"
88532
-        "log"
87357
-    ]
88533
-    ]
87358
-
88534
-
Lines 87382-87388 index d43415a0d44b..c19726355973 100644 Link Here
87382
-    DEFINES["__STDC_FORMAT_MACROS"] = True
88558
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87383
-
88559
-
87384
-    OS_LIBS += [
88560
-    OS_LIBS += [
87385
-        "dl",
87386
-        "rt"
88561
-        "rt"
87387
-    ]
88562
-    ]
87388
-
88563
-
Lines 87442-87451 index d43415a0d44b..c19726355973 100644 Link Here
87442
 
88617
 
87443
-if CONFIG["CPU_ARCH"] == "arm":
88618
-if CONFIG["CPU_ARCH"] == "arm":
87444
-
88619
-
87445
-    CXXFLAGS += [
87446
-        "-mfpu=neon"
87447
-    ]
87448
-
87449
-    DEFINES["WEBRTC_ARCH_ARM"] = True
88620
-    DEFINES["WEBRTC_ARCH_ARM"] = True
87450
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
88621
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
87451
-    DEFINES["WEBRTC_HAS_NEON"] = True
88622
-    DEFINES["WEBRTC_HAS_NEON"] = True
Lines 87508-87518 index d43415a0d44b..c19726355973 100644 Link Here
87508
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
88679
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87509
-    DEFINES["_GNU_SOURCE"] = True
88680
-    DEFINES["_GNU_SOURCE"] = True
87510
-
88681
-
87511
 Library("frame_buffer_proxy_gn")
88682
 Library("frame_decode_scheduler_gn")
87512
diff --git third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build
88683
diff --git third_party/libwebrtc/video/frame_decode_timing_gn/moz.build third_party/libwebrtc/video/frame_decode_timing_gn/moz.build
87513
index 1f9b0da3e765..afedfd58ecca 100644
88684
index 6d3c94548684..1324d9441a3f 100644
87514
--- third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build
88685
--- third_party/libwebrtc/video/frame_decode_timing_gn/moz.build
87515
+++ third_party/libwebrtc/video/frame_cadence_adapter_gn/moz.build
88686
+++ third_party/libwebrtc/video/frame_decode_timing_gn/moz.build
87516
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
88687
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
87517
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
88688
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
87518
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
88689
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 87708-87914 index 1f9b0da3e765..afedfd58ecca 100644 Link Here
87708
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
88879
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87709
-    DEFINES["_GNU_SOURCE"] = True
88880
-    DEFINES["_GNU_SOURCE"] = True
87710
-
88881
-
87711
 Library("frame_cadence_adapter_gn")
88882
 Library("frame_decode_timing_gn")
87712
diff --git third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build
88883
diff --git third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build
87713
index f5abae5c998e..b1350324b8c9 100644
88884
index 6cd922640b5d..f0a182d3c53c 100644
87714
--- third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build
88885
--- third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build
87715
+++ third_party/libwebrtc/video/frame_decode_scheduler_gn/moz.build
88886
+++ third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build
87716
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
87717
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
87718
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
87719
 DEFINES["RTC_ENABLE_VP9"] = True
87720
+DEFINES["USE_GLIB"] = "1"
87721
+DEFINES["USE_OZONE"] = "1"
87722
+DEFINES["WEBRTC_BSD"] = True
87723
+DEFINES["WEBRTC_ENABLE_AVX2"] = True
87724
 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
87725
 DEFINES["WEBRTC_LIBRARY_IMPL"] = True
87726
 DEFINES["WEBRTC_MOZILLA_BUILD"] = True
87727
 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
87728
+DEFINES["WEBRTC_POSIX"] = True
87729
+DEFINES["_FILE_OFFSET_BITS"] = "64"
87730
+DEFINES["_LARGEFILE64_SOURCE"] = True
87731
+DEFINES["_LARGEFILE_SOURCE"] = True
87732
+DEFINES["__STDC_CONSTANT_MACROS"] = True
87733
+DEFINES["__STDC_FORMAT_MACROS"] = True
87734
 
87735
 FINAL_LIBRARY = "webrtc"
87736
 
87737
@@ -37,168 +47,15 @@ if not CONFIG["MOZ_DEBUG"]:
87738
 if CONFIG["MOZ_DEBUG"] == "1":
87739
 
87740
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
87741
-
87742
-if CONFIG["OS_TARGET"] == "Android":
87743
-
87744
-    DEFINES["ANDROID"] = True
87745
-    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r22_1"
87746
-    DEFINES["HAVE_SYS_UIO_H"] = True
87747
-    DEFINES["WEBRTC_ANDROID"] = True
87748
-    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
87749
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87750
-    DEFINES["WEBRTC_LINUX"] = True
87751
-    DEFINES["WEBRTC_POSIX"] = True
87752
-    DEFINES["_GNU_SOURCE"] = True
87753
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87754
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87755
-
87756
-    OS_LIBS += [
87757
-        "log"
87758
-    ]
87759
-
87760
-if CONFIG["OS_TARGET"] == "Darwin":
87761
-
87762
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87763
-    DEFINES["WEBRTC_MAC"] = True
87764
-    DEFINES["WEBRTC_POSIX"] = True
87765
-    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
87766
-    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
87767
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87768
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87769
-
87770
-if CONFIG["OS_TARGET"] == "Linux":
87771
-
87772
-    DEFINES["USE_AURA"] = "1"
87773
-    DEFINES["USE_GLIB"] = "1"
87774
-    DEFINES["USE_NSS_CERTS"] = "1"
87775
-    DEFINES["USE_OZONE"] = "1"
87776
-    DEFINES["USE_UDEV"] = True
87777
-    DEFINES["WEBRTC_LINUX"] = True
87778
-    DEFINES["WEBRTC_POSIX"] = True
87779
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87780
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87781
-    DEFINES["_LARGEFILE_SOURCE"] = True
87782
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87783
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87784
-
87785
-    OS_LIBS += [
87786
-        "rt"
87787
-    ]
87788
-
87789
-if CONFIG["OS_TARGET"] == "OpenBSD":
87790
-
87791
-    DEFINES["USE_GLIB"] = "1"
87792
-    DEFINES["USE_OZONE"] = "1"
87793
-    DEFINES["USE_X11"] = "1"
87794
-    DEFINES["WEBRTC_BSD"] = True
87795
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87796
-    DEFINES["WEBRTC_POSIX"] = True
87797
-    DEFINES["_FILE_OFFSET_BITS"] = "64"
87798
-    DEFINES["_LARGEFILE64_SOURCE"] = True
87799
-    DEFINES["_LARGEFILE_SOURCE"] = True
87800
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
87801
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87802
-
87803
-if CONFIG["OS_TARGET"] == "WINNT":
87804
-
87805
-    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
87806
-    DEFINES["NOMINMAX"] = True
87807
-    DEFINES["NTDDI_VERSION"] = "0x0A000000"
87808
-    DEFINES["PSAPI_VERSION"] = "2"
87809
-    DEFINES["UNICODE"] = True
87810
-    DEFINES["USE_AURA"] = "1"
87811
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87812
-    DEFINES["WEBRTC_WIN"] = True
87813
-    DEFINES["WIN32"] = True
87814
-    DEFINES["WIN32_LEAN_AND_MEAN"] = True
87815
-    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
87816
-    DEFINES["WINVER"] = "0x0A00"
87817
-    DEFINES["_ATL_NO_OPENGL"] = True
87818
-    DEFINES["_CRT_RAND_S"] = True
87819
-    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
87820
-    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
87821
-    DEFINES["_HAS_EXCEPTIONS"] = "0"
87822
-    DEFINES["_HAS_NODISCARD"] = True
87823
-    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
87824
-    DEFINES["_SECURE_ATL"] = True
87825
-    DEFINES["_UNICODE"] = True
87826
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
87827
-    DEFINES["_WINDOWS"] = True
87828
-    DEFINES["__STD_C"] = True
87829
-
87830
-    OS_LIBS += [
87831
-        "crypt32",
87832
-        "iphlpapi",
87833
-        "secur32",
87834
-        "winmm"
87835
-    ]
87836
+    DEFINES["_DEBUG"] = True
87837
 
87838
 if CONFIG["CPU_ARCH"] == "aarch64":
87839
 
87840
     DEFINES["WEBRTC_ARCH_ARM64"] = True
87841
     DEFINES["WEBRTC_HAS_NEON"] = True
87842
 
87843
-if CONFIG["CPU_ARCH"] == "arm":
87844
-
87845
-    DEFINES["WEBRTC_ARCH_ARM"] = True
87846
-    DEFINES["WEBRTC_ARCH_ARM_V7"] = True
87847
-    DEFINES["WEBRTC_HAS_NEON"] = True
87848
-
87849
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
87850
-
87851
-    DEFINES["_DEBUG"] = True
87852
-
87853
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
87854
-
87855
-    DEFINES["_DEBUG"] = True
87856
-
87857
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
87858
-
87859
-    DEFINES["_DEBUG"] = True
87860
-
87861
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
87862
-
87863
-    DEFINES["_DEBUG"] = True
87864
-
87865
-if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
87866
-
87867
-    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
87868
-
87869
-if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "Linux":
87870
+if CONFIG["MOZ_X11"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
87871
 
87872
     DEFINES["USE_X11"] = "1"
87873
 
87874
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Android":
87875
-
87876
-    OS_LIBS += [
87877
-        "android_support",
87878
-        "unwind"
87879
-    ]
87880
-
87881
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
87882
-
87883
-    OS_LIBS += [
87884
-        "android_support"
87885
-    ]
87886
-
87887
-if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
87888
-
87889
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87890
-    DEFINES["_GNU_SOURCE"] = True
87891
-
87892
-if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux":
87893
-
87894
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87895
-    DEFINES["_GNU_SOURCE"] = True
87896
-
87897
-if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
87898
-
87899
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87900
-    DEFINES["_GNU_SOURCE"] = True
87901
-
87902
-if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
87903
-
87904
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
87905
-    DEFINES["_GNU_SOURCE"] = True
87906
-
87907
 Library("frame_decode_scheduler_gn")
87908
diff --git third_party/libwebrtc/video/frame_decode_timing_gn/moz.build third_party/libwebrtc/video/frame_decode_timing_gn/moz.build
87909
index 6d3c94548684..1324d9441a3f 100644
87910
--- third_party/libwebrtc/video/frame_decode_timing_gn/moz.build
87911
+++ third_party/libwebrtc/video/frame_decode_timing_gn/moz.build
87912
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
88887
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
87913
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
88888
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
87914
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
88889
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 87930-87936 index 6d3c94548684..1324d9441a3f 100644 Link Here
87930
 
88905
 
87931
 FINAL_LIBRARY = "webrtc"
88906
 FINAL_LIBRARY = "webrtc"
87932
 
88907
 
87933
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
88908
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
87934
 if CONFIG["MOZ_DEBUG"] == "1":
88909
 if CONFIG["MOZ_DEBUG"] == "1":
87935
 
88910
 
87936
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
88911
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 87950-87955 index 6d3c94548684..1324d9441a3f 100644 Link Here
87950
-    DEFINES["__STDC_FORMAT_MACROS"] = True
88925
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87951
-
88926
-
87952
-    OS_LIBS += [
88927
-    OS_LIBS += [
88928
-        "GLESv2",
87953
-        "log"
88929
-        "log"
87954
-    ]
88930
-    ]
87955
-
88931
-
Lines 87979-87984 index 6d3c94548684..1324d9441a3f 100644 Link Here
87979
-    DEFINES["__STDC_FORMAT_MACROS"] = True
88955
-    DEFINES["__STDC_FORMAT_MACROS"] = True
87980
-
88956
-
87981
-    OS_LIBS += [
88957
-    OS_LIBS += [
88958
-        "dl",
87982
-        "rt"
88959
-        "rt"
87983
-    ]
88960
-    ]
87984
-
88961
-
Lines 88104-88114 index 6d3c94548684..1324d9441a3f 100644 Link Here
88104
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
89081
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
88105
-    DEFINES["_GNU_SOURCE"] = True
89082
-    DEFINES["_GNU_SOURCE"] = True
88106
-
89083
-
88107
 Library("frame_decode_timing_gn")
89084
 Library("frame_dumping_decoder_gn")
88108
diff --git third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build
89085
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
88109
index 6cd922640b5d..f0a182d3c53c 100644
89086
index 11be038704fa..bea4589911ab 100644
88110
--- third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build
89087
--- third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build
88111
+++ third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build
89088
+++ third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build
88112
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
89089
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
88113
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
89090
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
88114
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
89091
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 88130-88136 index 6cd922640b5d..f0a182d3c53c 100644 Link Here
88130
 
89107
 
88131
 FINAL_LIBRARY = "webrtc"
89108
 FINAL_LIBRARY = "webrtc"
88132
 
89109
 
88133
@@ -41,174 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
89110
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
88134
 if CONFIG["MOZ_DEBUG"] == "1":
89111
 if CONFIG["MOZ_DEBUG"] == "1":
88135
 
89112
 
88136
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
89113
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 88150-88156 index 6cd922640b5d..f0a182d3c53c 100644 Link Here
88150
-    DEFINES["__STDC_FORMAT_MACROS"] = True
89127
-    DEFINES["__STDC_FORMAT_MACROS"] = True
88151
-
89128
-
88152
-    OS_LIBS += [
89129
-    OS_LIBS += [
88153
-        "GLESv2",
88154
-        "log"
89130
-        "log"
88155
-    ]
89131
-    ]
88156
-
89132
-
Lines 88180-88186 index 6cd922640b5d..f0a182d3c53c 100644 Link Here
88180
-    DEFINES["__STDC_FORMAT_MACROS"] = True
89156
-    DEFINES["__STDC_FORMAT_MACROS"] = True
88181
-
89157
-
88182
-    OS_LIBS += [
89158
-    OS_LIBS += [
88183
-        "dl",
88184
-        "rt"
89159
-        "rt"
88185
-    ]
89160
-    ]
88186
-
89161
-
Lines 88306-88316 index 6cd922640b5d..f0a182d3c53c 100644 Link Here
88306
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
89281
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
88307
-    DEFINES["_GNU_SOURCE"] = True
89282
-    DEFINES["_GNU_SOURCE"] = True
88308
-
89283
-
88309
 Library("frame_dumping_decoder_gn")
89284
 Library("task_queue_frame_decode_scheduler_gn")
88310
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
89285
diff --git third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build
88311
index 11be038704fa..bea4589911ab 100644
89286
index e2984f7fb465..52fa4195adf5 100644
88312
--- third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build
89287
--- third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build
88313
+++ third_party/libwebrtc/video/task_queue_frame_decode_scheduler_gn/moz.build
89288
+++ third_party/libwebrtc/video/unique_timestamp_counter_gn/moz.build
88314
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
89289
@@ -12,10 +12,20 @@ AllowCompilerWarnings()
88315
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
89290
 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
88316
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
89291
 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
Lines 88332-88338 index 11be038704fa..bea4589911ab 100644 Link Here
88332
 
89307
 
88333
 FINAL_LIBRARY = "webrtc"
89308
 FINAL_LIBRARY = "webrtc"
88334
 
89309
 
88335
@@ -41,172 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
89310
@@ -41,157 +51,15 @@ if not CONFIG["MOZ_DEBUG"]:
88336
 if CONFIG["MOZ_DEBUG"] == "1":
89311
 if CONFIG["MOZ_DEBUG"] == "1":
88337
 
89312
 
88338
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
89313
     DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
Lines 88351-88360 index 11be038704fa..bea4589911ab 100644 Link Here
88351
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
89326
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
88352
-    DEFINES["__STDC_FORMAT_MACROS"] = True
89327
-    DEFINES["__STDC_FORMAT_MACROS"] = True
88353
-
89328
-
88354
-    OS_LIBS += [
88355
-        "log"
88356
-    ]
88357
-
88358
-if CONFIG["OS_TARGET"] == "Darwin":
89329
-if CONFIG["OS_TARGET"] == "Darwin":
88359
-
89330
-
88360
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
89331
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
Lines 88380-88389 index 11be038704fa..bea4589911ab 100644 Link Here
88380
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
89351
-    DEFINES["__STDC_CONSTANT_MACROS"] = True
88381
-    DEFINES["__STDC_FORMAT_MACROS"] = True
89352
-    DEFINES["__STDC_FORMAT_MACROS"] = True
88382
-
89353
-
88383
-    OS_LIBS += [
88384
-        "rt"
88385
-    ]
88386
-
88387
-if CONFIG["OS_TARGET"] == "OpenBSD":
89354
-if CONFIG["OS_TARGET"] == "OpenBSD":
88388
-
89355
-
88389
-    DEFINES["USE_GLIB"] = "1"
89356
-    DEFINES["USE_GLIB"] = "1"
Lines 88424-88436 index 11be038704fa..bea4589911ab 100644 Link Here
88424
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
89391
-    DEFINES["_WIN32_WINNT"] = "0x0A00"
88425
-    DEFINES["_WINDOWS"] = True
89392
-    DEFINES["_WINDOWS"] = True
88426
-    DEFINES["__STD_C"] = True
89393
-    DEFINES["__STD_C"] = True
88427
-
88428
-    OS_LIBS += [
88429
-        "crypt32",
88430
-        "iphlpapi",
88431
-        "secur32",
88432
-        "winmm"
88433
-    ]
88434
+    DEFINES["_DEBUG"] = True
89394
+    DEFINES["_DEBUG"] = True
88435
 
89395
 
88436
 if CONFIG["CPU_ARCH"] == "aarch64":
89396
 if CONFIG["CPU_ARCH"] == "aarch64":
Lines 88506-88512 index 11be038704fa..bea4589911ab 100644 Link Here
88506
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
89466
-    DEFINES["WEBRTC_ENABLE_AVX2"] = True
88507
-    DEFINES["_GNU_SOURCE"] = True
89467
-    DEFINES["_GNU_SOURCE"] = True
88508
-
89468
-
88509
 Library("task_queue_frame_decode_scheduler_gn")
89469
 Library("unique_timestamp_counter_gn")
88510
diff --git third_party/libwebrtc/video/video_gn/moz.build third_party/libwebrtc/video/video_gn/moz.build
89470
diff --git third_party/libwebrtc/video/video_gn/moz.build third_party/libwebrtc/video/video_gn/moz.build
88511
index bc06006cbea4..37fe8c168d75 100644
89471
index bc06006cbea4..37fe8c168d75 100644
88512
--- third_party/libwebrtc/video/video_gn/moz.build
89472
--- third_party/libwebrtc/video/video_gn/moz.build
(-)b/www/librewolf/files/patch-toolkit_xre_glxtest.cpp (+17 lines)
Added Link Here
1
--- toolkit/xre/glxtest.cpp.orig
2
+++ toolkit/xre/glxtest.cpp
3
@@ -270,9 +270,14 @@
4
 #define PCI_BASE_CLASS_DISPLAY 0x03
5
 
6
 static void get_pci_status() {
7
+#if defined(__FreeBSD__)
8
+  if (access("/dev/pci", F_OK) != 0) {
9
+    record_warning("cannot access /dev/pci");
10
+#else
11
   if (access("/sys/bus/pci/", F_OK) != 0 &&
12
       access("/sys/bus/pci_express/", F_OK) != 0) {
13
     record_warning("cannot access /sys/bus/pci");
14
+#endif
15
     return;
16
   }
17
 

Return to bug 269092