Skip to content

Commit

Permalink
Add arm64 target for Apple TV Simulator (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
keeshux authored Dec 16, 2023
1 parent 4837f56 commit 7d9804a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion build-libssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ios-sim-cross-x86_64 ios-sim-cross-arm64 ios64-cross-arm64 ios64-cross-arm64e
macos64-x86_64 macos64-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-sim-cross-arm64
tvos-sim-cross-x86_64 tvos64-cross-arm64
tvos-sim-cross-x86_64 tvos-sim-cross-arm64 tvos-cross-arm64
TARGETS`
# Minimum iOS/tvOS SDK version to build for
Expand Down Expand Up @@ -613,6 +613,9 @@ if [ ${#OPENSSLCONF_ALL[@]} -gt 1 ]; then
*_tvos_arm64.h)
DEFINE_CONDITION="TARGET_OS_TV && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64"
;;
*_tvos_sim_arm64.h)
DEFINE_CONDITION="TARGET_OS_TV && TARGET_OS_SIMULATOR && TARGET_CPU_ARM64"
;;
*_tvos_sim_x86_64.h)
DEFINE_CONDITION="TARGET_OS_TV && TARGET_OS_SIMULATOR && TARGET_CPU_X86_64"
;;
Expand Down
7 changes: 6 additions & 1 deletion config/20-all-platforms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,19 @@ my %targets = ();
## Apple TV

# Device
"tvos64-cross-arm64" => {
"tvos-cross-arm64" => {
inherit_from => [ "darwin-common", "tvos-cross-base" ],
cflags => add("-arch arm64"),
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
perlasm_scheme => "ios64",
sys_id => "tvOS",
},
# Simulator
"tvos-sim-cross-arm64" => {
inherit_from => [ "darwin64-arm64", "tvos-cross-base" ],
cflags => add("-target arm64-apple-tvos12.0-simulator"),
sys_id => "tvOS",
},
"tvos-sim-cross-x86_64" => {
inherit_from => [ "darwin64-x86_64-cc", "tvos-cross-base" ],
sys_id => "tvOS",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-loop-targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ do
PLATFORM="WatchOS"
elif [[ "${TARGET}" == "tvos-sim-cross-"* ]]; then
PLATFORM="AppleTVSimulator"
elif [[ "${TARGET}" == "tvos64-cross-"* ]]; then
elif [[ "${TARGET}" == "tvos-cross-"* ]]; then
PLATFORM="AppleTVOS"
elif [[ "${TARGET}" == "ios-sim-cross-"* ]]; then
PLATFORM="iPhoneSimulator"
Expand Down

0 comments on commit 7d9804a

Please sign in to comment.