e259bf8bbb
Done with `autopep8 --select=E2,W2`, fixes: - E201 - Remove extraneous whitespace. - E202 - Remove extraneous whitespace. - E203 - Remove extraneous whitespace. - E211 - Remove extraneous whitespace. - E221 - Fix extraneous whitespace around keywords. - E222 - Fix extraneous whitespace around keywords. - E223 - Fix extraneous whitespace around keywords. - E224 - Remove extraneous whitespace around operator. - E225 - Fix missing whitespace around operator. - E226 - Fix missing whitespace around operator. - E227 - Fix missing whitespace around operator. - E228 - Fix missing whitespace around operator. - E231 - Add missing whitespace. - E231 - Fix various deprecated code (via lib2to3). - E241 - Fix extraneous whitespace around keywords. - E242 - Remove extraneous whitespace around operator. - E251 - Remove whitespace around parameter '=' sign. - E261 - Fix spacing after comment hash. - E262 - Fix spacing after comment hash. - E265 - Format block comments. - E271 - Fix extraneous whitespace around keywords. - E272 - Fix extraneous whitespace around keywords. - E273 - Fix extraneous whitespace around keywords. - E274 - Fix extraneous whitespace around keywords. - W291 - Remove trailing whitespace. - W293 - Remove trailing whitespace.
66 lines
1.5 KiB
Python
66 lines
1.5 KiB
Python
#!/usr/bin/env python
|
|
|
|
Import('env')
|
|
Import('env_modules')
|
|
|
|
env_speex = env_modules.Clone()
|
|
|
|
# Thirdparty source files
|
|
if (env["speex"] != "system"): # builtin
|
|
thirdparty_dir = "#thirdparty/speex/"
|
|
|
|
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",
|
|
]
|
|
|
|
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
|
|
|
env_speex.add_source_files(env.modules_sources, thirdparty_sources)
|
|
env_speex.Append(CPPPATH=[thirdparty_dir])
|
|
|
|
# also requires libogg
|
|
if (env["libogg"] != "system"): # builtin
|
|
env_speex.Append(CPPPATH=["#thirdparty/libogg"])
|
|
|
|
# Module files
|
|
env_speex.add_source_files(env.modules_sources, "*.cpp")
|