mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-09-10 12:38:18 +00:00
Merge pull request #27 from zeux/wasmopt
Fix webgl CMakeLists.txt setup
This commit is contained in:
@@ -10,10 +10,12 @@ if (EMSCRIPTEN)
|
||||
basis_wrappers.cpp
|
||||
)
|
||||
|
||||
target_compile_definitions(basis_transcoder.js PRIVATE NDEBUG BASISD_SUPPORT_BC7=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 -DNDEBUG -DBASISD_SUPPORT_BC7=0")
|
||||
LINK_FLAGS "--bind -s ALLOW_MEMORY_GROWTH=1 -O3 -s ASSERTIONS=0 -s MALLOC=emmalloc")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user