mirror of https://github.com/bjornbytes/lovr.git
Fix wasm compilation issues;
This commit is contained in:
parent
5f8f8a540e
commit
8ab26fe436
|
@ -45,7 +45,7 @@ if(EMSCRIPTEN)
|
||||||
"-s FORCE_FILESYSTEM=1 "
|
"-s FORCE_FILESYSTEM=1 "
|
||||||
"-s ALLOW_MEMORY_GROWTH=1 "
|
"-s ALLOW_MEMORY_GROWTH=1 "
|
||||||
"-s \"EXPORTED_FUNCTIONS=[ "
|
"-s \"EXPORTED_FUNCTIONS=[ "
|
||||||
"'_main','_lovrRun','_lovrQuit','_lovrDestroy',"
|
"'_main','_lovrRun','_lovrQuit',"
|
||||||
"'_mat4_identity','_mat4_invert','_mat4_multiply','_mat4_rotateQuat','_mat4_transform','_mat4_transformDirection','_mat4_translate',"
|
"'_mat4_identity','_mat4_invert','_mat4_multiply','_mat4_rotateQuat','_mat4_transform','_mat4_transformDirection','_mat4_translate',"
|
||||||
"'_quat_fromMat4','_quat_getAngleAxis'"
|
"'_quat_fromMat4','_quat_getAngleAxis'"
|
||||||
"]\" "
|
"]\" "
|
||||||
|
@ -297,10 +297,12 @@ if (LOVR_ENABLE_HEADSET AND LOVR_USE_OCULUS AND LOVR_OCULUS_PATH)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# pthreads
|
# pthreads
|
||||||
if(NOT WIN32)
|
if(LOVR_ENABLE_THREAD)
|
||||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
if(NOT WIN32 AND NOT EMSCRIPTEN)
|
||||||
find_package(Threads REQUIRED)
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||||
set(LOVR_PTHREADS Threads::Threads)
|
find_package(Threads REQUIRED)
|
||||||
|
set(LOVR_PTHREADS Threads::Threads)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# LÖVR
|
# LÖVR
|
||||||
|
|
Loading…
Reference in New Issue