master hovercats/oakiss / pkg / opus / gen.lua
  1cflags{
  2	'-Wall', '-Wpedantic',
  3	'-I $srcdir/include',
  4	'-I $srcdir/celt',
  5	'-I $srcdir/silk',
  6	'-I $srcdir/silk/float',
  7	'-include $dir/config.h',
  8}
  9
 10pkg.hdrs = copy('$outdir/include', '$srcdir/include', {
 11	'opus.h',
 12	'opus_defines.h',
 13	'opus_multistream.h',
 14	'opus_types.h',
 15})
 16
 17lib('libopus.a', [[
 18	src/(
 19		opus.c
 20		opus_decoder.c
 21		opus_encoder.c
 22		extensions.c
 23		opus_multistream.c
 24		opus_multistream_encoder.c
 25		opus_multistream_decoder.c
 26		repacketizer.c
 27		opus_projection_encoder.c
 28		opus_projection_decoder.c
 29		mapping_matrix.c
 30
 31		analysis.c
 32		mlp.c
 33		mlp_data.c
 34	)
 35	celt/(
 36		bands.c
 37		celt.c
 38		celt_encoder.c
 39		celt_decoder.c
 40		cwrs.c
 41		entcode.c
 42		entdec.c
 43		entenc.c
 44		kiss_fft.c
 45		laplace.c
 46		mathops.c
 47		mdct.c
 48		modes.c
 49		pitch.c
 50		celt_lpc.c
 51		quant_bands.c
 52		rate.c
 53		vq.c
 54	)
 55	silk/(
 56		CNG.c
 57		code_signs.c
 58		init_decoder.c
 59		decode_core.c
 60		decode_frame.c
 61		decode_parameters.c
 62		decode_indices.c
 63		decode_pulses.c
 64		decoder_set_fs.c
 65		dec_API.c
 66		enc_API.c
 67		encode_indices.c
 68		encode_pulses.c
 69		gain_quant.c
 70		interpolate.c
 71		LP_variable_cutoff.c
 72		NLSF_decode.c
 73		NSQ.c
 74		NSQ_del_dec.c
 75		PLC.c
 76		shell_coder.c
 77		tables_gain.c
 78		tables_LTP.c
 79		tables_NLSF_CB_NB_MB.c
 80		tables_NLSF_CB_WB.c
 81		tables_other.c
 82		tables_pitch_lag.c
 83		tables_pulses_per_block.c
 84		VAD.c
 85		control_audio_bandwidth.c
 86		quant_LTP_gains.c
 87		VQ_WMat_EC.c
 88		HP_variable_cutoff.c
 89		NLSF_encode.c
 90		NLSF_VQ.c
 91		NLSF_unpack.c
 92		NLSF_del_dec_quant.c
 93		process_NLSFs.c
 94		stereo_LR_to_MS.c
 95		stereo_MS_to_LR.c
 96		check_control_input.c
 97		control_SNR.c
 98		init_encoder.c
 99		control_codec.c
100		A2NLSF.c
101		ana_filt_bank_1.c
102		biquad_alt.c
103		bwexpander_32.c
104		bwexpander.c
105		debug.c
106		decode_pitch.c
107		inner_prod_aligned.c
108		lin2log.c
109		log2lin.c
110		LPC_analysis_filter.c
111		LPC_inv_pred_gain.c
112		table_LSF_cos.c
113		NLSF2A.c
114		NLSF_stabilize.c
115		NLSF_VQ_weights_laroia.c
116		pitch_est_tables.c
117		resampler.c
118		resampler_down2_3.c
119		resampler_down2.c
120		resampler_private_AR2.c
121		resampler_private_down_FIR.c
122		resampler_private_IIR_FIR.c
123		resampler_private_up2_HQ.c
124		resampler_rom.c
125		sigm_Q15.c
126		sort.c
127		sum_sqr_shift.c
128		stereo_decode_pred.c
129		stereo_encode_pred.c
130		stereo_find_predictor.c
131		stereo_quant_pred.c
132		LPC_fit.c
133		float/(
134			apply_sine_window_FLP.c
135			corrMatrix_FLP.c
136			encode_frame_FLP.c
137			find_LPC_FLP.c
138			find_LTP_FLP.c
139			find_pitch_lags_FLP.c
140			find_pred_coefs_FLP.c
141			LPC_analysis_filter_FLP.c
142			LTP_analysis_filter_FLP.c
143			LTP_scale_ctrl_FLP.c
144			noise_shape_analysis_FLP.c
145			process_gains_FLP.c
146			regularize_correlations_FLP.c
147			residual_energy_FLP.c
148			warped_autocorrelation_FLP.c
149			wrappers_FLP.c
150			autocorrelation_FLP.c
151			burg_modified_FLP.c
152			bwexpander_FLP.c
153			energy_FLP.c
154			inner_product_FLP.c
155			k2a_FLP.c
156			LPC_inv_pred_gain_FLP.c
157			pitch_analysis_core_FLP.c
158			scale_copy_vector_FLP.c
159			scale_vector_FLP.c
160			schur_FLP.c
161			sort_FLP.c
162		)
163	)
164]])
165
166fetch 'curl'