diff options
| author | 2023-10-22 14:16:08 -0600 | |
|---|---|---|
| committer | 2023-10-22 14:21:33 -0600 | |
| commit | a065dcdcd92a9edbf37436199b0f3d062fc972bc (patch) | |
| tree | e0d563dbe6226cdcb320866e2e3820735df62b47 /externals/opus | |
| parent | externals/libusb: remove the GUID override workaround ... (diff) | |
| download | yuzu-a065dcdcd92a9edbf37436199b0f3d062fc972bc.tar.gz yuzu-a065dcdcd92a9edbf37436199b0f3d062fc972bc.tar.xz yuzu-a065dcdcd92a9edbf37436199b0f3d062fc972bc.zip | |
externals/opus: use CMakeLists shipped with Opus itself
Diffstat (limited to 'externals/opus')
| m--------- | externals/opus | 0 | ||||
| -rw-r--r-- | externals/opus/CMakeLists.txt | 259 | ||||
| m--------- | externals/opus/opus | 0 |
3 files changed, 0 insertions, 259 deletions
diff --git a/externals/opus b/externals/opus new file mode 160000 | |||
| Subproject 101a71e03bbf860aaafb7090a0e440675cb2766 | |||
diff --git a/externals/opus/CMakeLists.txt b/externals/opus/CMakeLists.txt deleted file mode 100644 index 574e2e44b..000000000 --- a/externals/opus/CMakeLists.txt +++ /dev/null | |||
| @@ -1,259 +0,0 @@ | |||
| 1 | # SPDX-FileCopyrightText: 2019 yuzu Emulator Project | ||
| 2 | # SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | cmake_minimum_required(VERSION 3.8) | ||
| 5 | |||
| 6 | project(opus) | ||
| 7 | |||
| 8 | option(OPUS_STACK_PROTECTOR "Use stack protection" OFF) | ||
| 9 | option(OPUS_USE_ALLOCA "Use alloca for stack arrays (on non-C99 compilers)" OFF) | ||
| 10 | option(OPUS_CUSTOM_MODES "Enable non-Opus modes, e.g. 44.1 kHz & 2^n frames" OFF) | ||
| 11 | option(OPUS_FIXED_POINT "Compile as fixed-point (for machines without a fast enough FPU)" OFF) | ||
| 12 | option(OPUS_ENABLE_FLOAT_API "Compile with the floating point API (for machines with float library" ON) | ||
| 13 | |||
| 14 | include(opus/cmake/OpusFunctions.cmake) | ||
| 15 | |||
| 16 | if(OPUS_STACK_PROTECTOR) | ||
| 17 | if(MSVC) | ||
| 18 | target_compile_options(opus PRIVATE /GS) | ||
| 19 | else() | ||
| 20 | target_compile_options(opus PRIVATE -fstack-protector-strong) | ||
| 21 | endif() | ||
| 22 | elseif(STACK_PROTECTOR_DISABLED_SUPPORTED) | ||
| 23 | target_compile_options(opus PRIVATE /GS-) | ||
| 24 | endif() | ||
| 25 | |||
| 26 | add_library(opus | ||
| 27 | # CELT sources | ||
| 28 | opus/celt/bands.c | ||
| 29 | opus/celt/celt.c | ||
| 30 | opus/celt/celt_decoder.c | ||
| 31 | opus/celt/celt_encoder.c | ||
| 32 | opus/celt/celt_lpc.c | ||
| 33 | opus/celt/cwrs.c | ||
| 34 | opus/celt/entcode.c | ||
| 35 | opus/celt/entdec.c | ||
| 36 | opus/celt/entenc.c | ||
| 37 | opus/celt/kiss_fft.c | ||
| 38 | opus/celt/laplace.c | ||
| 39 | opus/celt/mathops.c | ||
| 40 | opus/celt/mdct.c | ||
| 41 | opus/celt/modes.c | ||
| 42 | opus/celt/pitch.c | ||
| 43 | opus/celt/quant_bands.c | ||
| 44 | opus/celt/rate.c | ||
| 45 | opus/celt/vq.c | ||
| 46 | |||
| 47 | # SILK sources | ||
| 48 | opus/silk/A2NLSF.c | ||
| 49 | opus/silk/CNG.c | ||
| 50 | opus/silk/HP_variable_cutoff.c | ||
| 51 | opus/silk/LPC_analysis_filter.c | ||
| 52 | opus/silk/LPC_fit.c | ||
| 53 | opus/silk/LPC_inv_pred_gain.c | ||
| 54 | opus/silk/LP_variable_cutoff.c | ||
| 55 | opus/silk/NLSF2A.c | ||
| 56 | opus/silk/NLSF_VQ.c | ||
| 57 | opus/silk/NLSF_VQ_weights_laroia.c | ||
| 58 | opus/silk/NLSF_decode.c | ||
| 59 | opus/silk/NLSF_del_dec_quant.c | ||
| 60 | opus/silk/NLSF_encode.c | ||
| 61 | opus/silk/NLSF_stabilize.c | ||
| 62 | opus/silk/NLSF_unpack.c | ||
| 63 | opus/silk/NSQ.c | ||
| 64 | opus/silk/NSQ_del_dec.c | ||
| 65 | opus/silk/PLC.c | ||
| 66 | opus/silk/VAD.c | ||
| 67 | opus/silk/VQ_WMat_EC.c | ||
| 68 | opus/silk/ana_filt_bank_1.c | ||
| 69 | opus/silk/biquad_alt.c | ||
| 70 | opus/silk/bwexpander.c | ||
| 71 | opus/silk/bwexpander_32.c | ||
| 72 | opus/silk/check_control_input.c | ||
| 73 | opus/silk/code_signs.c | ||
| 74 | opus/silk/control_SNR.c | ||
| 75 | opus/silk/control_audio_bandwidth.c | ||
| 76 | opus/silk/control_codec.c | ||
| 77 | opus/silk/dec_API.c | ||
| 78 | opus/silk/decode_core.c | ||
| 79 | opus/silk/decode_frame.c | ||
| 80 | opus/silk/decode_indices.c | ||
| 81 | opus/silk/decode_parameters.c | ||
| 82 | opus/silk/decode_pitch.c | ||
| 83 | opus/silk/decode_pulses.c | ||
| 84 | opus/silk/decoder_set_fs.c | ||
| 85 | opus/silk/enc_API.c | ||
| 86 | opus/silk/encode_indices.c | ||
| 87 | opus/silk/encode_pulses.c | ||
| 88 | opus/silk/gain_quant.c | ||
| 89 | opus/silk/init_decoder.c | ||
| 90 | opus/silk/init_encoder.c | ||
| 91 | opus/silk/inner_prod_aligned.c | ||
| 92 | opus/silk/interpolate.c | ||
| 93 | opus/silk/lin2log.c | ||
| 94 | opus/silk/log2lin.c | ||
| 95 | opus/silk/pitch_est_tables.c | ||
| 96 | opus/silk/process_NLSFs.c | ||
| 97 | opus/silk/quant_LTP_gains.c | ||
| 98 | opus/silk/resampler.c | ||
| 99 | opus/silk/resampler_down2.c | ||
| 100 | opus/silk/resampler_down2_3.c | ||
| 101 | opus/silk/resampler_private_AR2.c | ||
| 102 | opus/silk/resampler_private_IIR_FIR.c | ||
| 103 | opus/silk/resampler_private_down_FIR.c | ||
| 104 | opus/silk/resampler_private_up2_HQ.c | ||
| 105 | opus/silk/resampler_rom.c | ||
| 106 | opus/silk/shell_coder.c | ||
| 107 | opus/silk/sigm_Q15.c | ||
| 108 | opus/silk/sort.c | ||
| 109 | opus/silk/stereo_LR_to_MS.c | ||
| 110 | opus/silk/stereo_MS_to_LR.c | ||
| 111 | opus/silk/stereo_decode_pred.c | ||
| 112 | opus/silk/stereo_encode_pred.c | ||
| 113 | opus/silk/stereo_find_predictor.c | ||
| 114 | opus/silk/stereo_quant_pred.c | ||
| 115 | opus/silk/sum_sqr_shift.c | ||
| 116 | opus/silk/table_LSF_cos.c | ||
| 117 | opus/silk/tables_LTP.c | ||
| 118 | opus/silk/tables_NLSF_CB_NB_MB.c | ||
| 119 | opus/silk/tables_NLSF_CB_WB.c | ||
| 120 | opus/silk/tables_gain.c | ||
| 121 | opus/silk/tables_other.c | ||
| 122 | opus/silk/tables_pitch_lag.c | ||
| 123 | opus/silk/tables_pulses_per_block.c | ||
| 124 | |||
| 125 | # Opus sources | ||
| 126 | opus/src/analysis.c | ||
| 127 | opus/src/mapping_matrix.c | ||
| 128 | opus/src/mlp.c | ||
| 129 | opus/src/mlp_data.c | ||
| 130 | opus/src/opus.c | ||
| 131 | opus/src/opus_decoder.c | ||
| 132 | opus/src/opus_encoder.c | ||
| 133 | opus/src/opus_multistream.c | ||
| 134 | opus/src/opus_multistream_decoder.c | ||
| 135 | opus/src/opus_multistream_encoder.c | ||
| 136 | opus/src/opus_projection_decoder.c | ||
| 137 | opus/src/opus_projection_encoder.c | ||
| 138 | opus/src/repacketizer.c | ||
| 139 | ) | ||
| 140 | |||
| 141 | if (DEBUG) | ||
| 142 | target_sources(opus PRIVATE opus/silk/debug.c) | ||
| 143 | endif() | ||
| 144 | |||
| 145 | if (OPUS_FIXED_POINT) | ||
| 146 | target_sources(opus PRIVATE | ||
| 147 | opus/silk/fixed/LTP_analysis_filter_FIX.c | ||
| 148 | opus/silk/fixed/LTP_scale_ctrl_FIX.c | ||
| 149 | opus/silk/fixed/apply_sine_window_FIX.c | ||
| 150 | opus/silk/fixed/autocorr_FIX.c | ||
| 151 | opus/silk/fixed/burg_modified_FIX.c | ||
| 152 | opus/silk/fixed/corrMatrix_FIX.c | ||
| 153 | opus/silk/fixed/encode_frame_FIX.c | ||
| 154 | opus/silk/fixed/find_LPC_FIX.c | ||
| 155 | opus/silk/fixed/find_LTP_FIX.c | ||
| 156 | opus/silk/fixed/find_pitch_lags_FIX.c | ||
| 157 | opus/silk/fixed/find_pred_coefs_FIX.c | ||
| 158 | opus/silk/fixed/k2a_FIX.c | ||
| 159 | opus/silk/fixed/k2a_Q16_FIX.c | ||
| 160 | opus/silk/fixed/noise_shape_analysis_FIX.c | ||
| 161 | opus/silk/fixed/pitch_analysis_core_FIX.c | ||
| 162 | opus/silk/fixed/prefilter_FIX.c | ||
| 163 | opus/silk/fixed/process_gains_FIX.c | ||
| 164 | opus/silk/fixed/regularize_correlations_FIX.c | ||
| 165 | opus/silk/fixed/residual_energy16_FIX.c | ||
| 166 | opus/silk/fixed/residual_energy_FIX.c | ||
| 167 | opus/silk/fixed/schur64_FIX.c | ||
| 168 | opus/silk/fixed/schur_FIX.c | ||
| 169 | opus/silk/fixed/solve_LS_FIX.c | ||
| 170 | opus/silk/fixed/vector_ops_FIX.c | ||
| 171 | opus/silk/fixed/warped_autocorrelation_FIX.c | ||
| 172 | ) | ||
| 173 | else() | ||
| 174 | target_sources(opus PRIVATE | ||
| 175 | opus/silk/float/LPC_analysis_filter_FLP.c | ||
| 176 | opus/silk/float/LPC_inv_pred_gain_FLP.c | ||
| 177 | opus/silk/float/LTP_analysis_filter_FLP.c | ||
| 178 | opus/silk/float/LTP_scale_ctrl_FLP.c | ||
| 179 | opus/silk/float/apply_sine_window_FLP.c | ||
| 180 | opus/silk/float/autocorrelation_FLP.c | ||
| 181 | opus/silk/float/burg_modified_FLP.c | ||
| 182 | opus/silk/float/bwexpander_FLP.c | ||
| 183 | opus/silk/float/corrMatrix_FLP.c | ||
| 184 | opus/silk/float/encode_frame_FLP.c | ||
| 185 | opus/silk/float/energy_FLP.c | ||
| 186 | opus/silk/float/find_LPC_FLP.c | ||
| 187 | opus/silk/float/find_LTP_FLP.c | ||
| 188 | opus/silk/float/find_pitch_lags_FLP.c | ||
| 189 | opus/silk/float/find_pred_coefs_FLP.c | ||
| 190 | opus/silk/float/inner_product_FLP.c | ||
| 191 | opus/silk/float/k2a_FLP.c | ||
| 192 | opus/silk/float/noise_shape_analysis_FLP.c | ||
| 193 | opus/silk/float/pitch_analysis_core_FLP.c | ||
| 194 | opus/silk/float/process_gains_FLP.c | ||
| 195 | opus/silk/float/regularize_correlations_FLP.c | ||
| 196 | opus/silk/float/residual_energy_FLP.c | ||
| 197 | opus/silk/float/scale_copy_vector_FLP.c | ||
| 198 | opus/silk/float/scale_vector_FLP.c | ||
| 199 | opus/silk/float/schur_FLP.c | ||
| 200 | opus/silk/float/sort_FLP.c | ||
| 201 | opus/silk/float/warped_autocorrelation_FLP.c | ||
| 202 | opus/silk/float/wrappers_FLP.c | ||
| 203 | ) | ||
| 204 | endif() | ||
| 205 | |||
| 206 | target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING) | ||
| 207 | |||
| 208 | if(NOT MSVC) | ||
| 209 | if(MINGW) | ||
| 210 | target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=0) | ||
| 211 | else() | ||
| 212 | target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2) | ||
| 213 | endif() | ||
| 214 | endif() | ||
| 215 | |||
| 216 | # It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99 | ||
| 217 | # variable-length arrays for stack allocation USE_ALLOCA: Use alloca() for stack | ||
| 218 | # allocation If none is defined, then the fallback is a non-threadsafe global | ||
| 219 | # array | ||
| 220 | if(OPUS_USE_ALLOCA OR MSVC) | ||
| 221 | target_compile_definitions(opus PRIVATE USE_ALLOCA) | ||
| 222 | else() | ||
| 223 | target_compile_definitions(opus PRIVATE VAR_ARRAYS) | ||
| 224 | endif() | ||
| 225 | |||
| 226 | if(OPUS_CUSTOM_MODES) | ||
| 227 | target_compile_definitions(opus PRIVATE CUSTOM_MODES) | ||
| 228 | endif() | ||
| 229 | |||
| 230 | if(NOT OPUS_ENABLE_FLOAT_API) | ||
| 231 | target_compile_definitions(opus PRIVATE DISABLE_FLOAT_API) | ||
| 232 | endif() | ||
| 233 | |||
| 234 | target_compile_definitions(opus | ||
| 235 | PUBLIC | ||
| 236 | -DOPUS_VERSION="\\"1.4.0\\"" | ||
| 237 | |||
| 238 | PRIVATE | ||
| 239 | # Use C99 intrinsics to speed up float-to-int conversion | ||
| 240 | HAVE_LRINTF | ||
| 241 | ) | ||
| 242 | |||
| 243 | if (FIXED_POINT) | ||
| 244 | target_compile_definitions(opus PRIVATE -DFIXED_POINT=1 -DDISABLE_FLOAT_API) | ||
| 245 | endif() | ||
| 246 | |||
| 247 | target_include_directories(opus | ||
| 248 | PUBLIC | ||
| 249 | opus/include | ||
| 250 | |||
| 251 | PRIVATE | ||
| 252 | opus/celt | ||
| 253 | opus/silk | ||
| 254 | opus/silk/fixed | ||
| 255 | opus/silk/float | ||
| 256 | opus/src | ||
| 257 | ) | ||
| 258 | |||
| 259 | add_library(Opus::opus ALIAS opus) | ||
diff --git a/externals/opus/opus b/externals/opus/opus deleted file mode 160000 | |||
| Subproject 82ac57d9f1aaf575800cf17373348e45b7ce6c0 | |||