style: Start applying PEP8 to Python files, indentation issues
Done with `autopep8 --select=E1`, fixes: - E101 - Reindent all lines. - E112 - Fix under-indented comments. - E113 - Fix over-indented comments. - E115 - Fix under-indented comments. - E116 - Fix over-indented comments. - E121 - Fix a badly indented line. - E122 - Fix a badly indented line. - E123 - Fix a badly indented line. - E124 - Fix a badly indented line. - E125 - Fix indentation undistinguish from the next logical line. - E126 - Fix a badly indented line. - E127 - Fix a badly indented line. - E128 - Fix a badly indented line. - E129 - Fix a badly indented line.
This commit is contained in:
@ -7,16 +7,16 @@ env_modules = env.Clone()
|
||||
Export('env_modules')
|
||||
|
||||
env.modules_sources=[
|
||||
"register_module_types.cpp",
|
||||
"register_module_types.cpp",
|
||||
]
|
||||
#env.add_source_files(env.modules_sources,"*.cpp")
|
||||
Export('env')
|
||||
|
||||
for x in env.module_list:
|
||||
if (x in env.disabled_modules):
|
||||
continue
|
||||
env_modules.Append(CPPFLAGS=["-DMODULE_"+x.upper()+"_ENABLED"])
|
||||
SConscript(x+"/SCsub")
|
||||
if (x in env.disabled_modules):
|
||||
continue
|
||||
env_modules.Append(CPPFLAGS=["-DMODULE_"+x.upper()+"_ENABLED"])
|
||||
SConscript(x+"/SCsub")
|
||||
|
||||
lib = env_modules.Library("modules",env.modules_sources)
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -8,21 +8,21 @@ Import('env_modules')
|
||||
env_enet = env_modules.Clone()
|
||||
|
||||
if (env["enet"] != "system"): # builtin
|
||||
thirdparty_dir = "#thirdparty/enet/"
|
||||
thirdparty_sources = [
|
||||
"callbacks.c",
|
||||
"compress.c",
|
||||
"host.c",
|
||||
"list.c",
|
||||
"packet.c",
|
||||
"peer.c",
|
||||
"protocol.c",
|
||||
"unix.c",
|
||||
"win32.c",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
thirdparty_dir = "#thirdparty/enet/"
|
||||
thirdparty_sources = [
|
||||
"callbacks.c",
|
||||
"compress.c",
|
||||
"host.c",
|
||||
"list.c",
|
||||
"packet.c",
|
||||
"peer.c",
|
||||
"protocol.c",
|
||||
"unix.c",
|
||||
"win32.c",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
env_enet.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_enet.Append(CPPPATH = [thirdparty_dir])
|
||||
env_enet.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_enet.Append(CPPPATH = [thirdparty_dir])
|
||||
|
||||
env_enet.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -9,7 +9,7 @@ env_etc1 = env_modules.Clone()
|
||||
# Not unbundled so far since not widespread as shared library
|
||||
thirdparty_dir = "#thirdparty/rg-etc1/"
|
||||
thirdparty_sources = [
|
||||
"rg_etc1.cpp",
|
||||
"rg_etc1.cpp",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -6,65 +6,65 @@ Import('env')
|
||||
|
||||
# Thirdparty source files
|
||||
if (env["freetype"] != "system"): # builtin
|
||||
thirdparty_dir = "#thirdparty/freetype/"
|
||||
thirdparty_sources = [
|
||||
"src/autofit/autofit.c",
|
||||
"src/base/ftapi.c",
|
||||
"src/base/ftbase.c",
|
||||
"src/base/ftbbox.c",
|
||||
"src/base/ftbdf.c",
|
||||
"src/base/ftbitmap.c",
|
||||
"src/base/ftcid.c",
|
||||
"src/base/ftdebug.c",
|
||||
"src/base/ftfntfmt.c",
|
||||
"src/base/ftfstype.c",
|
||||
"src/base/ftgasp.c",
|
||||
"src/base/ftglyph.c",
|
||||
"src/base/ftgxval.c",
|
||||
"src/base/ftinit.c",
|
||||
"src/base/ftlcdfil.c",
|
||||
"src/base/ftmm.c",
|
||||
"src/base/ftotval.c",
|
||||
"src/base/ftpatent.c",
|
||||
"src/base/ftpfr.c",
|
||||
"src/base/ftpic.c",
|
||||
"src/base/ftstroke.c",
|
||||
"src/base/ftsynth.c",
|
||||
"src/base/ftsystem.c",
|
||||
"src/base/fttype1.c",
|
||||
"src/base/ftwinfnt.c",
|
||||
"src/bdf/bdf.c",
|
||||
"src/cache/ftcache.c",
|
||||
"src/cff/cff.c",
|
||||
"src/cid/type1cid.c",
|
||||
"src/gxvalid/gxvalid.c",
|
||||
"src/otvalid/otvalid.c",
|
||||
"src/pcf/pcf.c",
|
||||
"src/pfr/pfr.c",
|
||||
"src/psaux/psaux.c",
|
||||
"src/pshinter/pshinter.c",
|
||||
"src/psnames/psnames.c",
|
||||
"src/raster/raster.c",
|
||||
"src/sfnt/sfnt.c",
|
||||
"src/smooth/smooth.c",
|
||||
"src/truetype/truetype.c",
|
||||
"src/type1/type1.c",
|
||||
"src/type42/type42.c",
|
||||
"src/winfonts/winfnt.c",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
thirdparty_dir = "#thirdparty/freetype/"
|
||||
thirdparty_sources = [
|
||||
"src/autofit/autofit.c",
|
||||
"src/base/ftapi.c",
|
||||
"src/base/ftbase.c",
|
||||
"src/base/ftbbox.c",
|
||||
"src/base/ftbdf.c",
|
||||
"src/base/ftbitmap.c",
|
||||
"src/base/ftcid.c",
|
||||
"src/base/ftdebug.c",
|
||||
"src/base/ftfntfmt.c",
|
||||
"src/base/ftfstype.c",
|
||||
"src/base/ftgasp.c",
|
||||
"src/base/ftglyph.c",
|
||||
"src/base/ftgxval.c",
|
||||
"src/base/ftinit.c",
|
||||
"src/base/ftlcdfil.c",
|
||||
"src/base/ftmm.c",
|
||||
"src/base/ftotval.c",
|
||||
"src/base/ftpatent.c",
|
||||
"src/base/ftpfr.c",
|
||||
"src/base/ftpic.c",
|
||||
"src/base/ftstroke.c",
|
||||
"src/base/ftsynth.c",
|
||||
"src/base/ftsystem.c",
|
||||
"src/base/fttype1.c",
|
||||
"src/base/ftwinfnt.c",
|
||||
"src/bdf/bdf.c",
|
||||
"src/cache/ftcache.c",
|
||||
"src/cff/cff.c",
|
||||
"src/cid/type1cid.c",
|
||||
"src/gxvalid/gxvalid.c",
|
||||
"src/otvalid/otvalid.c",
|
||||
"src/pcf/pcf.c",
|
||||
"src/pfr/pfr.c",
|
||||
"src/psaux/psaux.c",
|
||||
"src/pshinter/pshinter.c",
|
||||
"src/psnames/psnames.c",
|
||||
"src/raster/raster.c",
|
||||
"src/sfnt/sfnt.c",
|
||||
"src/smooth/smooth.c",
|
||||
"src/truetype/truetype.c",
|
||||
"src/type1/type1.c",
|
||||
"src/type42/type42.c",
|
||||
"src/winfonts/winfnt.c",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
# Include header for WinRT to fix build issues
|
||||
if "platform" in env and env["platform"] == "winrt":
|
||||
env.Append(CCFLAGS = ['/FI', '"modules/freetype/winrtdef.h"'])
|
||||
# Include header for WinRT to fix build issues
|
||||
if "platform" in env and env["platform"] == "winrt":
|
||||
env.Append(CCFLAGS = ['/FI', '"modules/freetype/winrtdef.h"'])
|
||||
|
||||
env.Append(CPPPATH = [thirdparty_dir, thirdparty_dir + "/include"])
|
||||
env.Append(CPPPATH = [thirdparty_dir, thirdparty_dir + "/include"])
|
||||
|
||||
# also requires libpng headers
|
||||
if (env["libpng"] != "system"): # builtin
|
||||
env.Append(CPPPATH = ["#thirdparty/libpng"])
|
||||
# also requires libpng headers
|
||||
if (env["libpng"] != "system"): # builtin
|
||||
env.Append(CPPPATH = ["#thirdparty/libpng"])
|
||||
|
||||
""" FIXME: Remove this commented code if Windows can handle the monolithic lib
|
||||
""" FIXME: Remove this commented code if Windows can handle the monolithic lib
|
||||
# fix for Windows' shell miserably failing on long lines, split in two libraries
|
||||
half1 = []
|
||||
half2 = []
|
||||
@ -80,8 +80,8 @@ if (env["freetype"] != "system"): # builtin
|
||||
env.Append(LIBS = [lib])
|
||||
"""
|
||||
|
||||
lib = env.Library("freetype_builtin", thirdparty_sources)
|
||||
env.Append(LIBS = [lib])
|
||||
lib = env.Library("freetype_builtin", thirdparty_sources)
|
||||
env.Append(LIBS = [lib])
|
||||
|
||||
# Godot source files
|
||||
env.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
|
||||
|
||||
return True
|
||||
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
|
||||
|
||||
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ env_jpg = env_modules.Clone()
|
||||
# Not unbundled for now as they are not commonly available as shared library
|
||||
thirdparty_dir = "#thirdparty/jpeg-compressor/"
|
||||
thirdparty_sources = [
|
||||
"jpgd.cpp",
|
||||
"jpgd.cpp",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -7,22 +7,22 @@ env_mpc = env_modules.Clone()
|
||||
|
||||
# Thirdparty source files
|
||||
if (env["libmpcdec"] != "system"): # builtin
|
||||
thirdparty_dir = "#thirdparty/libmpcdec/"
|
||||
thirdparty_sources = [
|
||||
"huffman.c",
|
||||
"mpc_bits_reader.c",
|
||||
"mpc_decoder.c",
|
||||
"mpc_demux.c",
|
||||
"mpc_reader.c",
|
||||
"requant.c",
|
||||
"streaminfo.c",
|
||||
"synth_filter.c",
|
||||
]
|
||||
thirdparty_dir = "#thirdparty/libmpcdec/"
|
||||
thirdparty_sources = [
|
||||
"huffman.c",
|
||||
"mpc_bits_reader.c",
|
||||
"mpc_decoder.c",
|
||||
"mpc_demux.c",
|
||||
"mpc_reader.c",
|
||||
"requant.c",
|
||||
"streaminfo.c",
|
||||
"synth_filter.c",
|
||||
]
|
||||
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
env_mpc.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_mpc.Append(CPPPATH = [thirdparty_dir])
|
||||
env_mpc.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_mpc.Append(CPPPATH = [thirdparty_dir])
|
||||
|
||||
# Godot source files
|
||||
env_mpc.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -7,15 +7,15 @@ env_ogg = env_modules.Clone()
|
||||
|
||||
# Thirdparty source files
|
||||
if (env["libogg"] != "system"): # builtin
|
||||
thirdparty_dir = "#thirdparty/libogg/"
|
||||
thirdparty_sources = [
|
||||
"bitwise.c",
|
||||
"framing.c",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
thirdparty_dir = "#thirdparty/libogg/"
|
||||
thirdparty_sources = [
|
||||
"bitwise.c",
|
||||
"framing.c",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
env_ogg.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_ogg.Append(CPPPATH = [thirdparty_dir])
|
||||
env_ogg.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_ogg.Append(CPPPATH = [thirdparty_dir])
|
||||
|
||||
# Godot source files
|
||||
env_ogg.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -7,209 +7,209 @@ env_opus = env_modules.Clone()
|
||||
|
||||
# Thirdparty source files
|
||||
if (env["opus"] != "system"): # builtin
|
||||
thirdparty_dir = "#thirdparty/opus/"
|
||||
thirdparty_dir = "#thirdparty/opus/"
|
||||
|
||||
thirdparty_sources = [
|
||||
"silk/tables_other.c",
|
||||
"silk/sum_sqr_shift.c",
|
||||
"silk/PLC.c",
|
||||
"silk/dec_API.c",
|
||||
"silk/decode_pulses.c",
|
||||
"silk/inner_prod_aligned.c",
|
||||
"silk/init_encoder.c",
|
||||
"silk/interpolate.c",
|
||||
"silk/stereo_encode_pred.c",
|
||||
"silk/decode_frame.c",
|
||||
"silk/NLSF_del_dec_quant.c",
|
||||
"silk/VAD.c",
|
||||
"silk/resampler_private_AR2.c",
|
||||
"silk/NLSF_unpack.c",
|
||||
"silk/resampler_down2.c",
|
||||
"silk/sort.c",
|
||||
"silk/resampler_private_IIR_FIR.c",
|
||||
"silk/resampler_down2_3.c",
|
||||
"silk/resampler_private_up2_HQ.c",
|
||||
"silk/tables_gain.c",
|
||||
"silk/stereo_find_predictor.c",
|
||||
"silk/stereo_quant_pred.c",
|
||||
"silk/NLSF_stabilize.c",
|
||||
"silk/ana_filt_bank_1.c",
|
||||
"silk/check_control_input.c",
|
||||
"silk/bwexpander.c",
|
||||
"silk/A2NLSF.c",
|
||||
"silk/LPC_inv_pred_gain.c",
|
||||
"silk/log2lin.c",
|
||||
"silk/process_NLSFs.c",
|
||||
"silk/sigm_Q15.c",
|
||||
"silk/VQ_WMat_EC.c",
|
||||
"silk/quant_LTP_gains.c",
|
||||
"silk/resampler_private_down_FIR.c",
|
||||
"silk/NLSF_decode.c",
|
||||
"silk/control_codec.c",
|
||||
"silk/NLSF_VQ_weights_laroia.c",
|
||||
"silk/decode_pitch.c",
|
||||
"silk/stereo_decode_pred.c",
|
||||
"silk/tables_pulses_per_block.c",
|
||||
"silk/init_decoder.c",
|
||||
"silk/table_LSF_cos.c",
|
||||
"silk/decode_core.c",
|
||||
"silk/code_signs.c",
|
||||
"silk/enc_API.c",
|
||||
"silk/tables_LTP.c",
|
||||
"silk/pitch_est_tables.c",
|
||||
"silk/biquad_alt.c",
|
||||
"silk/encode_indices.c",
|
||||
"silk/tables_NLSF_CB_WB.c",
|
||||
"silk/debug.c",
|
||||
"silk/decode_parameters.c",
|
||||
"silk/tables_pitch_lag.c",
|
||||
"silk/NLSF2A.c",
|
||||
"silk/resampler.c",
|
||||
"silk/decode_indices.c",
|
||||
"silk/NLSF_VQ.c",
|
||||
"silk/bwexpander_32.c",
|
||||
"silk/tables_NLSF_CB_NB_MB.c",
|
||||
"silk/encode_pulses.c",
|
||||
"silk/NSQ_del_dec.c",
|
||||
"silk/control_SNR.c",
|
||||
"silk/shell_coder.c",
|
||||
"silk/NLSF_encode.c",
|
||||
"silk/stereo_MS_to_LR.c",
|
||||
"silk/stereo_LR_to_MS.c",
|
||||
"silk/HP_variable_cutoff.c",
|
||||
"silk/LPC_analysis_filter.c",
|
||||
"silk/CNG.c",
|
||||
"silk/decoder_set_fs.c",
|
||||
"silk/resampler_rom.c",
|
||||
"silk/control_audio_bandwidth.c",
|
||||
"silk/lin2log.c",
|
||||
"silk/LP_variable_cutoff.c",
|
||||
"silk/NSQ.c",
|
||||
"silk/gain_quant.c",
|
||||
"celt/laplace.c",
|
||||
"celt/vq.c",
|
||||
"celt/quant_bands.c",
|
||||
"celt/kiss_fft.c",
|
||||
"celt/entcode.c",
|
||||
"celt/entenc.c",
|
||||
"celt/celt_lpc.c",
|
||||
"celt/pitch.c",
|
||||
"celt/rate.c",
|
||||
"celt/mathops.c",
|
||||
#"celt/arm/armcpu.c",
|
||||
#"celt/arm/celt_neon_intr.c",
|
||||
#"celt/arm/celt_ne10_mdct.c",
|
||||
#"celt/arm/celt_ne10_fft.c",
|
||||
#"celt/arm/arm_celt_map.c",
|
||||
"celt/celt_encoder.c",
|
||||
"celt/celt.c",
|
||||
"celt/bands.c",
|
||||
"celt/cwrs.c",
|
||||
"celt/entdec.c",
|
||||
"celt/celt_decoder.c",
|
||||
"celt/mdct.c",
|
||||
"celt/modes.c",
|
||||
"repacketizer.c",
|
||||
"mlp_data.c",
|
||||
"opus_multistream.c",
|
||||
"opusfile.c",
|
||||
"opus_encoder.c",
|
||||
"analysis.c",
|
||||
"mlp.c",
|
||||
"info.c",
|
||||
"stream.c",
|
||||
"opus_decoder.c",
|
||||
"internal.c",
|
||||
"wincerts.c",
|
||||
"opus.c",
|
||||
"opus_multistream_encoder.c",
|
||||
"http.c",
|
||||
"opus_multistream_decoder.c"
|
||||
]
|
||||
thirdparty_sources = [
|
||||
"silk/tables_other.c",
|
||||
"silk/sum_sqr_shift.c",
|
||||
"silk/PLC.c",
|
||||
"silk/dec_API.c",
|
||||
"silk/decode_pulses.c",
|
||||
"silk/inner_prod_aligned.c",
|
||||
"silk/init_encoder.c",
|
||||
"silk/interpolate.c",
|
||||
"silk/stereo_encode_pred.c",
|
||||
"silk/decode_frame.c",
|
||||
"silk/NLSF_del_dec_quant.c",
|
||||
"silk/VAD.c",
|
||||
"silk/resampler_private_AR2.c",
|
||||
"silk/NLSF_unpack.c",
|
||||
"silk/resampler_down2.c",
|
||||
"silk/sort.c",
|
||||
"silk/resampler_private_IIR_FIR.c",
|
||||
"silk/resampler_down2_3.c",
|
||||
"silk/resampler_private_up2_HQ.c",
|
||||
"silk/tables_gain.c",
|
||||
"silk/stereo_find_predictor.c",
|
||||
"silk/stereo_quant_pred.c",
|
||||
"silk/NLSF_stabilize.c",
|
||||
"silk/ana_filt_bank_1.c",
|
||||
"silk/check_control_input.c",
|
||||
"silk/bwexpander.c",
|
||||
"silk/A2NLSF.c",
|
||||
"silk/LPC_inv_pred_gain.c",
|
||||
"silk/log2lin.c",
|
||||
"silk/process_NLSFs.c",
|
||||
"silk/sigm_Q15.c",
|
||||
"silk/VQ_WMat_EC.c",
|
||||
"silk/quant_LTP_gains.c",
|
||||
"silk/resampler_private_down_FIR.c",
|
||||
"silk/NLSF_decode.c",
|
||||
"silk/control_codec.c",
|
||||
"silk/NLSF_VQ_weights_laroia.c",
|
||||
"silk/decode_pitch.c",
|
||||
"silk/stereo_decode_pred.c",
|
||||
"silk/tables_pulses_per_block.c",
|
||||
"silk/init_decoder.c",
|
||||
"silk/table_LSF_cos.c",
|
||||
"silk/decode_core.c",
|
||||
"silk/code_signs.c",
|
||||
"silk/enc_API.c",
|
||||
"silk/tables_LTP.c",
|
||||
"silk/pitch_est_tables.c",
|
||||
"silk/biquad_alt.c",
|
||||
"silk/encode_indices.c",
|
||||
"silk/tables_NLSF_CB_WB.c",
|
||||
"silk/debug.c",
|
||||
"silk/decode_parameters.c",
|
||||
"silk/tables_pitch_lag.c",
|
||||
"silk/NLSF2A.c",
|
||||
"silk/resampler.c",
|
||||
"silk/decode_indices.c",
|
||||
"silk/NLSF_VQ.c",
|
||||
"silk/bwexpander_32.c",
|
||||
"silk/tables_NLSF_CB_NB_MB.c",
|
||||
"silk/encode_pulses.c",
|
||||
"silk/NSQ_del_dec.c",
|
||||
"silk/control_SNR.c",
|
||||
"silk/shell_coder.c",
|
||||
"silk/NLSF_encode.c",
|
||||
"silk/stereo_MS_to_LR.c",
|
||||
"silk/stereo_LR_to_MS.c",
|
||||
"silk/HP_variable_cutoff.c",
|
||||
"silk/LPC_analysis_filter.c",
|
||||
"silk/CNG.c",
|
||||
"silk/decoder_set_fs.c",
|
||||
"silk/resampler_rom.c",
|
||||
"silk/control_audio_bandwidth.c",
|
||||
"silk/lin2log.c",
|
||||
"silk/LP_variable_cutoff.c",
|
||||
"silk/NSQ.c",
|
||||
"silk/gain_quant.c",
|
||||
"celt/laplace.c",
|
||||
"celt/vq.c",
|
||||
"celt/quant_bands.c",
|
||||
"celt/kiss_fft.c",
|
||||
"celt/entcode.c",
|
||||
"celt/entenc.c",
|
||||
"celt/celt_lpc.c",
|
||||
"celt/pitch.c",
|
||||
"celt/rate.c",
|
||||
"celt/mathops.c",
|
||||
#"celt/arm/armcpu.c",
|
||||
#"celt/arm/celt_neon_intr.c",
|
||||
#"celt/arm/celt_ne10_mdct.c",
|
||||
#"celt/arm/celt_ne10_fft.c",
|
||||
#"celt/arm/arm_celt_map.c",
|
||||
"celt/celt_encoder.c",
|
||||
"celt/celt.c",
|
||||
"celt/bands.c",
|
||||
"celt/cwrs.c",
|
||||
"celt/entdec.c",
|
||||
"celt/celt_decoder.c",
|
||||
"celt/mdct.c",
|
||||
"celt/modes.c",
|
||||
"repacketizer.c",
|
||||
"mlp_data.c",
|
||||
"opus_multistream.c",
|
||||
"opusfile.c",
|
||||
"opus_encoder.c",
|
||||
"analysis.c",
|
||||
"mlp.c",
|
||||
"info.c",
|
||||
"stream.c",
|
||||
"opus_decoder.c",
|
||||
"internal.c",
|
||||
"wincerts.c",
|
||||
"opus.c",
|
||||
"opus_multistream_encoder.c",
|
||||
"http.c",
|
||||
"opus_multistream_decoder.c"
|
||||
]
|
||||
|
||||
opus_sources_silk = []
|
||||
opus_sources_silk = []
|
||||
|
||||
if("opus_fixed_point" in env and env.opus_fixed_point=="yes"):
|
||||
env_opus.Append(CFLAGS = ["-DFIXED_POINT"])
|
||||
opus_sources_silk = [
|
||||
"silk/fixed/schur64_FIX.c",
|
||||
"silk/fixed/residual_energy16_FIX.c",
|
||||
"silk/fixed/encode_frame_FIX.c",
|
||||
"silk/fixed/regularize_correlations_FIX.c",
|
||||
"silk/fixed/apply_sine_window_FIX.c",
|
||||
"silk/fixed/solve_LS_FIX.c",
|
||||
"silk/fixed/schur_FIX.c",
|
||||
"silk/fixed/pitch_analysis_core_FIX.c",
|
||||
"silk/fixed/noise_shape_analysis_FIX.c",
|
||||
"silk/fixed/find_LTP_FIX.c",
|
||||
"silk/fixed/vector_ops_FIX.c",
|
||||
"silk/fixed/autocorr_FIX.c",
|
||||
"silk/fixed/warped_autocorrelation_FIX.c",
|
||||
"silk/fixed/find_pitch_lags_FIX.c",
|
||||
"silk/fixed/k2a_Q16_FIX.c",
|
||||
"silk/fixed/LTP_scale_ctrl_FIX.c",
|
||||
"silk/fixed/corrMatrix_FIX.c",
|
||||
"silk/fixed/prefilter_FIX.c",
|
||||
"silk/fixed/find_LPC_FIX.c",
|
||||
"silk/fixed/residual_energy_FIX.c",
|
||||
"silk/fixed/process_gains_FIX.c",
|
||||
"silk/fixed/LTP_analysis_filter_FIX.c",
|
||||
"silk/fixed/k2a_FIX.c",
|
||||
"silk/fixed/burg_modified_FIX.c",
|
||||
"silk/fixed/find_pred_coefs_FIX.c"
|
||||
]
|
||||
else:
|
||||
opus_sources_silk = [
|
||||
"silk/float/LTP_scale_ctrl_FLP.c",
|
||||
"silk/float/regularize_correlations_FLP.c",
|
||||
"silk/float/corrMatrix_FLP.c",
|
||||
"silk/float/LPC_analysis_filter_FLP.c",
|
||||
"silk/float/levinsondurbin_FLP.c",
|
||||
"silk/float/schur_FLP.c",
|
||||
"silk/float/scale_vector_FLP.c",
|
||||
"silk/float/apply_sine_window_FLP.c",
|
||||
"silk/float/pitch_analysis_core_FLP.c",
|
||||
"silk/float/wrappers_FLP.c",
|
||||
"silk/float/bwexpander_FLP.c",
|
||||
"silk/float/warped_autocorrelation_FLP.c",
|
||||
"silk/float/solve_LS_FLP.c",
|
||||
"silk/float/find_LPC_FLP.c",
|
||||
"silk/float/autocorrelation_FLP.c",
|
||||
"silk/float/find_pred_coefs_FLP.c",
|
||||
"silk/float/find_pitch_lags_FLP.c",
|
||||
"silk/float/burg_modified_FLP.c",
|
||||
"silk/float/find_LTP_FLP.c",
|
||||
"silk/float/energy_FLP.c",
|
||||
"silk/float/sort_FLP.c",
|
||||
"silk/float/LPC_inv_pred_gain_FLP.c",
|
||||
"silk/float/k2a_FLP.c",
|
||||
"silk/float/noise_shape_analysis_FLP.c",
|
||||
"silk/float/inner_product_FLP.c",
|
||||
"silk/float/process_gains_FLP.c",
|
||||
"silk/float/encode_frame_FLP.c",
|
||||
"silk/float/scale_copy_vector_FLP.c",
|
||||
"silk/float/residual_energy_FLP.c",
|
||||
"silk/float/LTP_analysis_filter_FLP.c",
|
||||
"silk/float/prefilter_FLP.c"
|
||||
]
|
||||
if("opus_fixed_point" in env and env.opus_fixed_point=="yes"):
|
||||
env_opus.Append(CFLAGS = ["-DFIXED_POINT"])
|
||||
opus_sources_silk = [
|
||||
"silk/fixed/schur64_FIX.c",
|
||||
"silk/fixed/residual_energy16_FIX.c",
|
||||
"silk/fixed/encode_frame_FIX.c",
|
||||
"silk/fixed/regularize_correlations_FIX.c",
|
||||
"silk/fixed/apply_sine_window_FIX.c",
|
||||
"silk/fixed/solve_LS_FIX.c",
|
||||
"silk/fixed/schur_FIX.c",
|
||||
"silk/fixed/pitch_analysis_core_FIX.c",
|
||||
"silk/fixed/noise_shape_analysis_FIX.c",
|
||||
"silk/fixed/find_LTP_FIX.c",
|
||||
"silk/fixed/vector_ops_FIX.c",
|
||||
"silk/fixed/autocorr_FIX.c",
|
||||
"silk/fixed/warped_autocorrelation_FIX.c",
|
||||
"silk/fixed/find_pitch_lags_FIX.c",
|
||||
"silk/fixed/k2a_Q16_FIX.c",
|
||||
"silk/fixed/LTP_scale_ctrl_FIX.c",
|
||||
"silk/fixed/corrMatrix_FIX.c",
|
||||
"silk/fixed/prefilter_FIX.c",
|
||||
"silk/fixed/find_LPC_FIX.c",
|
||||
"silk/fixed/residual_energy_FIX.c",
|
||||
"silk/fixed/process_gains_FIX.c",
|
||||
"silk/fixed/LTP_analysis_filter_FIX.c",
|
||||
"silk/fixed/k2a_FIX.c",
|
||||
"silk/fixed/burg_modified_FIX.c",
|
||||
"silk/fixed/find_pred_coefs_FIX.c"
|
||||
]
|
||||
else:
|
||||
opus_sources_silk = [
|
||||
"silk/float/LTP_scale_ctrl_FLP.c",
|
||||
"silk/float/regularize_correlations_FLP.c",
|
||||
"silk/float/corrMatrix_FLP.c",
|
||||
"silk/float/LPC_analysis_filter_FLP.c",
|
||||
"silk/float/levinsondurbin_FLP.c",
|
||||
"silk/float/schur_FLP.c",
|
||||
"silk/float/scale_vector_FLP.c",
|
||||
"silk/float/apply_sine_window_FLP.c",
|
||||
"silk/float/pitch_analysis_core_FLP.c",
|
||||
"silk/float/wrappers_FLP.c",
|
||||
"silk/float/bwexpander_FLP.c",
|
||||
"silk/float/warped_autocorrelation_FLP.c",
|
||||
"silk/float/solve_LS_FLP.c",
|
||||
"silk/float/find_LPC_FLP.c",
|
||||
"silk/float/autocorrelation_FLP.c",
|
||||
"silk/float/find_pred_coefs_FLP.c",
|
||||
"silk/float/find_pitch_lags_FLP.c",
|
||||
"silk/float/burg_modified_FLP.c",
|
||||
"silk/float/find_LTP_FLP.c",
|
||||
"silk/float/energy_FLP.c",
|
||||
"silk/float/sort_FLP.c",
|
||||
"silk/float/LPC_inv_pred_gain_FLP.c",
|
||||
"silk/float/k2a_FLP.c",
|
||||
"silk/float/noise_shape_analysis_FLP.c",
|
||||
"silk/float/inner_product_FLP.c",
|
||||
"silk/float/process_gains_FLP.c",
|
||||
"silk/float/encode_frame_FLP.c",
|
||||
"silk/float/scale_copy_vector_FLP.c",
|
||||
"silk/float/residual_energy_FLP.c",
|
||||
"silk/float/LTP_analysis_filter_FLP.c",
|
||||
"silk/float/prefilter_FLP.c"
|
||||
]
|
||||
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources + opus_sources_silk]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources + opus_sources_silk]
|
||||
|
||||
env_opus.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_opus.Append(CFLAGS=["-DHAVE_CONFIG_H"])
|
||||
env_opus.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_opus.Append(CFLAGS=["-DHAVE_CONFIG_H"])
|
||||
|
||||
thirdparty_include_paths = [
|
||||
"",
|
||||
"celt",
|
||||
"silk",
|
||||
"silk/fixed",
|
||||
"silk/float",
|
||||
]
|
||||
env_opus.Append(CPPPATH = [thirdparty_dir + "/" + dir for dir in thirdparty_include_paths])
|
||||
thirdparty_include_paths = [
|
||||
"",
|
||||
"celt",
|
||||
"silk",
|
||||
"silk/fixed",
|
||||
"silk/float",
|
||||
]
|
||||
env_opus.Append(CPPPATH = [thirdparty_dir + "/" + dir for dir in thirdparty_include_paths])
|
||||
|
||||
# also requires libogg
|
||||
if (env["libogg"] != "system"): # builtin
|
||||
env_opus.Append(CPPPATH = ["#thirdparty/libogg"])
|
||||
# also requires libogg
|
||||
if (env["libogg"] != "system"): # builtin
|
||||
env_opus.Append(CPPPATH = ["#thirdparty/libogg"])
|
||||
|
||||
# Module files
|
||||
env_opus.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -9,11 +9,11 @@ env_pvr = env_modules.Clone()
|
||||
# Not unbundled so far since not widespread as shared library
|
||||
thirdparty_dir = "#thirdparty/pvrtccompressor/"
|
||||
thirdparty_sources = [
|
||||
"BitScale.cpp",
|
||||
"MortonTable.cpp",
|
||||
"PvrTcDecoder.cpp",
|
||||
"PvrTcEncoder.cpp",
|
||||
"PvrTcPacket.cpp",
|
||||
"BitScale.cpp",
|
||||
"MortonTable.cpp",
|
||||
"PvrTcDecoder.cpp",
|
||||
"PvrTcEncoder.cpp",
|
||||
"PvrTcPacket.cpp",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -7,23 +7,23 @@ env_squish = env_modules.Clone()
|
||||
|
||||
# Thirdparty source files
|
||||
if (env["squish"] != "system"): # builtin
|
||||
thirdparty_dir = "#thirdparty/squish/"
|
||||
thirdparty_sources = [
|
||||
"alpha.cpp",
|
||||
"clusterfit.cpp",
|
||||
"colourblock.cpp",
|
||||
"colourfit.cpp",
|
||||
"colourset.cpp",
|
||||
"maths.cpp",
|
||||
"rangefit.cpp",
|
||||
"singlecolourfit.cpp",
|
||||
"squish.cpp",
|
||||
]
|
||||
thirdparty_dir = "#thirdparty/squish/"
|
||||
thirdparty_sources = [
|
||||
"alpha.cpp",
|
||||
"clusterfit.cpp",
|
||||
"colourblock.cpp",
|
||||
"colourfit.cpp",
|
||||
"colourset.cpp",
|
||||
"maths.cpp",
|
||||
"rangefit.cpp",
|
||||
"singlecolourfit.cpp",
|
||||
"squish.cpp",
|
||||
]
|
||||
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
env_squish.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_squish.Append(CPPPATH = [thirdparty_dir])
|
||||
env_squish.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_squish.Append(CPPPATH = [thirdparty_dir])
|
||||
|
||||
# Godot source files
|
||||
env_squish.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
# Tools only, disabled for non-tools
|
||||
# TODO: Find a cleaner way to achieve that
|
||||
if (env["tools"] == "no"):
|
||||
env["module_squish_enabled"] = "no"
|
||||
env.disabled_modules.append("squish")
|
||||
# Tools only, disabled for non-tools
|
||||
# TODO: Find a cleaner way to achieve that
|
||||
if (env["tools"] == "no"):
|
||||
env["module_squish_enabled"] = "no"
|
||||
env.disabled_modules.append("squish")
|
||||
|
||||
@ -7,77 +7,77 @@ env_theora = env_modules.Clone()
|
||||
|
||||
# Thirdparty source files
|
||||
if (env["libtheora"] != "system"): # builtin
|
||||
thirdparty_dir = "#thirdparty/libtheora/"
|
||||
thirdparty_sources = [
|
||||
#"analyze.c",
|
||||
#"apiwrapper.c",
|
||||
"bitpack.c",
|
||||
"cpu.c",
|
||||
#"decapiwrapper.c",
|
||||
"decinfo.c",
|
||||
"decode.c",
|
||||
"dequant.c",
|
||||
#"encapiwrapper.c",
|
||||
#"encfrag.c",
|
||||
#"encinfo.c",
|
||||
#"encode.c",
|
||||
#"encoder_disabled.c",
|
||||
#"enquant.c",
|
||||
#"fdct.c",
|
||||
"fragment.c",
|
||||
"huffdec.c",
|
||||
#"huffenc.c",
|
||||
"idct.c",
|
||||
"info.c",
|
||||
"internal.c",
|
||||
#"mathops.c",
|
||||
#"mcenc.c",
|
||||
"quant.c",
|
||||
#"rate.c",
|
||||
"state.c",
|
||||
#"tokenize.c",
|
||||
]
|
||||
thirdparty_dir = "#thirdparty/libtheora/"
|
||||
thirdparty_sources = [
|
||||
#"analyze.c",
|
||||
#"apiwrapper.c",
|
||||
"bitpack.c",
|
||||
"cpu.c",
|
||||
#"decapiwrapper.c",
|
||||
"decinfo.c",
|
||||
"decode.c",
|
||||
"dequant.c",
|
||||
#"encapiwrapper.c",
|
||||
#"encfrag.c",
|
||||
#"encinfo.c",
|
||||
#"encode.c",
|
||||
#"encoder_disabled.c",
|
||||
#"enquant.c",
|
||||
#"fdct.c",
|
||||
"fragment.c",
|
||||
"huffdec.c",
|
||||
#"huffenc.c",
|
||||
"idct.c",
|
||||
"info.c",
|
||||
"internal.c",
|
||||
#"mathops.c",
|
||||
#"mcenc.c",
|
||||
"quant.c",
|
||||
#"rate.c",
|
||||
"state.c",
|
||||
#"tokenize.c",
|
||||
]
|
||||
|
||||
thirdparty_sources_x86 = [
|
||||
#"x86/mmxencfrag.c",
|
||||
#"x86/mmxfdct.c",
|
||||
"x86/mmxfrag.c",
|
||||
"x86/mmxidct.c",
|
||||
"x86/mmxstate.c",
|
||||
#"x86/sse2fdct.c",
|
||||
#"x86/x86enc.c",
|
||||
"x86/x86state.c",
|
||||
]
|
||||
thirdparty_sources_x86 = [
|
||||
#"x86/mmxencfrag.c",
|
||||
#"x86/mmxfdct.c",
|
||||
"x86/mmxfrag.c",
|
||||
"x86/mmxidct.c",
|
||||
"x86/mmxstate.c",
|
||||
#"x86/sse2fdct.c",
|
||||
#"x86/x86enc.c",
|
||||
"x86/x86state.c",
|
||||
]
|
||||
|
||||
thirdparty_sources_x86_vc = [
|
||||
#"x86_vc/mmxencfrag.c",
|
||||
#"x86_vc/mmxfdct.c",
|
||||
"x86_vc/mmxfrag.c",
|
||||
"x86_vc/mmxidct.c",
|
||||
"x86_vc/mmxstate.c",
|
||||
#"x86_vc/x86enc.c",
|
||||
"x86_vc/x86state.c",
|
||||
]
|
||||
thirdparty_sources_x86_vc = [
|
||||
#"x86_vc/mmxencfrag.c",
|
||||
#"x86_vc/mmxfdct.c",
|
||||
"x86_vc/mmxfrag.c",
|
||||
"x86_vc/mmxidct.c",
|
||||
"x86_vc/mmxstate.c",
|
||||
#"x86_vc/x86enc.c",
|
||||
"x86_vc/x86state.c",
|
||||
]
|
||||
|
||||
if (env["x86_libtheora_opt_gcc"]):
|
||||
thirdparty_sources += thirdparty_sources_x86
|
||||
if (env["x86_libtheora_opt_gcc"]):
|
||||
thirdparty_sources += thirdparty_sources_x86
|
||||
|
||||
if (env["x86_libtheora_opt_vc"]):
|
||||
thirdparty_sources += thirdparty_sources_x86_vc
|
||||
if (env["x86_libtheora_opt_vc"]):
|
||||
thirdparty_sources += thirdparty_sources_x86_vc
|
||||
|
||||
if (env["x86_libtheora_opt_gcc"] or env["x86_libtheora_opt_vc"]):
|
||||
env_theora.Append(CCFLAGS = ["-DOC_X86_ASM"])
|
||||
if (env["x86_libtheora_opt_gcc"] or env["x86_libtheora_opt_vc"]):
|
||||
env_theora.Append(CCFLAGS = ["-DOC_X86_ASM"])
|
||||
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
env_theora.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_theora.Append(CPPPATH = [thirdparty_dir])
|
||||
env_theora.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_theora.Append(CPPPATH = [thirdparty_dir])
|
||||
|
||||
# also requires libogg and libvorbis
|
||||
if (env["libogg"] != "system"): # builtin
|
||||
env_theora.Append(CPPPATH = ["#thirdparty/libogg"])
|
||||
if (env["libvorbis"] != "system"): # builtin
|
||||
env_theora.Append(CPPPATH = ["#thirdparty/libvorbis"])
|
||||
# also requires libogg and libvorbis
|
||||
if (env["libogg"] != "system"): # builtin
|
||||
env_theora.Append(CPPPATH = ["#thirdparty/libogg"])
|
||||
if (env["libvorbis"] != "system"): # builtin
|
||||
env_theora.Append(CPPPATH = ["#thirdparty/libvorbis"])
|
||||
|
||||
# Godot source files
|
||||
env_theora.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
@ -7,43 +7,43 @@ env_vorbis = env_modules.Clone()
|
||||
|
||||
# Thirdparty source files
|
||||
if (env["libvorbis"] != "system"): # builtin
|
||||
thirdparty_dir = "#thirdparty/libvorbis/"
|
||||
thirdparty_sources = [
|
||||
#"analysis.c",
|
||||
#"barkmel.c",
|
||||
"bitrate.c",
|
||||
"block.c",
|
||||
"codebook.c",
|
||||
"envelope.c",
|
||||
"floor0.c",
|
||||
"floor1.c",
|
||||
"info.c",
|
||||
"lookup.c",
|
||||
"lpc.c",
|
||||
"lsp.c",
|
||||
"mapping0.c",
|
||||
"mdct.c",
|
||||
"psy.c",
|
||||
#"psytune.c",
|
||||
"registry.c",
|
||||
"res0.c",
|
||||
"sharedbook.c",
|
||||
"smallft.c",
|
||||
"synthesis.c",
|
||||
#"tone.c",
|
||||
#"vorbisenc.c",
|
||||
"vorbisfile.c",
|
||||
"window.c",
|
||||
]
|
||||
thirdparty_dir = "#thirdparty/libvorbis/"
|
||||
thirdparty_sources = [
|
||||
#"analysis.c",
|
||||
#"barkmel.c",
|
||||
"bitrate.c",
|
||||
"block.c",
|
||||
"codebook.c",
|
||||
"envelope.c",
|
||||
"floor0.c",
|
||||
"floor1.c",
|
||||
"info.c",
|
||||
"lookup.c",
|
||||
"lpc.c",
|
||||
"lsp.c",
|
||||
"mapping0.c",
|
||||
"mdct.c",
|
||||
"psy.c",
|
||||
#"psytune.c",
|
||||
"registry.c",
|
||||
"res0.c",
|
||||
"sharedbook.c",
|
||||
"smallft.c",
|
||||
"synthesis.c",
|
||||
#"tone.c",
|
||||
#"vorbisenc.c",
|
||||
"vorbisfile.c",
|
||||
"window.c",
|
||||
]
|
||||
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
env_vorbis.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_vorbis.Append(CPPPATH = [thirdparty_dir])
|
||||
env_vorbis.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_vorbis.Append(CPPPATH = [thirdparty_dir])
|
||||
|
||||
# also requires libogg
|
||||
if (env["libogg"] != "system"): # builtin
|
||||
env_vorbis.Append(CPPPATH = ["#thirdparty/libogg"])
|
||||
# also requires libogg
|
||||
if (env["libogg"] != "system"): # builtin
|
||||
env_vorbis.Append(CPPPATH = ["#thirdparty/libogg"])
|
||||
|
||||
# Godot source files
|
||||
env_vorbis.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -8,10 +8,10 @@ env_webm = env_modules.Clone()
|
||||
# Thirdparty source files
|
||||
thirdparty_libsimplewebm_dir = "#thirdparty/libsimplewebm/"
|
||||
thirdparty_libsimplewebm_sources = [
|
||||
"libwebm/mkvparser/mkvparser.cc",
|
||||
"OpusVorbisDecoder.cpp",
|
||||
"VPXDecoder.cpp",
|
||||
"WebMDemuxer.cpp",
|
||||
"libwebm/mkvparser/mkvparser.cc",
|
||||
"OpusVorbisDecoder.cpp",
|
||||
"VPXDecoder.cpp",
|
||||
"WebMDemuxer.cpp",
|
||||
]
|
||||
thirdparty_libsimplewebm_sources = [thirdparty_libsimplewebm_dir + file for file in thirdparty_libsimplewebm_sources]
|
||||
|
||||
@ -20,15 +20,15 @@ env_webm.Append(CPPPATH = [thirdparty_libsimplewebm_dir, thirdparty_libsimpleweb
|
||||
|
||||
# also requires libogg, libvorbis and libopus
|
||||
if (env["libogg"] != "system"): # builtin
|
||||
env_webm.Append(CPPPATH = ["#thirdparty/libogg"])
|
||||
env_webm.Append(CPPPATH = ["#thirdparty/libogg"])
|
||||
if (env["libvorbis"] != "system"): # builtin
|
||||
env_webm.Append(CPPPATH = ["#thirdparty/libvorbis"])
|
||||
env_webm.Append(CPPPATH = ["#thirdparty/libvorbis"])
|
||||
if (env["opus"] != "system"): # builtin
|
||||
env_webm.Append(CPPPATH = ["#thirdparty"])
|
||||
env_webm.Append(CPPPATH = ["#thirdparty"])
|
||||
|
||||
if (env["libvpx"] != "system"): # builtin
|
||||
Export('env_webm')
|
||||
SConscript("libvpx/SCsub")
|
||||
Export('env_webm')
|
||||
SConscript("libvpx/SCsub")
|
||||
|
||||
# Godot source files
|
||||
env_webm.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -3,231 +3,231 @@
|
||||
libvpx_dir = "#thirdparty/libvpx/"
|
||||
|
||||
libvpx_sources = [
|
||||
"vp8/vp8_dx_iface.c",
|
||||
"vp8/vp8_dx_iface.c",
|
||||
|
||||
"vp8/common/generic/systemdependent.c",
|
||||
"vp8/common/generic/systemdependent.c",
|
||||
|
||||
"vp8/common/alloccommon.c",
|
||||
"vp8/common/blockd.c",
|
||||
"vp8/common/copy_c.c",
|
||||
"vp8/common/debugmodes.c",
|
||||
"vp8/common/dequantize.c",
|
||||
"vp8/common/entropy.c",
|
||||
"vp8/common/entropymode.c",
|
||||
"vp8/common/entropymv.c",
|
||||
"vp8/common/extend.c",
|
||||
"vp8/common/filter.c",
|
||||
"vp8/common/findnearmv.c",
|
||||
"vp8/common/idct_blk.c",
|
||||
"vp8/common/idctllm.c",
|
||||
"vp8/common/loopfilter_filters.c",
|
||||
"vp8/common/mbpitch.c",
|
||||
"vp8/common/modecont.c",
|
||||
"vp8/common/quant_common.c",
|
||||
"vp8/common/reconinter.c",
|
||||
"vp8/common/reconintra.c",
|
||||
"vp8/common/reconintra4x4.c",
|
||||
"vp8/common/rtcd.c",
|
||||
"vp8/common/setupintrarecon.c",
|
||||
"vp8/common/swapyv12buffer.c",
|
||||
"vp8/common/treecoder.c",
|
||||
"vp8/common/vp8_loopfilter.c",
|
||||
"vp8/common/alloccommon.c",
|
||||
"vp8/common/blockd.c",
|
||||
"vp8/common/copy_c.c",
|
||||
"vp8/common/debugmodes.c",
|
||||
"vp8/common/dequantize.c",
|
||||
"vp8/common/entropy.c",
|
||||
"vp8/common/entropymode.c",
|
||||
"vp8/common/entropymv.c",
|
||||
"vp8/common/extend.c",
|
||||
"vp8/common/filter.c",
|
||||
"vp8/common/findnearmv.c",
|
||||
"vp8/common/idct_blk.c",
|
||||
"vp8/common/idctllm.c",
|
||||
"vp8/common/loopfilter_filters.c",
|
||||
"vp8/common/mbpitch.c",
|
||||
"vp8/common/modecont.c",
|
||||
"vp8/common/quant_common.c",
|
||||
"vp8/common/reconinter.c",
|
||||
"vp8/common/reconintra.c",
|
||||
"vp8/common/reconintra4x4.c",
|
||||
"vp8/common/rtcd.c",
|
||||
"vp8/common/setupintrarecon.c",
|
||||
"vp8/common/swapyv12buffer.c",
|
||||
"vp8/common/treecoder.c",
|
||||
"vp8/common/vp8_loopfilter.c",
|
||||
|
||||
"vp8/decoder/dboolhuff.c",
|
||||
"vp8/decoder/decodeframe.c",
|
||||
"vp8/decoder/decodemv.c",
|
||||
"vp8/decoder/detokenize.c",
|
||||
"vp8/decoder/onyxd_if.c",
|
||||
"vp8/decoder/threading.c",
|
||||
"vp8/decoder/dboolhuff.c",
|
||||
"vp8/decoder/decodeframe.c",
|
||||
"vp8/decoder/decodemv.c",
|
||||
"vp8/decoder/detokenize.c",
|
||||
"vp8/decoder/onyxd_if.c",
|
||||
"vp8/decoder/threading.c",
|
||||
|
||||
|
||||
"vp9/vp9_dx_iface.c",
|
||||
"vp9/vp9_dx_iface.c",
|
||||
|
||||
"vp9/common/vp9_alloccommon.c",
|
||||
"vp9/common/vp9_blockd.c",
|
||||
"vp9/common/vp9_common_data.c",
|
||||
"vp9/common/vp9_debugmodes.c",
|
||||
"vp9/common/vp9_entropy.c",
|
||||
"vp9/common/vp9_entropymode.c",
|
||||
"vp9/common/vp9_entropymv.c",
|
||||
"vp9/common/vp9_filter.c",
|
||||
"vp9/common/vp9_frame_buffers.c",
|
||||
"vp9/common/vp9_idct.c",
|
||||
"vp9/common/vp9_loopfilter.c",
|
||||
"vp9/common/vp9_mvref_common.c",
|
||||
"vp9/common/vp9_pred_common.c",
|
||||
"vp9/common/vp9_quant_common.c",
|
||||
"vp9/common/vp9_reconinter.c",
|
||||
"vp9/common/vp9_reconintra.c",
|
||||
"vp9/common/vp9_rtcd.c",
|
||||
"vp9/common/vp9_scale.c",
|
||||
"vp9/common/vp9_scan.c",
|
||||
"vp9/common/vp9_seg_common.c",
|
||||
"vp9/common/vp9_thread_common.c",
|
||||
"vp9/common/vp9_tile_common.c",
|
||||
"vp9/common/vp9_alloccommon.c",
|
||||
"vp9/common/vp9_blockd.c",
|
||||
"vp9/common/vp9_common_data.c",
|
||||
"vp9/common/vp9_debugmodes.c",
|
||||
"vp9/common/vp9_entropy.c",
|
||||
"vp9/common/vp9_entropymode.c",
|
||||
"vp9/common/vp9_entropymv.c",
|
||||
"vp9/common/vp9_filter.c",
|
||||
"vp9/common/vp9_frame_buffers.c",
|
||||
"vp9/common/vp9_idct.c",
|
||||
"vp9/common/vp9_loopfilter.c",
|
||||
"vp9/common/vp9_mvref_common.c",
|
||||
"vp9/common/vp9_pred_common.c",
|
||||
"vp9/common/vp9_quant_common.c",
|
||||
"vp9/common/vp9_reconinter.c",
|
||||
"vp9/common/vp9_reconintra.c",
|
||||
"vp9/common/vp9_rtcd.c",
|
||||
"vp9/common/vp9_scale.c",
|
||||
"vp9/common/vp9_scan.c",
|
||||
"vp9/common/vp9_seg_common.c",
|
||||
"vp9/common/vp9_thread_common.c",
|
||||
"vp9/common/vp9_tile_common.c",
|
||||
|
||||
"vp9/decoder/vp9_decodeframe.c",
|
||||
"vp9/decoder/vp9_decodemv.c",
|
||||
"vp9/decoder/vp9_decoder.c",
|
||||
"vp9/decoder/vp9_detokenize.c",
|
||||
"vp9/decoder/vp9_dsubexp.c",
|
||||
"vp9/decoder/vp9_dthread.c",
|
||||
"vp9/decoder/vp9_decodeframe.c",
|
||||
"vp9/decoder/vp9_decodemv.c",
|
||||
"vp9/decoder/vp9_decoder.c",
|
||||
"vp9/decoder/vp9_detokenize.c",
|
||||
"vp9/decoder/vp9_dsubexp.c",
|
||||
"vp9/decoder/vp9_dthread.c",
|
||||
|
||||
|
||||
"vpx/src/vpx_codec.c",
|
||||
"vpx/src/vpx_decoder.c",
|
||||
"vpx/src/vpx_image.c",
|
||||
"vpx/src/vpx_psnr.c",
|
||||
"vpx/src/vpx_codec.c",
|
||||
"vpx/src/vpx_decoder.c",
|
||||
"vpx/src/vpx_image.c",
|
||||
"vpx/src/vpx_psnr.c",
|
||||
|
||||
|
||||
"vpx_dsp/bitreader.c",
|
||||
"vpx_dsp/bitreader_buffer.c",
|
||||
"vpx_dsp/intrapred.c",
|
||||
"vpx_dsp/inv_txfm.c",
|
||||
"vpx_dsp/loopfilter.c",
|
||||
"vpx_dsp/prob.c",
|
||||
"vpx_dsp/vpx_convolve.c",
|
||||
"vpx_dsp/vpx_dsp_rtcd.c",
|
||||
"vpx_dsp/bitreader.c",
|
||||
"vpx_dsp/bitreader_buffer.c",
|
||||
"vpx_dsp/intrapred.c",
|
||||
"vpx_dsp/inv_txfm.c",
|
||||
"vpx_dsp/loopfilter.c",
|
||||
"vpx_dsp/prob.c",
|
||||
"vpx_dsp/vpx_convolve.c",
|
||||
"vpx_dsp/vpx_dsp_rtcd.c",
|
||||
|
||||
|
||||
"vpx_mem/vpx_mem.c",
|
||||
"vpx_mem/vpx_mem.c",
|
||||
|
||||
|
||||
"vpx_scale/vpx_scale_rtcd.c",
|
||||
"vpx_scale/vpx_scale_rtcd.c",
|
||||
|
||||
"vpx_scale/generic/yv12config.c",
|
||||
"vpx_scale/generic/yv12extend.c",
|
||||
"vpx_scale/generic/yv12config.c",
|
||||
"vpx_scale/generic/yv12extend.c",
|
||||
|
||||
|
||||
"vpx_util/vpx_thread.c"
|
||||
"vpx_util/vpx_thread.c"
|
||||
]
|
||||
|
||||
libvpx_sources_intrin_x86 = [
|
||||
"vp8/common/x86/filter_x86.c",
|
||||
"vp8/common/x86/loopfilter_x86.c",
|
||||
"vp8/common/x86/vp8_asm_stubs.c",
|
||||
"vp8/common/x86/filter_x86.c",
|
||||
"vp8/common/x86/loopfilter_x86.c",
|
||||
"vp8/common/x86/vp8_asm_stubs.c",
|
||||
|
||||
|
||||
"vpx_dsp/x86/vpx_asm_stubs.c"
|
||||
"vpx_dsp/x86/vpx_asm_stubs.c"
|
||||
]
|
||||
libvpx_sources_intrin_x86_mmx = [
|
||||
"vp8/common/x86/idct_blk_mmx.c",
|
||||
"vp8/common/x86/idct_blk_mmx.c",
|
||||
]
|
||||
libvpx_sources_intrin_x86_sse2 = [
|
||||
"vp8/common/x86/idct_blk_sse2.c",
|
||||
"vp8/common/x86/idct_blk_sse2.c",
|
||||
|
||||
|
||||
"vp9/common/x86/vp9_idct_intrin_sse2.c",
|
||||
"vp9/common/x86/vp9_idct_intrin_sse2.c",
|
||||
|
||||
|
||||
"vpx_dsp/x86/inv_txfm_sse2.c",
|
||||
"vpx_dsp/x86/loopfilter_sse2.c",
|
||||
"vpx_dsp/x86/inv_txfm_sse2.c",
|
||||
"vpx_dsp/x86/loopfilter_sse2.c",
|
||||
]
|
||||
libvpx_sources_intrin_x86_ssse3 = [
|
||||
"vpx_dsp/x86/vpx_subpixel_8t_intrin_ssse3.c"
|
||||
"vpx_dsp/x86/vpx_subpixel_8t_intrin_ssse3.c"
|
||||
]
|
||||
libvpx_sources_intrin_x86_avx2 = [
|
||||
"vpx_dsp/x86/loopfilter_avx2.c",
|
||||
"vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c"
|
||||
"vpx_dsp/x86/loopfilter_avx2.c",
|
||||
"vpx_dsp/x86/vpx_subpixel_8t_intrin_avx2.c"
|
||||
]
|
||||
libvpx_sources_x86asm = [
|
||||
"vp8/common/x86/copy_sse2.asm",
|
||||
"vp8/common/x86/copy_sse3.asm",
|
||||
"vp8/common/x86/dequantize_mmx.asm",
|
||||
"vp8/common/x86/idctllm_mmx.asm",
|
||||
"vp8/common/x86/idctllm_sse2.asm",
|
||||
"vp8/common/x86/iwalsh_mmx.asm",
|
||||
"vp8/common/x86/iwalsh_sse2.asm",
|
||||
"vp8/common/x86/loopfilter_sse2.asm",
|
||||
"vp8/common/x86/recon_mmx.asm",
|
||||
"vp8/common/x86/recon_sse2.asm",
|
||||
"vp8/common/x86/subpixel_mmx.asm",
|
||||
"vp8/common/x86/subpixel_sse2.asm",
|
||||
"vp8/common/x86/subpixel_ssse3.asm",
|
||||
"vp8/common/x86/vp8_loopfilter_mmx.asm",
|
||||
"vp8/common/x86/copy_sse2.asm",
|
||||
"vp8/common/x86/copy_sse3.asm",
|
||||
"vp8/common/x86/dequantize_mmx.asm",
|
||||
"vp8/common/x86/idctllm_mmx.asm",
|
||||
"vp8/common/x86/idctllm_sse2.asm",
|
||||
"vp8/common/x86/iwalsh_mmx.asm",
|
||||
"vp8/common/x86/iwalsh_sse2.asm",
|
||||
"vp8/common/x86/loopfilter_sse2.asm",
|
||||
"vp8/common/x86/recon_mmx.asm",
|
||||
"vp8/common/x86/recon_sse2.asm",
|
||||
"vp8/common/x86/subpixel_mmx.asm",
|
||||
"vp8/common/x86/subpixel_sse2.asm",
|
||||
"vp8/common/x86/subpixel_ssse3.asm",
|
||||
"vp8/common/x86/vp8_loopfilter_mmx.asm",
|
||||
|
||||
|
||||
"vpx_dsp/x86/intrapred_sse2.asm",
|
||||
"vpx_dsp/x86/intrapred_ssse3.asm",
|
||||
"vpx_dsp/x86/inv_wht_sse2.asm",
|
||||
"vpx_dsp/x86/vpx_convolve_copy_sse2.asm",
|
||||
"vpx_dsp/x86/vpx_subpixel_8t_sse2.asm",
|
||||
"vpx_dsp/x86/vpx_subpixel_8t_ssse3.asm",
|
||||
"vpx_dsp/x86/vpx_subpixel_bilinear_sse2.asm",
|
||||
"vpx_dsp/x86/vpx_subpixel_bilinear_ssse3.asm",
|
||||
"vpx_dsp/x86/intrapred_sse2.asm",
|
||||
"vpx_dsp/x86/intrapred_ssse3.asm",
|
||||
"vpx_dsp/x86/inv_wht_sse2.asm",
|
||||
"vpx_dsp/x86/vpx_convolve_copy_sse2.asm",
|
||||
"vpx_dsp/x86/vpx_subpixel_8t_sse2.asm",
|
||||
"vpx_dsp/x86/vpx_subpixel_8t_ssse3.asm",
|
||||
"vpx_dsp/x86/vpx_subpixel_bilinear_sse2.asm",
|
||||
"vpx_dsp/x86/vpx_subpixel_bilinear_ssse3.asm",
|
||||
|
||||
|
||||
"vpx_ports/emms.asm"
|
||||
"vpx_ports/emms.asm"
|
||||
]
|
||||
libvpx_sources_x86_64asm = [
|
||||
"vp8/common/x86/loopfilter_block_sse2_x86_64.asm",
|
||||
"vp8/common/x86/loopfilter_block_sse2_x86_64.asm",
|
||||
|
||||
|
||||
"vpx_dsp/x86/inv_txfm_ssse3_x86_64.asm"
|
||||
"vpx_dsp/x86/inv_txfm_ssse3_x86_64.asm"
|
||||
]
|
||||
|
||||
libvpx_sources_arm = [
|
||||
"vpx_ports/arm_cpudetect.c",
|
||||
"vpx_ports/arm_cpudetect.c",
|
||||
|
||||
|
||||
"vp8/common/arm/loopfilter_arm.c",
|
||||
"vp8/common/arm/loopfilter_arm.c",
|
||||
]
|
||||
libvpx_sources_arm_neon = [
|
||||
"vp8/common/arm/neon/bilinearpredict_neon.c",
|
||||
"vp8/common/arm/neon/copymem_neon.c",
|
||||
"vp8/common/arm/neon/dc_only_idct_add_neon.c",
|
||||
"vp8/common/arm/neon/dequant_idct_neon.c",
|
||||
"vp8/common/arm/neon/dequantizeb_neon.c",
|
||||
"vp8/common/arm/neon/idct_blk_neon.c",
|
||||
"vp8/common/arm/neon/idct_dequant_0_2x_neon.c",
|
||||
"vp8/common/arm/neon/idct_dequant_full_2x_neon.c",
|
||||
"vp8/common/arm/neon/iwalsh_neon.c",
|
||||
"vp8/common/arm/neon/loopfiltersimplehorizontaledge_neon.c",
|
||||
"vp8/common/arm/neon/loopfiltersimpleverticaledge_neon.c",
|
||||
"vp8/common/arm/neon/mbloopfilter_neon.c",
|
||||
"vp8/common/arm/neon/shortidct4x4llm_neon.c",
|
||||
"vp8/common/arm/neon/sixtappredict_neon.c",
|
||||
"vp8/common/arm/neon/vp8_loopfilter_neon.c",
|
||||
"vp8/common/arm/neon/bilinearpredict_neon.c",
|
||||
"vp8/common/arm/neon/copymem_neon.c",
|
||||
"vp8/common/arm/neon/dc_only_idct_add_neon.c",
|
||||
"vp8/common/arm/neon/dequant_idct_neon.c",
|
||||
"vp8/common/arm/neon/dequantizeb_neon.c",
|
||||
"vp8/common/arm/neon/idct_blk_neon.c",
|
||||
"vp8/common/arm/neon/idct_dequant_0_2x_neon.c",
|
||||
"vp8/common/arm/neon/idct_dequant_full_2x_neon.c",
|
||||
"vp8/common/arm/neon/iwalsh_neon.c",
|
||||
"vp8/common/arm/neon/loopfiltersimplehorizontaledge_neon.c",
|
||||
"vp8/common/arm/neon/loopfiltersimpleverticaledge_neon.c",
|
||||
"vp8/common/arm/neon/mbloopfilter_neon.c",
|
||||
"vp8/common/arm/neon/shortidct4x4llm_neon.c",
|
||||
"vp8/common/arm/neon/sixtappredict_neon.c",
|
||||
"vp8/common/arm/neon/vp8_loopfilter_neon.c",
|
||||
|
||||
|
||||
"vp9/common/arm/neon/vp9_iht4x4_add_neon.c",
|
||||
"vp9/common/arm/neon/vp9_iht8x8_add_neon.c",
|
||||
"vp9/common/arm/neon/vp9_iht4x4_add_neon.c",
|
||||
"vp9/common/arm/neon/vp9_iht8x8_add_neon.c",
|
||||
|
||||
|
||||
"vpx_dsp/arm/idct16x16_1_add_neon.c",
|
||||
"vpx_dsp/arm/idct16x16_add_neon.c",
|
||||
"vpx_dsp/arm/idct16x16_neon.c",
|
||||
"vpx_dsp/arm/idct32x32_1_add_neon.c",
|
||||
"vpx_dsp/arm/idct32x32_add_neon.c",
|
||||
"vpx_dsp/arm/idct4x4_1_add_neon.c",
|
||||
"vpx_dsp/arm/idct4x4_add_neon.c",
|
||||
"vpx_dsp/arm/idct8x8_1_add_neon.c",
|
||||
"vpx_dsp/arm/idct8x8_add_neon.c",
|
||||
"vpx_dsp/arm/intrapred_neon.c",
|
||||
"vpx_dsp/arm/loopfilter_16_neon.c",
|
||||
"vpx_dsp/arm/loopfilter_4_neon.c",
|
||||
"vpx_dsp/arm/loopfilter_8_neon.c",
|
||||
"vpx_dsp/arm/loopfilter_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve8_avg_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve8_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve_avg_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve_copy_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve_neon.c"
|
||||
"vpx_dsp/arm/idct16x16_1_add_neon.c",
|
||||
"vpx_dsp/arm/idct16x16_add_neon.c",
|
||||
"vpx_dsp/arm/idct16x16_neon.c",
|
||||
"vpx_dsp/arm/idct32x32_1_add_neon.c",
|
||||
"vpx_dsp/arm/idct32x32_add_neon.c",
|
||||
"vpx_dsp/arm/idct4x4_1_add_neon.c",
|
||||
"vpx_dsp/arm/idct4x4_add_neon.c",
|
||||
"vpx_dsp/arm/idct8x8_1_add_neon.c",
|
||||
"vpx_dsp/arm/idct8x8_add_neon.c",
|
||||
"vpx_dsp/arm/intrapred_neon.c",
|
||||
"vpx_dsp/arm/loopfilter_16_neon.c",
|
||||
"vpx_dsp/arm/loopfilter_4_neon.c",
|
||||
"vpx_dsp/arm/loopfilter_8_neon.c",
|
||||
"vpx_dsp/arm/loopfilter_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve8_avg_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve8_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve_avg_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve_copy_neon.c",
|
||||
"vpx_dsp/arm/vpx_convolve_neon.c"
|
||||
]
|
||||
libvpx_sources_arm_neon_gas = [
|
||||
"vpx_dsp/arm/gas/intrapred_neon_asm.s",
|
||||
"vpx_dsp/arm/gas/loopfilter_mb_neon.s",
|
||||
"vpx_dsp/arm/gas/save_reg_neon.s"
|
||||
"vpx_dsp/arm/gas/intrapred_neon_asm.s",
|
||||
"vpx_dsp/arm/gas/loopfilter_mb_neon.s",
|
||||
"vpx_dsp/arm/gas/save_reg_neon.s"
|
||||
]
|
||||
libvpx_sources_arm_neon_armasm_ms = [
|
||||
"vpx_dsp/arm/armasm_ms/intrapred_neon_asm.asm",
|
||||
"vpx_dsp/arm/armasm_ms/loopfilter_mb_neon.asm",
|
||||
"vpx_dsp/arm/armasm_ms/save_reg_neon.asm"
|
||||
"vpx_dsp/arm/armasm_ms/intrapred_neon_asm.asm",
|
||||
"vpx_dsp/arm/armasm_ms/loopfilter_mb_neon.asm",
|
||||
"vpx_dsp/arm/armasm_ms/save_reg_neon.asm"
|
||||
]
|
||||
libvpx_sources_arm_neon_gas_apple = [
|
||||
"vpx_dsp/arm/gas_apple/intrapred_neon_asm.s",
|
||||
"vpx_dsp/arm/gas_apple/loopfilter_mb_neon.s",
|
||||
"vpx_dsp/arm/gas_apple/save_reg_neon.s"
|
||||
"vpx_dsp/arm/gas_apple/intrapred_neon_asm.s",
|
||||
"vpx_dsp/arm/gas_apple/loopfilter_mb_neon.s",
|
||||
"vpx_dsp/arm/gas_apple/save_reg_neon.s"
|
||||
]
|
||||
|
||||
libvpx_sources = [libvpx_dir + file for file in libvpx_sources]
|
||||
@ -258,133 +258,133 @@ osx_fat = (env["platform"] == 'osx' and cpu_bits == 'fat')
|
||||
webm_cpu_x86 = False
|
||||
webm_cpu_arm = False
|
||||
if env["platform"] == 'winrt':
|
||||
if 'arm' in env["PROGSUFFIX"]:
|
||||
webm_cpu_arm = True
|
||||
else:
|
||||
webm_cpu_x86 = True
|
||||
if 'arm' in env["PROGSUFFIX"]:
|
||||
webm_cpu_arm = True
|
||||
else:
|
||||
webm_cpu_x86 = True
|
||||
else:
|
||||
is_android_x86 = (env["platform"] == 'android' and env["android_arch"] == 'x86')
|
||||
if is_android_x86:
|
||||
cpu_bits = '32'
|
||||
if osx_fat:
|
||||
webm_cpu_x86 = True
|
||||
else:
|
||||
webm_cpu_x86 = (cpu_bits == '32' or cpu_bits == '64') and (env["platform"] == 'windows' or env["platform"] == 'x11' or env["platform"] == 'osx' or env["platform"] == 'haiku' or is_android_x86)
|
||||
webm_cpu_arm = env["platform"] == 'iphone' or env["platform"] == 'bb10' or (env["platform"] == 'android' and env["android_arch"] != 'x86')
|
||||
is_android_x86 = (env["platform"] == 'android' and env["android_arch"] == 'x86')
|
||||
if is_android_x86:
|
||||
cpu_bits = '32'
|
||||
if osx_fat:
|
||||
webm_cpu_x86 = True
|
||||
else:
|
||||
webm_cpu_x86 = (cpu_bits == '32' or cpu_bits == '64') and (env["platform"] == 'windows' or env["platform"] == 'x11' or env["platform"] == 'osx' or env["platform"] == 'haiku' or is_android_x86)
|
||||
webm_cpu_arm = env["platform"] == 'iphone' or env["platform"] == 'bb10' or (env["platform"] == 'android' and env["android_arch"] != 'x86')
|
||||
|
||||
if webm_cpu_x86:
|
||||
import subprocess
|
||||
import os
|
||||
import subprocess
|
||||
import os
|
||||
|
||||
yasm_paths = [
|
||||
"yasm",
|
||||
"../../../yasm",
|
||||
]
|
||||
yasm_paths = [
|
||||
"yasm",
|
||||
"../../../yasm",
|
||||
]
|
||||
|
||||
yasm_found = False
|
||||
yasm_found = False
|
||||
|
||||
devnull = open(os.devnull)
|
||||
for yasm_path in yasm_paths:
|
||||
try:
|
||||
yasm_found = True
|
||||
subprocess.Popen([yasm_path, "--version"], stdout=devnull, stderr=devnull).communicate()
|
||||
except:
|
||||
yasm_found = False
|
||||
if yasm_found:
|
||||
break
|
||||
devnull = open(os.devnull)
|
||||
for yasm_path in yasm_paths:
|
||||
try:
|
||||
yasm_found = True
|
||||
subprocess.Popen([yasm_path, "--version"], stdout=devnull, stderr=devnull).communicate()
|
||||
except:
|
||||
yasm_found = False
|
||||
if yasm_found:
|
||||
break
|
||||
|
||||
if not yasm_found:
|
||||
webm_cpu_x86 = False
|
||||
print "YASM is necessary for WebM SIMD optimizations."
|
||||
if not yasm_found:
|
||||
webm_cpu_x86 = False
|
||||
print "YASM is necessary for WebM SIMD optimizations."
|
||||
|
||||
webm_simd_optimizations = False
|
||||
|
||||
if webm_cpu_x86:
|
||||
if osx_fat:
|
||||
#'osx' platform only: run python script which will compile using 'yasm' command and then merge 32-bit and 64-bit using 'lipo' command
|
||||
env_libvpx["AS"] = 'python modules/webm/libvpx/yasm_osx_fat.py'
|
||||
env_libvpx["ASFLAGS"] = '-I' + libvpx_dir[1:]
|
||||
env_libvpx["ASCOM"] = '$AS $ASFLAGS $TARGET $SOURCES'
|
||||
else:
|
||||
if env["platform"] == 'windows' or env["platform"] == 'winrt':
|
||||
env_libvpx["ASFORMAT"] = 'win'
|
||||
elif env["platform"] == 'osx':
|
||||
env_libvpx["ASFORMAT"] = 'macho'
|
||||
else:
|
||||
env_libvpx["ASFORMAT"] = 'elf'
|
||||
env_libvpx["ASFORMAT"] += cpu_bits
|
||||
if osx_fat:
|
||||
#'osx' platform only: run python script which will compile using 'yasm' command and then merge 32-bit and 64-bit using 'lipo' command
|
||||
env_libvpx["AS"] = 'python modules/webm/libvpx/yasm_osx_fat.py'
|
||||
env_libvpx["ASFLAGS"] = '-I' + libvpx_dir[1:]
|
||||
env_libvpx["ASCOM"] = '$AS $ASFLAGS $TARGET $SOURCES'
|
||||
else:
|
||||
if env["platform"] == 'windows' or env["platform"] == 'winrt':
|
||||
env_libvpx["ASFORMAT"] = 'win'
|
||||
elif env["platform"] == 'osx':
|
||||
env_libvpx["ASFORMAT"] = 'macho'
|
||||
else:
|
||||
env_libvpx["ASFORMAT"] = 'elf'
|
||||
env_libvpx["ASFORMAT"] += cpu_bits
|
||||
|
||||
env_libvpx["AS"] = 'yasm'
|
||||
env_libvpx["ASFLAGS"] = '-I' + libvpx_dir[1:] + ' -f $ASFORMAT -D $ASCPU'
|
||||
env_libvpx["ASCOM"] = '$AS $ASFLAGS -o $TARGET $SOURCES'
|
||||
env_libvpx["AS"] = 'yasm'
|
||||
env_libvpx["ASFLAGS"] = '-I' + libvpx_dir[1:] + ' -f $ASFORMAT -D $ASCPU'
|
||||
env_libvpx["ASCOM"] = '$AS $ASFLAGS -o $TARGET $SOURCES'
|
||||
|
||||
if cpu_bits == '32':
|
||||
env_libvpx["ASCPU"] = 'X86_32'
|
||||
elif cpu_bits == '64':
|
||||
env_libvpx["ASCPU"] = 'X86_64'
|
||||
if cpu_bits == '32':
|
||||
env_libvpx["ASCPU"] = 'X86_32'
|
||||
elif cpu_bits == '64':
|
||||
env_libvpx["ASCPU"] = 'X86_64'
|
||||
|
||||
env_libvpx.Append(CCFLAGS=['-DWEBM_X86ASM'])
|
||||
env_libvpx.Append(CCFLAGS=['-DWEBM_X86ASM'])
|
||||
|
||||
webm_simd_optimizations = True
|
||||
webm_simd_optimizations = True
|
||||
|
||||
if webm_cpu_arm:
|
||||
if env["platform"] == 'iphone':
|
||||
env_libvpx["ASFLAGS"] = '-arch armv7'
|
||||
elif env["platform"] == 'android':
|
||||
env_libvpx["ASFLAGS"] = '-mfpu=neon'
|
||||
elif env["platform"] == 'winrt':
|
||||
env_libvpx["AS"] = 'armasm'
|
||||
env_libvpx["ASFLAGS"] = ''
|
||||
env_libvpx["ASCOM"] = '$AS $ASFLAGS -o $TARGET $SOURCES'
|
||||
if env["platform"] == 'iphone':
|
||||
env_libvpx["ASFLAGS"] = '-arch armv7'
|
||||
elif env["platform"] == 'android':
|
||||
env_libvpx["ASFLAGS"] = '-mfpu=neon'
|
||||
elif env["platform"] == 'winrt':
|
||||
env_libvpx["AS"] = 'armasm'
|
||||
env_libvpx["ASFLAGS"] = ''
|
||||
env_libvpx["ASCOM"] = '$AS $ASFLAGS -o $TARGET $SOURCES'
|
||||
|
||||
env_libvpx.Append(CCFLAGS=['-DWEBM_ARMASM'])
|
||||
env_libvpx.Append(CCFLAGS=['-DWEBM_ARMASM'])
|
||||
|
||||
webm_simd_optimizations = True
|
||||
webm_simd_optimizations = True
|
||||
|
||||
if webm_simd_optimizations == False:
|
||||
print "WebM SIMD optimizations are disabled. Check if your CPU architecture, CPU bits or platform are supported!"
|
||||
print "WebM SIMD optimizations are disabled. Check if your CPU architecture, CPU bits or platform are supported!"
|
||||
|
||||
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources)
|
||||
if webm_cpu_x86:
|
||||
is_clang_or_gcc = ('gcc' in env["CC"]) or ('clang' in env["CC"])
|
||||
is_clang_or_gcc = ('gcc' in env["CC"]) or ('clang' in env["CC"])
|
||||
|
||||
env_libvpx_mmx = env_libvpx.Clone()
|
||||
if cpu_bits == '32' and is_clang_or_gcc:
|
||||
env_libvpx_mmx.Append(CCFLAGS=['-mmmx'])
|
||||
env_libvpx_mmx.add_source_files(env.modules_sources, libvpx_sources_intrin_x86_mmx)
|
||||
env_libvpx_mmx = env_libvpx.Clone()
|
||||
if cpu_bits == '32' and is_clang_or_gcc:
|
||||
env_libvpx_mmx.Append(CCFLAGS=['-mmmx'])
|
||||
env_libvpx_mmx.add_source_files(env.modules_sources, libvpx_sources_intrin_x86_mmx)
|
||||
|
||||
env_libvpx_sse2 = env_libvpx.Clone()
|
||||
if cpu_bits == '32' and is_clang_or_gcc:
|
||||
env_libvpx_sse2.Append(CCFLAGS=['-msse2'])
|
||||
env_libvpx_sse2.add_source_files(env.modules_sources, libvpx_sources_intrin_x86_sse2)
|
||||
env_libvpx_sse2 = env_libvpx.Clone()
|
||||
if cpu_bits == '32' and is_clang_or_gcc:
|
||||
env_libvpx_sse2.Append(CCFLAGS=['-msse2'])
|
||||
env_libvpx_sse2.add_source_files(env.modules_sources, libvpx_sources_intrin_x86_sse2)
|
||||
|
||||
env_libvpx_ssse3 = env_libvpx.Clone()
|
||||
if is_clang_or_gcc:
|
||||
env_libvpx_ssse3.Append(CCFLAGS=['-mssse3'])
|
||||
env_libvpx_ssse3.add_source_files(env.modules_sources, libvpx_sources_intrin_x86_ssse3)
|
||||
env_libvpx_ssse3 = env_libvpx.Clone()
|
||||
if is_clang_or_gcc:
|
||||
env_libvpx_ssse3.Append(CCFLAGS=['-mssse3'])
|
||||
env_libvpx_ssse3.add_source_files(env.modules_sources, libvpx_sources_intrin_x86_ssse3)
|
||||
|
||||
env_libvpx_avx2 = env_libvpx.Clone()
|
||||
if is_clang_or_gcc:
|
||||
env_libvpx_avx2.Append(CCFLAGS=['-mavx2'])
|
||||
env_libvpx_avx2.add_source_files(env.modules_sources, libvpx_sources_intrin_x86_avx2)
|
||||
env_libvpx_avx2 = env_libvpx.Clone()
|
||||
if is_clang_or_gcc:
|
||||
env_libvpx_avx2.Append(CCFLAGS=['-mavx2'])
|
||||
env_libvpx_avx2.add_source_files(env.modules_sources, libvpx_sources_intrin_x86_avx2)
|
||||
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_intrin_x86)
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_intrin_x86)
|
||||
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_x86asm)
|
||||
if cpu_bits == '64' or osx_fat:
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_x86_64asm)
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_x86asm)
|
||||
if cpu_bits == '64' or osx_fat:
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_x86_64asm)
|
||||
elif webm_cpu_arm:
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm)
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm)
|
||||
|
||||
env_libvpx_neon = env_libvpx.Clone()
|
||||
if env["platform"] == 'android' and env["android_arch"] == 'armv6':
|
||||
env_libvpx_neon.Append(CCFLAGS=['-mfpu=neon'])
|
||||
env_libvpx_neon.add_source_files(env.modules_sources, libvpx_sources_arm_neon)
|
||||
env_libvpx_neon = env_libvpx.Clone()
|
||||
if env["platform"] == 'android' and env["android_arch"] == 'armv6':
|
||||
env_libvpx_neon.Append(CCFLAGS=['-mfpu=neon'])
|
||||
env_libvpx_neon.add_source_files(env.modules_sources, libvpx_sources_arm_neon)
|
||||
|
||||
if env["platform"] == 'winrt':
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm_neon_armasm_ms)
|
||||
elif env["platform"] == 'iphone':
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm_neon_gas_apple)
|
||||
else:
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm_neon_gas)
|
||||
if env["platform"] == 'winrt':
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm_neon_armasm_ms)
|
||||
elif env["platform"] == 'iphone':
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm_neon_gas_apple)
|
||||
else:
|
||||
env_libvpx.add_source_files(env.modules_sources, libvpx_sources_arm_neon_gas)
|
||||
|
||||
@ -14,25 +14,25 @@ lipo_command = ''
|
||||
exit_code = 1
|
||||
|
||||
for arch in ['32', '64']:
|
||||
if arch == '32' and input_file.endswith('x86_64.asm'):
|
||||
can_remove[arch] = False
|
||||
else:
|
||||
command = 'yasm ' + includes + ' -f macho' + arch + ' -D X86_' + arch + ' -o ' + output_file + '.' + arch + ' ' + input_file
|
||||
print(command)
|
||||
if os.system(command) == 0:
|
||||
lipo_command += output_file + '.' + arch + ' '
|
||||
can_remove[arch] = True
|
||||
else:
|
||||
can_remove[arch] = False
|
||||
if arch == '32' and input_file.endswith('x86_64.asm'):
|
||||
can_remove[arch] = False
|
||||
else:
|
||||
command = 'yasm ' + includes + ' -f macho' + arch + ' -D X86_' + arch + ' -o ' + output_file + '.' + arch + ' ' + input_file
|
||||
print(command)
|
||||
if os.system(command) == 0:
|
||||
lipo_command += output_file + '.' + arch + ' '
|
||||
can_remove[arch] = True
|
||||
else:
|
||||
can_remove[arch] = False
|
||||
|
||||
if lipo_command != '':
|
||||
lipo_command = 'lipo -create ' + lipo_command + '-output ' + output_file
|
||||
print(lipo_command)
|
||||
if os.system(lipo_command) == 0:
|
||||
exit_code = 0
|
||||
lipo_command = 'lipo -create ' + lipo_command + '-output ' + output_file
|
||||
print(lipo_command)
|
||||
if os.system(lipo_command) == 0:
|
||||
exit_code = 0
|
||||
|
||||
for arch in ['32', '64']:
|
||||
if can_remove[arch]:
|
||||
os.remove(output_file + '.' + arch)
|
||||
if can_remove[arch]:
|
||||
os.remove(output_file + '.' + arch)
|
||||
|
||||
sys.exit(exit_code)
|
||||
|
||||
@ -7,115 +7,115 @@ env_webp = env_modules.Clone()
|
||||
|
||||
# Thirdparty source files
|
||||
if (env["libwebp"] != "system"): # builtin
|
||||
thirdparty_dir = "#thirdparty/libwebp/"
|
||||
thirdparty_sources = [
|
||||
"enc/webpenc.c",
|
||||
"enc/near_lossless.c",
|
||||
"enc/frame.c",
|
||||
"enc/alpha.c",
|
||||
"enc/picture_csp.c",
|
||||
"enc/vp8l.c",
|
||||
"enc/picture_psnr.c",
|
||||
"enc/delta_palettization.c",
|
||||
"enc/syntax.c",
|
||||
"enc/backward_references.c",
|
||||
"enc/token.c",
|
||||
"enc/analysis.c",
|
||||
"enc/iterator.c",
|
||||
"enc/picture_tools.c",
|
||||
"enc/picture_rescale.c",
|
||||
"enc/config.c",
|
||||
"enc/tree.c",
|
||||
"enc/cost.c",
|
||||
"enc/picture.c",
|
||||
"enc/quant.c",
|
||||
"enc/filter.c",
|
||||
"enc/histogram.c",
|
||||
"utils/rescaler.c",
|
||||
"utils/filters.c",
|
||||
"utils/quant_levels_dec.c",
|
||||
"utils/huffman.c",
|
||||
"utils/thread.c",
|
||||
"utils/quant_levels.c",
|
||||
"utils/bit_writer.c",
|
||||
"utils/bit_reader.c",
|
||||
"utils/random.c",
|
||||
"utils/utils.c",
|
||||
"utils/huffman_encode.c",
|
||||
"utils/color_cache.c",
|
||||
"mux/muxinternal.c",
|
||||
"mux/muxread.c",
|
||||
"mux/anim_encode.c",
|
||||
"mux/muxedit.c",
|
||||
"dec/webp.c",
|
||||
"dec/frame.c",
|
||||
"dec/alpha.c",
|
||||
"dec/vp8l.c",
|
||||
"dec/io.c",
|
||||
"dec/vp8.c",
|
||||
"dec/idec.c",
|
||||
"dec/tree.c",
|
||||
"dec/buffer.c",
|
||||
"dec/quant.c",
|
||||
"demux/demux.c",
|
||||
"demux/anim_decode.c",
|
||||
"dsp/yuv.c",
|
||||
"dsp/filters_sse2.c",
|
||||
"dsp/dec_sse41.c",
|
||||
"dsp/rescaler.c",
|
||||
"dsp/lossless_sse2.c",
|
||||
"dsp/alpha_processing_sse41.c",
|
||||
"dsp/alpha_processing_sse2.c",
|
||||
"dsp/filters.c",
|
||||
"dsp/upsampling_mips_dsp_r2.c",
|
||||
"dsp/dec_neon.c",
|
||||
"dsp/enc_neon.c",
|
||||
"dsp/lossless_enc_mips32.c",
|
||||
"dsp/lossless_enc_sse2.c",
|
||||
"dsp/upsampling.c",
|
||||
"dsp/lossless_enc_neon.c",
|
||||
"dsp/alpha_processing.c",
|
||||
"dsp/cost_sse2.c",
|
||||
"dsp/dec_mips32.c",
|
||||
"dsp/enc_avx2.c",
|
||||
"dsp/rescaler_mips32.c",
|
||||
"dsp/enc.c",
|
||||
"dsp/lossless_enc_sse41.c",
|
||||
"dsp/cost_mips32.c",
|
||||
"dsp/lossless_mips_dsp_r2.c",
|
||||
"dsp/filters_mips_dsp_r2.c",
|
||||
"dsp/upsampling_neon.c",
|
||||
"dsp/alpha_processing_mips_dsp_r2.c",
|
||||
"dsp/enc_mips_dsp_r2.c",
|
||||
"dsp/lossless.c",
|
||||
"dsp/yuv_mips_dsp_r2.c",
|
||||
"dsp/cost_mips_dsp_r2.c",
|
||||
"dsp/argb.c",
|
||||
"dsp/dec_sse2.c",
|
||||
"dsp/rescaler_sse2.c",
|
||||
"dsp/enc_sse41.c",
|
||||
"dsp/argb_mips_dsp_r2.c",
|
||||
"dsp/lossless_enc_mips_dsp_r2.c",
|
||||
"dsp/dec_clip_tables.c",
|
||||
"dsp/yuv_mips32.c",
|
||||
"dsp/cpu.c",
|
||||
"dsp/dec.c",
|
||||
"dsp/argb_sse2.c",
|
||||
"dsp/lossless_neon.c",
|
||||
"dsp/lossless_enc.c",
|
||||
"dsp/enc_mips32.c",
|
||||
"dsp/cost.c",
|
||||
"dsp/rescaler_mips_dsp_r2.c",
|
||||
"dsp/dec_mips_dsp_r2.c",
|
||||
"dsp/rescaler_neon.c",
|
||||
"dsp/yuv_sse2.c",
|
||||
"dsp/enc_sse2.c",
|
||||
"dsp/upsampling_sse2.c",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
thirdparty_dir = "#thirdparty/libwebp/"
|
||||
thirdparty_sources = [
|
||||
"enc/webpenc.c",
|
||||
"enc/near_lossless.c",
|
||||
"enc/frame.c",
|
||||
"enc/alpha.c",
|
||||
"enc/picture_csp.c",
|
||||
"enc/vp8l.c",
|
||||
"enc/picture_psnr.c",
|
||||
"enc/delta_palettization.c",
|
||||
"enc/syntax.c",
|
||||
"enc/backward_references.c",
|
||||
"enc/token.c",
|
||||
"enc/analysis.c",
|
||||
"enc/iterator.c",
|
||||
"enc/picture_tools.c",
|
||||
"enc/picture_rescale.c",
|
||||
"enc/config.c",
|
||||
"enc/tree.c",
|
||||
"enc/cost.c",
|
||||
"enc/picture.c",
|
||||
"enc/quant.c",
|
||||
"enc/filter.c",
|
||||
"enc/histogram.c",
|
||||
"utils/rescaler.c",
|
||||
"utils/filters.c",
|
||||
"utils/quant_levels_dec.c",
|
||||
"utils/huffman.c",
|
||||
"utils/thread.c",
|
||||
"utils/quant_levels.c",
|
||||
"utils/bit_writer.c",
|
||||
"utils/bit_reader.c",
|
||||
"utils/random.c",
|
||||
"utils/utils.c",
|
||||
"utils/huffman_encode.c",
|
||||
"utils/color_cache.c",
|
||||
"mux/muxinternal.c",
|
||||
"mux/muxread.c",
|
||||
"mux/anim_encode.c",
|
||||
"mux/muxedit.c",
|
||||
"dec/webp.c",
|
||||
"dec/frame.c",
|
||||
"dec/alpha.c",
|
||||
"dec/vp8l.c",
|
||||
"dec/io.c",
|
||||
"dec/vp8.c",
|
||||
"dec/idec.c",
|
||||
"dec/tree.c",
|
||||
"dec/buffer.c",
|
||||
"dec/quant.c",
|
||||
"demux/demux.c",
|
||||
"demux/anim_decode.c",
|
||||
"dsp/yuv.c",
|
||||
"dsp/filters_sse2.c",
|
||||
"dsp/dec_sse41.c",
|
||||
"dsp/rescaler.c",
|
||||
"dsp/lossless_sse2.c",
|
||||
"dsp/alpha_processing_sse41.c",
|
||||
"dsp/alpha_processing_sse2.c",
|
||||
"dsp/filters.c",
|
||||
"dsp/upsampling_mips_dsp_r2.c",
|
||||
"dsp/dec_neon.c",
|
||||
"dsp/enc_neon.c",
|
||||
"dsp/lossless_enc_mips32.c",
|
||||
"dsp/lossless_enc_sse2.c",
|
||||
"dsp/upsampling.c",
|
||||
"dsp/lossless_enc_neon.c",
|
||||
"dsp/alpha_processing.c",
|
||||
"dsp/cost_sse2.c",
|
||||
"dsp/dec_mips32.c",
|
||||
"dsp/enc_avx2.c",
|
||||
"dsp/rescaler_mips32.c",
|
||||
"dsp/enc.c",
|
||||
"dsp/lossless_enc_sse41.c",
|
||||
"dsp/cost_mips32.c",
|
||||
"dsp/lossless_mips_dsp_r2.c",
|
||||
"dsp/filters_mips_dsp_r2.c",
|
||||
"dsp/upsampling_neon.c",
|
||||
"dsp/alpha_processing_mips_dsp_r2.c",
|
||||
"dsp/enc_mips_dsp_r2.c",
|
||||
"dsp/lossless.c",
|
||||
"dsp/yuv_mips_dsp_r2.c",
|
||||
"dsp/cost_mips_dsp_r2.c",
|
||||
"dsp/argb.c",
|
||||
"dsp/dec_sse2.c",
|
||||
"dsp/rescaler_sse2.c",
|
||||
"dsp/enc_sse41.c",
|
||||
"dsp/argb_mips_dsp_r2.c",
|
||||
"dsp/lossless_enc_mips_dsp_r2.c",
|
||||
"dsp/dec_clip_tables.c",
|
||||
"dsp/yuv_mips32.c",
|
||||
"dsp/cpu.c",
|
||||
"dsp/dec.c",
|
||||
"dsp/argb_sse2.c",
|
||||
"dsp/lossless_neon.c",
|
||||
"dsp/lossless_enc.c",
|
||||
"dsp/enc_mips32.c",
|
||||
"dsp/cost.c",
|
||||
"dsp/rescaler_mips_dsp_r2.c",
|
||||
"dsp/dec_mips_dsp_r2.c",
|
||||
"dsp/rescaler_neon.c",
|
||||
"dsp/yuv_sse2.c",
|
||||
"dsp/enc_sse2.c",
|
||||
"dsp/upsampling_sse2.c",
|
||||
]
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
env_webp.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_webp.Append(CPPPATH = [thirdparty_dir])
|
||||
env_webp.add_source_files(env.modules_sources, thirdparty_sources)
|
||||
env_webp.Append(CPPPATH = [thirdparty_dir])
|
||||
|
||||
# Godot source files
|
||||
env_webp.add_source_files(env.modules_sources, "*.cpp")
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
def can_build(platform):
|
||||
return True
|
||||
return True
|
||||
|
||||
def configure(env):
|
||||
pass
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user