mirror of https://github.com/bjornbytes/lovr.git
Switch back to emscripten-included zlib;
This commit is contained in:
parent
baede52ae6
commit
c08a189b16
|
@ -9,8 +9,8 @@ if(EMSCRIPTEN)
|
|||
"-s FULL_ES3=1 "
|
||||
"-s USE_FREETYPE=1 "
|
||||
"-s USE_GLFW=3 "
|
||||
"-s USE_ZLIB=1 "
|
||||
"-s ALLOW_MEMORY_GROWTH=1 "
|
||||
"-s NO_EXIT_RUNTIME=1 "
|
||||
"-s WASM=1"
|
||||
)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LOVR_EMSCRIPTEN_FLAGS}")
|
||||
|
@ -46,7 +46,7 @@ endif()
|
|||
# Assimp
|
||||
set(ASSIMP_BUILD_ASSIMP_TOOLS OFF CACHE BOOL "")
|
||||
set(ASSIMP_BUILD_TESTS OFF CACHE BOOL "")
|
||||
set(ASSIMP_BUILD_ZLIB ON CACHE BOOL "")
|
||||
#set(ASSIMP_BUILD_ZLIB ON CACHE BOOL "")
|
||||
set(ASSIMP_NO_EXPORT ON OFF CACHE BOOL "")
|
||||
set(ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT OFF CACHE BOOL "")
|
||||
set(ASSIMP_BUILD_COLLADA_IMPORTER ON CACHE BOOL "")
|
||||
|
@ -54,6 +54,9 @@ set(ASSIMP_BUILD_FBX_IMPORTER ON CACHE BOOL "")
|
|||
set(ASSIMP_BUILD_GLTF_IMPORTER ON CACHE BOOL "")
|
||||
set(ASSIMP_BUILD_OBJ_IMPORTER ON CACHE BOOL "")
|
||||
if(EMSCRIPTEN)
|
||||
set(ZLIB_FOUND 1)
|
||||
set(ZLIB_LIBRARIES "-s USE_ZLIB=1")
|
||||
set(ZLIB_INCLUDE_DIR "assimp/contrib/zlib")
|
||||
add_subdirectory(deps/assimp assimp)
|
||||
include_directories(deps/assimp/include ${CMAKE_BINARY_DIR}/assimp/include)
|
||||
set(LOVR_ASSIMP assimp)
|
||||
|
|
Loading…
Reference in New Issue