Debian Codegraph @

external/opusfile/meson.build

raw
1 # meson.build of the external library "opusfile"
2 # David Weenink, 4 January 2024
3
4
5 sources = '''
6 opusfile.cpp opusfile_info.cpp opusfile_internal.cpp
7 opusfile_stream.cpp'''.split()
8
9 # to avoid recursion into the subdirectories opus, opus/celt, opus/silk
10 # and opus/silk/float where we could use the "files('f1.c', 'f2.c' ...'fn.c')"
11 # in which we have to single quote each individual file.
12 opus_raw_sources ='''
13 analysis.c mlp.c opus.c opus_decoder.c
14 opus_multistream.c mapping_matrix.c mlp_data.c
15 opus_multistream_decoder.c opus_projection_decoder.c
16 repacketizer.c'''.split()
17
18 opus_sources = []
19 foreach file : opus_raw_sources
20 opus_sources += 'opus' / file
21 endforeach
22
23 opus_celt_raw_sources = '''
24 bands.c celt.c celt_encoder.c celt_decoder.c
25 cwrs.c entcode.c entdec.c entenc.c kiss_fft.c
26 laplace.c mathops.c mdct.c modes.c pitch.c
27 celt_lpc.c quant_bands.c rate.c vq.c'''.split()
28
29 opus_celt_sources = []
30 foreach file : opus_celt_raw_sources
31 opus_celt_sources += 'opus/celt/' / file
32 endforeach
33
34
35 opus_silk_raw_sources = '''
36 CNG.c code_signs.c init_decoder.c decode_core.c
37 decode_frame.c decode_parameters.c decode_indices.c
38 decode_pulses.c decoder_set_fs.c dec_API.c
39 enc_API.c encode_indices.c encode_pulses.c
40 gain_quant.c interpolate.c LP_variable_cutoff.c
41 NLSF_decode.c NSQ.c NSQ_del_dec.c
42 PLC.c shell_coder.c tables_gain.c
43 tables_LTP.c tables_NLSF_CB_NB_MB.c tables_NLSF_CB_WB.c
44 tables_other.c tables_pitch_lag.c tables_pulses_per_block.c
45 VAD.c control_audio_bandwidth.c quant_LTP_gains.c
46 VQ_WMat_EC.c HP_variable_cutoff.c NLSF_encode.c
47 NLSF_VQ.c NLSF_unpack.c NLSF_del_dec_quant.c
48 process_NLSFs.c stereo_LR_to_MS.c stereo_MS_to_LR.c
49 check_control_input.c control_SNR.c init_encoder.c
50 control_codec.c A2NLSF.c ana_filt_bank_1.c
51 biquad_alt.c bwexpander_32.c bwexpander.c
52 debug.c decode_pitch.c inner_prod_aligned.c
53 lin2log.c log2lin.c LPC_analysis_filter.c
54 LPC_inv_pred_gain.c table_LSF_cos.c NLSF2A.c
55 NLSF_stabilize.c NLSF_VQ_weights_laroia.c pitch_est_tables.c
56 resampler.c resampler_down2_3.c resampler_down2.c
57 resampler_private_AR2.c resampler_private_down_FIR.c resampler_private_IIR_FIR.c resampler_private_up2_HQ.c
58 resampler_rom.c sigm_Q15.c sort.c sum_sqr_shift.c
59 stereo_decode_pred.c stereo_encode_pred.c
60 stereo_find_predictor.c stereo_quant_pred.c LPC_fit.c'''.split()
61
62 opus_silk_sources = []
63 foreach file : opus_silk_raw_sources
64 opus_silk_sources += 'opus/silk/' / file
65 endforeach
66
67 opus_silk_float_raw_sources = '''
68 apply_sine_window_FLP.c autocorrelation_FLP.c
69 burg_modified_FLP.c bwexpander_FLP.c corrMatrix_FLP.c
70 encode_frame_FLP.c energy_FLP.c find_LPC_FLP.c
71 find_LTP_FLP.c find_pitch_lags_FLP.c find_pred_coefs_FLP.c
72 inner_product_FLP.c k2a_FLP.c LPC_analysis_filter_FLP.c
73 LPC_inv_pred_gain_FLP.c LTP_analysis_filter_FLP.c
74 LTP_scale_ctrl_FLP.c noise_shape_analysis_FLP.c
75 pitch_analysis_core_FLP.c process_gains_FLP.c
76 regularize_correlations_FLP.c residual_energy_FLP.c
77 scale_copy_vector_FLP.c scale_vector_FLP.c schur_FLP.c
78 sort_FLP.c warped_autocorrelation_FLP.c wrappers_FLP.c'''.split()
79
80 opus_silk_float_sources = []
81 foreach file : opus_silk_float_raw_sources
82 opus_silk_float_sources += 'opus/silk/float/' / file
83 endforeach
84
85 opus_inc = include_directories ('opus', 'opus/celt', 'opus/silk', 'opus/silk/float')
86
87 libopusfile = static_library (
88 'opusfile',
89 sources : sources + opus_sources + opus_celt_sources + opus_silk_sources + opus_silk_float_sources,
90 include_directories : [melder_inc, vorbis_inc, opus_inc]
91 )
92
93 libopusfile_dep = declare_dependency (
94 include_directories : include_directories('.'), link_with: libopusfile
95 )
96