|
|
@ -96,10 +96,9 @@ if (${PLATFORM} MATCHES "Android") |
|
|
|
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/shaders/shaders_basic_lighting.c) |
|
|
|
|
|
|
|
elseif (${PLATFORM} MATCHES "Web") |
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Os -s USE_GLFW=3 -s ASSERTIONS=1 -s WASM=1 -s ASYNCIFY") |
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Os") |
|
|
|
# Since WASM is used, ALLOW_MEMORY_GROWTH has no extra overheads |
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s ALLOW_MEMORY_GROWTH=1 --no-heap-copy") |
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --shell-file ${CMAKE_SOURCE_DIR}/src/shell.html") |
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s WASM=1 -s ASYNCIFY -s ALLOW_MEMORY_GROWTH=1 --shell-file ${CMAKE_SOURCE_DIR}/src/shell.html") |
|
|
|
set(CMAKE_EXECUTABLE_SUFFIX ".html") |
|
|
|
|
|
|
|
list(REMOVE_ITEM example_sources ${CMAKE_CURRENT_SOURCE_DIR}/others/raylib_opengl_interop.c) |
|
|
|