Lines Matching +full:platform +full:- +full:sdk +full:- +full:version
1 # This file is based off of the Platform/Darwin.cmake and Platform/UnixPaths.cmake
8 # This decides if SDKS will be selected from the iPhoneOS.platform or iPhoneSimulator.platform fo…
9 # OS - the default, used to build for iPhone and iPad physical devices, which have an arm arch.
10 # SIMULATOR - used to build for the Simulator platforms, which have an x86 arch.
12 # CMAKE_IOS_DEVELOPER_ROOT = automatic(default) or /path/to/platform/Developer folder
14 …nually, it will override the default location and force the user of a particular Developer Platform
16 # CMAKE_IOS_SDK_ROOT = automatic(default) or /path/to/platform/Developer/SDKs/SDK folder
18 # In this case it will always be the most up-to-date SDK found in the CMAKE_IOS_DEVELOPER_ROOT pa…
19 # If set manually, this will force the use of a specific SDK version
31 # Thanks to the android-cmake project for providing the command
41 if(NOT DEFINED IOS_BITCODE) # check xcode/clang version? since xcode 7
49 # Determine the cmake host system version so we know where to find the iOS SDKs
52 exec_program(uname ARGS -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION)
53 …string (REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_HOST_SYSTEM_VE…
62 # Skip the platform compiler checks for cross compiling
66 # All iOS/Darwin specific settings - some may be redundant
75 set(BITCODE_FLAGS "-fembed-bitcode")
77 set(BITCODE_FLAGS "-fembed-bitcode-marker")
80 set (CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")
81 set (CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ")
87 set (CMAKE_CXX_FLAGS_INIT "-fvisibility=hidden -fvisibility-inlines-hidden ${BITCODE_FLAGS}")
89 set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}")
90 set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}")
93 set (CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -headerpad_max_install_names")
94 set (CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names")
95 set (CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
96 set (CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
107 # Setup iOS platform unless specified manually with IOS_PLATFORM
111 set (IOS_PLATFORM ${IOS_PLATFORM} CACHE STRING "Type of iOS Platform")
119 # Check the platform selection and setup for developer root
121 set (IOS_PLATFORM_LOCATION "iPhoneOS.platform")
124 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos")
126 set (IOS_PLATFORM_LOCATION "iPhoneOS.platform")
129 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos")
132 set (IOS_PLATFORM_LOCATION "iPhoneSimulator.platform")
135 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphonesimulator")
138 set (IOS_PLATFORM_LOCATION "iPhoneSimulator.platform")
141 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphonesimulator")
148 exec_program(/usr/bin/xcode-select ARGS -print-path OUTPUT_VARIABLE CMAKE_XCODE_DEVELOPER_DIR)
158 set (CMAKE_IOS_DEVELOPER_ROOT ${CMAKE_IOS_DEVELOPER_ROOT} CACHE PATH "Location of iOS Platform")
160 # Find and use the most recent iOS sdk unless specified manually with CMAKE_IOS_SDK_ROOT
168 …AL_ERROR "No iOS SDK's found in default search path ${CMAKE_IOS_DEVELOPER_ROOT}. Manually set CMAK…
170 message (STATUS "Toolchain using default iOS SDK: ${CMAKE_IOS_SDK_ROOT}")
172 set (CMAKE_IOS_SDK_ROOT ${CMAKE_IOS_SDK_ROOT} CACHE PATH "Location of the selected iOS SDK")
174 # Set the sysroot default to the most recent SDK