diff options
| author | Arseny Smirnov <arseny30@gmail.com> | 2018-02-15 00:01:28 +0300 |
|---|---|---|
| committer | Arseny Smirnov <arseny30@gmail.com> | 2018-02-15 00:01:28 +0300 |
| commit | 1424b2037ea52096b258ca83ef318de744ff68e0 (patch) | |
| tree | d7d96741a783888a01fddac9d85f4751bcd5b228 /CMake | |
| parent | e2bbd9ee99c074698871c8ef4941aca6398018ce (diff) | |
Trying to add AppleTvOs support
GitOrigin-RevId: 923552a936613d5e30361bb354709337e8b0a990
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/iOS.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/CMake/iOS.cmake b/CMake/iOS.cmake index 238379b4c..9b395a076 100644 --- a/CMake/iOS.cmake +++ b/CMake/iOS.cmake @@ -93,6 +93,23 @@ elseif (${IOS_PLATFORM} STREQUAL "WATCHSIMULATOR") set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-watchsimulator") set (APPLE_WATCH True) +elseif (${IOS_PLATFORM} STREQUAL "TVOS") + set (IOS_PLATFORM_LOCATION "AppleTvOS.platform") + set (XCODE_IOS_PLATFORM tvos) + + # This causes the installers to properly locate the output libraries + set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-appletvos") + + set (APPLE_TV True) +elseif (${IOS_PLATFORM} STREQUAL "TVSIMULATOR") + set (SIMULATOR_FLAG true) + set (IOS_PLATFORM_LOCATION "AppleTvSimulator.platform") + set (XCODE_IOS_PLATFORM tvsimulator) + + # This causes the installers to properly locate the output libraries + set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-tvsimulator") + + set (APPLE_TV True) else (${IOS_PLATFORM} STREQUAL "OS") message (FATAL_ERROR "Unsupported IOS_PLATFORM value selected. Please choose OS, SIMULATOR, or WATCHOS.") endif () @@ -183,6 +200,10 @@ elseif (IOS_PLATFORM STREQUAL "WATCHOS") set (IOS_ARCH "armv7k") elseif (IOS_PLATFORM STREQUAL "WATCHSIMULATOR") set (IOS_ARCH "i386") +elseif (IOS_PLATFORM STREQUAL "TVOS") + set (IOS_ARCH "arm64") +elseif (IOS_PLATFORM STREQUAL "TVSIMULATOR") + set (IOS_ARCH "x86_64") else() message (WARNING "Unknown IOS_PLATFORM=<${IOS_PLATFORM}>") endif() |
