Compare commits
No commits in common. "d259a6d1b0d6f502d3b47ad2b8c87c49ea911b53" and "41739e6b6765471fe68ef9b502c4646611a51217" have entirely different histories.
d259a6d1b0
...
41739e6b67
@ -1,40 +0,0 @@
|
|||||||
From 4eb65cf5194bd556baff817842d1f1860cec6cf9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: li weigang <weigangli99@gmail.com>
|
|
||||||
Date: Wed, 18 Oct 2023 15:57:26 +0800
|
|
||||||
Subject: [PATCH] add sw_64 architecture
|
|
||||||
|
|
||||||
---
|
|
||||||
meson.build | 1 +
|
|
||||||
webrtc/rtc_base/system/arch.h | 4 ++++
|
|
||||||
2 files changed, 5 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/meson.build b/meson.build
|
|
||||||
index 3843e92..f92813a 100644
|
|
||||||
--- a/meson.build
|
|
||||||
+++ b/meson.build
|
|
||||||
@@ -112,6 +112,7 @@ have_arm = false
|
|
||||||
have_armv7 = false
|
|
||||||
have_neon = false
|
|
||||||
have_mips = false
|
|
||||||
+have_sw_64 = false
|
|
||||||
have_mips64 = false
|
|
||||||
have_x86 = false
|
|
||||||
have_avx2 = false
|
|
||||||
diff --git a/webrtc/rtc_base/system/arch.h b/webrtc/rtc_base/system/arch.h
|
|
||||||
index aee3756..4e27f12 100644
|
|
||||||
--- a/webrtc/rtc_base/system/arch.h
|
|
||||||
+++ b/webrtc/rtc_base/system/arch.h
|
|
||||||
@@ -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
|
|
||||||
--
|
|
||||||
2.20.1
|
|
||||||
|
|
||||||
69
Backport-Use-cmake-to-look-up-abseil-dependency.patch
Normal file
69
Backport-Use-cmake-to-look-up-abseil-dependency.patch
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
From 3f9907f93d3983033e176e95f5134a57900a7f6e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Arun Raghavan <arun@asymptotic.io>
|
||||||
|
Date: Thu, 10 Dec 2020 19:06:31 -0500
|
||||||
|
Subject: [PATCH] build: Use cmake to look up abseil dependency
|
||||||
|
|
||||||
|
This should be much more robust than looking up the library directly.
|
||||||
|
|
||||||
|
Fixes: https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/issues/4
|
||||||
|
|
||||||
|
Reference:
|
||||||
|
https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/commit/3f9907f93d3983033e176e95f5134a57900a7f6e
|
||||||
|
https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/commit/ce1a78887a1a0dfed3ebdb4de964d7afefebe896
|
||||||
|
https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/commit/8ce8bebb7d852491326af1075ead74e757ae4611
|
||||||
|
---
|
||||||
|
meson.build | 27 +++++++++++----------------
|
||||||
|
1 file changed, 11 insertions(+), 16 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index de8cd75..96d84d7 100644
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
-project('webrtc-audio-processing-1', 'c', 'cpp',
|
||||||
|
- version : '1.0',
|
||||||
|
+project('webrtc-audio-processing', 'c', 'cpp',
|
||||||
|
+ version : '1.1',
|
||||||
|
meson_version : '>= 0.54',
|
||||||
|
default_options : [ 'warning_level=1',
|
||||||
|
'buildtype=debugoptimized',
|
||||||
|
@@ -27,7 +27,7 @@ ac_minor_version = minor_version
|
||||||
|
ac_version = ac_major_version + '.' + ac_minor_version
|
||||||
|
ac_project_name = 'webrtc-audio-coding-' + ac_major_version
|
||||||
|
|
||||||
|
-include_subdir = meson.project_name()
|
||||||
|
+include_subdir = apm_project_name
|
||||||
|
|
||||||
|
cc = meson.get_compiler('c')
|
||||||
|
cpp = meson.get_compiler('cpp')
|
||||||
|
@@ -40,19 +40,14 @@ os_deps = []
|
||||||
|
have_posix = false
|
||||||
|
have_win = false
|
||||||
|
|
||||||
|
-absl_dep = [
|
||||||
|
- cpp.find_library('absl_base'),
|
||||||
|
- cpp.find_library('absl_bad_optional_access'),
|
||||||
|
- cpp.find_library('absl_flags_internal'),
|
||||||
|
- cpp.find_library('absl_flags_marshalling'),
|
||||||
|
- cpp.find_library('absl_flags_parse'),
|
||||||
|
- cpp.find_library('absl_flags_registry'),
|
||||||
|
- cpp.find_library('absl_flags_usage_internal'),
|
||||||
|
- cpp.find_library('absl_raw_logging_internal'),
|
||||||
|
- cpp.find_library('absl_strings'),
|
||||||
|
- cpp.find_library('absl_synchronization'),
|
||||||
|
- cpp.find_library('absl_throw_delegate'),
|
||||||
|
-]
|
||||||
|
+absl_dep = dependency('absl', method : 'cmake',
|
||||||
|
+ modules : [
|
||||||
|
+ 'absl::base',
|
||||||
|
+ 'absl::flags_parse',
|
||||||
|
+ 'absl::strings',
|
||||||
|
+ 'absl::synchronization',
|
||||||
|
+ ]
|
||||||
|
+)
|
||||||
|
|
||||||
|
if ['darwin', 'ios'].contains(host_system)
|
||||||
|
os_cflags = ['-DWEBRTC_MAC']
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
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
|
||||||
BIN
webrtc-audio-processing-1.0.tar.gz
Normal file
BIN
webrtc-audio-processing-1.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,16 +1,19 @@
|
|||||||
Name: webrtc-audio-processing
|
Name: webrtc-audio-processing
|
||||||
Version: 1.3
|
Version: 1.0
|
||||||
Release: 4
|
Release: 7
|
||||||
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/
|
||||||
Source0: https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.gz
|
Source0: https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
# sw_64
|
# fix building failed
|
||||||
Patch6001: 0001-add-sw_64-architecture.patch
|
Patch6000: Backport-Use-cmake-to-look-up-abseil-dependency.patch
|
||||||
# loongarch64 riscv64 ppc64le
|
%ifarch sw_64
|
||||||
|
Patch6001: webrtc-audio-processing-1.0-sw.patch
|
||||||
|
%endif
|
||||||
|
%ifarch loongarch64 riscv64
|
||||||
Patch6002: webrtc-fix-typedefs-on-other-arches.patch
|
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
|
||||||
@ -32,18 +35,10 @@ Header files for webrtc-audio-processing
|
|||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q %{name}-%{version}
|
%autosetup -n %{name}-%{version} -p1
|
||||||
%ifarch sw_64
|
|
||||||
%patch -P 6001 -p1
|
|
||||||
%endif
|
|
||||||
%ifarch loongarch64 riscv64 ppc64le
|
|
||||||
%patch -P 6002 -p1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#compile failiure reference:https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/issues/9
|
%meson
|
||||||
sed -i '/vector/a #include <memory>' webrtc/modules/audio_processing/aec3/reverb_model_estimator.h
|
|
||||||
%meson -Dc_std=c17 -Dcpp_std=c++17
|
|
||||||
%meson_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -67,21 +62,6 @@ sed -i '/vector/a #include <memory>' webrtc/modules/audio_processing/aec3/reverb
|
|||||||
%doc NEWS
|
%doc NEWS
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Dec 04 2024 shenzhongwei <shenzhongwei@kylinos.cn> - 1.3-4
|
|
||||||
- fix: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N)
|
|
||||||
|
|
||||||
* Tue May 28 2024 liweigang <liweiganga@uniontech.com> - 1.3-3
|
|
||||||
- fix missing patch in src.rpm
|
|
||||||
|
|
||||||
* Tue Nov 28 2023 peng.zou <peng.zou@shingroup.cn> - 1.3-2
|
|
||||||
- Add support of ppc64le
|
|
||||||
|
|
||||||
* Wed Oct 18 2023 li weigang - <weigangli99@gmail.com> - 1.3-1
|
|
||||||
- update to version 1.3
|
|
||||||
|
|
||||||
* Thu Jul 20 2023 EulerOSWander <314264452@qq.com> - 1.0-8
|
|
||||||
- Fix compile error
|
|
||||||
|
|
||||||
* Fri Jul 07 2023 laokz <zhangkai@iscas.ac.cn> - 1.0-7
|
* Fri Jul 07 2023 laokz <zhangkai@iscas.ac.cn> - 1.0-7
|
||||||
- Fix riscv64 typedef error
|
- Fix riscv64 typedef error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user