mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-10-28 11:45:27 +00:00
basisu_wuffs.cpp defines WUFFS_IMPLEMENTATION and #includes the unmodified encoder/3rdparty/wuffs-v0.4.c with all warnings silenced in that TU only (MSVC #pragma warning(push, 0)/pop; gcc/clang diagnostic push/ignored/pop). basisu_wuffs_config.h holds the Wuffs configuration (modules BASE core/ interfaces/pixconv, ADLER32, CRC32, DEFLATE, ZLIB, PNG, JPEG, TARGA, QOI; RGBA_NONPREMUL destination only; WUFFS_CONFIG__AVOID_CPU_ARCH = no SIMD), shared with basisu_enc.cpp's declarations-only include (next commit). With BASISU_USE_WUFFS_LDR_LOADER=0 the TU compiles to nothing. Added to every build that compiles the encoder: root CMakeLists.txt (native, -m32, WASI, Python module) with a BASISU_USE_WUFFS_LDR_LOADER option (default ON), webgl/encoder/CMakeLists.txt (all Emscripten variants, same option), and encoder_lib.vcxproj/.filters (basisu.sln: basisu, examples). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>