diff options
author | nia <nia@pkgsrc.org> | 2022-08-06 20:47:51 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2022-08-06 20:47:51 +0000 |
commit | 89e250da91921219cd7141af0872646df9b91921 (patch) | |
tree | 6b468e3b2792f1cd9c56fec8d4106592eefe4d6b /www | |
parent | 01fb54fdbe503eb5eb4b7297e83141c4f79ac8f7 (diff) | |
download | pkgsrc-89e250da91921219cd7141af0872646df9b91921.tar.gz |
firefox: Instead of including an autogenerated patch for libwebrtc,
do the automagic inside pre-patch. Also handle aarch64.
Require SSE2. It's probably not reasonable to patch -msse2 in everywhere,
and upstream has required SSE2 on x86 for years.
Diffstat (limited to 'www')
-rw-r--r-- | www/firefox/Makefile | 8 | ||||
-rw-r--r-- | www/firefox/distinfo | 4 | ||||
-rw-r--r-- | www/firefox/files/replace-moz.build.awk | 22 | ||||
-rw-r--r-- | www/firefox/mozilla-common.mk | 3 | ||||
-rw-r--r-- | www/firefox/patches/patch-libwebrtc.diff | 17439 |
5 files changed, 33 insertions, 17443 deletions
diff --git a/www/firefox/Makefile b/www/firefox/Makefile index 74306c9a1ba..3ded356567b 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.531 2022/08/03 17:09:26 ryoon Exp $ +# $NetBSD: Makefile,v 1.532 2022/08/06 20:47:51 nia Exp $ FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR} MOZ_BRANCH= 103.0 @@ -145,6 +145,12 @@ maintainer-files: -f ${FILESDIR}/nodejs-output-${PKGVERSION_NOREV}.tgz .endif +pre-patch: + for f in $$(find ${WRKSRC}/third_party/libwebrtc -name moz.build -type f) ; \ + do \ + ${AWK} -f ${FILESDIR}/replace-moz.build.awk $$f > $$f.new; mv $$f.new $$f ; \ + done + post-build: ${SED} -e 's|@MOZILLA@|${MOZILLA}|g' \ -e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|g' \ diff --git a/www/firefox/distinfo b/www/firefox/distinfo index 1529fb68719..7e4f31328fd 100644 --- a/www/firefox/distinfo +++ b/www/firefox/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.478 2022/08/03 17:09:26 ryoon Exp $ +$NetBSD: distinfo,v 1.479 2022/08/06 20:47:51 nia Exp $ BLAKE2s (firefox-103.0.1.source.tar.xz) = 5128a952e6957b1b808dd5c513848706937e6943639d64ac6856858ae8564cb1 SHA512 (firefox-103.0.1.source.tar.xz) = cb487e1d5d602e6b07093b5e722c4e70b9bf39f42c13c25642f263f90f9d3940d02e6fdbab9e8f41b66a50f81d70300acf81c222f08a26eed3ae55777fdc6303 @@ -23,7 +23,7 @@ SHA1 (patch-js_src_jit_ProcessExecutableMemory.cpp) = fad103cc698f9828ad58f74223 SHA1 (patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp) = fdc522e3fb626b1b8a2ebf19ad60bfc25dfa4183 SHA1 (patch-js_src_util_NativeStack.cpp) = a0a16d8d8d78d3cc3f4d2a508586f1a7821f7dba SHA1 (patch-js_src_vm_ArrayBufferObject.cpp) = 0501fdcae11568ae4ea78e0d2f6b3750b7a67d47 -SHA1 (patch-libwebrtc.diff) = e007fe7dd2fd16e7d0ac4a35f9a006db4e24eb7e +SHA1 (patch-libwebrtc.diff) = 2f83e71f95397260ec20bced3724fa5f9259765b SHA1 (patch-media_ffvpx_libavutil_arm_bswap.h) = de58daa0fd23d4fec50426602b65c9ea5862558a SHA1 (patch-media_libcubeb_src_cubeb__alsa.c) = 2ef11da83c90c41490db4c0d9809c3e1826b488a SHA1 (patch-media_libcubeb_src_cubeb__jack.cpp) = fc546c5e6582fd5eda64ba83287dfbbb3c9e229f diff --git a/www/firefox/files/replace-moz.build.awk b/www/firefox/files/replace-moz.build.awk new file mode 100644 index 00000000000..f9420142a94 --- /dev/null +++ b/www/firefox/files/replace-moz.build.awk @@ -0,0 +1,22 @@ +/^if CONFIG\[\"OS_TARGET\"\] == \"Android\":/{ + flag = 1; + print $0; + next; +} +/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\":/{ + flag = 0; + sub(/^if CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\":"); + print $0; + next; +} +{ + if (flag != 1) { + sub(/^ DEFINES\[\"WEBRTC_LINUX\"\] = True/, " if CONFIG\[\"OS_TARGET\"\] == \"Linux\":\n DEFINES\[\"WEBRTC_LINUX\"\] = True\n else:\n DEFINES\[\"WEBRTC_BSD\"\] = True"); + sub(/^if not CONFIG\[\"MOZ_DEBUG\"\] and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if not CONFIG[\"MOZ_DEBUG\"] and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):"); + sub(/^if CONFIG\[\"MOZ_DEBUG\"\] == \"1\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"MOZ_DEBUG\"] == \"1\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):"); + sub(/^if CONFIG\[\"CPU_ARCH\"\] == \"aarch64\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"CPU_ARCH\"] == \"aarch64\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):"); + sub(/^if CONFIG\[\"CPU_ARCH\"\] == \"x86\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"CPU_ARCH\"] == \"x86\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):"); + sub(/^if CONFIG\[\"CPU_ARCH\"\] == \"x86_64\" and CONFIG\[\"OS_TARGET\"\] == \"Linux\":/, "if CONFIG[\"CPU_ARCH\"] == \"x86_64\" and (CONFIG[\"OS_TARGET\"] == \"Linux\" or CONFIG[\"OS_TARGET\"] == \"NetBSD\" or CONFIG[\"OS_TARGET\"] == \"OpenBSD\" or CONFIG[\"OS_TARGET\"] == \"FreeBSD\"):"); + } + print $0; +} diff --git a/www/firefox/mozilla-common.mk b/www/firefox/mozilla-common.mk index 2593c1d06b0..40da7502976 100644 --- a/www/firefox/mozilla-common.mk +++ b/www/firefox/mozilla-common.mk @@ -1,4 +1,4 @@ -# $NetBSD: mozilla-common.mk,v 1.237 2022/08/05 09:52:10 nia Exp $ +# $NetBSD: mozilla-common.mk,v 1.238 2022/08/06 20:47:51 nia Exp $ # # common Makefile fragment for mozilla packages based on gecko 2.0. # @@ -35,6 +35,7 @@ TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" TOOL_DEPENDS+= nasm>=2.14:../../devel/nasm TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm +CFLAGS+= -msse2 .endif # This is to work around build failures where an upstream configuration script diff --git a/www/firefox/patches/patch-libwebrtc.diff b/www/firefox/patches/patch-libwebrtc.diff deleted file mode 100644 index 9280d2cee99..00000000000 --- a/www/firefox/patches/patch-libwebrtc.diff +++ /dev/null @@ -1,17439 +0,0 @@ -$NetBSD: patch-libwebrtc.diff,v 1.7 2022/08/03 17:09:26 ryoon Exp $ - -Generated by scripts in http://ftp.netbsd.org/pub/NetBSD/misc/ryoon/firefox-103.0-create-libwebrtc.diff and modified by hand. - -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build ---- third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/adaptation/resource_adaptation_api_gn/moz.build 2022-07-26 23:57:28.491578328 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("resource_adaptation_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/array_view_gn/moz.build firefox-103.0/third_party/libwebrtc/api/array_view_gn/moz.build ---- third_party/libwebrtc/api/array_view_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/api/array_view_gn/moz.build 2022-07-26 23:57:28.411454920 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("array_view_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio/aec3_config_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio/aec3_config_gn/moz.build ---- third_party/libwebrtc/api/audio/aec3_config_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/audio/aec3_config_gn/moz.build 2022-07-26 23:57:28.532316610 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aec3_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build ---- third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/audio/aec3_factory_gn/moz.build 2022-07-26 23:57:28.536379004 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aec3_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build ---- third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/audio/audio_frame_api_gn/moz.build 2022-07-26 23:57:28.530954587 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -201,4 +204,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_frame_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build ---- third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/audio/audio_mixer_api_gn/moz.build 2022-07-26 23:57:28.533672041 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_mixer_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio/echo_control_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio/echo_control_gn/moz.build ---- third_party/libwebrtc/api/audio/echo_control_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/audio/echo_control_gn/moz.build 2022-07-26 23:57:28.535017252 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("echo_control_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/L16/audio_decoder_L16_gn/moz.build 2022-07-26 23:57:28.421062907 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_L16_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/L16/audio_encoder_L16_gn/moz.build 2022-07-26 23:57:28.419696306 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_L16_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/audio_codecs_api_gn/moz.build 2022-07-26 23:57:28.418328723 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -150,7 +153,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -203,4 +206,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_codecs_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/builtin_audio_decoder_factory_gn/moz.build 2022-07-27 05:57:44.377840164 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -173,7 +176,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -219,7 +222,7 @@ - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" - --if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "aarch64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -233,7 +236,7 @@ - - DEFINES["_GNU_SOURCE"] = True - --if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - CXXFLAGS += [ - "-msse2" -@@ -247,7 +250,7 @@ - "m" - ] - --if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86_64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -257,4 +260,13 @@ - "m" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("builtin_audio_decoder_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/builtin_audio_encoder_factory_gn/moz.build 2022-07-27 05:59:29.468036073 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -173,7 +176,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -219,7 +222,7 @@ - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" - --if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "aarch64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -229,11 +232,11 @@ - "m" - ] - --if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "arm" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_GNU_SOURCE"] = True - --if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - CXXFLAGS += [ - "-msse2" -@@ -247,7 +250,7 @@ - "m" - ] - --if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86_64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -257,4 +260,13 @@ - "m" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("builtin_audio_encoder_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/g711/audio_decoder_g711_gn/moz.build 2022-07-26 23:57:28.435824464 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_g711_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/g711/audio_encoder_g711_gn/moz.build 2022-07-26 23:57:28.434461038 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_g711_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/g722/audio_decoder_g722_gn/moz.build 2022-07-26 23:57:28.414231985 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_g722_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_config_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_config_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_config_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_config_gn/moz.build 2022-07-26 23:57:28.415589128 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_g722_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/g722/audio_encoder_g722_gn/moz.build 2022-07-26 23:57:28.416953495 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_g722_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/ilbc/audio_decoder_ilbc_gn/moz.build 2022-07-26 23:57:28.433096721 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_ilbc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_config_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_config_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_config_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_config_gn/moz.build 2022-07-26 23:57:28.431729889 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_ilbc_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/ilbc/audio_encoder_ilbc_gn/moz.build 2022-07-26 23:57:28.430376954 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_ilbc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_fix_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_fix_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_fix_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_fix_gn/moz.build 2022-07-26 23:57:28.429013368 +0900 -@@ -68,7 +68,7 @@ - "unwind" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -87,4 +87,13 @@ - - DEFINES["USE_X11"] = "1" - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_isac_fix_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn/moz.build 2022-07-26 23:57:28.425215741 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -145,7 +148,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -187,4 +190,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_isac_float_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_gn/moz.build 2022-07-27 06:00:49.201236097 +0900 -@@ -65,14 +65,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -163,7 +166,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -205,7 +208,7 @@ - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" - --if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "aarch64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -215,11 +218,11 @@ - "m" - ] - --if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "arm" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_GNU_SOURCE"] = True - --if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -229,7 +232,7 @@ - "m" - ] - --if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86_64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -239,4 +242,13 @@ - "m" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_isac_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_fix_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_fix_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_fix_gn/moz.build 2022-07-19 03:44:35.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_fix_gn/moz.build 2022-07-26 23:57:28.426439905 +0900 -@@ -68,7 +68,7 @@ - "unwind" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -87,4 +87,13 @@ - - DEFINES["USE_X11"] = "1" - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_isac_fix_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_float_gn/moz.build 2022-07-26 23:57:28.427788583 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -145,7 +148,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -187,4 +190,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_isac_float_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/isac/audio_encoder_isac_gn/moz.build 2022-07-27 01:28:58.591097294 +0900 -@@ -65,14 +65,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -163,7 +166,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -205,7 +208,7 @@ - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" - --if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "aarch64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -219,7 +222,7 @@ - - DEFINES["_GNU_SOURCE"] = True - --if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -229,7 +232,7 @@ - "m" - ] - --if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86_64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FIX"] = "0" - DEFINES["WEBRTC_USE_BUILTIN_ISAC_FLOAT"] = "1" -@@ -239,4 +242,13 @@ - "m" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_isac_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_multiopus_gn/moz.build 2022-07-26 23:57:28.437188209 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -201,4 +204,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_multiopus_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_config_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_config_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_config_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_config_gn/moz.build 2022-07-26 23:57:28.444009384 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_opus_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/opus/audio_decoder_opus_gn/moz.build 2022-07-26 23:57:28.439927924 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_decoder_opus_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_multiopus_gn/moz.build 2022-07-26 23:57:28.442660165 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -201,4 +204,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_multiopus_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_config_gn/moz.build 2022-07-26 23:57:28.441295357 +0900 -@@ -72,14 +72,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -152,7 +155,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -205,4 +208,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_opus_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build ---- third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/audio_codecs/opus/audio_encoder_opus_gn/moz.build 2022-07-26 23:57:28.438559971 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_opus_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/audio_options_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/audio_options_api_gn/moz.build ---- third_party/libwebrtc/api/audio_options_api_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/api/audio_options_api_gn/moz.build 2022-07-26 23:57:28.526891883 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_options_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/bitrate_allocation_gn/moz.build firefox-103.0/third_party/libwebrtc/api/bitrate_allocation_gn/moz.build ---- third_party/libwebrtc/api/bitrate_allocation_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/api/bitrate_allocation_gn/moz.build 2022-07-26 23:57:28.404683419 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("bitrate_allocation_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/call_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/call_api_gn/moz.build ---- third_party/libwebrtc/api/call_api_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/call_api_gn/moz.build 2022-07-26 23:57:28.483415339 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("call_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/callfactory_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/callfactory_api_gn/moz.build ---- third_party/libwebrtc/api/callfactory_api_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/callfactory_api_gn/moz.build 2022-07-26 23:57:28.506478955 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("callfactory_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build firefox-103.0/third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build ---- third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/api/crypto/frame_decryptor_interface_gn/moz.build 2022-07-26 23:57:28.410105230 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("frame_decryptor_interface_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build firefox-103.0/third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build ---- third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/api/crypto/frame_encryptor_interface_gn/moz.build 2022-07-26 23:57:28.408751994 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("frame_encryptor_interface_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/crypto/options_gn/moz.build firefox-103.0/third_party/libwebrtc/api/crypto/options_gn/moz.build ---- third_party/libwebrtc/api/crypto/options_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/crypto/options_gn/moz.build 2022-07-26 23:57:28.407404699 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("options_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/fec_controller_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/fec_controller_api_gn/moz.build ---- third_party/libwebrtc/api/fec_controller_api_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/fec_controller_api_gn/moz.build 2022-07-26 23:57:28.472594398 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("fec_controller_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build firefox-103.0/third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build ---- third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/frame_transformer_interface_gn/moz.build 2022-07-26 23:57:28.525528838 +0900 -@@ -64,14 +64,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -193,4 +196,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("frame_transformer_interface_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/function_view_gn/moz.build firefox-103.0/third_party/libwebrtc/api/function_view_gn/moz.build ---- third_party/libwebrtc/api/function_view_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/api/function_view_gn/moz.build 2022-07-26 23:57:28.475291243 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("function_view_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build ---- third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/libjingle_logging_api_gn/moz.build 2022-07-26 23:57:28.473941082 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("jingle_logging_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/media_stream_interface_gn/moz.build firefox-103.0/third_party/libwebrtc/api/media_stream_interface_gn/moz.build ---- third_party/libwebrtc/api/media_stream_interface_gn/moz.build 2022-07-19 03:44:35.000000000 +0900 -+++ third_party/libwebrtc/api/media_stream_interface_gn/moz.build 2022-07-26 23:57:28.490217888 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("media_stream_interface_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build ---- third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/neteq/default_neteq_controller_factory_gn/moz.build 2022-07-26 23:57:28.486134275 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("default_neteq_controller_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build ---- third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/neteq/neteq_api_gn/moz.build 2022-07-26 23:57:28.487499143 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("neteq_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build ---- third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/neteq/neteq_controller_api_gn/moz.build 2022-07-26 23:57:28.484767854 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -146,7 +149,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -191,4 +194,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("neteq_controller_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build firefox-103.0/third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build ---- third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/neteq/tick_timer_gn/moz.build 2022-07-26 23:57:28.488859242 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("tick_timer_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build ---- third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/network_state_predictor_api_gn/moz.build 2022-07-26 23:57:28.528237395 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("network_state_predictor_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/numerics/numerics_gn/moz.build firefox-103.0/third_party/libwebrtc/api/numerics/numerics_gn/moz.build ---- third_party/libwebrtc/api/numerics/numerics_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/numerics/numerics_gn/moz.build 2022-07-26 23:57:28.505127813 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("numerics_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/priority_gn/moz.build firefox-103.0/third_party/libwebrtc/api/priority_gn/moz.build ---- third_party/libwebrtc/api/priority_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/priority_gn/moz.build 2022-07-26 23:57:28.406022248 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("priority_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/refcountedbase_gn/moz.build firefox-103.0/third_party/libwebrtc/api/refcountedbase_gn/moz.build ---- third_party/libwebrtc/api/refcountedbase_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/api/refcountedbase_gn/moz.build 2022-07-26 23:57:28.471252774 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("refcountedbase_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/rtc_error_gn/moz.build firefox-103.0/third_party/libwebrtc/api/rtc_error_gn/moz.build ---- third_party/libwebrtc/api/rtc_error_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/rtc_error_gn/moz.build 2022-07-26 23:57:28.524171364 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_error_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build firefox-103.0/third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build ---- third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/rtc_event_log/rtc_event_log_gn/moz.build 2022-07-26 23:57:28.518758399 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -201,4 +204,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_event_log_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/rtp_headers_gn/moz.build firefox-103.0/third_party/libwebrtc/api/rtp_headers_gn/moz.build ---- third_party/libwebrtc/api/rtp_headers_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/rtp_headers_gn/moz.build 2022-07-26 23:57:28.522815613 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_headers_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/rtp_packet_info_gn/moz.build firefox-103.0/third_party/libwebrtc/api/rtp_packet_info_gn/moz.build ---- third_party/libwebrtc/api/rtp_packet_info_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/api/rtp_packet_info_gn/moz.build 2022-07-26 23:57:28.503766782 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_packet_info_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/rtp_parameters_gn/moz.build firefox-103.0/third_party/libwebrtc/api/rtp_parameters_gn/moz.build ---- third_party/libwebrtc/api/rtp_parameters_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/rtp_parameters_gn/moz.build 2022-07-26 23:57:28.529596803 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -144,7 +147,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -197,4 +200,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_parameters_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build firefox-103.0/third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build ---- third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/rtp_transceiver_direction_gn/moz.build 2022-07-26 23:57:28.520105734 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_transceiver_direction_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/scoped_refptr_gn/moz.build firefox-103.0/third_party/libwebrtc/api/scoped_refptr_gn/moz.build ---- third_party/libwebrtc/api/scoped_refptr_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/api/scoped_refptr_gn/moz.build 2022-07-26 23:57:28.517400114 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("scoped_refptr_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/simulated_network_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/simulated_network_api_gn/moz.build ---- third_party/libwebrtc/api/simulated_network_api_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/simulated_network_api_gn/moz.build 2022-07-26 23:57:28.492925192 +0900 -@@ -64,14 +64,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -193,4 +196,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("simulated_network_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build firefox-103.0/third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build ---- third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/task_queue/task_queue_gn/moz.build 2022-07-26 23:57:28.521457618 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("task_queue_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build firefox-103.0/third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build ---- third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/transport/bitrate_settings_gn/moz.build 2022-07-26 23:57:28.502406863 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("bitrate_settings_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build firefox-103.0/third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build ---- third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/transport/field_trial_based_config_gn/moz.build 2022-07-26 23:57:28.494283378 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("field_trial_based_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/transport/goog_cc_gn/moz.build firefox-103.0/third_party/libwebrtc/api/transport/goog_cc_gn/moz.build ---- third_party/libwebrtc/api/transport/goog_cc_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/api/transport/goog_cc_gn/moz.build 2022-07-26 23:57:28.495646412 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("goog_cc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/transport/network_control_gn/moz.build firefox-103.0/third_party/libwebrtc/api/transport/network_control_gn/moz.build ---- third_party/libwebrtc/api/transport/network_control_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/transport/network_control_gn/moz.build 2022-07-26 23:57:28.497003526 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("network_control_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build firefox-103.0/third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build ---- third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/transport/rtp/dependency_descriptor_gn/moz.build 2022-07-26 23:57:28.501050491 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("dependency_descriptor_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build firefox-103.0/third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build ---- third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/transport/rtp/rtp_source_gn/moz.build 2022-07-26 23:57:28.499694489 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_source_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/transport/webrtc_key_value_config_gn/moz.build firefox-103.0/third_party/libwebrtc/api/transport/webrtc_key_value_config_gn/moz.build ---- third_party/libwebrtc/api/transport/webrtc_key_value_config_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/transport/webrtc_key_value_config_gn/moz.build 2022-07-26 23:57:28.498351893 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_key_value_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/transport_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/transport_api_gn/moz.build ---- third_party/libwebrtc/api/transport_api_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/transport_api_gn/moz.build 2022-07-26 23:57:28.516049192 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("transport_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/units/data_rate_gn/moz.build firefox-103.0/third_party/libwebrtc/api/units/data_rate_gn/moz.build ---- third_party/libwebrtc/api/units/data_rate_gn/moz.build 2022-07-19 03:44:35.000000000 +0900 -+++ third_party/libwebrtc/api/units/data_rate_gn/moz.build 2022-07-26 23:57:28.476645811 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("data_rate_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/units/data_size_gn/moz.build firefox-103.0/third_party/libwebrtc/api/units/data_size_gn/moz.build ---- third_party/libwebrtc/api/units/data_size_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/api/units/data_size_gn/moz.build 2022-07-26 23:57:28.480715779 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("data_size_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/units/frequency_gn/moz.build firefox-103.0/third_party/libwebrtc/api/units/frequency_gn/moz.build ---- third_party/libwebrtc/api/units/frequency_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/units/frequency_gn/moz.build 2022-07-26 23:57:28.482070719 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("frequency_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/units/time_delta_gn/moz.build firefox-103.0/third_party/libwebrtc/api/units/time_delta_gn/moz.build ---- third_party/libwebrtc/api/units/time_delta_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/units/time_delta_gn/moz.build 2022-07-26 23:57:28.477999949 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("time_delta_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/units/timestamp_gn/moz.build firefox-103.0/third_party/libwebrtc/api/units/timestamp_gn/moz.build ---- third_party/libwebrtc/api/units/timestamp_gn/moz.build 2022-07-19 03:44:35.000000000 +0900 -+++ third_party/libwebrtc/api/units/timestamp_gn/moz.build 2022-07-26 23:57:28.479354438 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("timestamp_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build ---- third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/video/builtin_video_bitrate_allocator_factory_gn/moz.build 2022-07-26 23:57:28.459033642 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("builtin_video_bitrate_allocator_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/encoded_frame_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/encoded_frame_gn/moz.build ---- third_party/libwebrtc/api/video/encoded_frame_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/video/encoded_frame_gn/moz.build 2022-07-26 23:57:28.450862608 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("encoded_frame_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/encoded_image_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/encoded_image_gn/moz.build ---- third_party/libwebrtc/api/video/encoded_image_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/video/encoded_image_gn/moz.build 2022-07-26 23:57:28.469909837 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("encoded_image_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build ---- third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/video/recordable_encoded_frame_gn/moz.build 2022-07-26 23:57:28.463106195 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("recordable_encoded_frame_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_adaptation_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_adaptation_gn/moz.build ---- third_party/libwebrtc/api/video/video_adaptation_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_adaptation_gn/moz.build 2022-07-26 23:57:28.461753901 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_adaptation_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build ---- third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_bitrate_allocation_gn/moz.build 2022-07-26 23:57:28.468552533 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_bitrate_allocation_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_bitrate_allocator_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_bitrate_allocator_factory_gn/moz.build ---- third_party/libwebrtc/api/video/video_bitrate_allocator_factory_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_bitrate_allocator_factory_gn/moz.build 2022-07-26 23:57:28.465818539 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_bitrate_allocator_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build ---- third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_bitrate_allocator_gn/moz.build 2022-07-26 23:57:28.460392129 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_bitrate_allocator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build ---- third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_codec_constants_gn/moz.build 2022-07-26 23:57:28.457664286 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_codec_constants_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_frame_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_frame_gn/moz.build ---- third_party/libwebrtc/api/video/video_frame_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_frame_gn/moz.build 2022-07-26 23:57:28.449501457 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -149,7 +152,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -202,4 +205,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_frame_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build ---- third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_frame_i010_gn/moz.build 2022-07-26 23:57:28.464474570 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_frame_i010_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_frame_i420_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_frame_i420_gn/moz.build ---- third_party/libwebrtc/api/video/video_frame_i420_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_frame_i420_gn/moz.build 2022-07-26 23:57:28.456317592 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_frame_i420_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build ---- third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_frame_metadata_gn/moz.build 2022-07-26 23:57:28.454950039 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_frame_metadata_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_frame_nv12_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_frame_nv12_gn/moz.build ---- third_party/libwebrtc/api/video/video_frame_nv12_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_frame_nv12_gn/moz.build 2022-07-26 23:57:28.453587465 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_frame_nv12_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_frame_type_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_frame_type_gn/moz.build ---- third_party/libwebrtc/api/video/video_frame_type_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_frame_type_gn/moz.build 2022-07-26 23:57:28.446766872 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_frame_type_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build ---- third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_rtp_headers_gn/moz.build 2022-07-26 23:57:28.448134946 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -150,7 +153,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -203,4 +206,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_rtp_headers_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_stream_encoder_create_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_stream_encoder_create_gn/moz.build ---- third_party/libwebrtc/api/video/video_stream_encoder_create_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_stream_encoder_create_gn/moz.build 2022-07-26 23:57:28.467186342 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_stream_encoder_create_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build ---- third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/api/video/video_stream_encoder_gn/moz.build 2022-07-26 23:57:28.452214963 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_stream_encoder_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video_codecs/bitstream_parser_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video_codecs/bitstream_parser_api_gn/moz.build ---- third_party/libwebrtc/api/video_codecs/bitstream_parser_api_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/api/video_codecs/bitstream_parser_api_gn/moz.build 2022-07-26 23:57:28.510582045 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("bitstream_parser_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build ---- third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/api/video_codecs/builtin_video_decoder_factory_gn/moz.build 2022-07-26 23:57:28.509222647 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("builtin_video_decoder_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video_codecs/builtin_video_encoder_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video_codecs/builtin_video_encoder_factory_gn/moz.build ---- third_party/libwebrtc/api/video_codecs/builtin_video_encoder_factory_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/video_codecs/builtin_video_encoder_factory_gn/moz.build 2022-07-26 23:57:28.507848582 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("builtin_video_encoder_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build ---- third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/api/video_codecs/rtc_software_fallback_wrappers_gn/moz.build 2022-07-26 23:57:28.514694743 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_software_fallback_wrappers_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build firefox-103.0/third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build ---- third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/api/video_codecs/video_codecs_api_gn/moz.build 2022-07-26 23:57:28.511954507 +0900 -@@ -75,14 +75,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_codecs_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build firefox-103.0/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 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/api/video_codecs/vp8_temporal_layers_factory_gn/moz.build 2022-07-26 23:57:28.513323453 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("vp8_temporal_layers_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/audio/audio_gn/moz.build firefox-103.0/third_party/libwebrtc/audio/audio_gn/moz.build ---- third_party/libwebrtc/audio/audio_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/audio/audio_gn/moz.build 2022-07-26 23:57:28.697560502 +0900 -@@ -81,14 +81,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -169,7 +172,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -222,4 +225,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build firefox-103.0/third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build ---- third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/audio/utility/audio_frame_operations_gn/moz.build 2022-07-26 23:57:28.698930770 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_frame_operations_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build firefox-103.0/third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build ---- third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/call/adaptation/resource_adaptation_gn/moz.build 2022-07-26 23:57:28.649602168 +0900 -@@ -77,14 +77,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -165,7 +168,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -218,4 +221,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("resource_adaptation_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/audio_sender_interface_gn/moz.build firefox-103.0/third_party/libwebrtc/call/audio_sender_interface_gn/moz.build ---- third_party/libwebrtc/call/audio_sender_interface_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/call/audio_sender_interface_gn/moz.build 2022-07-26 23:57:28.653697013 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_sender_interface_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/bitrate_allocator_gn/moz.build firefox-103.0/third_party/libwebrtc/call/bitrate_allocator_gn/moz.build ---- third_party/libwebrtc/call/bitrate_allocator_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/call/bitrate_allocator_gn/moz.build 2022-07-26 23:57:28.655064616 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("bitrate_allocator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/bitrate_configurator_gn/moz.build firefox-103.0/third_party/libwebrtc/call/bitrate_configurator_gn/moz.build ---- third_party/libwebrtc/call/bitrate_configurator_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/call/bitrate_configurator_gn/moz.build 2022-07-26 23:57:28.642696746 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("bitrate_configurator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/call_gn/moz.build firefox-103.0/third_party/libwebrtc/call/call_gn/moz.build ---- third_party/libwebrtc/call/call_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/call/call_gn/moz.build 2022-07-26 23:57:28.641329684 +0900 -@@ -72,14 +72,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -160,7 +163,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -213,4 +216,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("call_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/call_interfaces_gn/moz.build firefox-103.0/third_party/libwebrtc/call/call_interfaces_gn/moz.build ---- third_party/libwebrtc/call/call_interfaces_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/call/call_interfaces_gn/moz.build 2022-07-26 23:57:28.644081872 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -161,7 +164,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -214,4 +217,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("call_interfaces_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/fake_network_gn/moz.build firefox-103.0/third_party/libwebrtc/call/fake_network_gn/moz.build ---- third_party/libwebrtc/call/fake_network_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/call/fake_network_gn/moz.build 2022-07-26 23:57:28.657808508 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("fake_network_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/rtp_interfaces_gn/moz.build firefox-103.0/third_party/libwebrtc/call/rtp_interfaces_gn/moz.build ---- third_party/libwebrtc/call/rtp_interfaces_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/call/rtp_interfaces_gn/moz.build 2022-07-26 23:57:28.648210730 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_interfaces_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/rtp_receiver_gn/moz.build firefox-103.0/third_party/libwebrtc/call/rtp_receiver_gn/moz.build ---- third_party/libwebrtc/call/rtp_receiver_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/call/rtp_receiver_gn/moz.build 2022-07-26 23:57:28.645456909 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_receiver_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/rtp_sender_gn/moz.build firefox-103.0/third_party/libwebrtc/call/rtp_sender_gn/moz.build ---- third_party/libwebrtc/call/rtp_sender_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/call/rtp_sender_gn/moz.build 2022-07-26 23:57:28.646833900 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_sender_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/simulated_network_gn/moz.build firefox-103.0/third_party/libwebrtc/call/simulated_network_gn/moz.build ---- third_party/libwebrtc/call/simulated_network_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/call/simulated_network_gn/moz.build 2022-07-26 23:57:28.656436357 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("simulated_network_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build firefox-103.0/third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build ---- third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/call/simulated_packet_receiver_gn/moz.build 2022-07-26 23:57:28.650965173 +0900 -@@ -64,14 +64,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -193,4 +196,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("simulated_packet_receiver_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/call/video_stream_api_gn/moz.build firefox-103.0/third_party/libwebrtc/call/video_stream_api_gn/moz.build ---- third_party/libwebrtc/call/video_stream_api_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/call/video_stream_api_gn/moz.build 2022-07-26 23:57:28.652342414 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_stream_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build ---- third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/common_audio/common_audio_avx2_gn/moz.build 2022-07-26 23:57:28.389681612 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_GNU_SOURCE"] = True -@@ -146,7 +149,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -178,4 +181,13 @@ - "-msse2" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_audio_avx2_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build firefox-103.0/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 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/common_audio/common_audio_c_arm_asm_gn/moz.build 2022-07-26 23:57:28.385504173 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -136,7 +139,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -181,4 +184,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_audio_c_arm_asm_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build ---- third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/common_audio/common_audio_c_gn/moz.build 2022-07-27 06:50:22.209964177 +0900 -@@ -110,14 +110,17 @@ - "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -214,7 +217,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -266,7 +269,7 @@ - "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" - ] - --if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "aarch64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_GNU_SOURCE"] = True - -@@ -275,11 +278,11 @@ - "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" - ] - --if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "arm" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_GNU_SOURCE"] = True - --if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - CFLAGS += [ - "-msse2" -@@ -292,7 +295,7 @@ - "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" - ] - --if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86_64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_GNU_SOURCE"] = True - -@@ -301,4 +304,13 @@ - "/third_party/libwebrtc/common_audio/signal_processing/filter_ar_fast_q12.c" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_audio_c_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build ---- third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/common_audio/common_audio_cc_gn/moz.build 2022-07-26 23:57:28.388340258 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_audio_cc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/common_audio_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/common_audio_gn/moz.build ---- third_party/libwebrtc/common_audio/common_audio_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/common_audio/common_audio_gn/moz.build 2022-07-26 23:57:28.403338097 +0900 -@@ -80,14 +80,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -167,7 +170,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -220,4 +223,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_audio_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build ---- third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/common_audio/common_audio_neon_c_gn/moz.build 2022-07-26 23:57:28.391036401 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_GNU_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -186,4 +189,13 @@ - - DEFINES["WEBRTC_ARCH_ARM64"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_audio_neon_c_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build ---- third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/common_audio/common_audio_neon_gn/moz.build 2022-07-26 23:57:28.396441902 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_GNU_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -185,4 +188,13 @@ - - DEFINES["WEBRTC_ARCH_ARM64"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_audio_neon_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build ---- third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/common_audio/common_audio_sse2_gn/moz.build 2022-07-26 23:57:28.392388185 +0900 -@@ -72,14 +72,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_GNU_SOURCE"] = True -@@ -149,7 +152,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -195,4 +198,13 @@ - "-msse2" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_audio_sse2_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build ---- third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build 2022-07-19 03:44:30.000000000 +0900 -+++ third_party/libwebrtc/common_audio/fir_filter_factory_gn/moz.build 2022-07-26 23:57:28.395096380 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("fir_filter_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/fir_filter_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/fir_filter_gn/moz.build ---- third_party/libwebrtc/common_audio/fir_filter_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/common_audio/fir_filter_gn/moz.build 2022-07-26 23:57:28.393731372 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("fir_filter_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build firefox-103.0/third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build ---- third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/common_audio/sinc_resampler_gn/moz.build 2022-07-26 23:57:28.401963832 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -146,7 +149,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -191,4 +194,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("sinc_resampler_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/common_audio/third_party/ooura/fft_size_128_gn/moz.build 2022-07-26 23:57:28.399249084 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -174,7 +177,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -251,4 +254,13 @@ - "-msse2" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("fft_size_128_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/common_audio/third_party/ooura/fft_size_256_gn/moz.build 2022-07-26 23:57:28.400610034 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("fft_size_256_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor_gn/moz.build 2022-07-27 06:47:31.932062190 +0900 -@@ -63,14 +63,17 @@ - "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -153,7 +156,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -202,7 +205,7 @@ - "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c" - ] - --if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "aarch64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_GNU_SOURCE"] = True - -@@ -210,11 +213,11 @@ - "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c" - ] - --if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "arm" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_GNU_SOURCE"] = True - --if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - CFLAGS += [ - "-msse2" -@@ -226,7 +229,7 @@ - "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c" - ] - --if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86_64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_GNU_SOURCE"] = True - -@@ -234,4 +237,13 @@ - "/third_party/libwebrtc/common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("spl_sqrt_floor_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_video/common_video_gn/moz.build firefox-103.0/third_party/libwebrtc/common_video/common_video_gn/moz.build ---- third_party/libwebrtc/common_video/common_video_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/common_video/common_video_gn/moz.build 2022-07-26 23:57:28.374935395 +0900 -@@ -81,14 +81,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -169,7 +172,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -222,4 +225,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_video_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_video/frame_counts_gn/moz.build firefox-103.0/third_party/libwebrtc/common_video/frame_counts_gn/moz.build ---- third_party/libwebrtc/common_video/frame_counts_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/common_video/frame_counts_gn/moz.build 2022-07-26 23:57:28.372197423 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("frame_counts_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/common_video/generic_frame_descriptor/generic_frame_descriptor_gn/moz.build 2022-07-26 23:57:28.373557713 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("generic_frame_descriptor_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build firefox-103.0/third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build ---- third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/logging/rtc_event_audio_gn/moz.build 2022-07-26 23:57:28.701678500 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -150,7 +153,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -203,4 +206,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_event_audio_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build firefox-103.0/third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build ---- third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/logging/rtc_event_bwe_gn/moz.build 2022-07-26 23:57:28.700314664 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -161,7 +164,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -214,4 +217,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_event_bwe_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build firefox-103.0/third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build ---- third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/logging/rtc_event_pacing_gn/moz.build 2022-07-26 23:57:28.704393859 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_event_pacing_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build firefox-103.0/third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build ---- third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/logging/rtc_event_rtp_rtcp_gn/moz.build 2022-07-26 23:57:28.705758487 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -159,7 +162,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -212,4 +215,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_event_rtp_rtcp_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/logging/rtc_event_video_gn/moz.build firefox-103.0/third_party/libwebrtc/logging/rtc_event_video_gn/moz.build ---- third_party/libwebrtc/logging/rtc_event_video_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/logging/rtc_event_video_gn/moz.build 2022-07-26 23:57:28.707122774 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -201,4 +204,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_event_video_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build firefox-103.0/third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build ---- third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/logging/rtc_stream_config_gn/moz.build 2022-07-26 23:57:28.703036275 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_stream_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/media/rtc_constants_gn/moz.build firefox-103.0/third_party/libwebrtc/media/rtc_constants_gn/moz.build ---- third_party/libwebrtc/media/rtc_constants_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/media/rtc_constants_gn/moz.build 2022-07-26 23:57:28.537736198 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_constants_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build firefox-103.0/third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build ---- third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/media/rtc_encoder_simulcast_proxy_gn/moz.build 2022-07-26 23:57:28.540462357 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_encoder_simulcast_proxy_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/media/rtc_h264_profile_id_gn/moz.build firefox-103.0/third_party/libwebrtc/media/rtc_h264_profile_id_gn/moz.build ---- third_party/libwebrtc/media/rtc_h264_profile_id_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/media/rtc_h264_profile_id_gn/moz.build 2022-07-26 23:57:28.545917942 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_h264_profile_id_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build firefox-103.0/third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build ---- third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/media/rtc_internal_video_codecs_gn/moz.build 2022-07-26 23:57:28.539099332 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_internal_video_codecs_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/media/rtc_media_base_gn/moz.build firefox-103.0/third_party/libwebrtc/media/rtc_media_base_gn/moz.build ---- third_party/libwebrtc/media/rtc_media_base_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/media/rtc_media_base_gn/moz.build 2022-07-26 23:57:28.541833106 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -161,7 +164,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -214,4 +217,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_media_base_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/media/rtc_media_config_gn/moz.build firefox-103.0/third_party/libwebrtc/media/rtc_media_config_gn/moz.build ---- third_party/libwebrtc/media/rtc_media_config_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/media/rtc_media_config_gn/moz.build 2022-07-26 23:57:28.547262712 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_media_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build firefox-103.0/third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build ---- third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/media/rtc_simulcast_encoder_adapter_gn/moz.build 2022-07-26 23:57:28.544556671 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_simulcast_encoder_adapter_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/media/rtc_vp9_profile_gn/moz.build firefox-103.0/third_party/libwebrtc/media/rtc_vp9_profile_gn/moz.build ---- third_party/libwebrtc/media/rtc_vp9_profile_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/media/rtc_vp9_profile_gn/moz.build 2022-07-26 23:57:28.543188366 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_vp9_profile_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/audio_coding_gn/moz.build 2022-07-26 23:57:28.203823715 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_coding_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/audio_coding_module_typedefs_gn/moz.build 2022-07-26 23:57:28.184971933 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_coding_module_typedefs_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/audio_coding_opus_common_gn/moz.build 2022-07-26 23:57:28.213441932 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_coding_opus_common_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/audio_encoder_cng_gn/moz.build 2022-07-26 23:57:28.212074369 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_encoder_cng_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_config_gn/moz.build 2022-07-26 23:57:28.220299494 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_network_adaptor_config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/audio_network_adaptor_gn/moz.build 2022-07-26 23:57:28.182172617 +0900 -@@ -77,14 +77,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -164,7 +167,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -217,4 +220,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_network_adaptor_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/default_neteq_factory_gn/moz.build 2022-07-26 23:57:28.198490470 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("default_neteq_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/g711_c_gn/moz.build 2022-07-26 23:57:28.210707126 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("g711_c_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/g711_gn/moz.build 2022-07-26 23:57:28.217578074 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -201,4 +204,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("g711_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/g722_c_gn/moz.build 2022-07-26 23:57:28.201081055 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("g722_c_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/g722_gn/moz.build 2022-07-26 23:57:28.190459628 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -201,4 +204,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("g722_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/ilbc_c_gn/moz.build 2022-07-26 23:57:28.189075133 +0900 -@@ -135,14 +135,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -222,7 +225,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -275,4 +278,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("ilbc_c_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/ilbc_gn/moz.build 2022-07-26 23:57:28.205198642 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("ilbc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_bwinfo_gn/moz.build 2022-07-26 23:57:28.209349742 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_bwinfo_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_c_gn/moz.build 2022-07-26 23:57:28.216203628 +0900 -@@ -89,14 +89,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -167,7 +170,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_c_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_common_gn/moz.build 2022-07-26 23:57:28.218930509 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_common_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_fix_c_arm_asm_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_fix_c_arm_asm_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_fix_c_arm_asm_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_fix_c_arm_asm_gn/moz.build 2022-07-26 23:57:28.187588317 +0900 -@@ -65,7 +65,7 @@ - "unwind" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -84,4 +84,13 @@ - - DEFINES["USE_X11"] = "1" - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_fix_c_arm_asm_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_fix_c_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_fix_c_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_fix_c_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_fix_c_gn/moz.build 2022-07-26 23:57:28.180696951 +0900 -@@ -94,7 +94,7 @@ - "unwind" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -113,4 +113,13 @@ - - DEFINES["USE_X11"] = "1" - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_fix_c_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_fix_common_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_fix_common_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_fix_common_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_fix_common_gn/moz.build 2022-07-26 23:57:28.193103794 +0900 -@@ -69,7 +69,7 @@ - "unwind" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -88,4 +88,13 @@ - - DEFINES["USE_X11"] = "1" - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_fix_common_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_fix_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_fix_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_fix_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_fix_gn/moz.build 2022-07-26 23:57:28.199722819 +0900 -@@ -69,7 +69,7 @@ - "unwind" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -88,4 +88,13 @@ - - DEFINES["USE_X11"] = "1" - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_fix_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_gn/moz.build 2022-07-26 23:57:28.202441805 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -146,7 +149,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -188,4 +191,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_neon_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_neon_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_neon_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_neon_gn/moz.build 2022-07-26 23:57:28.195716040 +0900 -@@ -72,7 +72,7 @@ - "unwind" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -91,4 +91,13 @@ - - DEFINES["USE_X11"] = "1" - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_neon_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/isac_vad_gn/moz.build 2022-07-26 23:57:28.223047755 +0900 -@@ -66,14 +66,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -142,7 +145,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -195,4 +198,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("isac_vad_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/legacy_encoded_audio_frame_gn/moz.build 2022-07-26 23:57:28.207988882 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("legacy_encoded_audio_frame_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/neteq_gn/moz.build 2022-07-26 23:57:28.206615237 +0900 -@@ -99,14 +99,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -186,7 +189,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -239,4 +242,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("neteq_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/pcm16b_c_gn/moz.build 2022-07-26 23:57:28.186348613 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("pcm16b_c_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/pcm16b_gn/moz.build 2022-07-26 23:57:28.194473852 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -149,7 +152,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -202,4 +205,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("pcm16b_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/red_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/red_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/red_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/red_gn/moz.build 2022-07-26 23:57:28.214812942 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("red_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/webrtc_cng_gn/moz.build 2022-07-26 23:57:28.221676034 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_cng_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/webrtc_multiopus_gn/moz.build 2022-07-26 23:57:28.183593680 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -160,7 +163,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -226,4 +229,13 @@ - DEFINES["WEBRTC_CODEC_ISAC"] = True - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_multiopus_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/webrtc_opus_gn/moz.build 2022-07-26 23:57:28.197108810 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -167,7 +170,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -233,4 +236,13 @@ - DEFINES["WEBRTC_CODEC_ISAC"] = True - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_opus_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build ---- third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_coding/webrtc_opus_wrapper_gn/moz.build 2022-07-26 23:57:28.191860664 +0900 -@@ -72,14 +72,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -159,7 +162,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -225,4 +228,13 @@ - DEFINES["WEBRTC_CODEC_ISAC"] = True - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_opus_wrapper_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_device/audio_device_api_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_device/audio_device_api_gn/moz.build ---- third_party/libwebrtc/modules/audio_device/audio_device_api_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_device/audio_device_api_gn/moz.build 2022-07-26 23:57:28.343282090 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_device_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_device/audio_device_buffer_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_device/audio_device_buffer_gn/moz.build ---- third_party/libwebrtc/modules/audio_device/audio_device_buffer_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_device/audio_device_buffer_gn/moz.build 2022-07-26 23:57:28.348792588 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_device_buffer_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_device/audio_device_default_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_device/audio_device_default_gn/moz.build ---- third_party/libwebrtc/modules/audio_device/audio_device_default_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_device/audio_device_default_gn/moz.build 2022-07-26 23:57:28.344642890 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_device_default_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_device/audio_device_generic_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_device/audio_device_generic_gn/moz.build ---- third_party/libwebrtc/modules/audio_device/audio_device_generic_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_device/audio_device_generic_gn/moz.build 2022-07-26 23:57:28.347410307 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_device_generic_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build ---- third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_device/audio_device_gn/moz.build 2022-07-26 23:57:28.341912433 +0900 -@@ -64,14 +64,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -193,4 +196,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_device_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build ---- third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_device/audio_device_impl_gn/moz.build 2022-07-26 23:57:28.346026543 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -159,7 +162,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -212,4 +215,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_device_impl_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build ---- third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_mixer/audio_frame_manipulator_gn/moz.build 2022-07-26 23:57:28.307244658 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_frame_manipulator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build ---- third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_mixer/audio_mixer_impl_gn/moz.build 2022-07-26 23:57:28.305861275 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_mixer_impl_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_gn/moz.build 2022-07-26 23:57:28.247954105 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("adaptive_fir_filter_erl_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_gn/moz.build 2022-07-26 23:57:28.246587514 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -146,7 +149,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -191,4 +194,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("adaptive_fir_filter_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/aec3_avx2_gn/moz.build 2022-07-26 23:57:28.250683060 +0900 -@@ -77,14 +77,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_GNU_SOURCE"] = True -@@ -150,7 +153,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -182,4 +185,13 @@ - "-msse2" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aec3_avx2_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/aec3_common_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/aec3_common_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/aec3_common_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/aec3_common_gn/moz.build 2022-07-26 23:57:28.243755215 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aec3_common_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/aec3_fft_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/aec3_fft_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/aec3_fft_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/aec3_fft_gn/moz.build 2022-07-26 23:57:28.239681851 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -146,7 +149,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -191,4 +194,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aec3_fft_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build 2022-07-26 23:57:28.245218227 +0900 -@@ -121,14 +121,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -208,7 +211,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -261,4 +264,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aec3_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/fft_data_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/fft_data_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/fft_data_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/fft_data_gn/moz.build 2022-07-26 23:57:28.242396799 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("fft_data_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_gn/moz.build 2022-07-26 23:57:28.238310751 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("matched_filter_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/render_buffer_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/render_buffer_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/render_buffer_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/render_buffer_gn/moz.build 2022-07-26 23:57:28.241040047 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("render_buffer_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec3/vector_math_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec3/vector_math_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec3/vector_math_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec3/vector_math_gn/moz.build 2022-07-26 23:57:28.249319815 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("vector_math_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec_dump/aec_dump_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec_dump/aec_dump_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec_dump/aec_dump_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec_dump/aec_dump_gn/moz.build 2022-07-26 23:57:28.278263722 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aec_dump_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec_dump/null_aec_dump_factory_gn/moz.build 2022-07-26 23:57:28.276887953 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("null_aec_dump_factory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aec_dump_interface_gn/moz.build 2022-07-26 23:57:28.274097553 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aec_dump_interface_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/aecm/aecm_core_gn/moz.build 2022-07-26 23:57:28.234180410 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -164,7 +167,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -217,4 +220,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aecm_core_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc/agc_gn/moz.build 2022-07-26 23:57:28.258967556 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("agc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc/gain_control_interface_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc/gain_control_interface_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc/gain_control_interface_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc/gain_control_interface_gn/moz.build 2022-07-26 23:57:28.263069044 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("gain_control_interface_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc/gain_map_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc/gain_map_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc/gain_map_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc/gain_map_gn/moz.build 2022-07-26 23:57:28.261708353 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("gain_map_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc/legacy_agc_gn/moz.build 2022-07-26 23:57:28.257585917 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("legacy_agc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc/level_estimation_gn/moz.build 2022-07-26 23:57:28.260349466 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("level_estimation_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc2/adaptive_digital_gn/moz.build 2022-07-26 23:57:28.285177349 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("adaptive_digital_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc2/biquad_filter_gn/moz.build 2022-07-26 23:57:28.289331615 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("biquad_filter_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc2/common_gn/moz.build 2022-07-26 23:57:28.287946890 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("common_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc2/fixed_digital_gn/moz.build 2022-07-26 23:57:28.282395796 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("fixed_digital_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc2/gain_applier_gn/moz.build 2022-07-26 23:57:28.292085206 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("gain_applier_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc2/level_estimation_agc_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc2/level_estimation_agc_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc2/level_estimation_agc_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc2/level_estimation_agc_gn/moz.build 2022-07-26 23:57:28.293461035 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("level_estimation_agc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc2/noise_level_estimator_gn/moz.build 2022-07-26 23:57:28.286564709 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("noise_level_estimator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad/rnn_vad_gn/moz.build 2022-07-26 23:57:28.283790540 +0900 -@@ -75,14 +75,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -162,7 +165,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -215,4 +218,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rnn_vad_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad_with_level_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad_with_level_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad_with_level_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/agc2/rnn_vad_with_level_gn/moz.build 2022-07-26 23:57:28.290716300 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rnn_vad_with_level_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/api_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/api_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/api_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/api_gn/moz.build 2022-07-26 23:57:28.236939191 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/apm_logging_gn/moz.build 2022-07-26 23:57:28.235562330 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("apm_logging_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/audio_buffer_gn/moz.build 2022-07-26 23:57:28.296225005 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_buffer_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/audio_frame_proxies_gn/moz.build 2022-07-26 23:57:28.253421762 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_frame_proxies_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/audio_frame_view_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/audio_frame_view_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/audio_frame_view_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/audio_frame_view_gn/moz.build 2022-07-26 23:57:28.279631495 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_frame_view_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/audio_processing_gn/moz.build 2022-07-26 23:57:28.275504861 +0900 -@@ -82,14 +82,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -169,7 +172,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -222,4 +225,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_processing_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/audio_processing_statistics_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/audio_processing_statistics_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/audio_processing_statistics_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/audio_processing_statistics_gn/moz.build 2022-07-26 23:57:28.281005049 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_processing_statistics_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/config_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/config_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/config_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/config_gn/moz.build 2022-07-26 23:57:28.252052747 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/high_pass_filter_gn/moz.build 2022-07-26 23:57:28.271342560 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("high_pass_filter_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/ns/ns_gn/moz.build 2022-07-26 23:57:28.297626562 +0900 -@@ -80,14 +80,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -167,7 +170,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -220,4 +223,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("ns_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/optionally_built_submodule_creators_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/optionally_built_submodule_creators_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/optionally_built_submodule_creators_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/optionally_built_submodule_creators_gn/moz.build 2022-07-26 23:57:28.254819191 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("optionally_built_submodule_creators_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/rms_level_gn/moz.build 2022-07-26 23:57:28.272718939 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rms_level_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_api_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_api_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_api_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_api_gn/moz.build 2022-07-26 23:57:28.264434984 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("transient_suppressor_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_impl_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_impl_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_impl_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/transient/transient_suppressor_impl_gn/moz.build 2022-07-26 23:57:28.265826422 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("transient_suppressor_impl_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/utility/cascaded_biquad_filter_gn/moz.build 2022-07-26 23:57:28.269963074 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("cascaded_biquad_filter_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/utility/legacy_delay_estimator_gn/moz.build 2022-07-26 23:57:28.268587486 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -144,7 +147,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -197,4 +200,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("legacy_delay_estimator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/utility/pffft_wrapper_gn/moz.build 2022-07-26 23:57:28.267207480 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("pffft_wrapper_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/vad/vad_gn/moz.build 2022-07-26 23:57:28.294850118 +0900 -@@ -74,14 +74,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -161,7 +164,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -214,4 +217,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("vad_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/audio_processing/voice_detection_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/audio_processing/voice_detection_gn/moz.build ---- third_party/libwebrtc/modules/audio_processing/voice_detection_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/audio_processing/voice_detection_gn/moz.build 2022-07-26 23:57:28.256200140 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("voice_detection_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/congestion_controller_gn/moz.build 2022-07-26 23:57:28.370843065 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("congestion_controller_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector_gn/moz.build 2022-07-26 23:57:28.359789809 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("alr_detector_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/goog_cc/delay_based_bwe_gn/moz.build 2022-07-26 23:57:28.357033122 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("delay_based_bwe_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/goog_cc/estimators_gn/moz.build 2022-07-26 23:57:28.366695912 +0900 -@@ -74,14 +74,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -162,7 +165,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -215,4 +218,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("estimators_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/goog_cc/goog_cc_gn/moz.build 2022-07-26 23:57:28.358413730 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("goog_cc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/goog_cc/link_capacity_estimator_gn/moz.build 2022-07-26 23:57:28.361162722 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("link_capacity_estimator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_controller_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_controller_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_controller_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/goog_cc/loss_based_controller_gn/moz.build 2022-07-26 23:57:28.363922684 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("loss_based_controller_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/goog_cc/probe_controller_gn/moz.build 2022-07-26 23:57:28.365303422 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("probe_controller_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/goog_cc/pushback_controller_gn/moz.build 2022-07-26 23:57:28.362543409 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("pushback_controller_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/rtp/control_handler_gn/moz.build 2022-07-26 23:57:28.369466254 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("control_handler_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build ---- third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/modules/congestion_controller/rtp/transport_feedback_gn/moz.build 2022-07-26 23:57:28.368086318 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("transport_feedback_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build ---- third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_differ_sse2_gn/moz.build 2022-07-26 23:57:28.336407165 +0900 -@@ -54,14 +54,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_GNU_SOURCE"] = True -@@ -116,7 +119,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -145,4 +148,13 @@ - "-msse2" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("desktop_capture_differ_sse2_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build ---- third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build 2022-07-26 23:57:28.333639277 +0900 -@@ -81,14 +81,17 @@ - "/third_party/libwebrtc/modules/desktop_capture/mac/window_list_utils.cc" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -282,7 +285,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -456,4 +459,13 @@ - "/third_party/libwebrtc/modules/desktop_capture/linux/x_window_property.cc" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("desktop_capture_generic_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build ---- third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_gn/moz.build 2022-07-26 23:57:28.335071922 +0900 -@@ -46,14 +46,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -245,4 +248,13 @@ - "Xtst" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("desktop_capture_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build ---- third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/desktop_capture/desktop_capture_objc_gn/moz.build 2022-07-26 23:57:28.331970269 +0900 -@@ -63,4 +63,13 @@ - DEFINES["WEBRTC_ARCH_ARM64"] = True - DEFINES["WEBRTC_HAS_NEON"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("desktop_capture_objc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build ---- third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/desktop_capture/primitives_gn/moz.build 2022-07-26 23:57:28.337777032 +0900 -@@ -54,14 +54,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -175,4 +178,13 @@ - - DEFINES["USE_X11"] = "1" - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("primitives_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/module_api_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/module_api_gn/moz.build ---- third_party/libwebrtc/modules/module_api_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/module_api_gn/moz.build 2022-07-26 23:57:28.228651027 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("module_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/module_api_public_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/module_api_public_gn/moz.build ---- third_party/libwebrtc/modules/module_api_public_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/modules/module_api_public_gn/moz.build 2022-07-26 23:57:28.232793120 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("module_api_public_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/module_fec_api_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/module_fec_api_gn/moz.build ---- third_party/libwebrtc/modules/module_fec_api_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/module_fec_api_gn/moz.build 2022-07-26 23:57:28.340539339 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("module_fec_api_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build ---- third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/pacing/interval_budget_gn/moz.build 2022-07-26 23:57:28.351553171 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("interval_budget_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/pacing/pacing_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/pacing/pacing_gn/moz.build ---- third_party/libwebrtc/modules/pacing/pacing_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/pacing/pacing_gn/moz.build 2022-07-26 23:57:28.350179828 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -161,7 +164,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -214,4 +217,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("pacing_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_gn/moz.build 2022-07-26 23:57:28.299022768 +0900 -@@ -79,14 +79,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -167,7 +170,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -220,4 +223,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("remote_bitrate_estimator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build ---- third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_format_gn/moz.build 2022-07-26 23:57:28.225842804 +0900 -@@ -109,14 +109,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -197,7 +200,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -250,4 +253,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_rtcp_format_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build ---- third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_rtcp_gn/moz.build 2022-07-26 23:57:28.227292280 +0900 -@@ -121,14 +121,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -209,7 +212,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -262,4 +265,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_rtcp_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build ---- third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/rtp_rtcp/rtp_video_header_gn/moz.build 2022-07-26 23:57:28.224408886 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_video_header_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build ---- third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/third_party/fft/fft_gn/moz.build 2022-07-26 23:57:28.354288478 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("fft_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build ---- third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/third_party/g711/g711_3p_gn/moz.build 2022-07-26 23:57:28.355656091 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("g711_3p_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build ---- third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/third_party/g722/g722_3p_gn/moz.build 2022-07-26 23:57:28.352918581 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("g722_3p_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/utility/utility_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/utility/utility_gn/moz.build ---- third_party/libwebrtc/modules/utility/utility_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/utility/utility_gn/moz.build 2022-07-26 23:57:28.339170343 +0900 -@@ -72,14 +72,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -159,7 +162,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -212,4 +215,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("utility_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_capture/video_capture_internal_impl_gn/moz.build 2022-07-26 23:57:28.230043857 +0900 -@@ -64,14 +64,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -173,7 +176,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -226,4 +229,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_capture_internal_impl_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build ---- third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_capture/video_capture_module_gn/moz.build 2022-07-26 23:57:28.231430666 +0900 -@@ -72,14 +72,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -160,7 +163,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -213,4 +216,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_capture_module_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/chain_diff_calculator_gn/moz.build 2022-07-26 23:57:28.310020260 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("chain_diff_calculator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/codec_globals_headers_gn/moz.build 2022-07-26 23:57:28.316914271 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("codec_globals_headers_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_decoder_gn/moz.build 2022-07-26 23:57:28.325240716 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aom_av1_decoder_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/codecs/av1/libaom_av1_encoder_gn/moz.build 2022-07-26 23:57:28.323860951 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aom_av1_encoder_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/deprecated/nack_module_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/deprecated/nack_module_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/deprecated/nack_module_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/deprecated/nack_module_gn/moz.build 2022-07-26 23:57:28.329391987 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("nack_module_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/encoded_frame_gn/moz.build 2022-07-26 23:57:28.314163696 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("encoded_frame_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/frame_dependencies_calculator_gn/moz.build 2022-07-26 23:57:28.321063718 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("frame_dependencies_calculator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/nack_module_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/nack_module_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/nack_module_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/nack_module_gn/moz.build 2022-07-26 23:57:28.319683150 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -155,7 +158,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -208,4 +211,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("nack_module_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/video_codec_interface_gn/moz.build 2022-07-26 23:57:28.326619921 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_codec_interface_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/video_coding_gn/moz.build 2022-07-26 23:57:28.322478409 +0900 -@@ -88,14 +88,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -176,7 +179,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -229,4 +232,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_coding_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/video_coding_utility_gn/moz.build 2022-07-26 23:57:28.308646956 +0900 -@@ -77,14 +77,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -165,7 +168,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -218,4 +221,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_coding_utility_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/webrtc_h264_gn/moz.build 2022-07-26 23:57:28.330779437 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -161,7 +164,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -214,4 +217,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_h264_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/webrtc_multiplex_gn/moz.build 2022-07-26 23:57:28.315550695 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -159,7 +162,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -212,4 +215,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_multiplex_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_gn/moz.build 2022-07-26 23:57:28.318300639 +0900 -@@ -72,14 +72,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -160,7 +163,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -213,4 +216,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_vp8_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/webrtc_vp8_temporal_layers_gn/moz.build 2022-07-26 23:57:28.312790121 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -161,7 +164,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -214,4 +217,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_vp8_temporal_layers_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/webrtc_vp9_gn/moz.build 2022-07-26 23:57:28.328006901 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -158,7 +161,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -211,4 +214,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_vp9_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build ---- third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_coding/webrtc_vp9_helpers_gn/moz.build 2022-07-26 23:57:28.311401158 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -157,7 +160,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -210,4 +213,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_vp9_helpers_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build ---- third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_processing/denoiser_filter_gn/moz.build 2022-07-26 23:57:28.300380112 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("denoiser_filter_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build ---- third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_processing/video_processing_gn/moz.build 2022-07-26 23:57:28.301764547 +0900 -@@ -74,14 +74,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -162,7 +165,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -215,4 +218,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_processing_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build ---- third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/modules/video_processing/video_processing_neon_gn/moz.build 2022-07-26 23:57:28.304482401 +0900 -@@ -65,14 +65,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_GNU_SOURCE"] = True -@@ -138,7 +141,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -169,4 +172,13 @@ - - DEFINES["WEBRTC_ARCH_ARM64"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_processing_neon_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build firefox-103.0/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build ---- third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn/moz.build 2022-07-26 23:57:28.303131910 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_GNU_SOURCE"] = True -@@ -148,7 +151,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -194,4 +197,13 @@ - "-msse2" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_processing_sse2_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/moz.build firefox-103.0/third_party/libwebrtc/moz.build ---- third_party/libwebrtc/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/moz.build 2022-07-27 02:04:01.689119002 +0900 -@@ -480,7 +480,7 @@ - "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn" - ] - --if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "aarch64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DIRS += [ - "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn", -@@ -495,7 +495,7 @@ - "/third_party/libwebrtc/modules/video_processing/video_processing_neon_gn" - ] - --if CONFIG["CPU_ARCH"] == "arm" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "arm" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DIRS += [ - "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_fix_gn", -@@ -514,7 +514,7 @@ - "/third_party/libwebrtc/rtc_base/system/asm_defines_gn" - ] - --if CONFIG["CPU_ARCH"] == "ppc64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "ppc64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DIRS += [ - "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn", -@@ -523,7 +523,7 @@ - "/third_party/libwebrtc/modules/audio_coding/isac_gn" - ] - --if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DIRS += [ - "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn", -@@ -540,7 +540,7 @@ - "/third_party/libwebrtc/modules/video_processing/video_processing_sse2_gn" - ] - --if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["CPU_ARCH"] == "x86_64" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DIRS += [ - "/third_party/libwebrtc/api/audio_codecs/isac/audio_decoder_isac_float_gn", -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/atomicops_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/atomicops_gn/moz.build ---- third_party/libwebrtc/rtc_base/atomicops_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/atomicops_gn/moz.build 2022-07-26 23:57:28.564868179 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("atomicops_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build ---- third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/audio_format_to_string_gn/moz.build 2022-07-26 23:57:28.574356061 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("audio_format_to_string_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/checks_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/checks_gn/moz.build ---- third_party/libwebrtc/rtc_base/checks_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/checks_gn/moz.build 2022-07-26 23:57:28.549962653 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("checks_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build ---- third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/compile_assert_c_gn/moz.build 2022-07-26 23:57:28.579788172 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("compile_assert_c_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build ---- third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/criticalsection_gn/moz.build 2022-07-26 23:57:28.570299478 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("criticalsection_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/deprecation_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/deprecation_gn/moz.build ---- third_party/libwebrtc/rtc_base/deprecation_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/deprecation_gn/moz.build 2022-07-26 23:57:28.548607783 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("deprecation_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/divide_round_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/divide_round_gn/moz.build ---- third_party/libwebrtc/rtc_base/divide_round_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/divide_round_gn/moz.build 2022-07-26 23:57:28.563521294 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("divide_round_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build ---- third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/alr_experiment_gn/moz.build 2022-07-26 23:57:28.593448554 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("alr_experiment_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build ---- third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/balanced_degradation_settings_gn/moz.build 2022-07-26 23:57:28.601643263 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("balanced_degradation_settings_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build ---- third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/cpu_speed_experiment_gn/moz.build 2022-07-26 23:57:28.589344372 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("cpu_speed_experiment_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build ---- third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/field_trial_parser_gn/moz.build 2022-07-26 23:57:28.587975527 +0900 -@@ -70,14 +70,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -150,7 +153,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -203,4 +206,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("field_trial_parser_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build firefox-103.0/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 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/jitter_upper_bound_experiment_gn/moz.build 2022-07-26 23:57:28.594817740 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("jitter_upper_bound_experiment_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/keyframe_interval_settings_experiment_gn/moz.build 2022-07-26 23:57:28.600277703 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("keyframe_interval_settings_experiment_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/min_video_bitrate_experiment_gn/moz.build 2022-07-26 23:57:28.598906904 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("min_video_bitrate_experiment_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build ---- third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/quality_rampup_experiment_gn/moz.build 2022-07-26 23:57:28.596182318 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("quality_rampup_experiment_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build ---- third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings_gn/moz.build 2022-07-26 23:57:28.597543349 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("quality_scaler_settings_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build ---- third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/quality_scaling_experiment_gn/moz.build 2022-07-26 23:57:28.590714440 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("quality_scaling_experiment_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build ---- third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/rate_control_settings_gn/moz.build 2022-07-26 23:57:28.592077515 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rate_control_settings_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build ---- third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/rtt_mult_experiment_gn/moz.build 2022-07-26 23:57:28.586599377 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtt_mult_experiment_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build firefox-103.0/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 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/experiments/stable_target_rate_experiment_gn/moz.build 2022-07-26 23:57:28.603012790 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("stable_target_rate_experiment_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build ---- third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/gtest_prod_gn/moz.build 2022-07-26 23:57:28.631212211 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("gtest_prod_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build ---- third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/ignore_wundef_gn/moz.build 2022-07-26 23:57:28.609790813 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("ignore_wundef_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/logging_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/logging_gn/moz.build ---- third_party/libwebrtc/rtc_base/logging_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/logging_gn/moz.build 2022-07-26 23:57:28.616649277 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("logging_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/macromagic_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/macromagic_gn/moz.build ---- third_party/libwebrtc/rtc_base/macromagic_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/macromagic_gn/moz.build 2022-07-26 23:57:28.554012673 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("macromagic_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build ---- third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/memory/aligned_malloc_gn/moz.build 2022-07-26 23:57:28.578433302 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("aligned_malloc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build ---- third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/network/sent_packet_gn/moz.build 2022-07-26 23:57:28.585233397 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("sent_packet_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build ---- third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/platform_thread_gn/moz.build 2022-07-26 23:57:28.582507819 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("platform_thread_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build ---- third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/platform_thread_types_gn/moz.build 2022-07-26 23:57:28.566226284 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("platform_thread_types_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build ---- third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/protobuf_utils_gn/moz.build 2022-07-26 23:57:28.604360756 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("protobuf_utils_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build ---- third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/rate_limiter_gn/moz.build 2022-07-26 23:57:28.562174590 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rate_limiter_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/refcount_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/refcount_gn/moz.build ---- third_party/libwebrtc/rtc_base/refcount_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/refcount_gn/moz.build 2022-07-26 23:57:28.608435022 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("refcount_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/rtc_base_approved_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/rtc_base_approved_gn/moz.build ---- third_party/libwebrtc/rtc_base/rtc_base_approved_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/rtc_base_approved_gn/moz.build 2022-07-26 23:57:28.556735286 +0900 -@@ -80,14 +80,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -164,7 +167,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -217,4 +220,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_base_approved_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build ---- third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/rtc_base_gn/moz.build 2022-07-26 23:57:28.611196137 +0900 -@@ -94,14 +94,17 @@ - "/third_party/libwebrtc/rtc_base/mac_ifaddrs_converter.cc" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -197,7 +200,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -250,4 +253,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_base_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build ---- third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/rtc_event_gn/moz.build 2022-07-26 23:57:28.575724015 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_event_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build ---- third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/rtc_numerics_gn/moz.build 2022-07-26 23:57:28.583873939 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -149,7 +152,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -202,4 +205,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_numerics_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build ---- third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/rtc_task_queue_gn/moz.build 2022-07-26 23:57:28.572998717 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_task_queue_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build ---- third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/safe_compare_gn/moz.build 2022-07-26 23:57:28.577072753 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("safe_compare_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build ---- third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/safe_conversions_gn/moz.build 2022-07-26 23:57:28.552669115 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("safe_conversions_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build ---- third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/safe_minmax_gn/moz.build 2022-07-26 23:57:28.581140046 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("safe_minmax_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build ---- third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/sanitizer_gn/moz.build 2022-07-26 23:57:28.555358826 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("sanitizer_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/stringutils_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/stringutils_gn/moz.build ---- third_party/libwebrtc/rtc_base/stringutils_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/stringutils_gn/moz.build 2022-07-26 23:57:28.551323273 +0900 -@@ -71,14 +71,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("stringutils_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build ---- third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/synchronization/mutex_gn/moz.build 2022-07-26 23:57:28.633950333 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("mutex_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/synchronization/rw_lock_wrapper_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/synchronization/rw_lock_wrapper_gn/moz.build ---- third_party/libwebrtc/rtc_base/synchronization/rw_lock_wrapper_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/synchronization/rw_lock_wrapper_gn/moz.build 2022-07-26 23:57:28.632589783 +0900 -@@ -71,14 +71,17 @@ - "/third_party/libwebrtc/rtc_base/synchronization/rw_lock_posix.cc" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -163,7 +166,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -216,4 +219,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rw_lock_wrapper_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/synchronization/sequence_checker_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/synchronization/sequence_checker_gn/moz.build ---- third_party/libwebrtc/rtc_base/synchronization/sequence_checker_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/synchronization/sequence_checker_gn/moz.build 2022-07-26 23:57:28.638054265 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("sequence_checker_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build ---- third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/synchronization/yield_gn/moz.build 2022-07-26 23:57:28.635314891 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("yield_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build ---- third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/synchronization/yield_policy_gn/moz.build 2022-07-26 23:57:28.636679999 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("yield_policy_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/arch_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/system/arch_gn/moz.build ---- third_party/libwebrtc/rtc_base/system/arch_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/arch_gn/moz.build 2022-07-26 23:57:28.624642558 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("arch_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build ---- third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/asm_defines_gn/moz.build 2022-07-26 23:57:28.623293169 +0900 -@@ -59,7 +59,7 @@ - "unwind" - ] - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -74,4 +74,13 @@ - - DEFINES["USE_X11"] = "1" - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("asm_defines_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build ---- third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/cocoa_threading_gn/moz.build 2022-07-26 23:57:28.627151230 +0900 -@@ -53,4 +53,13 @@ - DEFINES["WEBRTC_ARCH_ARM64"] = True - DEFINES["WEBRTC_HAS_NEON"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("cocoa_threading_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build ---- third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/file_wrapper_gn/moz.build 2022-07-26 23:57:28.619377491 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("file_wrapper_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build ---- third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/ignore_warnings_gn/moz.build 2022-07-26 23:57:28.629854066 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("ignore_warnings_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/inline_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/system/inline_gn/moz.build ---- third_party/libwebrtc/rtc_base/system/inline_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/inline_gn/moz.build 2022-07-26 23:57:28.620726459 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("inline_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build ---- third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/rtc_export_gn/moz.build 2022-07-26 23:57:28.622073774 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtc_export_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/thread_registry_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/system/thread_registry_gn/moz.build ---- third_party/libwebrtc/rtc_base/system/thread_registry_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/thread_registry_gn/moz.build 2022-07-26 23:57:28.618004167 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -184,4 +187,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("thread_registry_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/unused_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/system/unused_gn/moz.build ---- third_party/libwebrtc/rtc_base/system/unused_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/unused_gn/moz.build 2022-07-26 23:57:28.628500339 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("unused_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/system/warn_current_thread_is_deadlocked_gn/moz.build 2022-07-26 23:57:28.625991096 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("warn_current_thread_is_deadlocked_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/task_utils/pending_task_safety_flag_gn/moz.build firefox-103.0/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 2022-07-19 03:44:34.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/task_utils/pending_task_safety_flag_gn/moz.build 2022-07-26 23:57:28.558097689 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("pending_task_safety_flag_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build ---- third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/task_utils/repeating_task_gn/moz.build 2022-07-26 23:57:28.560813489 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -154,7 +157,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -207,4 +210,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("repeating_task_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/task_utils/to_queued_task_gn/moz.build firefox-103.0/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 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/task_utils/to_queued_task_gn/moz.build 2022-07-26 23:57:28.559448461 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("to_queued_task_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build ---- third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/third_party/base64/base64_gn/moz.build 2022-07-26 23:57:28.613919181 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("base64_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build ---- third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/third_party/sigslot/sigslot_gn/moz.build 2022-07-26 23:57:28.612558370 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -139,7 +142,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -192,4 +195,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("sigslot_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/thread_checker_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/thread_checker_gn/moz.build ---- third_party/libwebrtc/rtc_base/thread_checker_gn/moz.build 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/thread_checker_gn/moz.build 2022-07-26 23:57:28.571645571 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("thread_checker_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build ---- third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/time/timestamp_extrapolator_gn/moz.build 2022-07-26 23:57:28.605733168 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("timestamp_extrapolator_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/timeutils_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/timeutils_gn/moz.build ---- third_party/libwebrtc/rtc_base/timeutils_gn/moz.build 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/timeutils_gn/moz.build 2022-07-26 23:57:28.615282896 +0900 -@@ -69,14 +69,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -149,7 +152,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -202,4 +205,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("timeutils_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/type_traits_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/type_traits_gn/moz.build ---- third_party/libwebrtc/rtc_base/type_traits_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/type_traits_gn/moz.build 2022-07-26 23:57:28.607083048 +0900 -@@ -59,14 +59,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -131,7 +134,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -176,4 +179,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("type_traits_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build ---- third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/units/unit_base_gn/moz.build 2022-07-26 23:57:28.567577777 +0900 -@@ -63,14 +63,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -135,7 +138,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -180,4 +183,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("unit_base_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build firefox-103.0/third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build ---- third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/rtc_base/weak_ptr_gn/moz.build 2022-07-26 23:57:28.568940781 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -143,7 +146,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -196,4 +199,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("weak_ptr_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/sdk/base_objc_gn/moz.build firefox-103.0/third_party/libwebrtc/sdk/base_objc_gn/moz.build ---- third_party/libwebrtc/sdk/base_objc_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/sdk/base_objc_gn/moz.build 2022-07-26 23:57:28.382785828 +0900 -@@ -71,4 +71,13 @@ - DEFINES["WEBRTC_ARCH_ARM64"] = True - DEFINES["WEBRTC_HAS_NEON"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("base_objc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/sdk/helpers_objc_gn/moz.build firefox-103.0/third_party/libwebrtc/sdk/helpers_objc_gn/moz.build ---- third_party/libwebrtc/sdk/helpers_objc_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/sdk/helpers_objc_gn/moz.build 2022-07-26 23:57:28.381619833 +0900 -@@ -66,4 +66,13 @@ - DEFINES["WEBRTC_ARCH_ARM64"] = True - DEFINES["WEBRTC_HAS_NEON"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("helpers_objc_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build firefox-103.0/third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build ---- third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/system_wrappers/field_trial_gn/moz.build 2022-07-26 23:57:28.694799898 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("field_trial_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/system_wrappers/metrics_gn/moz.build firefox-103.0/third_party/libwebrtc/system_wrappers/metrics_gn/moz.build ---- third_party/libwebrtc/system_wrappers/metrics_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/system_wrappers/metrics_gn/moz.build 2022-07-26 23:57:28.693446812 +0900 -@@ -67,14 +67,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -147,7 +150,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -200,4 +203,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("metrics_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build firefox-103.0/third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build ---- third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/system_wrappers/system_wrappers_gn/moz.build 2022-07-26 23:57:28.696175526 +0900 -@@ -77,14 +77,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -168,7 +171,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -221,4 +224,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("system_wrappers_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/test/rtp_test_utils_gn/moz.build firefox-103.0/third_party/libwebrtc/test/rtp_test_utils_gn/moz.build ---- third_party/libwebrtc/test/rtp_test_utils_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/test/rtp_test_utils_gn/moz.build 2022-07-26 23:57:28.384141489 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rtp_test_utils_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build firefox-103.0/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 2022-07-19 03:44:32.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/algorithm_gn/moz.build 2022-07-26 23:57:28.688072239 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("algorithm_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build firefox-103.0/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 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/algorithm/container_gn/moz.build 2022-07-26 23:57:28.686758907 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("container_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build firefox-103.0/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 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/atomic_hook_gn/moz.build 2022-07-26 23:57:28.660442134 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("atomic_hook_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/base_internal_gn/moz.build 2022-07-26 23:57:28.664370707 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("base_internal_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build firefox-103.0/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 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/config_gn/moz.build 2022-07-26 23:57:28.661756738 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("config_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/core_headers_gn/moz.build 2022-07-26 23:57:28.663064118 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("core_headers_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build firefox-103.0/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 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/log_severity_gn/moz.build 2022-07-26 23:57:28.659131909 +0900 -@@ -48,7 +48,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -107,7 +107,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -160,4 +160,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("log_severity_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/base/raw_logging_internal_gn/moz.build 2022-07-26 23:57:28.665695851 +0900 -@@ -48,7 +48,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -107,7 +107,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -160,4 +160,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("raw_logging_internal_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build firefox-103.0/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 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/compressed_tuple_gn/moz.build 2022-07-26 23:57:28.684142814 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("compressed_tuple_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/flat_hash_map_gn/moz.build 2022-07-26 23:57:28.681522363 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("flat_hash_map_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_gn/moz.build 2022-07-26 23:57:28.682828501 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("inlined_vector_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/container/inlined_vector_internal_gn/moz.build 2022-07-26 23:57:28.680215904 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("inlined_vector_internal_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build firefox-103.0/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 2022-07-19 03:44:25.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/memory/memory_gn/moz.build 2022-07-26 23:57:28.685448311 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("memory_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/meta/type_traits_gn/moz.build 2022-07-26 23:57:28.667013260 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("type_traits_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build firefox-103.0/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 2022-07-19 03:44:29.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128_gn/moz.build 2022-07-26 23:57:28.668338103 +0900 -@@ -48,7 +48,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -107,7 +107,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -160,4 +160,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("int128_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/strings/internal_gn/moz.build 2022-07-26 23:57:28.672321789 +0900 -@@ -50,7 +50,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -109,7 +109,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -162,4 +162,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("internal_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build firefox-103.0/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 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/strings/strings_gn/moz.build 2022-07-26 23:57:28.670991606 +0900 -@@ -63,7 +63,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -122,7 +122,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -175,4 +175,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("strings_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_optional_access_gn/moz.build 2022-07-26 23:57:28.677578321 +0900 -@@ -48,7 +48,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -107,7 +107,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -160,4 +160,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("bad_optional_access_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build firefox-103.0/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 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/bad_variant_access_gn/moz.build 2022-07-26 23:57:28.678902353 +0900 -@@ -48,7 +48,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -107,7 +107,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -160,4 +160,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("bad_variant_access_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build firefox-103.0/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 2022-07-19 03:44:31.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/optional_gn/moz.build 2022-07-26 23:57:28.673630883 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("optional_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build firefox-103.0/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 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/span_gn/moz.build 2022-07-26 23:57:28.676254931 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("span_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build firefox-103.0/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 2022-07-19 03:44:33.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/types/variant_gn/moz.build 2022-07-26 23:57:28.674939766 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("variant_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build firefox-103.0/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 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/third_party/abseil-cpp/absl/utility/utility_gn/moz.build 2022-07-26 23:57:28.669648800 +0900 -@@ -44,7 +44,7 @@ - DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True - DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -97,7 +97,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -142,4 +142,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("utility_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build firefox-103.0/third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build ---- third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/third_party/pffft/pffft_gn/moz.build 2022-07-26 23:57:28.690709542 +0900 -@@ -49,7 +49,7 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -115,7 +115,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -168,4 +168,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("pffft_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build firefox-103.0/third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build ---- third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build 2022-07-19 03:44:26.000000000 +0900 -+++ third_party/libwebrtc/third_party/rnnoise/rnn_vad_gn/moz.build 2022-07-26 23:57:28.689392614 +0900 -@@ -49,7 +49,7 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" -@@ -110,7 +110,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -163,4 +163,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("rnn_vad_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build firefox-103.0/third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build ---- third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/video/adaptation/video_adaptation_gn/moz.build 2022-07-26 23:57:28.377712089 +0900 -@@ -75,14 +75,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -163,7 +166,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -216,4 +219,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_adaptation_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build firefox-103.0/third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build ---- third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/video/frame_dumping_decoder_gn/moz.build 2022-07-26 23:57:28.379076907 +0900 -@@ -68,14 +68,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -156,7 +159,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -209,4 +212,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("frame_dumping_decoder_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/video/video_gn/moz.build firefox-103.0/third_party/libwebrtc/video/video_gn/moz.build ---- third_party/libwebrtc/video/video_gn/moz.build 2022-07-19 03:44:27.000000000 +0900 -+++ third_party/libwebrtc/video/video_gn/moz.build 2022-07-26 23:57:28.376335599 +0900 -@@ -97,14 +97,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -185,7 +188,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -238,4 +241,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build firefox-103.0/third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build ---- third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build 2022-07-19 03:44:36.000000000 +0900 -+++ third_party/libwebrtc/video/video_stream_encoder_impl_gn/moz.build 2022-07-26 23:57:28.380451012 +0900 -@@ -73,14 +73,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -161,7 +164,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -214,4 +217,13 @@ - - DEFINES["_GNU_SOURCE"] = True - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("video_stream_encoder_impl_gn") -diff -ur firefox-103.0.orig/third_party/libwebrtc/webrtc_gn/moz.build firefox-103.0/third_party/libwebrtc/webrtc_gn/moz.build ---- third_party/libwebrtc/webrtc_gn/moz.build 2022-07-19 03:44:37.000000000 +0900 -+++ third_party/libwebrtc/webrtc_gn/moz.build 2022-07-26 23:57:28.692092514 +0900 -@@ -64,14 +64,17 @@ - DEFINES["__STDC_CONSTANT_MACROS"] = True - DEFINES["__STDC_FORMAT_MACROS"] = True - --if CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD": - - DEFINES["USE_AURA"] = "1" - DEFINES["USE_GLIB"] = "1" - DEFINES["USE_NSS_CERTS"] = "1" - DEFINES["USE_OZONE"] = "1" - DEFINES["USE_UDEV"] = True -- DEFINES["WEBRTC_LINUX"] = True -+ if CONFIG["OS_TARGET"] == "Linux": -+ DEFINES["WEBRTC_LINUX"] = True -+ else: -+ DEFINES["WEBRTC_BSD"] = True - DEFINES["WEBRTC_POSIX"] = True - DEFINES["_FILE_OFFSET_BITS"] = "64" - DEFINES["_LARGEFILE64_SOURCE"] = True -@@ -171,7 +174,7 @@ - - DEFINES["_DEBUG"] = True - --if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": -+if CONFIG["MOZ_DEBUG"] == "1" and (CONFIG["OS_TARGET"] == "Linux" or CONFIG["OS_TARGET"] == "NetBSD" or CONFIG["OS_TARGET"] == "OpenBSD" or CONFIG["OS_TARGET"] == "FreeBSD"): - - DEFINES["_DEBUG"] = True - -@@ -239,4 +242,13 @@ - "m" - ] - -+if CONFIG["CPU_ARCH"] == "x86": -+ CFLAGS += [ -+ "-msse2" -+ ] -+ -+ CXXFLAGS += [ -+ "-msse2" -+ ] -+ - Library("webrtc_gn") |