mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use libjpeg-turbo for improved jpg compatibility and speed
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
cc948984ad
commit
a0cc41b5ed
131 changed files with 50882 additions and 5276 deletions
|
|
@ -38,6 +38,7 @@ if basisu_encoder:
|
|||
"basisu_ssim.cpp",
|
||||
"basisu_uastc_enc.cpp",
|
||||
"basisu_uastc_hdr_4x4_enc.cpp",
|
||||
"jpgd.cpp",
|
||||
"pvpngreader.cpp",
|
||||
]
|
||||
encoder_sources = [thirdparty_dir + "encoder/" + file for file in encoder_sources]
|
||||
|
|
@ -47,7 +48,6 @@ transcoder_sources = [thirdparty_dir + "transcoder/basisu_transcoder.cpp"]
|
|||
env_basisu.Prepend(CPPEXTPATH=[thirdparty_dir])
|
||||
|
||||
if basisu_encoder:
|
||||
env_basisu.Prepend(CPPEXTPATH=["#thirdparty/jpeg-compressor"])
|
||||
env_basisu.Prepend(CPPEXTPATH=["#thirdparty/tinyexr"])
|
||||
|
||||
if env["builtin_zstd"]:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
def can_build(env, platform):
|
||||
if env.editor_build: # Encoder dependencies
|
||||
env.module_add_dependencies("basis_universal", ["jpg", "tinyexr"])
|
||||
env.module_add_dependencies("basis_universal", ["tinyexr"])
|
||||
return True
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue