2016-10-22 11:16:18 +00:00
|
|
|
## -*- mode: perl; -*-
|
|
|
|
|
2019-11-01 15:31:02 +00:00
|
|
|
my %targets = ();
|
|
|
|
|
2016-10-22 11:16:18 +00:00
|
|
|
%targets = (
|
2017-10-14 21:56:08 +00:00
|
|
|
## Base settings for cross-compile
|
2016-10-22 11:16:18 +00:00
|
|
|
# Based on 10-main.conf: iphoneos-cross
|
|
|
|
# Add generic compiler flags
|
|
|
|
# Add embed-bitcode option if SDK version is 9 or higher
|
2017-10-13 17:08:40 +00:00
|
|
|
"all-base" => {
|
2016-10-22 11:16:18 +00:00
|
|
|
template => 1,
|
|
|
|
cflags => combine('-isysroot $(CROSS_TOP)/SDKs/$(CROSS_SDK) -fno-common',
|
2017-03-29 15:01:22 +00:00
|
|
|
sub { ((!defined($ENV{'CONFIG_DISABLE_BITCODE'}) || $ENV{'CONFIG_DISABLE_BITCODE'} ne 'true') && defined($ENV{'SDKVERSION'}) && $ENV{'SDKVERSION'} =~ /^(9|[1-9][0-9]+)\./ && $disabled{shared})
|
2016-10-22 11:16:18 +00:00
|
|
|
? '-fembed-bitcode' : (); },
|
|
|
|
),
|
|
|
|
},
|
2019-09-26 07:39:59 +00:00
|
|
|
|
2016-10-22 11:16:18 +00:00
|
|
|
## Base settings for iOS
|
|
|
|
"ios-cross-base" => {
|
2017-10-13 17:08:40 +00:00
|
|
|
inherit_from => [ "all-base" ],
|
2016-10-22 11:16:18 +00:00
|
|
|
template => 1,
|
|
|
|
cflags => add(sub { defined($ENV{'IOS_MIN_SDK_VERSION'}) ? '-mios-version-min=$(IOS_MIN_SDK_VERSION)' : '-mios-version-min=7.0'; }),
|
|
|
|
},
|
|
|
|
|
|
|
|
## Base settings for tvOS
|
|
|
|
# Defines to skip functionality that uses unsupported functions
|
|
|
|
"tvos-cross-base" => {
|
2017-10-13 17:08:40 +00:00
|
|
|
inherit_from => [ "all-base" ],
|
2016-10-22 11:16:18 +00:00
|
|
|
template => 1,
|
|
|
|
cflags => add(sub { defined($ENV{'TVOS_MIN_SDK_VERSION'}) ? '-mtvos-version-min=$(TVOS_MIN_SDK_VERSION)' : '-mtvos-version-min=9.0'; }),
|
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
},
|
|
|
|
|
2017-10-13 17:08:40 +00:00
|
|
|
## Base settings for macOS
|
|
|
|
"macos-base" => {
|
|
|
|
inherit_from => [ "all-base" ],
|
|
|
|
template => 1,
|
|
|
|
cflags => add(sub { defined($ENV{'MACOS_MIN_SDK_VERSION'}) ? '-mmacosx-version-min=$(MACOS_MIN_SDK_VERSION)' : '-mmacosx-version-min=10.11'; }),
|
|
|
|
},
|
|
|
|
|
2019-09-26 07:39:59 +00:00
|
|
|
## Apple WatchOS
|
|
|
|
|
|
|
|
## Base settings for iOS
|
|
|
|
"watchos-cross-base" => {
|
|
|
|
inherit_from => [ "all-base" ],
|
|
|
|
template => 1,
|
|
|
|
cflags => add(sub { defined($ENV{'WATCH_MIN_SDK_VERSION'}) ? '-mwatchos-version-min=$(WATCH_MIN_SDK_VERSION)' : '-mwatchos-version-min=4.0'; }),
|
|
|
|
},
|
|
|
|
|
|
|
|
"watchos-cross-armv7k" => {
|
|
|
|
inherit_from => [ "darwin-common", "watchos-cross-base", asm("armv7_asm") ],
|
|
|
|
cflags => add("-arch armv7k -fembed-bitcode"),
|
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
|
|
|
|
|
|
|
"watchos-cross-arm64_32" => {
|
|
|
|
inherit_from => [ "darwin-common", "watchos-cross-base"],
|
|
|
|
cflags => add("-arch arm64_32 -fembed-bitcode"),
|
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
2020-10-14 14:49:39 +00:00
|
|
|
"watchos-cross-arm64" => {
|
|
|
|
inherit_from => [ "darwin-common", "watchos-cross-base", asm("aarch64_asm") ],
|
|
|
|
cflags => add("-arch arm64 -fembed-bitcode"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
perlasm_scheme => "ios64",
|
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
|
|
|
|
2019-09-26 07:39:59 +00:00
|
|
|
|
|
|
|
"watchos-sim-cross-i386" => {
|
|
|
|
inherit_from => [ "darwin-common", "watchos-cross-base"],
|
|
|
|
cflags => add("-arch i386 -fembed-bitcode"),
|
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
|
|
|
|
2020-10-14 14:49:39 +00:00
|
|
|
"watchos-sim-cross-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "watchos-cross-base"],
|
|
|
|
cflags => add("-fembed-bitcode"),
|
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
|
|
|
|
2016-10-22 11:16:18 +00:00
|
|
|
## Apple iOS simulator (x86_64)
|
|
|
|
# Based on 10-main.conf: iphoneos-cross / darwin64-x86_64-cc
|
|
|
|
"ios-sim-cross-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "ios-cross-base" ],
|
|
|
|
sys_id => "iOS",
|
|
|
|
},
|
|
|
|
|
|
|
|
## Apple iOS simulator (i386)
|
|
|
|
# Based on 10-main.conf: iphoneos-cross / darwin-i386-cc
|
|
|
|
"ios-sim-cross-i386" => {
|
|
|
|
inherit_from => [ "darwin-i386-cc", "ios-cross-base" ],
|
|
|
|
sys_id => "iOS",
|
|
|
|
},
|
|
|
|
|
|
|
|
## Apple iOS (arm64)
|
|
|
|
# Based on 10-main.conf: ios64-cross
|
|
|
|
"ios64-cross-arm64" => {
|
|
|
|
inherit_from => [ "darwin-common", "ios-cross-base", asm("aarch64_asm") ],
|
|
|
|
cflags => add("-arch arm64"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
perlasm_scheme => "ios64",
|
|
|
|
sys_id => "iOS",
|
|
|
|
},
|
|
|
|
|
2020-03-01 21:42:28 +00:00
|
|
|
## Apple iOS (arm64e)
|
|
|
|
# Based on 10-main.conf: ios64-cross
|
|
|
|
"ios64-cross-arm64e" => {
|
|
|
|
inherit_from => [ "darwin-common", "ios-cross-base", asm("aarch64_asm") ],
|
|
|
|
cflags => add("-arch arm64e"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
perlasm_scheme => "ios64",
|
|
|
|
sys_id => "iOS",
|
|
|
|
},
|
|
|
|
|
2016-10-22 11:16:18 +00:00
|
|
|
## Apple iOS (armv7s)
|
|
|
|
# Based on 10-main.conf: ios-cross
|
|
|
|
"ios-cross-armv7s" => {
|
|
|
|
inherit_from => [ "darwin-common", "ios-cross-base", asm("armv4_asm") ],
|
|
|
|
cflags => add("-arch armv7s"),
|
|
|
|
perlasm_scheme => "ios32",
|
|
|
|
sys_id => "iOS",
|
|
|
|
},
|
|
|
|
|
|
|
|
## Apple iOS (armv7)
|
|
|
|
# Based on 10-main.conf: ios-cross
|
|
|
|
"ios-cross-armv7" => {
|
|
|
|
inherit_from => [ "darwin-common", "ios-cross-base", asm("armv4_asm") ],
|
|
|
|
cflags => add("-arch armv7"),
|
|
|
|
perlasm_scheme => "ios32",
|
|
|
|
sys_id => "iOS",
|
|
|
|
},
|
|
|
|
|
|
|
|
## Apple tvOS simulator (x86_64)
|
|
|
|
# Based on 10-main.conf: iphoneos-cross / darwin64-x86_64-cc
|
|
|
|
"tvos-sim-cross-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "tvos-cross-base" ],
|
|
|
|
sys_id => "tvOS",
|
|
|
|
},
|
|
|
|
|
|
|
|
## Apple tvOS (arm64)
|
|
|
|
# Based on 10-main.conf: ios64-cross
|
|
|
|
"tvos64-cross-arm64" => {
|
|
|
|
inherit_from => [ "darwin-common", "tvos-cross-base", asm("aarch64_asm") ],
|
|
|
|
cflags => add("-arch arm64"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
perlasm_scheme => "ios64",
|
|
|
|
sys_id => "tvOS",
|
|
|
|
},
|
2017-10-13 17:08:40 +00:00
|
|
|
|
|
|
|
## Apple macOS (x86_64)
|
|
|
|
"macos64-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "macos-base" ],
|
|
|
|
sys_id => "macOS",
|
|
|
|
},
|
|
|
|
|
|
|
|
## Apple macOS (i386)
|
|
|
|
"macos-i386" => {
|
|
|
|
inherit_from => [ "darwin-i386-cc", "macos-base" ],
|
|
|
|
sys_id => "macOS",
|
|
|
|
},
|
2016-10-22 11:16:18 +00:00
|
|
|
);
|