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
|
2017-10-13 17:08:40 +00:00
|
|
|
"all-base" => {
|
2016-10-22 11:16:18 +00:00
|
|
|
template => 1,
|
2023-12-12 10:41:50 +00:00
|
|
|
cflags => combine('-isysroot $(CROSS_TOP)/SDKs/$(CROSS_SDK) -fno-common')
|
2016-10-22 11:16:18 +00:00
|
|
|
},
|
2019-09-26 07:39:59 +00:00
|
|
|
|
2020-11-11 19:37:03 +00:00
|
|
|
## Base settings
|
2016-10-22 11:16:18 +00:00
|
|
|
"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,
|
2020-11-11 19:37:03 +00:00
|
|
|
cflags => add(sub { defined($ENV{'IOS_MIN_SDK_VERSION'}) ? '-mios-version-min=$(IOS_MIN_SDK_VERSION)' : '-mios-version-min=12.0'; }),
|
2016-10-22 11:16:18 +00:00
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
"macos-base" => {
|
2017-10-13 17:08:40 +00:00
|
|
|
inherit_from => [ "all-base" ],
|
2016-10-22 11:16:18 +00:00
|
|
|
template => 1,
|
2020-11-11 19:37:03 +00:00
|
|
|
cflags => add(sub { defined($ENV{'MACOS_MIN_SDK_VERSION'}) ? '-mmacosx-version-min=$(MACOS_MIN_SDK_VERSION)' : '-mmacosx-version-min=10.15'; }),
|
2016-10-22 11:16:18 +00:00
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
"mac-catalyst-base" => {
|
2017-10-13 17:08:40 +00:00
|
|
|
inherit_from => [ "all-base" ],
|
2020-11-11 19:37:03 +00:00
|
|
|
template => 1,
|
|
|
|
# cflags => add(sub { defined($ENV{'CATALYST_MIN_SDK_VERSION'}) ? '-mmacosx-version-min=$(CATALYST_MIN_SDK_VERSION)' : '-mmacosx-version-min=10.15'; }),
|
2017-10-13 17:08:40 +00:00
|
|
|
},
|
2019-09-26 07:39:59 +00:00
|
|
|
"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'; }),
|
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
"tvos-cross-base" => {
|
|
|
|
inherit_from => [ "all-base" ],
|
|
|
|
template => 1,
|
|
|
|
cflags => add(sub { defined($ENV{'TVOS_MIN_SDK_VERSION'}) ? '-mtvos-version-min=$(TVOS_MIN_SDK_VERSION)' : '-mtvos-version-min=12.0'; }),
|
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
},
|
2024-01-11 07:33:46 +00:00
|
|
|
"xros-cross-base" => {
|
|
|
|
inherit_from => [ "all-base" ],
|
|
|
|
template => 1,
|
|
|
|
# cflags => add(sub { defined($ENV{'XROS_MIN_SDK_VERSION'}) ? '-mxros-version-min=$(XROS_MIN_SDK_VERSION)' : '-mxros-version-min=1.0'; }),
|
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
|
|
|
|
## Apple iOS
|
2019-09-26 07:39:59 +00:00
|
|
|
|
2020-12-02 19:31:43 +00:00
|
|
|
# Device
|
2020-11-11 19:37:03 +00:00
|
|
|
"ios64-cross-arm64" => {
|
2023-12-12 10:41:50 +00:00
|
|
|
inherit_from => [ "darwin-common", "ios-cross-base" ],
|
2020-11-11 19:37:03 +00:00
|
|
|
cflags => add("-arch arm64"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
perlasm_scheme => "ios64",
|
|
|
|
sys_id => "iOS",
|
|
|
|
},
|
|
|
|
"ios64-cross-arm64e" => {
|
2023-12-12 10:41:50 +00:00
|
|
|
inherit_from => [ "darwin-common", "ios-cross-base" ],
|
2020-11-11 19:37:03 +00:00
|
|
|
cflags => add("-arch arm64e"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
perlasm_scheme => "ios64",
|
|
|
|
sys_id => "iOS",
|
|
|
|
},
|
2020-12-02 19:31:43 +00:00
|
|
|
# Simulator
|
2020-11-11 19:37:03 +00:00
|
|
|
"ios-sim-cross-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "ios-cross-base" ],
|
|
|
|
sys_id => "iOS",
|
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
"ios-sim-cross-arm64" => {
|
2020-11-13 21:49:03 +00:00
|
|
|
inherit_from => [ "darwin64-arm64-cc", "ios-cross-base" ],
|
2022-05-17 16:07:26 +00:00
|
|
|
cflags => add("-target arm64-apple-ios14.0-simulator -mios-version-min=14.0"),
|
2020-11-13 21:49:03 +00:00
|
|
|
sys_id => "iOS",
|
2020-11-11 19:37:03 +00:00
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
|
2020-12-02 19:31:43 +00:00
|
|
|
# Device
|
2020-11-11 19:37:03 +00:00
|
|
|
"macos64-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "macos-base" ],
|
2020-11-13 21:49:03 +00:00
|
|
|
sys_id => "MacOSX",
|
2020-11-11 19:37:03 +00:00
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
"macos64-arm64" => {
|
2020-11-13 21:49:03 +00:00
|
|
|
inherit_from => [ "darwin64-arm64-cc", "macos-base" ],
|
|
|
|
sys_id => "MacOSX",
|
2020-11-11 19:37:03 +00:00
|
|
|
},
|
2020-12-02 19:31:43 +00:00
|
|
|
# Catalyst
|
2020-11-11 19:37:03 +00:00
|
|
|
"mac-catalyst-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "mac-catalyst-base" ],
|
2022-05-17 16:07:26 +00:00
|
|
|
cflags => add("-target x86_64-apple-ios14.0-macabi -mios-version-min=14.0"),
|
2020-11-11 19:37:03 +00:00
|
|
|
sys_id => "MacOSX",
|
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
"mac-catalyst-arm64" => {
|
2020-11-13 21:49:03 +00:00
|
|
|
inherit_from => [ "darwin64-arm64-cc", "mac-catalyst-base" ],
|
2022-05-17 16:07:26 +00:00
|
|
|
cflags => add("-target arm64-apple-ios14.0-macabi -mios-version-min=14.0"),
|
2020-11-13 21:49:03 +00:00
|
|
|
sys_id => "MacOSX",
|
2020-11-11 19:37:03 +00:00
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
|
|
|
|
## Apple WatchOS
|
|
|
|
|
|
|
|
# Device
|
2019-09-26 07:39:59 +00:00
|
|
|
"watchos-cross-armv7k" => {
|
2023-12-12 10:41:50 +00:00
|
|
|
inherit_from => [ "darwin-common", "watchos-cross-base" ],
|
|
|
|
cflags => add("-arch armv7k"),
|
2019-09-26 07:39:59 +00:00
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
|
|
|
"watchos-cross-arm64_32" => {
|
|
|
|
inherit_from => [ "darwin-common", "watchos-cross-base"],
|
2023-12-12 10:41:50 +00:00
|
|
|
cflags => add("-arch arm64_32"),
|
2019-09-26 07:39:59 +00:00
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
2020-10-14 14:49:39 +00:00
|
|
|
"watchos-cross-arm64" => {
|
2023-12-12 10:41:50 +00:00
|
|
|
inherit_from => [ "darwin-common", "watchos-cross-base" ],
|
|
|
|
cflags => add("-arch arm64"),
|
2020-10-14 14:49:39 +00:00
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
perlasm_scheme => "ios64",
|
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
# Simulator
|
2020-10-14 14:49:39 +00:00
|
|
|
"watchos-sim-cross-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "watchos-cross-base"],
|
2023-12-12 10:41:50 +00:00
|
|
|
cflags => add(""),
|
2020-10-14 14:49:39 +00:00
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
2021-03-02 11:00:44 +00:00
|
|
|
"watchos-sim-cross-arm64" => {
|
|
|
|
inherit_from => [ "darwin64-arm64-cc", "watchos-cross-base"],
|
2023-12-12 10:41:50 +00:00
|
|
|
cflags => add("-target arm64-apple-watchos7.2-simulator -mwatchos-version-min=7.2"),
|
2021-03-02 11:00:44 +00:00
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
2020-12-02 19:31:43 +00:00
|
|
|
"watchos-sim-cross-i386" => {
|
|
|
|
inherit_from => [ "darwin-common", "watchos-cross-base"],
|
2023-12-12 10:41:50 +00:00
|
|
|
cflags => add("-arch i386"),
|
2020-12-02 19:31:43 +00:00
|
|
|
defines => [ "HAVE_FORK=0" ],
|
|
|
|
sys_id => "WatchOS",
|
|
|
|
},
|
2020-10-14 14:49:39 +00:00
|
|
|
|
2020-11-11 19:37:03 +00:00
|
|
|
## Apple TV
|
2016-10-22 11:16:18 +00:00
|
|
|
|
2020-12-02 19:31:43 +00:00
|
|
|
# Device
|
2023-12-16 11:13:35 +00:00
|
|
|
"tvos-cross-arm64" => {
|
2023-12-12 10:41:50 +00:00
|
|
|
inherit_from => [ "darwin-common", "tvos-cross-base" ],
|
2016-10-22 11:16:18 +00:00
|
|
|
cflags => add("-arch arm64"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
perlasm_scheme => "ios64",
|
|
|
|
sys_id => "tvOS",
|
|
|
|
},
|
2020-12-02 19:31:43 +00:00
|
|
|
# Simulator
|
2023-12-16 11:13:35 +00:00
|
|
|
"tvos-sim-cross-arm64" => {
|
|
|
|
inherit_from => [ "darwin64-arm64", "tvos-cross-base" ],
|
|
|
|
cflags => add("-target arm64-apple-tvos12.0-simulator"),
|
|
|
|
sys_id => "tvOS",
|
|
|
|
},
|
2020-11-11 19:37:03 +00:00
|
|
|
"tvos-sim-cross-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "tvos-cross-base" ],
|
|
|
|
sys_id => "tvOS",
|
2020-11-07 00:03:46 +00:00
|
|
|
},
|
2024-01-11 07:33:46 +00:00
|
|
|
|
|
|
|
## Vision OS
|
|
|
|
|
|
|
|
# Device
|
|
|
|
"xros-cross-arm64" => {
|
|
|
|
inherit_from => [ "darwin64-arm64-cc", "xros-cross-base" ],
|
|
|
|
cflags => add("-arch arm64"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
sys_id => "xros",
|
|
|
|
},
|
|
|
|
# Simulator
|
|
|
|
"xros-sim-cross-arm64" => {
|
|
|
|
inherit_from => [ "darwin64-arm64-cc", "xros-cross-base" ],
|
|
|
|
cflags => add("-arch arm64"),
|
|
|
|
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
|
|
|
|
sys_id => "xros",
|
|
|
|
},
|
|
|
|
"xros-sim-cross-x86_64" => {
|
|
|
|
inherit_from => [ "darwin64-x86_64-cc", "xros-cross-base" ],
|
|
|
|
sys_id => "xros",
|
|
|
|
},
|
|
|
|
|
2016-10-22 11:16:18 +00:00
|
|
|
);
|