poll workers for non-threaded support, emscripten main loop, remove twn_model.c
This commit is contained in:
@@ -5,6 +5,8 @@ project(townengine LANGUAGES C)
|
||||
set(CMAKE_MESSAGE_LOG_LEVEL "WARNING")
|
||||
set(CMAKE_INSTALL_MESSAGE NEVER)
|
||||
|
||||
# TODO: test whether webgl 1 is good enough.
|
||||
|
||||
# SDL dependencies
|
||||
# for whatever reason Emscripten has SDL2 config, but not actual SDL2 port by default
|
||||
if(NOT EMSCRIPTEN)
|
||||
@@ -171,7 +173,8 @@ function(give_options_without_warnings target)
|
||||
set(LINK_FLAGS
|
||||
-Bsymbolic-functions
|
||||
|
||||
$<$<BOOL:${EMSCRIPTEN}>:-sLEGACY_GL_EMULATION -sGL_FFP_ONLY -sGL_UNSAFE_OPTS=1>
|
||||
$<$<BOOL:${EMSCRIPTEN}>:-sLEGACY_GL_EMULATION -sGL_FFP_ONLY -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2
|
||||
-sENVIRONMENT=web -sDEFAULT_TO_CXX=0>
|
||||
$<$<BOOL:${EMSCRIPTEN}>:--preload-file ${TWN_OUT_DIR}/data@data -sALLOW_MEMORY_GROWTH>
|
||||
$<$<NOT:$<BOOL:${EMSCRIPTEN}>>:-Wl,--as-needed>
|
||||
$<$<BOOL:${LINUX}>:-Wl,--hash-style=gnu>)
|
||||
|
||||
Reference in New Issue
Block a user