message(WARNING "IOS configuration is not tested and may not work.") set(GODOT_ARCH "universal" CACHE STRING "Target architecture (universal, arm64, x86_64, custom)") set(GODOT_IOS_MIN_VERSION "12.0" CACHE STRING "Target minimum iphoneos/iphonesimulator version") option(GODOT_IOS_SIMULATOR "Target iOS Simulator" OFF) if (${GODOT_ARCH} STREQUAL "universal") set(DEFAULT_GODOT_BITS 64) else() string(REGEX MATCH "32$|64$" DEFAULT_GODOT_BITS "${GODOT_ARCH}") endif() set(GODOT_BITS "${DEFAULT_GODOT_BITS}" CACHE STRING "Architecture bits. Needs to be set manually for custom architecture") list(APPEND GODOT_DEFINITIONS IOS_ENABLED UNIX_ENABLED ) list(APPEND GODOT_C_FLAGS $<$: -stdlib=libc++ > $<$: -mios-simulator-version-min=${GODOT_IOS_MIN_VERSION} > $<$>: -miphoneos-version-min=${IOS_MIN_VERSION} > $<$: $<$: "SHELL:-arch x86_64" "SHELL:-arch arm64" > $<$>: "SHELL:-arch arm64" > > $<$>: "-arch ${GODOT_ARCH}" > ) list(APPEND GODOT_LINK_FLAGS $<$: $<$: "SHELL:-arch x86_64" "SHELL:-arch arm64" > $<$>: "SHELL:-arch arm64" > > $<$>: "SHELL:-arch ${GODOT_ARCH}" > )