2016-10-12 18:37:38 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
Import('env_modules')
|
|
|
|
|
|
|
|
env_speex = env_modules.Clone()
|
|
|
|
|
|
|
|
# Thirdparty source files
|
2016-11-02 23:23:55 +00:00
|
|
|
if (env['builtin_speex'] != 'no'):
|
2016-11-02 21:26:55 +00:00
|
|
|
thirdparty_dir = "#thirdparty/speex/"
|
2016-10-12 18:37:38 +00:00
|
|
|
|
2016-11-02 21:26:55 +00:00
|
|
|
thirdparty_sources = [
|
|
|
|
"bits.c",
|
|
|
|
"buffer.c",
|
|
|
|
"cb_search.c",
|
|
|
|
"exc_10_16_table.c",
|
|
|
|
"exc_10_32_table.c",
|
|
|
|
"exc_20_32_table.c",
|
|
|
|
"exc_5_256_table.c",
|
|
|
|
"exc_5_64_table.c",
|
|
|
|
"exc_8_128_table.c",
|
|
|
|
"fftwrap.c",
|
|
|
|
"filterbank.c",
|
|
|
|
"filters.c",
|
|
|
|
"gain_table.c",
|
|
|
|
"gain_table_lbr.c",
|
|
|
|
"hexc_10_32_table.c",
|
|
|
|
"hexc_table.c",
|
|
|
|
"high_lsp_tables.c",
|
|
|
|
"jitter.c",
|
|
|
|
"kiss_fft.c",
|
|
|
|
"kiss_fftr.c",
|
|
|
|
"lpc.c",
|
|
|
|
"lsp.c",
|
|
|
|
"lsp_tables_nb.c",
|
|
|
|
"ltp.c",
|
|
|
|
"mdf.c",
|
|
|
|
"modes.c",
|
|
|
|
"modes_wb.c",
|
|
|
|
"nb_celp.c",
|
|
|
|
"preprocess.c",
|
|
|
|
"quant_lsp.c",
|
|
|
|
"resample.c",
|
|
|
|
"sb_celp.c",
|
|
|
|
"scal.c",
|
|
|
|
"smallft.c",
|
|
|
|
"speex.c",
|
|
|
|
"speex_callbacks.c",
|
|
|
|
"speex_header.c",
|
|
|
|
"stereo.c",
|
|
|
|
"vbr.c",
|
|
|
|
"vq.c",
|
|
|
|
"window.c",
|
|
|
|
]
|
2016-10-12 18:37:38 +00:00
|
|
|
|
2016-11-02 21:26:55 +00:00
|
|
|
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
2016-10-12 18:37:38 +00:00
|
|
|
|
2016-11-02 21:26:55 +00:00
|
|
|
env_speex.add_source_files(env.modules_sources, thirdparty_sources)
|
2016-11-02 21:28:28 +00:00
|
|
|
env_speex.Append(CPPPATH=[thirdparty_dir])
|
2016-10-12 18:37:38 +00:00
|
|
|
|
2016-11-02 21:26:55 +00:00
|
|
|
# also requires libogg
|
2016-11-02 23:23:55 +00:00
|
|
|
if (env['builtin_libogg'] != 'no'):
|
2016-11-02 21:28:28 +00:00
|
|
|
env_speex.Append(CPPPATH=["#thirdparty/libogg"])
|
2016-10-12 18:37:38 +00:00
|
|
|
|
|
|
|
# Module files
|
|
|
|
env_speex.add_source_files(env.modules_sources, "*.cpp")
|