Skip to content

Commit

Permalink
CMake for linux & wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
mathis committed May 19, 2022
1 parent 659e703 commit 23e195b
Show file tree
Hide file tree
Showing 5 changed files with 285 additions and 423 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ CMakeSettings.json

.clang-format
.vs
.cache
CMakeFiles
compile_commands.json
21 changes: 0 additions & 21 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,6 @@ if(${BUILD_TARGET} STREQUAL client)

if(${BUILD_PLATFORM} STREQUAL wasm)
set(BUILDPATH "${BUILDPATH}/Wasm")
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS
"-g0 -O3
-fno-rtti
-Wno-error
-Wno-pthreads-mem-growth
-s WASM=1
-pthread -s PTHREAD_POOL_SIZE=5
-s USE_SDL=2
-s USE_SDL_IMAGE=2
-s SDL2_IMAGE_FORMATS='[\"png\"]'
-s USE_SDL_GFX=2
-s USE_FREETYPE=2
-s ALLOW_MEMORY_GROWTH=1
-s MAX_WEBGL_VERSION=2
-s MIN_WEBGL_VERSION=2
-s FULL_ES2=1
-s FULL_ES3=1
-s WEBSOCKET_URL='wss://pi.thissma.fr:55001'
-s WEBSOCKET_SUBPROTOCOL='binary'
--preload-file data --preload-file src -Wno-unused-command-line-argument")
# MESON_ARGS = --prefix=${PWD}/WASM --cross-file=emscripten-crossfile.txt --default-library=static --buildtype=debug --wrap-mode=nofallback

else()
set(BUILDPATH "${BUILDPATH}/App")
Expand Down
Loading

0 comments on commit 23e195b

Please sign in to comment.