Add watchos-sim-cross-arm64 target
This commit is contained in:
parent
30c3fdddfc
commit
299ead147c
|
@ -32,7 +32,7 @@ DEFAULTTARGETS=`cat <<TARGETS
|
||||||
ios-sim-cross-x86_64 ios-sim-cross-arm64 ios64-cross-arm64 ios64-cross-arm64e
|
ios-sim-cross-x86_64 ios-sim-cross-arm64 ios64-cross-arm64 ios64-cross-arm64e
|
||||||
macos64-x86_64 macos64-arm64
|
macos64-x86_64 macos64-arm64
|
||||||
mac-catalyst-x86_64 mac-catalyst-arm64
|
mac-catalyst-x86_64 mac-catalyst-arm64
|
||||||
watchos-cross-armv7k watchos-cross-arm64_32 watchos-sim-cross-x86_64 watchos-sim-cross-i386
|
watchos-cross-armv7k watchos-cross-arm64_32 watchos-sim-cross-x86_64 watchos-sim-cross-i386 watchos-sim-cross-arm64
|
||||||
tvos-sim-cross-x86_64 tvos64-cross-arm64
|
tvos-sim-cross-x86_64 tvos64-cross-arm64
|
||||||
TARGETS`
|
TARGETS`
|
||||||
|
|
||||||
|
@ -571,16 +571,19 @@ if [ ${#OPENSSLCONF_ALL[@]} -gt 1 ]; then
|
||||||
DEFINE_CONDITION="(TARGET_OS_MACCATALYST || (TARGET_OS_IOS && TARGET_OS_SIMULATOR)) && TARGET_CPU_ARM64"
|
DEFINE_CONDITION="(TARGET_OS_MACCATALYST || (TARGET_OS_IOS && TARGET_OS_SIMULATOR)) && TARGET_CPU_ARM64"
|
||||||
;;
|
;;
|
||||||
*_watchos_armv7k.h)
|
*_watchos_armv7k.h)
|
||||||
DEFINE_CONDITION="TARGET_OS_WATCHOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARMV7K"
|
DEFINE_CONDITION="TARGET_OS_WATCH && TARGET_OS_EMBEDDED && TARGET_CPU_ARM"
|
||||||
;;
|
;;
|
||||||
*_watchos_arm64_32.h)
|
*_watchos_arm64_32.h)
|
||||||
DEFINE_CONDITION="TARGET_OS_WATCHOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64_32"
|
DEFINE_CONDITION="TARGET_OS_WATCH && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64"
|
||||||
;;
|
;;
|
||||||
*_watchos_sim_x86_64.h)
|
*_watchos_sim_x86_64.h)
|
||||||
DEFINE_CONDITION="TARGET_OS_SIMULATOR && TARGET_CPU_X86_64 || TARGET_OS_EMBEDDED"
|
DEFINE_CONDITION="TARGET_OS_WATCH && TARGET_OS_SIMULATOR && TARGET_CPU_X86_64"
|
||||||
|
;;
|
||||||
|
*_watchos_sim_arm64.h)
|
||||||
|
DEFINE_CONDITION="TARGET_OS_WATCH && TARGET_OS_SIMULATOR && TARGET_CPU_ARM64"
|
||||||
;;
|
;;
|
||||||
*_watchos_sim_i386.h)
|
*_watchos_sim_i386.h)
|
||||||
DEFINE_CONDITION="TARGET_OS_SIMULATOR && TARGET_CPU_X86 || TARGET_OS_EMBEDDED"
|
DEFINE_CONDITION="TARGET_OS_WATCH && TARGET_OS_SIMULATOR && TARGET_CPU_X86"
|
||||||
;;
|
;;
|
||||||
*_tvos_arm64.h)
|
*_tvos_arm64.h)
|
||||||
DEFINE_CONDITION="TARGET_OS_TV && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64"
|
DEFINE_CONDITION="TARGET_OS_TV && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64"
|
||||||
|
|
|
@ -71,18 +71,6 @@ my %targets = ();
|
||||||
sys_id => "iOS",
|
sys_id => "iOS",
|
||||||
},
|
},
|
||||||
|
|
||||||
## Apple macOS
|
|
||||||
|
|
||||||
# Base (arm64)
|
|
||||||
"darwin64-arm64-cc" => {
|
|
||||||
inherit_from => [ "darwin-common", asm("aarch64_asm") ],
|
|
||||||
CFLAGS => add("-Wall"),
|
|
||||||
cflags => add("-arch arm64"),
|
|
||||||
lib_cppflags => add("-DL_ENDIAN"),
|
|
||||||
bn_ops => "SIXTY_FOUR_BIT_LONG",
|
|
||||||
perlasm_scheme => "ios64",
|
|
||||||
},
|
|
||||||
|
|
||||||
# Device
|
# Device
|
||||||
"macos64-x86_64" => {
|
"macos64-x86_64" => {
|
||||||
inherit_from => [ "darwin64-x86_64-cc", "macos-base" ],
|
inherit_from => [ "darwin64-x86_64-cc", "macos-base" ],
|
||||||
|
@ -134,6 +122,12 @@ my %targets = ();
|
||||||
defines => [ "HAVE_FORK=0" ],
|
defines => [ "HAVE_FORK=0" ],
|
||||||
sys_id => "WatchOS",
|
sys_id => "WatchOS",
|
||||||
},
|
},
|
||||||
|
"watchos-sim-cross-arm64" => {
|
||||||
|
inherit_from => [ "darwin64-arm64-cc", "watchos-cross-base"],
|
||||||
|
cflags => add("-target arm64-apple-watchos7.2-simulator -mwatchos-version-min=7.2 -fembed-bitcode"),
|
||||||
|
defines => [ "HAVE_FORK=0" ],
|
||||||
|
sys_id => "WatchOS",
|
||||||
|
},
|
||||||
"watchos-sim-cross-i386" => {
|
"watchos-sim-cross-i386" => {
|
||||||
inherit_from => [ "darwin-common", "watchos-cross-base"],
|
inherit_from => [ "darwin-common", "watchos-cross-base"],
|
||||||
cflags => add("-arch i386 -fembed-bitcode"),
|
cflags => add("-arch i386 -fembed-bitcode"),
|
||||||
|
|
Loading…
Reference in New Issue