Hide more symbols from rnnoise

This commit is contained in:
Ali 2021-03-27 00:12:54 +04:00
parent e30e4dd22f
commit 2b330fc5cd

View File

@ -1,4 +1,30 @@
replace_symbol_list = [
"_celt_autocorr",
"celt_fir",
"celt_iir",
"_celt_lpc",
"celt_pitch_xcorr",
"compute_band_corr",
"compute_band_energy",
"compute_dense",
"compute_gru",
"compute_rnn",
"interp_band_gain",
"opus_fft_alloc",
"opus_fft_alloc_arch_c",
"opus_fft_alloc_twiddles",
"opus_fft_c",
"opus_fft_free",
"opus_fft_free_arch_c",
"opus_fft_impl",
"opus_ifft_c",
"pitch_downsample",
"pitch_filter",
"pitch_search",
"remove_doubling",
]
objc_library(
name = "rnnoise",
enable_modules = True,
@ -14,9 +40,7 @@ objc_library(
"PublicHeaders",
],
copts = [
"-Dcelt_iir=rnnoise_celt_iir",
"-D_celt_autocorr=rnnoise__celt_autocorr",
"-D_celt_lpc=rnnoise__celt_lpc",
"-D{name}=rnnoise_{name}".format(name = name) for name in replace_symbol_list
],
visibility = [
"//visibility:public",