Compare commits
10 Commits
288e5cc0f5
...
f246e3366d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f246e3366d | ||
|
|
68b9cbb8e2 | ||
|
|
8440e8d100 | ||
|
|
46790c2ae5 | ||
|
|
11ee348edb | ||
|
|
2f18118280 | ||
|
|
cbe61f8f29 | ||
|
|
b38cfd72e6 | ||
|
|
04d2bf76b0 | ||
|
|
bf9028d2d1 |
25
webrtc-audio-processing-1.0-sw.patch
Executable file
25
webrtc-audio-processing-1.0-sw.patch
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
diff -Naur webrtc-audio-processing-1.0.org/meson.build webrtc-audio-processing-1.0.sw/meson.build
|
||||||
|
--- webrtc-audio-processing-1.0.org/meson.build 2022-05-17 05:51:34.850000000 +0000
|
||||||
|
+++ webrtc-audio-processing-1.0.sw/meson.build 2022-05-17 05:58:14.940000000 +0000
|
||||||
|
@@ -80,6 +80,7 @@
|
||||||
|
have_armv7 = false
|
||||||
|
have_neon = false
|
||||||
|
have_mips = false
|
||||||
|
+have_sw_64 = false
|
||||||
|
have_mips64 = false
|
||||||
|
have_x86 = false
|
||||||
|
have_avx2 = false
|
||||||
|
diff -Naur webrtc-audio-processing-1.0.org/webrtc/rtc_base/system/arch.h webrtc-audio-processing-1.0.sw/webrtc/rtc_base/system/arch.h
|
||||||
|
--- webrtc-audio-processing-1.0.org/webrtc/rtc_base/system/arch.h 2022-05-17 05:51:34.840000000 +0000
|
||||||
|
+++ webrtc-audio-processing-1.0.sw/webrtc/rtc_base/system/arch.h 2022-05-17 05:54:18.720000000 +0000
|
||||||
|
@@ -23,6 +23,10 @@
|
||||||
|
#define WEBRTC_ARCH_X86_64
|
||||||
|
#define WEBRTC_ARCH_64_BITS
|
||||||
|
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||||
|
+#elif defined(_M_SW_64) || defined(__sw_64__)
|
||||||
|
+#define WEBRTC_ARCH_SW_64_FAMILY
|
||||||
|
+#define WEBRTC_ARCH_64_BITS
|
||||||
|
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||||
|
#elif defined(_M_ARM64) || defined(__aarch64__)
|
||||||
|
#define WEBRTC_ARCH_ARM_FAMILY
|
||||||
|
#define WEBRTC_ARCH_64_BITS
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: webrtc-audio-processing
|
Name: webrtc-audio-processing
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 3
|
Release: 8
|
||||||
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/
|
||||||
@ -8,7 +8,12 @@ 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
|
||||||
|
%ifarch sw_64
|
||||||
|
Patch6001: webrtc-audio-processing-1.0-sw.patch
|
||||||
|
%endif
|
||||||
|
%ifarch loongarch64 riscv64 ppc64le
|
||||||
|
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
|
||||||
@ -57,6 +62,21 @@ Header files for webrtc-audio-processing
|
|||||||
%doc NEWS
|
%doc NEWS
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 31 2024 peng.zou <peng.zou@shingroup.cn> - 1.0-8
|
||||||
|
- Add support of ppc64le
|
||||||
|
|
||||||
|
* Fri Jul 07 2023 laokz <zhangkai@iscas.ac.cn> - 1.0-7
|
||||||
|
- Fix riscv64 typedef error
|
||||||
|
|
||||||
|
* Wed Nov 30 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.0-6
|
||||||
|
- Optimize the patch for add sw architecture
|
||||||
|
|
||||||
|
* 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
|
||||||
|
- Add sw64 architecture
|
||||||
|
|
||||||
* Fri Mar 25 2022 wangkerong <wangkerong@h-partners.com> - 1.0-3
|
* Fri Mar 25 2022 wangkerong <wangkerong@h-partners.com> - 1.0-3
|
||||||
- remove self-dependency
|
- remove self-dependency
|
||||||
|
|
||||||
|
|||||||
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