mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-08-15 15:49:32 +00:00
- Renaming -no_auto_global_sel_pal to -auto_global_sel_pal, disabling global selector palette usage by default to speed up compression on small images - Renaming texture format enums - Fixing uninitialized memory issue in front end - it wouldn't have affected the correctness of the output, or output quality - Bumping command line tool up to v1.10
22 lines
832 B
CMake
22 lines
832 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(basisu_transcoder_js)
|
|
|
|
if (EMSCRIPTEN)
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
add_executable(basis_transcoder.js
|
|
../../transcoder/basisu_transcoder.cpp
|
|
basis_wrappers.cpp
|
|
)
|
|
|
|
target_compile_definitions(basis_transcoder.js PRIVATE NDEBUG BASISD_SUPPORT_BC7=0 BASISD_SUPPORT_ATC=0 BASISD_SUPPORT_ASTC_HIGHER_OPAQUE_QUALITY=0 BASISD_SUPPORT_PVRTC2=0 BASISD_SUPPORT_FXT1=0 BASISD_SUPPORT_ETC2_EAC_RG11=0)
|
|
target_compile_options(basis_transcoder.js PRIVATE -O3)
|
|
target_include_directories(basis_transcoder.js PRIVATE ../../transcoder)
|
|
|
|
set_target_properties(basis_transcoder.js PROPERTIES
|
|
OUTPUT_NAME "basis_transcoder"
|
|
SUFFIX ".js"
|
|
LINK_FLAGS "--bind -s ALLOW_MEMORY_GROWTH=1 -O3 -s ASSERTIONS=0 -s MALLOC=emmalloc -s MODULARIZE=1 -s EXPORT_NAME=BASIS ")
|
|
endif()
|