mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
* Fix SDL build.
This commit is contained in:
@@ -3,6 +3,7 @@ project(reminecraftpe-sdl)
|
||||
|
||||
# SDL Build
|
||||
add_compile_definitions(USE_SDL USE_OPENAL HANDLE_CHARS_SEPARATELY)
|
||||
set(USE_SDL 1)
|
||||
|
||||
# WASM
|
||||
if(EMSCRIPTEN)
|
||||
|
||||
@@ -246,13 +246,12 @@ target_include_directories(reminecraftpe-core PUBLIC ${INCLUDES})
|
||||
add_subdirectory(../thirdparty/raknet raknet)
|
||||
target_link_libraries(reminecraftpe-core PUBLIC raknet)
|
||||
|
||||
# zlib - Android targets the libraries
|
||||
if(NOT ANDROID)
|
||||
# zlib - Android builds with its own version
|
||||
# Hack - If we're not building for Android, surely we're building with SDL
|
||||
if(USE_SDL)
|
||||
add_subdirectory(../thirdparty/zlib zlib)
|
||||
target_link_libraries(reminecraftpe-core PUBLIC zlib)
|
||||
endif()
|
||||
|
||||
if(SDL)
|
||||
|
||||
# SDL
|
||||
add_library(SDL INTERFACE)
|
||||
if(EMSCRIPTEN)
|
||||
|
||||
Reference in New Issue
Block a user