ios.cmake 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #[=======================================================================[.rst:
  2. iOS
  3. ---
  4. This file contains functions for options and configuration for targeting the
  5. iOS platform
  6. ]=======================================================================]
  7. #[==============================[ iOS Options ]==============================]
  8. function(ios_options)
  9. #[[ Options from SCons
  10. TODO ios_simulator: Target iOS Simulator
  11. Default: False
  12. TODO ios_min_version: Target minimum iphoneos/iphonesimulator version
  13. Default: 12.0
  14. TODO IOS_TOOLCHAIN_PATH: Path to iOS toolchain
  15. Default: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain",
  16. TODO IOS_SDK_PATH: Path to the iOS SDK
  17. Default: ''
  18. TODO ios_triple: Triple for ios toolchain
  19. Default: if has_ios_osxcross(): 'ios_triple' else ''
  20. ]]
  21. endfunction()
  22. #[===========================[ Target Generation ]===========================]
  23. function(ios_generate)
  24. target_compile_definitions(godot-cpp PUBLIC IOS_ENABLED UNIX_ENABLED)
  25. common_compiler_flags()
  26. endfunction()