-
-
Save wshon/eae0d3c6be46545feac8384e5226c078 to your computer and use it in GitHub Desktop.
Opus Project Include
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Opus Project Include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.1) | |
project(opus) | |
#pull submodule if not already here | |
execute_process(COMMAND git submodule update --init -- . | |
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | |
option(OPUS_USE_ALLOCA "USE_ALLOCA" ON) | |
option(OPUS_FIXED_POINT "FIXED_POINT" OFF) | |
option(OPUS_DISABLE_FLOAT_API "DISABLE_FLOAT_API" OFF) | |
set(OPUS_INCLUDE_DIR | |
${CMAKE_CURRENT_SOURCE_DIR}/opus/include | |
) | |
set(SILK_SOURCES | |
opus/silk/CNG.c | |
opus/silk/code_signs.c | |
opus/silk/init_decoder.c | |
opus/silk/decode_core.c | |
opus/silk/decode_frame.c | |
opus/silk/decode_parameters.c | |
opus/silk/decode_indices.c | |
opus/silk/decode_pulses.c | |
opus/silk/decoder_set_fs.c | |
opus/silk/dec_API.c | |
opus/silk/enc_API.c | |
opus/silk/encode_indices.c | |
opus/silk/encode_pulses.c | |
opus/silk/gain_quant.c | |
opus/silk/interpolate.c | |
opus/silk/LP_variable_cutoff.c | |
opus/silk/NLSF_decode.c | |
opus/silk/NSQ.c | |
opus/silk/NSQ_del_dec.c | |
opus/silk/PLC.c | |
opus/silk/shell_coder.c | |
opus/silk/tables_gain.c | |
opus/silk/tables_LTP.c | |
opus/silk/tables_NLSF_CB_NB_MB.c | |
opus/silk/tables_NLSF_CB_WB.c | |
opus/silk/tables_other.c | |
opus/silk/tables_pitch_lag.c | |
opus/silk/tables_pulses_per_block.c | |
opus/silk/VAD.c | |
opus/silk/control_audio_bandwidth.c | |
opus/silk/quant_LTP_gains.c | |
opus/silk/VQ_WMat_EC.c | |
opus/silk/HP_variable_cutoff.c | |
opus/silk/NLSF_encode.c | |
opus/silk/NLSF_VQ.c | |
opus/silk/NLSF_unpack.c | |
opus/silk/NLSF_del_dec_quant.c | |
opus/silk/process_NLSFs.c | |
opus/silk/stereo_LR_to_MS.c | |
opus/silk/stereo_MS_to_LR.c | |
opus/silk/check_control_input.c | |
opus/silk/control_SNR.c | |
opus/silk/init_encoder.c | |
opus/silk/control_codec.c | |
opus/silk/A2NLSF.c | |
opus/silk/ana_filt_bank_1.c | |
opus/silk/biquad_alt.c | |
opus/silk/bwexpander_32.c | |
opus/silk/bwexpander.c | |
opus/silk/debug.c | |
opus/silk/decode_pitch.c | |
opus/silk/inner_prod_aligned.c | |
opus/silk/lin2log.c | |
opus/silk/log2lin.c | |
opus/silk/LPC_analysis_filter.c | |
opus/silk/LPC_inv_pred_gain.c | |
opus/silk/table_LSF_cos.c | |
opus/silk/NLSF2A.c | |
opus/silk/NLSF_stabilize.c | |
opus/silk/NLSF_VQ_weights_laroia.c | |
opus/silk/pitch_est_tables.c | |
opus/silk/resampler.c | |
opus/silk/resampler_down2_3.c | |
opus/silk/resampler_down2.c | |
opus/silk/resampler_private_AR2.c | |
opus/silk/resampler_private_down_FIR.c | |
opus/silk/resampler_private_IIR_FIR.c | |
opus/silk/resampler_private_up2_HQ.c | |
opus/silk/resampler_rom.c | |
opus/silk/sigm_Q15.c | |
opus/silk/sort.c | |
opus/silk/sum_sqr_shift.c | |
opus/silk/stereo_decode_pred.c | |
opus/silk/stereo_encode_pred.c | |
opus/silk/stereo_find_predictor.c | |
opus/silk/stereo_quant_pred.c | |
opus/silk/LPC_fit.c | |
) | |
set(SILK_SOURCES_SSE4_1 | |
opus/silk/x86/NSQ_sse.c | |
opus/silk/x86/NSQ_del_dec_sse.c | |
opus/silk/x86/x86_silk_map.c | |
opus/silk/x86/VAD_sse.c | |
opus/silk/x86/VQ_WMat_EC_sse.c | |
) | |
set(SILK_SOURCES_ARM_NEON_INTR | |
opus/silk/arm/arm_silk_map.c | |
opus/silk/arm/NSQ_del_dec_neon_intr.c | |
opus/silk/arm/NSQ_neon.c | |
) | |
set(SILK_SOURCES_FIXED | |
opus/silk/fixed/LTP_analysis_filter_FIX.c | |
opus/silk/fixed/LTP_scale_ctrl_FIX.c | |
opus/silk/fixed/corrMatrix_FIX.c | |
opus/silk/fixed/encode_frame_FIX.c | |
opus/silk/fixed/find_LPC_FIX.c | |
opus/silk/fixed/find_LTP_FIX.c | |
opus/silk/fixed/find_pitch_lags_FIX.c | |
opus/silk/fixed/find_pred_coefs_FIX.c | |
opus/silk/fixed/noise_shape_analysis_FIX.c | |
opus/silk/fixed/process_gains_FIX.c | |
opus/silk/fixed/regularize_correlations_FIX.c | |
opus/silk/fixed/residual_energy16_FIX.c | |
opus/silk/fixed/residual_energy_FIX.c | |
opus/silk/fixed/warped_autocorrelation_FIX.c | |
opus/silk/fixed/apply_sine_window_FIX.c | |
opus/silk/fixed/autocorr_FIX.c | |
opus/silk/fixed/burg_modified_FIX.c | |
opus/silk/fixed/k2a_FIX.c | |
opus/silk/fixed/k2a_Q16_FIX.c | |
opus/silk/fixed/pitch_analysis_core_FIX.c | |
opus/silk/fixed/vector_ops_FIX.c | |
opus/silk/fixed/schur64_FIX.c | |
opus/silk/fixed/schur_FIX.c | |
) | |
set(SILK_SOURCES_FIXED_SSE4_1 | |
opus/silk/fixed/x86/vector_ops_FIX_sse.c | |
opus/silk/fixed/x86/burg_modified_FIX_sse.c | |
) | |
set(SILK_SOURCES_FLOAT | |
opus/silk/float/apply_sine_window_FLP.c | |
opus/silk/float/corrMatrix_FLP.c | |
opus/silk/float/encode_frame_FLP.c | |
opus/silk/float/find_LPC_FLP.c | |
opus/silk/float/find_LTP_FLP.c | |
opus/silk/float/find_pitch_lags_FLP.c | |
opus/silk/float/find_pred_coefs_FLP.c | |
opus/silk/float/LPC_analysis_filter_FLP.c | |
opus/silk/float/LTP_analysis_filter_FLP.c | |
opus/silk/float/LTP_scale_ctrl_FLP.c | |
opus/silk/float/noise_shape_analysis_FLP.c | |
opus/silk/float/process_gains_FLP.c | |
opus/silk/float/regularize_correlations_FLP.c | |
opus/silk/float/residual_energy_FLP.c | |
opus/silk/float/warped_autocorrelation_FLP.c | |
opus/silk/float/wrappers_FLP.c | |
opus/silk/float/autocorrelation_FLP.c | |
opus/silk/float/burg_modified_FLP.c | |
opus/silk/float/bwexpander_FLP.c | |
opus/silk/float/energy_FLP.c | |
opus/silk/float/inner_product_FLP.c | |
opus/silk/float/k2a_FLP.c | |
opus/silk/float/LPC_inv_pred_gain_FLP.c | |
opus/silk/float/pitch_analysis_core_FLP.c | |
opus/silk/float/scale_copy_vector_FLP.c | |
opus/silk/float/scale_vector_FLP.c | |
opus/silk/float/schur_FLP.c | |
opus/silk/float/sort_FLP.c | |
) | |
set(CELT_SOURCES | |
opus/celt/bands.c | |
opus/celt/celt.c | |
opus/celt/celt_encoder.c | |
opus/celt/celt_decoder.c | |
opus/celt/cwrs.c | |
opus/celt/entcode.c | |
opus/celt/entdec.c | |
opus/celt/entenc.c | |
opus/celt/kiss_fft.c | |
opus/celt/laplace.c | |
opus/celt/mathops.c | |
opus/celt/mdct.c | |
opus/celt/modes.c | |
opus/celt/pitch.c | |
opus/celt/celt_lpc.c | |
opus/celt/quant_bands.c | |
opus/celt/rate.c | |
opus/celt/vq.c | |
) | |
set(CELT_SOURCES_SSE | |
opus/celt/x86/x86cpu.c | |
opus/celt/x86/x86_celt_map.c | |
opus/celt/x86/pitch_sse.c | |
) | |
set(CELT_SOURCES_SSE2 | |
opus/celt/x86/pitch_sse2.c | |
opus/celt/x86/vq_sse2.c | |
) | |
set(CELT_SOURCES_SSE4_1 | |
opus/celt/x86/celt_lpc_sse.c | |
opus/celt/x86/pitch_sse4_1.c | |
) | |
set(CELT_SOURCES_ARM | |
opus/celt/arm/armcpu.c | |
opus/celt/arm/arm_celt_map.c | |
) | |
set(CELT_SOURCES_ARM_ASM | |
opus/celt/arm/celt_pitch_xcorr_arm.s | |
) | |
set(CELT_AM_SOURCES_ARM_ASM | |
opus/celt/arm/armopts.s.in | |
) | |
set(CELT_SOURCES_ARM_NEON_INTR | |
opus/celt/arm/celt_neon_intr.c | |
) | |
set(CELT_SOURCES_ARM_NE10 | |
opus/celt/arm/celt_ne10_fft.c | |
opus/celt/arm/celt_ne10_mdct.c | |
) | |
set(OPUS_HEADER | |
opus/include/opus.h | |
opus/include/opus_custom.h | |
opus/include/opus_defines.h | |
opus/include/opus_multistream.h | |
opus/include/opus_types.h | |
) | |
set(OPUS_SOURCES | |
opus/src/opus.c | |
opus/src/opus_decoder.c | |
opus/src/opus_encoder.c | |
opus/src/opus_multistream.c | |
opus/src/opus_multistream_encoder.c | |
opus/src/opus_multistream_decoder.c | |
opus/src/repacketizer.c | |
) | |
set(OPUS_SOURCES_FLOAT | |
opus/src/analysis.c | |
opus/src/mlp.c | |
opus/src/mlp_data.c | |
) | |
if(OPUS_FIXED_POINT) | |
list(APPEND SILK_SOURCES ${SILK_SOURCES_FIXED}) | |
if(HAVE_SSE4_1) | |
list(APPEND SILK_SOURCES ${SILK_SOURCES_SSE4_1} ${SILK_SOURCES_FIXED_SSE4_1}) | |
endif(HAVE_SSE4_1) | |
else(OPUS_FIXED_POINT) | |
list(APPEND SILK_SOURCES ${SILK_SOURCES_FLOAT}) | |
if (HAVE_SSE4_1) | |
list(APPEND SILK_SOURCES ${SILK_SOURCES_SSE4_1}) | |
endif(HAVE_SSE4_1) | |
endif(OPUS_FIXED_POINT) | |
if (NOT OPUS_DISABLE_FLOAT_API) | |
list(APPEND OPUS_SOURCES ${OPUS_SOURCES_FLOAT}) | |
endif(NOT OPUS_DISABLE_FLOAT_API) | |
if(HAVE_SSE) | |
list(APPEND CELT_SOURCES ${CELT_SOURCES_SSE}) | |
endif(HAVE_SSE) | |
if(HAVE_SSE2) | |
list(APPEND CELT_SOURCES ${CELT_SOURCES_SSE2}) | |
endif(HAVE_SSE2) | |
if(HAVE_SSE4_1) | |
list(APPEND CELT_SOURCES ${CELT_SOURCES_SSE4_1}) | |
endif(HAVE_SSE4_1) | |
if(CPU_ARM) | |
list(APPEND CELT_SOURCES ${CELT_SOURCES_ARM}) | |
list(APPEND SILK_SOURCES ${SILK_SOURCES_ARM}) | |
if(HAVE_ARM_NEON_INTR) | |
list(APPEND CELT_SOURCES ${CELT_SOURCES_ARM_NEON_INTR}) | |
list(APPEND SILK_SOURCES ${SILK_SOURCES_ARM_NEON_INTR}) | |
endif(HAVE_ARM_NEON_INTR) | |
if(HAVE_ARM_NE10) | |
list(APPEND CELT_SOURCES ${CELT_SOURCES_ARM_NE10}) | |
endif(HAVE_ARM_NE10) | |
#if(OPUS_ARM_EXTERNAL_ASM) | |
# noinst_LTLIBRARIES = libarmasm.la | |
# libarmasm_la_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) | |
# BUILT_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \ | |
# $(CELT_AM_SOURCES_ARM_ASM:.s.in=.s) \ | |
# $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S) | |
#endif(OPUS_ARM_EXTERNAL_ASM) | |
endif(CPU_ARM) | |
# It is strongly recommended to uncomment one of these | |
# VAR_ARRAYS: Use C99 variable-length arrays for stack allocation | |
# USE_ALLOCA: Use alloca() for stack allocation | |
# If none is defined, then the fallback is a non-threadsafe global array | |
if (OPUS_USE_ALLOCA) | |
add_definitions(-DUSE_ALLOCA) | |
else (OPUS_USE_ALLOCA) | |
add_definitions(-DVAR_ARRAYS) | |
endif (OPUS_USE_ALLOCA) | |
# These options affect performance | |
# HAVE_LRINTF: Use C99 intrinsics to speed up float-to-int conversion | |
add_definitions(-DHAVE_LRINTF) | |
add_definitions(-DOPUS_BUILD) | |
if (OPUS_FIXED_POINT) | |
add_definitions(-DFIXED_POINT=1 -DDISABLE_FLOAT_API) | |
endif (OPUS_FIXED_POINT) | |
add_library(opus STATIC ${CELT_SOURCES} ${SILK_SOURCES} ${OPUS_SOURCES}) | |
target_compile_options(opus PRIVATE $<$<OR:$<C_COMPILER_ID:Clang>,$<C_COMPILER_ID:GNU>>: | |
-Wall | |
-Wextra | |
-Wcast-align | |
-Wnested-externs | |
-Wshadow | |
-Wstrict-prototypes | |
>) | |
target_include_directories(opus PUBLIC ${OPUS_INCLUDE_DIR}) | |
target_include_directories(opus PRIVATE | |
opus/silk | |
opus/silk/float | |
opus/silk/fixed | |
opus/celt | |
opus/src | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pull submodule if not already here | |
CONFIG += OPUS_USE_ALLOCA | |
# CONFIG += OPUS_FIXED_POINT | |
# CONFIG += OPUS_DISABLE_FLOAT_API | |
OPUS_INCLUDE_DIR += $$PWD/opus/include | |
SILK_SOURCES += \ | |
$$PWD/opus/silk/CNG.c \ | |
$$PWD/opus/silk/code_signs.c \ | |
$$PWD/opus/silk/init_decoder.c \ | |
$$PWD/opus/silk/decode_core.c \ | |
$$PWD/opus/silk/decode_frame.c \ | |
$$PWD/opus/silk/decode_parameters.c \ | |
$$PWD/opus/silk/decode_indices.c \ | |
$$PWD/opus/silk/decode_pulses.c \ | |
$$PWD/opus/silk/decoder_set_fs.c \ | |
$$PWD/opus/silk/dec_API.c \ | |
$$PWD/opus/silk/enc_API.c \ | |
$$PWD/opus/silk/encode_indices.c \ | |
$$PWD/opus/silk/encode_pulses.c \ | |
$$PWD/opus/silk/gain_quant.c \ | |
$$PWD/opus/silk/interpolate.c \ | |
$$PWD/opus/silk/LP_variable_cutoff.c \ | |
$$PWD/opus/silk/NLSF_decode.c \ | |
$$PWD/opus/silk/NSQ.c \ | |
$$PWD/opus/silk/NSQ_del_dec.c \ | |
$$PWD/opus/silk/PLC.c \ | |
$$PWD/opus/silk/shell_coder.c \ | |
$$PWD/opus/silk/tables_gain.c \ | |
$$PWD/opus/silk/tables_LTP.c \ | |
$$PWD/opus/silk/tables_NLSF_CB_NB_MB.c \ | |
$$PWD/opus/silk/tables_NLSF_CB_WB.c \ | |
$$PWD/opus/silk/tables_other.c \ | |
$$PWD/opus/silk/tables_pitch_lag.c \ | |
$$PWD/opus/silk/tables_pulses_per_block.c \ | |
$$PWD/opus/silk/VAD.c \ | |
$$PWD/opus/silk/control_audio_bandwidth.c \ | |
$$PWD/opus/silk/quant_LTP_gains.c \ | |
$$PWD/opus/silk/VQ_WMat_EC.c \ | |
$$PWD/opus/silk/HP_variable_cutoff.c \ | |
$$PWD/opus/silk/NLSF_encode.c \ | |
$$PWD/opus/silk/NLSF_VQ.c \ | |
$$PWD/opus/silk/NLSF_unpack.c \ | |
$$PWD/opus/silk/NLSF_del_dec_quant.c \ | |
$$PWD/opus/silk/process_NLSFs.c \ | |
$$PWD/opus/silk/stereo_LR_to_MS.c \ | |
$$PWD/opus/silk/stereo_MS_to_LR.c \ | |
$$PWD/opus/silk/check_control_input.c \ | |
$$PWD/opus/silk/control_SNR.c \ | |
$$PWD/opus/silk/init_encoder.c \ | |
$$PWD/opus/silk/control_codec.c \ | |
$$PWD/opus/silk/A2NLSF.c \ | |
$$PWD/opus/silk/ana_filt_bank_1.c \ | |
$$PWD/opus/silk/biquad_alt.c \ | |
$$PWD/opus/silk/bwexpander_32.c \ | |
$$PWD/opus/silk/bwexpander.c \ | |
$$PWD/opus/silk/debug.c \ | |
$$PWD/opus/silk/decode_pitch.c \ | |
$$PWD/opus/silk/inner_prod_aligned.c \ | |
$$PWD/opus/silk/lin2log.c \ | |
$$PWD/opus/silk/log2lin.c \ | |
$$PWD/opus/silk/LPC_analysis_filter.c \ | |
$$PWD/opus/silk/LPC_inv_pred_gain.c \ | |
$$PWD/opus/silk/table_LSF_cos.c \ | |
$$PWD/opus/silk/NLSF2A.c \ | |
$$PWD/opus/silk/NLSF_stabilize.c \ | |
$$PWD/opus/silk/NLSF_VQ_weights_laroia.c \ | |
$$PWD/opus/silk/pitch_est_tables.c \ | |
$$PWD/opus/silk/resampler.c \ | |
$$PWD/opus/silk/resampler_down2_3.c \ | |
$$PWD/opus/silk/resampler_down2.c \ | |
$$PWD/opus/silk/resampler_private_AR2.c \ | |
$$PWD/opus/silk/resampler_private_down_FIR.c \ | |
$$PWD/opus/silk/resampler_private_IIR_FIR.c \ | |
$$PWD/opus/silk/resampler_private_up2_HQ.c \ | |
$$PWD/opus/silk/resampler_rom.c \ | |
$$PWD/opus/silk/sigm_Q15.c \ | |
$$PWD/opus/silk/sort.c \ | |
$$PWD/opus/silk/sum_sqr_shift.c \ | |
$$PWD/opus/silk/stereo_decode_pred.c \ | |
$$PWD/opus/silk/stereo_encode_pred.c \ | |
$$PWD/opus/silk/stereo_find_predictor.c \ | |
$$PWD/opus/silk/stereo_quant_pred.c \ | |
$$PWD/opus/silk/LPC_fit.c \ | |
SILK_SOURCES_SSE4_1 += \ | |
$$PWD/opus/silk/x86/NSQ_sse.c \ | |
$$PWD/opus/silk/x86/NSQ_del_dec_sse.c \ | |
$$PWD/opus/silk/x86/x86_silk_map.c \ | |
$$PWD/opus/silk/x86/VAD_sse.c \ | |
$$PWD/opus/silk/x86/VQ_WMat_EC_sse.c \ | |
SILK_SOURCES_ARM_NEON_INTR += \ | |
$$PWD/opus/silk/arm/arm_silk_map.c \ | |
$$PWD/opus/silk/arm/NSQ_del_dec_neon_intr.c \ | |
$$PWD/opus/silk/arm/NSQ_neon.c \ | |
SILK_SOURCES_FIXED += \ | |
$$PWD/opus/silk/fixed/LTP_analysis_filter_FIX.c \ | |
$$PWD/opus/silk/fixed/LTP_scale_ctrl_FIX.c \ | |
$$PWD/opus/silk/fixed/corrMatrix_FIX.c \ | |
$$PWD/opus/silk/fixed/encode_frame_FIX.c \ | |
$$PWD/opus/silk/fixed/find_LPC_FIX.c \ | |
$$PWD/opus/silk/fixed/find_LTP_FIX.c \ | |
$$PWD/opus/silk/fixed/find_pitch_lags_FIX.c \ | |
$$PWD/opus/silk/fixed/find_pred_coefs_FIX.c \ | |
$$PWD/opus/silk/fixed/noise_shape_analysis_FIX.c \ | |
$$PWD/opus/silk/fixed/process_gains_FIX.c \ | |
$$PWD/opus/silk/fixed/regularize_correlations_FIX.c \ | |
$$PWD/opus/silk/fixed/residual_energy16_FIX.c \ | |
$$PWD/opus/silk/fixed/residual_energy_FIX.c \ | |
$$PWD/opus/silk/fixed/warped_autocorrelation_FIX.c \ | |
$$PWD/opus/silk/fixed/apply_sine_window_FIX.c \ | |
$$PWD/opus/silk/fixed/autocorr_FIX.c \ | |
$$PWD/opus/silk/fixed/burg_modified_FIX.c \ | |
$$PWD/opus/silk/fixed/k2a_FIX.c \ | |
$$PWD/opus/silk/fixed/k2a_Q16_FIX.c \ | |
$$PWD/opus/silk/fixed/pitch_analysis_core_FIX.c \ | |
$$PWD/opus/silk/fixed/vector_ops_FIX.c \ | |
$$PWD/opus/silk/fixed/schur64_FIX.c \ | |
$$PWD/opus/silk/fixed/schur_FIX.c \ | |
SILK_SOURCES_FIXED_SSE4_1 += \ | |
$$PWD/opus/silk/fixed/x86/vector_ops_FIX_sse.c \ | |
$$PWD/opus/silk/fixed/x86/burg_modified_FIX_sse.c \ | |
SILK_SOURCES_FLOAT += \ | |
$$PWD/opus/silk/float/apply_sine_window_FLP.c \ | |
$$PWD/opus/silk/float/corrMatrix_FLP.c \ | |
$$PWD/opus/silk/float/encode_frame_FLP.c \ | |
$$PWD/opus/silk/float/find_LPC_FLP.c \ | |
$$PWD/opus/silk/float/find_LTP_FLP.c \ | |
$$PWD/opus/silk/float/find_pitch_lags_FLP.c \ | |
$$PWD/opus/silk/float/find_pred_coefs_FLP.c \ | |
$$PWD/opus/silk/float/LPC_analysis_filter_FLP.c \ | |
$$PWD/opus/silk/float/LTP_analysis_filter_FLP.c \ | |
$$PWD/opus/silk/float/LTP_scale_ctrl_FLP.c \ | |
$$PWD/opus/silk/float/noise_shape_analysis_FLP.c \ | |
$$PWD/opus/silk/float/process_gains_FLP.c \ | |
$$PWD/opus/silk/float/regularize_correlations_FLP.c \ | |
$$PWD/opus/silk/float/residual_energy_FLP.c \ | |
$$PWD/opus/silk/float/warped_autocorrelation_FLP.c \ | |
$$PWD/opus/silk/float/wrappers_FLP.c \ | |
$$PWD/opus/silk/float/autocorrelation_FLP.c \ | |
$$PWD/opus/silk/float/burg_modified_FLP.c \ | |
$$PWD/opus/silk/float/bwexpander_FLP.c \ | |
$$PWD/opus/silk/float/energy_FLP.c \ | |
$$PWD/opus/silk/float/inner_product_FLP.c \ | |
$$PWD/opus/silk/float/k2a_FLP.c \ | |
$$PWD/opus/silk/float/LPC_inv_pred_gain_FLP.c \ | |
$$PWD/opus/silk/float/pitch_analysis_core_FLP.c \ | |
$$PWD/opus/silk/float/scale_copy_vector_FLP.c \ | |
$$PWD/opus/silk/float/scale_vector_FLP.c \ | |
$$PWD/opus/silk/float/schur_FLP.c \ | |
$$PWD/opus/silk/float/sort_FLP.c \ | |
CELT_SOURCES += \ | |
$$PWD/opus/celt/bands.c \ | |
$$PWD/opus/celt/celt.c \ | |
$$PWD/opus/celt/celt_encoder.c \ | |
$$PWD/opus/celt/celt_decoder.c \ | |
$$PWD/opus/celt/cwrs.c \ | |
$$PWD/opus/celt/entcode.c \ | |
$$PWD/opus/celt/entdec.c \ | |
$$PWD/opus/celt/entenc.c \ | |
$$PWD/opus/celt/kiss_fft.c \ | |
$$PWD/opus/celt/laplace.c \ | |
$$PWD/opus/celt/mathops.c \ | |
$$PWD/opus/celt/mdct.c \ | |
$$PWD/opus/celt/modes.c \ | |
$$PWD/opus/celt/pitch.c \ | |
$$PWD/opus/celt/celt_lpc.c \ | |
$$PWD/opus/celt/quant_bands.c \ | |
$$PWD/opus/celt/rate.c \ | |
$$PWD/opus/celt/vq.c \ | |
CELT_SOURCES_SSE += \ | |
$$PWD/opus/celt/x86/x86cpu.c \ | |
$$PWD/opus/celt/x86/x86_celt_map.c \ | |
$$PWD/opus/celt/x86/pitch_sse.c \ | |
CELT_SOURCES_SSE2 += \ | |
$$PWD/opus/celt/x86/pitch_sse2.c \ | |
$$PWD/opus/celt/x86/vq_sse2.c \ | |
CELT_SOURCES_SSE4_1 += \ | |
$$PWD/opus/celt/x86/celt_lpc_sse.c \ | |
$$PWD/opus/celt/x86/pitch_sse4_1.c \ | |
CELT_SOURCES_ARM += \ | |
$$PWD/opus/celt/arm/armcpu.c \ | |
$$PWD/opus/celt/arm/arm_celt_map.c \ | |
CELT_SOURCES_ARM_ASM += \ | |
$$PWD/opus/celt/arm/celt_pitch_xcorr_arm.s \ | |
CELT_AM_SOURCES_ARM_ASM += \ | |
$$PWD/opus/celt/arm/armopts.s.in \ | |
CELT_SOURCES_ARM_NEON_INTR += \ | |
$$PWD/opus/celt/arm/celt_neon_intr.c \ | |
CELT_SOURCES_ARM_NE10 += \ | |
$$PWD/opus/celt/arm/celt_ne10_fft.c \ | |
$$PWD/opus/celt/arm/celt_ne10_mdct.c \ | |
OPUS_HEADER += \ | |
$$PWD/opus/include/opus.h \ | |
$$PWD/opus/include/opus_custom.h \ | |
$$PWD/opus/include/opus_defines.h \ | |
$$PWD/opus/include/opus_multistream.h \ | |
$$PWD/opus/include/opus_types.h \ | |
OPUS_SOURCES += \ | |
$$PWD/opus/src/opus.c \ | |
$$PWD/opus/src/opus_decoder.c \ | |
$$PWD/opus/src/opus_encoder.c \ | |
$$PWD/opus/src/opus_multistream.c \ | |
$$PWD/opus/src/opus_multistream_encoder.c \ | |
$$PWD/opus/src/opus_multistream_decoder.c \ | |
$$PWD/opus/src/repacketizer.c \ | |
OPUS_SOURCES_FLOAT += \ | |
$$PWD/opus/src/analysis.c \ | |
$$PWD/opus/src/mlp.c \ | |
$$PWD/opus/src/mlp_data.c \ | |
contains (CONFIG, OPUS_FIXED_POINT) { | |
SILK_SOURCES += $$SILK_SOURCES_FIXED | |
contains (CONFIG, HAVE_SSE4_1) { | |
SILK_SOURCES += $$SILK_SOURCES_SSE4_1 $$SILK_SOURCES_FIXED_SSE4_1 | |
} | |
} else { | |
SILK_SOURCES += $$SILK_SOURCES_FLOAT | |
contains (CONFIG, HAVE_SSE4_1) { | |
SILK_SOURCES += $$SILK_SOURCES_SSE4_1 | |
} | |
} | |
!contains (CONFIG, OPUS_DISABLE_FLOAT_API) { | |
OPUS_SOURCES += $$OPUS_SOURCES_FLOAT | |
} | |
contains (CONFIG, HAVE_SSE) { | |
CELT_SOURCES += $$CELT_SOURCES_SSE | |
} | |
contains (CONFIG, HAVE_SSE2) { | |
CELT_SOURCES += $$CELT_SOURCES_SSE2 | |
} | |
contains (CONFIG, HAVE_SSE4_1) { | |
CELT_SOURCES += $$CELT_SOURCES_SSE4_1 | |
} | |
contains (CONFIG, CPU_ARM) { | |
CELT_SOURCES += $$CELT_SOURCES_ARM | |
SILK_SOURCES += $$SILK_SOURCES_ARM | |
contains (CONFIG, HAVE_ARM_NEON_INTR) { | |
CELT_SOURCES += $$CELT_SOURCES_ARM_NEON_INTR | |
SILK_SOURCES += $$SILK_SOURCES_ARM_NEON_INTR | |
} | |
contains (CONFIG, HAVE_ARM_NE10) { | |
CELT_SOURCES += $$CELT_SOURCES_ARM_NE10 | |
} | |
#if(OPUS_ARM_EXTERNAL_ASM) | |
# noinst_LTLIBRARIES = libarmasm.la | |
# libarmasm_la_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) | |
# BUILT_SOURCES = $(CELT_SOURCES_ARM_ASM:.s=-gnu.S) \ | |
# $(CELT_AM_SOURCES_ARM_ASM:.s.in=.s) \ | |
# $(CELT_AM_SOURCES_ARM_ASM:.s.in=-gnu.S) | |
#endif(OPUS_ARM_EXTERNAL_ASM) | |
} | |
# It is strongly recommended to uncomment one of these | |
# VAR_ARRAYS: Use C99 variable-length arrays for stack allocation | |
# USE_ALLOCA: Use alloca() for stack allocation | |
# If none is defined, then the fallback is a non-threadsafe global array | |
contains (CONFIG, OPUS_USE_ALLOCA) { | |
DEFINES += USE_ALLOCA | |
} else { | |
DEFINES += VAR_ARRAYS | |
} | |
# These options affect performance | |
# HAVE_LRINTF: Use C99 intrinsics to speed up float-to-int conversion | |
DEFINES += HAVE_LRINTF | |
DEFINES += OPUS_BUILD | |
contains (CONFIG, OPUS_FIXED_POINT) { | |
DEFINES += FIXED_POINT=1 DISABLE_FLOAT_API | |
} | |
HEADERS += $$OPUS_HEADER | |
SOURCES += $$CELT_SOURCES $$SILK_SOURCES $$OPUS_SOURCES | |
INCLUDEPATH += $$OPUS_INCLUDE_DIR | |
INCLUDEPATH += \ | |
$$PWD/opus/silk \ | |
$$PWD/opus/silk/float \ | |
$$PWD/opus/silk/fixed \ | |
$$PWD/opus/celt \ | |
$$PWD/opus/src \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CMakeLists.txt
fork from https://github.com/eppixx/opus-cmake/blob/master/CMakeLists.txt