Path: blob/main/crypto/openssl/Configurations/15-ios.conf
34860 views
#### iPhoneOS/iOS1#2# `xcrun` targets require an Xcode that can determine the correct C compiler via3# `xcrun -sdk iphoneos`. This has been standard in Xcode for a while now - any recent4# Xcode should do. If the Xcode on the build machine doesn't support this then use5# the legacy targets at the end of this file. These require manual definition of6# environment variables.7#8my %targets = (9"ios-common" => {10template => 1,11inherit_from => [ "darwin-common" ],12sys_id => "iOS",13disable => [ "async" ],14},15"ios-xcrun" => {16inherit_from => [ "ios-common" ],17# It should be possible to go below iOS 6 and even add -arch armv6,18# thus targeting iPhone pre-3GS, but it's assumed to be irrelevant19# at this point.20CC => "xcrun -sdk iphoneos cc",21cflags => add("-arch armv7 -fno-common"),22asm_arch => 'armv4',23perlasm_scheme => "ios32",24},25"ios64-xcrun" => {26inherit_from => [ "ios-common" ],27CC => "xcrun -sdk iphoneos cc",28cflags => add("-arch arm64 -fno-common"),29bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",30asm_arch => 'aarch64',31perlasm_scheme => "ios64",32},33"iossimulator-xcrun" => {34inherit_from => [ "ios-common" ],35CC => "xcrun -sdk iphonesimulator cc",36},37"iossimulator-arm64-xcrun" => {38inherit_from => [ "ios-common" ],39CC => "xcrun -sdk iphonesimulator cc",40cflags => add("-arch arm64 -fno-common"),41bn_ops => "SIXTY_FOUR_BIT_LONG",42asm_arch => 'aarch64',43perlasm_scheme => "ios64",44},45"iossimulator-i386-xcrun" => {46inherit_from => [ "ios-common" ],47CC => "xcrun -sdk iphonesimulator cc",48cflags => add("-arch i386 -fno-common"),49bn_ops => "BN_LLONG",50asm_arch => 'x86',51perlasm_scheme => "macosx",52},53"iossimulator-x86_64-xcrun" => {54inherit_from => [ "ios-common" ],55CC => "xcrun -sdk iphonesimulator cc",56cflags => add("-arch x86_64 -fno-common"),57bn_ops => "SIXTY_FOUR_BIT_LONG",58asm_arch => 'x86_64',59perlasm_scheme => "macosx",60},61# It takes three prior-set environment variables to make it work:62#63# CROSS_COMPILE=/where/toolchain/is/usr/bin/ [note ending slash]64# CROSS_TOP=/where/SDKs/are65# CROSS_SDK=iPhoneOSx.y.sdk66#67# Exact paths vary with Xcode releases, but for couple of last ones68# they would look like this:69#70# CROSS_COMPILE=`xcode-select --print-path`/Toolchains/XcodeDefault.xctoolchain/usr/bin/71# CROSS_TOP=`xcode-select --print-path`/Platforms/iPhoneOS.platform/Developer72# CROSS_SDK=iPhoneOS.sdk73#74"iphoneos-cross" => {75inherit_from => [ "ios-common" ],76cflags => add("-isysroot \"\$(CROSS_TOP)/SDKs/\$(CROSS_SDK)\" -fno-common"),77},78"ios-cross" => {79inherit_from => [ "ios-xcrun" ],80CC => "cc",81cflags => add("-isysroot \"\$(CROSS_TOP)/SDKs/\$(CROSS_SDK)\""),82},83"ios64-cross" => {84inherit_from => [ "ios64-xcrun" ],85CC => "cc",86cflags => add("-isysroot \"\$(CROSS_TOP)/SDKs/\$(CROSS_SDK)\""),87},88);899091