Add web support

This commit is contained in:
2023-11-21 06:09:37 +01:00
parent 9fac356492
commit 133a9740c8
4 changed files with 45 additions and 20 deletions

View File

@@ -30,3 +30,8 @@ add_executable(PixelDefense
target_link_libraries(PixelDefense LINK_PRIVATE Breeze)
if (EMSCRIPTEN)
set_target_properties(PixelDefense
PROPERTIES SUFFIX ".html"
LINK_FLAGS " --bind -s WASM=1 -s STACK_SIZE=512kb -s ASSERTIONS=2 -s MIN_WEBGL_VERSION=1 --preload-file ../assets -g2 -gseparate-dwarf -gsource-map -s USE_GLFW=3")
endif()