|
|
@ -10,6 +10,7 @@ project("Adventures in Lestoria") |
|
|
|
|
|
|
|
|
|
|
|
if (EMSCRIPTEN) |
|
|
|
if (EMSCRIPTEN) |
|
|
|
add_compile_options("-s" "USE_FREETYPE=1") |
|
|
|
add_compile_options("-s" "USE_FREETYPE=1") |
|
|
|
|
|
|
|
add_compile_options("-pthread") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
add_compile_options("-O2") |
|
|
|
add_compile_options("-O2") |
|
|
|
|
|
|
|
|
|
|
@ -308,6 +309,8 @@ if (EMSCRIPTEN) |
|
|
|
-sFETCH=1 |
|
|
|
-sFETCH=1 |
|
|
|
-sEXPORTED_RUNTIME_METHODS=stringToNewUTF8 |
|
|
|
-sEXPORTED_RUNTIME_METHODS=stringToNewUTF8 |
|
|
|
-std=c++2a |
|
|
|
-std=c++2a |
|
|
|
|
|
|
|
-pthread |
|
|
|
|
|
|
|
-sPTHREAD_POOL_SIZE=navigator.hardwareConcurrency |
|
|
|
--proxy-to-worker |
|
|
|
--proxy-to-worker |
|
|
|
--preload-file ${SOURCE_DATA_EMSCRIPTEN_DIR}@assets) |
|
|
|
--preload-file ${SOURCE_DATA_EMSCRIPTEN_DIR}@assets) |
|
|
|
else() |
|
|
|
else() |
|
|
|