Add support loongarch64
Signed-off-by: Jingyun Hua <huajingyun@loongson.cn> (cherry picked from commit bad403b10799e93dab5cfbf617ef5f8012e3e798)
This commit is contained in:
parent
04d2bf76b0
commit
b38cfd72e6
@ -1,6 +1,6 @@
|
|||||||
Name: webrtc-audio-processing
|
Name: webrtc-audio-processing
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Real-Time Communication Library for Web Browsers
|
Summary: Real-Time Communication Library for Web Browsers
|
||||||
License: BSD and MIT
|
License: BSD and MIT
|
||||||
URL: https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
|
URL: https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
|
||||||
@ -9,7 +9,9 @@ Source0: https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{n
|
|||||||
# fix building failed
|
# fix building failed
|
||||||
Patch6000: Backport-Use-cmake-to-look-up-abseil-dependency.patch
|
Patch6000: Backport-Use-cmake-to-look-up-abseil-dependency.patch
|
||||||
Patch6001: webrtc-audio-processing-1.0-sw.patch
|
Patch6001: webrtc-audio-processing-1.0-sw.patch
|
||||||
|
%ifarch loongarch64
|
||||||
|
Patch6002: webrtc-fix-typedefs-on-other-arches.patch
|
||||||
|
%endif
|
||||||
BuildRequires: autoconf automake libtool gcc gcc-c++
|
BuildRequires: autoconf automake libtool gcc gcc-c++
|
||||||
BuildRequires: meson abseil-cpp-devel cmake
|
BuildRequires: meson abseil-cpp-devel cmake
|
||||||
Requires: abseil-cpp
|
Requires: abseil-cpp
|
||||||
@ -58,6 +60,9 @@ Header files for webrtc-audio-processing
|
|||||||
%doc NEWS
|
%doc NEWS
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 14 2022 huajingyun <huajingyun@loongson.cn> - 1.0-5
|
||||||
|
- Add support of loongarch64
|
||||||
|
|
||||||
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 1.0-4
|
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 1.0-4
|
||||||
- Add sw64 architecture
|
- Add sw64 architecture
|
||||||
|
|
||||||
|
|||||||
24
webrtc-fix-typedefs-on-other-arches.patch
Normal file
24
webrtc-fix-typedefs-on-other-arches.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff -Nur a/webrtc/rtc_base/system/arch.h b/webrtc/rtc_base/system/arch.h
|
||||||
|
--- a/webrtc/rtc_base/system/arch.h 2020-11-28 03:30:53.000000000 +0800
|
||||||
|
+++ b/webrtc/rtc_base/system/arch.h 2022-04-11 14:35:41.689733918 +0800
|
||||||
|
@@ -51,7 +51,19 @@
|
||||||
|
#define WEBRTC_ARCH_32_BITS
|
||||||
|
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||||
|
#else
|
||||||
|
-#error Please add support for your architecture in rtc_base/system/arch.h
|
||||||
|
+/* instead of failing, use typical unix defines... */
|
||||||
|
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||||
|
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||||
|
+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||||
|
+#define WEBRTC_ARCH_BIG_ENDIAN
|
||||||
|
+#else
|
||||||
|
+#error __BYTE_ORDER__ is not defined
|
||||||
|
+#endif
|
||||||
|
+#if defined(__LP64__)
|
||||||
|
+#define WEBRTC_ARCH_64_BITS
|
||||||
|
+#else
|
||||||
|
+#define WEBRTC_ARCH_32_BITS
|
||||||
|
+#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN))
|
||||||
Loading…
x
Reference in New Issue
Block a user