1
0
mirror of https://github.com/blupi-games/planetblupi-dev synced 2024-12-30 13:55:36 +01:00

Enable WASM only if ASMJS is not ON

This commit is contained in:
Mathieu Schroeter 2018-08-07 16:43:00 +02:00
parent 04ec398d17
commit 6443774cdf

View File

@ -38,10 +38,12 @@ if (BUILD_DARWIN)
set (CMD_CPPFLAGS "-I${CMAKE_BINARY_DIR}/include")
elseif (BUILD_JS)
set (EMSCRIPTEN_FLAGS
"-s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS=['png'] -s USE_OGG=1 -s USE_VORBIS=1 -s TOTAL_MEMORY=256MB -s WASM=1"
"-s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS=['png'] -s USE_OGG=1 -s USE_VORBIS=1 -s TOTAL_MEMORY=256MB"
)
if (ASMJS)
set (EMSCRIPTEN_FLAGS "${EMSCRIPTEN_FLAGS} -s WASM=0")
else ()
set (EMSCRIPTEN_FLAGS "${EMSCRIPTEN_FLAGS} -s WASM=1")
endif ()
set (CMD_CXXFLAGS ${EMSCRIPTEN_FLAGS})
set (CMD_CFLAGS ${EMSCRIPTEN_FLAGS})