Skip to content

Commit 985132a

Browse files
committed
Added rnnoise to the project & build instructions + Rename openh264 internal submodule name
1 parent 9a9cc93 commit 985132a

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

‎.gitmodules

+5-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@
8282
path = app/jni/third_party/libsrtp
8383
url = https://github.com/cisco/libsrtp
8484
shallow = true
85-
[submodule "app/jni/third_party/openh264"]
85+
[submodule "openh264"]
8686
path = app/jni/third_party/openh264
8787
url = https://github.com/cisco/openh264
8888
shallow = true
89-
89+
[submodule "rnnoise"]
90+
path = app/jni/third_party/rnnoise
91+
url = https://github.com/xiph/rnnoise
92+
shallow = true

‎app/jni/BuildRNNoise.cmake

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# rnnoise
2+
3+
set(RNNOISE_DIR "${THIRDPARTY_DIR}/rnnoise")
4+
5+
add_library(rnnoise STATIC
6+
"${RNNOISE_DIR}/src/celt_lpc.c"
7+
"${RNNOISE_DIR}/src/denoise.c"
8+
"${RNNOISE_DIR}/src/kiss_fft.c"
9+
"${RNNOISE_DIR}/src/pitch.c"
10+
"${RNNOISE_DIR}/src/rnn_data.c"
11+
"${RNNOISE_DIR}/src/rnn_reader.c"
12+
"${RNNOISE_DIR}/src/rnn_reader.c"
13+
"${RNNOISE_DIR}/src/rnn.c"
14+
)
15+
target_include_directories(rnnoise PUBLIC
16+
"${RNNOISE_DIR}/include"
17+
)

‎app/jni/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ set(EXCLUDE_LIBS
105105
libusrsctp.a
106106
libsrtp.a
107107
libopenh264.a
108+
librnnoise.a
108109
)
109110
if (${USE_WEBP})
110111
list(APPEND EXCLUDE_LIBS
@@ -166,6 +167,9 @@ include("${CMAKE_HOME_DIRECTORY}/BuildLibSRTP.cmake")
166167
# openh264
167168
include("${CMAKE_HOME_DIRECTORY}/BuildOpenH264.cmake")
168169

170+
# rnnoise
171+
include("${CMAKE_HOME_DIRECTORY}/BuildRNNoise.cmake")
172+
169173
# yuv
170174
include("${CMAKE_HOME_DIRECTORY}/BuildYuv.cmake")
171175

@@ -277,6 +281,7 @@ target_link_libraries(${NATIVE_LIB}
277281
usrsctp
278282
srtp
279283
openh264
284+
rnnoise
280285
)
281286
if (${USE_WEBP})
282287
target_link_libraries(${NATIVE_LIB} webpdecoder_static)

‎app/jni/third_party/rnnoise

Submodule rnnoise added at 1cbdbcf

0 commit comments

Comments
 (0)