make glslang.js easy to use
This commit is contained in:
parent
a91561d583
commit
b16a4bc45e
3 changed files with 78 additions and 25 deletions
|
|
@ -131,6 +131,7 @@ if(ENABLE_GLSLANG_WEB)
|
|||
set_target_properties(glslang.js PROPERTIES
|
||||
OUTPUT_NAME "glslang"
|
||||
SUFFIX ".js"
|
||||
LINK_FLAGS "--bind")
|
||||
LINK_FLAGS "--bind -s EXPORT_NAME=\"glslangModule\"")
|
||||
em_link_pre_js(glslang.js ${CMAKE_CURRENT_SOURCE_DIR}/glslang.pre.js)
|
||||
endif(EMSCRIPTEN)
|
||||
endif(ENABLE_GLSLANG_WEB)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue