Lines Matching +full:build +full:- +full:ios
3 # It has been altered for iOS development
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.
18 # In this case it will always be the most up-to-date SDK found in the CMAKE_IOS_DEVELOPER_ROOT pa…
21 # IOS_BITCODE = 1/0: Enable bitcode or not. Only iOS >= 6.0 device build can enable bitcode. Defaul…
30 # A macro used to find executable programs on the host system, not within the iOS environment.
31 # Thanks to the android-cmake project for providing the command
39 set (IOS TRUE) variable
47 set (CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FOR…
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…
56 # Force the compilers to gcc for iOS
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 ")
85 # Hidden visibilty is required for cxx on iOS
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,")
99 # hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree
107 # Setup iOS platform unless specified manually with IOS_PLATFORM
111 set (IOS_PLATFORM ${IOS_PLATFORM} CACHE STRING "Type of iOS Platform")
117 set (BUILD_ARM64 ${BUILD_ARM64} CACHE STRING "Build arm64 arch or not")
124 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos")
129 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos")
135 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphonesimulator")
141 set (CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphonesimulator")
146 # Setup iOS developer location unless specified manually with CMAKE_IOS_DEVELOPER_ROOT
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 …(FATAL_ERROR "No iOS SDK's found in default search path ${CMAKE_IOS_DEVELOPER_ROOT}. Manually set …
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")
175 set (CMAKE_OSX_SYSROOT ${CMAKE_IOS_SDK_ROOT} CACHE PATH "Sysroot used for iOS support")
177 # set the architecture for iOS
188 set (CMAKE_OSX_ARCHITECTURES ${IOS_ARCH} CACHE STRING "Build architecture for iOS")
190 # Set the find root to the iOS developer roots and to user defined paths
191 …_DEVELOPER_ROOT} ${CMAKE_IOS_SDK_ROOT} ${CMAKE_PREFIX_PATH} CACHE STRING "iOS find search path ro…
203 # only search the iOS sdks, not the remainder of the host filesystem
220 set (IOS FALSE) variable
224 set (IOS TRUE) variable