-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
214 lines (212 loc) · 5.66 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "libopus",
products: [
.library(
name: "libopus",
type: .static,
targets: ["libopus"]
),
.library(
name: "dylibopus",
type: .dynamic,
targets: ["libopus"]
),
.executable(name: "opus_compare", targets: ["libopus_compare", "libopus"])
],
targets: [
.target(
name: "libopus",
path: ".",
sources: [
"src/analysis.c",
"src/mapping_matrix.c",
"src/mlp.c",
"src/mlp_data.c",
"src/opus.c",
"src/opus_decoder.c",
"src/opus_encoder.c",
"src/opus_multistream.c",
"src/opus_multistream_decoder.c",
"src/opus_multistream_encoder.c",
"src/opus_projection_decoder.c",
"src/opus_projection_encoder.c",
"src/repacketizer.c",
"silk/A2NLSF.c",
"silk/CNG.c",
"silk/HP_variable_cutoff.c",
"silk/LPC_analysis_filter.c",
"silk/LPC_fit.c",
"silk/LPC_inv_pred_gain.c",
"silk/LP_variable_cutoff.c",
"silk/NLSF2A.c",
"silk/NLSF_VQ.c",
"silk/NLSF_VQ_weights_laroia.c",
"silk/NLSF_decode.c",
"silk/NLSF_del_dec_quant.c",
"silk/NLSF_encode.c",
"silk/NLSF_stabilize.c",
"silk/NLSF_unpack.c",
"silk/NSQ.c",
"silk/NSQ_del_dec.c",
"silk/PLC.c",
"silk/VAD.c",
"silk/VQ_WMat_EC.c",
"silk/ana_filt_bank_1.c",
"silk/arm/LPC_inv_pred_gain_neon_intr.c",
"silk/arm/NSQ_del_dec_neon_intr.c",
"silk/arm/NSQ_neon.c",
"silk/arm/arm_silk_map.c",
"silk/arm/biquad_alt_neon_intr.c",
"silk/biquad_alt.c",
"silk/bwexpander.c",
"silk/bwexpander_32.c",
"silk/check_control_input.c",
"silk/code_signs.c",
"silk/control_SNR.c",
"silk/control_audio_bandwidth.c",
"silk/control_codec.c",
"silk/debug.c",
"silk/dec_API.c",
"silk/decode_core.c",
"silk/decode_frame.c",
"silk/decode_indices.c",
"silk/decode_parameters.c",
"silk/decode_pitch.c",
"silk/decode_pulses.c",
"silk/decoder_set_fs.c",
"silk/enc_API.c",
"silk/encode_indices.c",
"silk/encode_pulses.c",
"silk/float/LPC_analysis_filter_FLP.c",
"silk/float/LPC_inv_pred_gain_FLP.c",
"silk/float/LTP_analysis_filter_FLP.c",
"silk/float/LTP_scale_ctrl_FLP.c",
"silk/float/apply_sine_window_FLP.c",
"silk/float/autocorrelation_FLP.c",
"silk/float/burg_modified_FLP.c",
"silk/float/bwexpander_FLP.c",
"silk/float/corrMatrix_FLP.c",
"silk/float/encode_frame_FLP.c",
"silk/float/energy_FLP.c",
"silk/float/find_LPC_FLP.c",
"silk/float/find_LTP_FLP.c",
"silk/float/find_pitch_lags_FLP.c",
"silk/float/find_pred_coefs_FLP.c",
"silk/float/inner_product_FLP.c",
"silk/float/k2a_FLP.c",
"silk/float/noise_shape_analysis_FLP.c",
"silk/float/pitch_analysis_core_FLP.c",
"silk/float/process_gains_FLP.c",
"silk/float/regularize_correlations_FLP.c",
"silk/float/residual_energy_FLP.c",
"silk/float/scale_copy_vector_FLP.c",
"silk/float/scale_vector_FLP.c",
"silk/float/schur_FLP.c",
"silk/float/sort_FLP.c",
"silk/float/warped_autocorrelation_FLP.c",
"silk/float/wrappers_FLP.c",
"silk/gain_quant.c",
"silk/init_decoder.c",
"silk/init_encoder.c",
"silk/inner_prod_aligned.c",
"silk/interpolate.c",
"silk/lin2log.c",
"silk/log2lin.c",
"silk/pitch_est_tables.c",
"silk/process_NLSFs.c",
"silk/quant_LTP_gains.c",
"silk/resampler.c",
"silk/resampler_down2.c",
"silk/resampler_down2_3.c",
"silk/resampler_private_AR2.c",
"silk/resampler_private_IIR_FIR.c",
"silk/resampler_private_down_FIR.c",
"silk/resampler_private_up2_HQ.c",
"silk/resampler_rom.c",
"silk/shell_coder.c",
"silk/sigm_Q15.c",
"silk/sort.c",
"silk/stereo_LR_to_MS.c",
"silk/stereo_MS_to_LR.c",
"silk/stereo_decode_pred.c",
"silk/stereo_encode_pred.c",
"silk/stereo_find_predictor.c",
"silk/stereo_quant_pred.c",
"silk/sum_sqr_shift.c",
"silk/table_LSF_cos.c",
"silk/tables_LTP.c",
"silk/tables_NLSF_CB_NB_MB.c",
"silk/tables_NLSF_CB_WB.c",
"silk/tables_gain.c",
"silk/tables_other.c",
"silk/tables_pitch_lag.c",
"silk/tables_pulses_per_block.c",
"silk/x86/NSQ_del_dec_sse4_1.c",
"silk/x86/NSQ_sse4_1.c",
"silk/x86/VAD_sse4_1.c",
"silk/x86/VQ_WMat_EC_sse4_1.c",
"silk/x86/x86_silk_map.c",
"celt/arm/arm_celt_map.c",
"celt/arm/armcpu.c",
"celt/arm/celt_fft_ne10.c",
"celt/arm/celt_mdct_ne10.c",
"celt/arm/celt_neon_intr.c",
"celt/arm/pitch_neon_intr.c",
"celt/bands.c",
"celt/celt.c",
"celt/celt_decoder.c",
"celt/celt_encoder.c",
"celt/celt_lpc.c",
"celt/cwrs.c",
"celt/entcode.c",
"celt/entdec.c",
"celt/entenc.c",
"celt/kiss_fft.c",
"celt/laplace.c",
"celt/mathops.c",
"celt/mdct.c",
"celt/modes.c",
"celt/pitch.c",
"celt/quant_bands.c",
"celt/rate.c",
"celt/vq.c",
"celt/x86/celt_lpc_sse4_1.c",
"celt/x86/pitch_sse.c",
"celt/x86/pitch_sse2.c",
"celt/x86/pitch_sse4_1.c",
"celt/x86/vq_sse2.c",
"celt/x86/x86_celt_map.c",
"celt/x86/x86cpu.c",
],
resources: [
],
publicHeadersPath: "opus_include/",
cSettings: [
.headerSearchPath("./"),
.headerSearchPath("celt/"),
.headerSearchPath("silk/"),
.headerSearchPath("silk/float"),
.headerSearchPath("config"),
.headerSearchPath("include"),
.define("HAVE_CONFIG_H"),
]
),
.executableTarget(
name: "libopus_compare",
dependencies: ["libopus"],
path: ".",
sources: [
"src/opus_compare.c",
],
cSettings: [
.headerSearchPath("config"),
.headerSearchPath("include"),
.define("HAVE_CONFIG_H"),
]
)
],
cLanguageStandard: .gnu11,
cxxLanguageStandard: .gnucxx20
)