2024-11-21 00:30:48 +00:00
|
|
|
#[=======================================================================[.rst:
|
|
|
|
Ios
|
|
|
|
---
|
|
|
|
|
|
|
|
This file contains functions for options and configuration for targeting the
|
|
|
|
Ios platform
|
|
|
|
|
|
|
|
]=======================================================================]
|
2024-12-29 02:14:46 +00:00
|
|
|
|
|
|
|
#[==============================[ iOS Options ]==============================]
|
2024-11-21 00:30:48 +00:00
|
|
|
function(ios_options)
|
2024-12-29 02:14:46 +00:00
|
|
|
# TODO "ios_simulator", "Target iOS Simulator", False
|
|
|
|
# TODO "ios_min_version", "Target minimum iphoneos/iphonesimulator version", "12.0"
|
|
|
|
# TODO "IOS_TOOLCHAIN_PATH",
|
|
|
|
# "Path to iOS toolchain",
|
|
|
|
# "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain",
|
|
|
|
# TODO "IOS_SDK_PATH", "Path to the iOS SDK", ""
|
|
|
|
#
|
|
|
|
# TODO if has_ios_osxcross(): "ios_triple", "Triple for ios toolchain", ""
|
2024-11-21 00:30:48 +00:00
|
|
|
endfunction()
|
|
|
|
|
2024-12-29 02:14:46 +00:00
|
|
|
#[===========================[ Target Generation ]===========================]
|
2024-12-11 00:10:21 +00:00
|
|
|
function(ios_generate)
|
2024-11-21 00:30:48 +00:00
|
|
|
target_compile_definitions(${TARGET_NAME}
|
|
|
|
PUBLIC
|
|
|
|
IOS_ENABLED
|
|
|
|
UNIX_ENABLED
|
|
|
|
)
|
|
|
|
|
2024-12-11 00:10:21 +00:00
|
|
|
common_compiler_flags()
|
2024-11-21 00:30:48 +00:00
|
|
|
endfunction()
|