yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
206f6cf56
master
1# 2# WebAssembly bindings for Slang 3# 4# This is an executable target because emcmake produces .a files without bindings if you just create a static library 5# https://stackoverflow.com/questions/63622009/static-library-built-with-cmake-as-a-with-emscripten-instead-of-wasm-js 6if ( EMSCRIPTEN) 7slang_add_target ( 8. 9EXECUTABLE 10EXCLUDE_FROM_ALL 11USE_FEWER_WARNINGS 12LINK_WITH_PRIVATE 13miniz 14lz4_static 15slang 16core 17compiler-core 18slang-capability-defs 19slang-capability-lookup 20slang-fiddle-output 21slang-lookup-tables 22INCLUDE_DIRECTORIES_PUBLIC ${ slang_SOURCE_DIR } /include . 23) 24# To generate binding code 25target_link_options ( 26slang-wasm 27PUBLIC 28"--bind" 29"--emit-tsd" "interface.d.ts" 30"-sEXPORT_ES6=1" 31"-sMODULARIZE=1" 32"-sEXPORTED_RUNTIME_METHODS=['FS']" 33) 34endif ()