File tree 4 files changed +28
-2
lines changed
4 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 82
82
path = app/jni/third_party/libsrtp
83
83
url = https://github.com/cisco/libsrtp
84
84
shallow = true
85
- [submodule "app/jni/third_party/ openh264 "]
85
+ [submodule "openh264 "]
86
86
path = app/jni/third_party/openh264
87
87
url = https://github.com/cisco/openh264
88
88
shallow = true
89
-
89
+ [submodule "rnnoise "]
90
+ path = app/jni/third_party/rnnoise
91
+ url = https://github.com/xiph/rnnoise
92
+ shallow = true
Original file line number Diff line number Diff line change
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
+ )
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ set(EXCLUDE_LIBS
105
105
libusrsctp.a
106
106
libsrtp.a
107
107
libopenh264.a
108
+ librnnoise.a
108
109
)
109
110
if (${USE_WEBP} )
110
111
list (APPEND EXCLUDE_LIBS
@@ -166,6 +167,9 @@ include("${CMAKE_HOME_DIRECTORY}/BuildLibSRTP.cmake")
166
167
# openh264
167
168
include ("${CMAKE_HOME_DIRECTORY} /BuildOpenH264.cmake" )
168
169
170
+ # rnnoise
171
+ include ("${CMAKE_HOME_DIRECTORY} /BuildRNNoise.cmake" )
172
+
169
173
# yuv
170
174
include ("${CMAKE_HOME_DIRECTORY} /BuildYuv.cmake" )
171
175
@@ -277,6 +281,7 @@ target_link_libraries(${NATIVE_LIB}
277
281
usrsctp
278
282
srtp
279
283
openh264
284
+ rnnoise
280
285
)
281
286
if (${USE_WEBP} )
282
287
target_link_libraries (${NATIVE_LIB} webpdecoder_static)
You can’t perform that action at this time.
0 commit comments