mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-06-11 02:31:10 +00:00
Use SDL iOS entry point
This commit is contained in:
parent
cd6e635e56
commit
d7fb76202a
1 changed files with 22 additions and 12 deletions
|
|
@ -72,10 +72,15 @@ else()
|
|||
add_compile_options(-ffp-model=strict)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(
|
||||
SDL_MAIN_HANDLED
|
||||
_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR # Microsoft wtf?
|
||||
_CRT_SECURE_NO_WARNINGS)
|
||||
set(UNLEASHED_RECOMP_COMPILE_DEFINITIONS
|
||||
_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR # Microsoft wtf?
|
||||
_CRT_SECURE_NO_WARNINGS)
|
||||
|
||||
if (NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
||||
list(APPEND UNLEASHED_RECOMP_COMPILE_DEFINITIONS SDL_MAIN_HANDLED)
|
||||
endif()
|
||||
|
||||
add_compile_definitions(${UNLEASHED_RECOMP_COMPILE_DEFINITIONS})
|
||||
|
||||
set(UNLEASHED_RECOMP_PRECOMPILED_HEADERS
|
||||
"stdafx.h"
|
||||
|
|
@ -422,15 +427,20 @@ if (WIN32)
|
|||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(UnleashedRecomp PRIVATE
|
||||
fmt::fmt
|
||||
libzstd_static
|
||||
msdf-atlas-gen::msdf-atlas-gen
|
||||
set(UNLEASHED_RECOMP_SDL_LIBS SDL2::SDL2-static)
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "iOS" AND TARGET SDL2::SDL2main)
|
||||
list(PREPEND UNLEASHED_RECOMP_SDL_LIBS SDL2::SDL2main)
|
||||
endif()
|
||||
|
||||
target_link_libraries(UnleashedRecomp PRIVATE
|
||||
fmt::fmt
|
||||
libzstd_static
|
||||
msdf-atlas-gen::msdf-atlas-gen
|
||||
nfd::nfd
|
||||
o1heap
|
||||
XenonUtils
|
||||
SDL2::SDL2-static
|
||||
SDL2_mixer
|
||||
o1heap
|
||||
XenonUtils
|
||||
${UNLEASHED_RECOMP_SDL_LIBS}
|
||||
SDL2_mixer
|
||||
tomlplusplus::tomlplusplus
|
||||
UnleashedRecompLib
|
||||
xxHash::xxhash
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue