Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
d259a6d1b0
!39 [sync] PR-38: fix build warnings: patchN is deprecated (2 usages found), use patch N (or %patch -P N)
From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2024-12-06 08:04:09 +00:00
沈仲伟
723f4c8d85 fix: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N)
(cherry picked from commit e7232dde96f1979fe7a3f5cf87f46bf63a5a6f64)
2024-12-06 15:22:03 +08:00
openeuler-ci-bot
bea0b31367
!37 [sync] PR-35: fix missing patch in src.rpm
From: @openeuler-sync-bot 
Reviewed-by: @weidongkl, @open-bot 
Signed-off-by: @open-bot, @weidongkl
2024-11-01 01:45:13 +00:00
liweigang
53084e617d fix missing patch in src.rpm
Signed-off-by: liweigang <liweiganga@uniontech.com>
(cherry picked from commit 473528699e4ba01bff117f0d50eb9d0a64d7b398)
2024-05-28 10:01:15 +08:00
openeuler-ci-bot
24c79ecb30
!32 Add support of ppc64le
From: @peng_zou 
Reviewed-by: @open-bot 
Signed-off-by: @open-bot
2023-11-30 09:42:14 +00:00
peng.zou
ed569d1d1a Add support of ppc64le 2023-11-30 10:52:41 +08:00
openeuler-ci-bot
0b3f86a8c7
!31 update to version 1.3
From: @weigang-li 
Reviewed-by: @open123bot 
Signed-off-by: @open123bot
2023-11-02 03:17:24 +00:00
li weigang
c7944767d1 update to version 1.3 2023-10-18 16:08:50 +08:00
openeuler-ci-bot
4aca8d774a
!30 fix building error
From: @euleroswander 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
2023-07-21 01:50:17 +00:00
EulerOSWander
5213dd7586
!1 fix building error
Merge pull request !1 from EulerOSWander/N/A
2023-07-20 11:39:20 +00:00
EulerOSWander
c33253d82a
fix building error
Signed-off-by: EulerOSWander <314264452@qq.com>
2023-07-20 11:36:32 +00:00
6 changed files with 71 additions and 105 deletions

View File

@ -0,0 +1,40 @@
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

View File

@ -1,69 +0,0 @@
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

View File

@ -1,25 +0,0 @@
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

Binary file not shown.

Binary file not shown.

View File

@ -1,19 +1,16 @@
Name: webrtc-audio-processing
Version: 1.0
Release: 7
Version: 1.3
Release: 4
Summary: Real-Time Communication Library for Web Browsers
License: BSD and MIT
URL: https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
Source0: https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.gz
# fix building failed
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
# sw_64
Patch6001: 0001-add-sw_64-architecture.patch
# loongarch64 riscv64 ppc64le
Patch6002: webrtc-fix-typedefs-on-other-arches.patch
%endif
BuildRequires: autoconf automake libtool gcc gcc-c++
BuildRequires: meson abseil-cpp-devel cmake
Requires: abseil-cpp
@ -35,10 +32,18 @@ Header files for webrtc-audio-processing
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%setup -q %{name}-%{version}
%ifarch sw_64
%patch -P 6001 -p1
%endif
%ifarch loongarch64 riscv64 ppc64le
%patch -P 6002 -p1
%endif
%build
%meson
#compile failiure reference:https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/issues/9
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
%install
@ -62,6 +67,21 @@ Header files for webrtc-audio-processing
%doc NEWS
%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
- Fix riscv64 typedef error