Merge pull request #22 from AndreasVerhoeven/master
Adds support for WatchOS Simulator on Xcode 12 (x86_64)
This commit is contained in:
commit
fd2b41facc
|
@ -30,8 +30,8 @@ DEFAULTVERSION="1.1.1g"
|
||||||
# Default (=full) set of architectures (OpenSSL <= 1.0.2) or targets (OpenSSL >= 1.1.1) to build
|
# Default (=full) set of architectures (OpenSSL <= 1.0.2) or targets (OpenSSL >= 1.1.1) to build
|
||||||
#DEFAULTARCHS="ios_x86_64 ios_arm64 ios_armv7s ios_armv7 tv_x86_64 tv_arm64 mac_x86_64"
|
#DEFAULTARCHS="ios_x86_64 ios_arm64 ios_armv7s ios_armv7 tv_x86_64 tv_arm64 mac_x86_64"
|
||||||
#DEFAULTTARGETS="ios-sim-cross-x86_64 ios64-cross-arm64 ios-cross-armv7s ios-cross-armv7 tvos-sim-cross-x86_64 tvos64-cross-arm64 macos64-x86_64"
|
#DEFAULTTARGETS="ios-sim-cross-x86_64 ios64-cross-arm64 ios-cross-armv7s ios-cross-armv7 tvos-sim-cross-x86_64 tvos64-cross-arm64 macos64-x86_64"
|
||||||
DEFAULTARCHS="ios_x86_64 ios_arm64 tv_x86_64 tv_arm64 mac_x86_64 watchos_armv7k watchos_arm64_32 watchos_i386"
|
DEFAULTARCHS="ios_x86_64 ios_arm64 tv_x86_64 tv_arm64 mac_x86_64 watchos_armv7k watchos_arm64_32 watchos_i386 watchos_x86_64"
|
||||||
DEFAULTTARGETS="ios-sim-cross-x86_64 ios64-cross-arm64 ios64-cross-arm64e tvos-sim-cross-x86_64 tvos64-cross-arm64 macos64-x86_64 watchos-cross-armv7k watchos-cross-arm64_32 watchos-sim-cross-i386"
|
DEFAULTTARGETS="ios-sim-cross-x86_64 ios64-cross-arm64 ios64-cross-arm64e tvos-sim-cross-x86_64 tvos64-cross-arm64 macos64-x86_64 watchos-cross-armv7k watchos-cross-arm64_32 watchos-sim-cross-i386 watchos-sim-cross-x86_64"
|
||||||
|
|
||||||
# Minimum iOS/tvOS SDK version to build for
|
# Minimum iOS/tvOS SDK version to build for
|
||||||
IOS_MIN_SDK_VERSION="12.0"
|
IOS_MIN_SDK_VERSION="12.0"
|
||||||
|
@ -618,6 +618,9 @@ if [ ${#OPENSSLCONF_ALL[@]} -gt 1 ]; then
|
||||||
*_watchos_i386.h)
|
*_watchos_i386.h)
|
||||||
DEFINE_CONDITION="TARGET_OS_SIMULATOR && TARGET_CPU_X86 || TARGET_OS_EMBEDDED"
|
DEFINE_CONDITION="TARGET_OS_SIMULATOR && TARGET_CPU_X86 || TARGET_OS_EMBEDDED"
|
||||||
;;
|
;;
|
||||||
|
*_watchos_x86_64.h)
|
||||||
|
DEFINE_CONDITION="TARGET_OS_SIMULATOR && TARGET_CPU_X86_64 || TARGET_OS_EMBEDDED"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# Don't run into unexpected cases by setting the default condition to false
|
# Don't run into unexpected cases by setting the default condition to false
|
||||||
DEFINE_CONDITION="0"
|
DEFINE_CONDITION="0"
|
||||||
|
|
|
@ -60,6 +60,15 @@ my %targets = ();
|
||||||
defines => [ "HAVE_FORK=0" ],
|
defines => [ "HAVE_FORK=0" ],
|
||||||
sys_id => "WatchOS",
|
sys_id => "WatchOS",
|
||||||
},
|
},
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
"watchos-sim-cross-i386" => {
|
"watchos-sim-cross-i386" => {
|
||||||
inherit_from => [ "darwin-common", "watchos-cross-base"],
|
inherit_from => [ "darwin-common", "watchos-cross-base"],
|
||||||
|
@ -68,6 +77,13 @@ my %targets = ();
|
||||||
sys_id => "WatchOS",
|
sys_id => "WatchOS",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"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",
|
||||||
|
},
|
||||||
|
|
||||||
## Apple iOS simulator (x86_64)
|
## Apple iOS simulator (x86_64)
|
||||||
# Based on 10-main.conf: iphoneos-cross / darwin64-x86_64-cc
|
# Based on 10-main.conf: iphoneos-cross / darwin64-x86_64-cc
|
||||||
"ios-sim-cross-x86_64" => {
|
"ios-sim-cross-x86_64" => {
|
||||||
|
|
|
@ -120,7 +120,7 @@ if [ $FWTYPE == "dynamic" ]; then
|
||||||
COMPAT_VERSION="1.0.0"
|
COMPAT_VERSION="1.0.0"
|
||||||
CURRENT_VERSION="1.0.0"
|
CURRENT_VERSION="1.0.0"
|
||||||
|
|
||||||
RX='([A-z]+)([0-9]+(\.[0-9]+)*)-([A-z0-9]+)\.sdk'
|
RX='([A-z]+)([0-9]+(\.[0-9]+)*)-([A-z0-9_]+)\.sdk'
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
for TARGETDIR in `ls -d *.sdk`; do
|
for TARGETDIR in `ls -d *.sdk`; do
|
||||||
|
@ -184,7 +184,12 @@ if [ $FWTYPE == "dynamic" ]; then
|
||||||
for SYS in ${ALL_SYSTEMS[@]}; do
|
for SYS in ${ALL_SYSTEMS[@]}; do
|
||||||
SYSDIR="$FWROOT/$SYS"
|
SYSDIR="$FWROOT/$SYS"
|
||||||
FWDIR="$SYSDIR/$FWNAME.framework"
|
FWDIR="$SYSDIR/$FWNAME.framework"
|
||||||
|
|
||||||
|
if [[ $SYS == "WatchOS" ]]; then
|
||||||
|
DYLIBS=(bin/Watch*/$FWNAME.dylib)
|
||||||
|
else
|
||||||
DYLIBS=(bin/${SYS}*/$FWNAME.dylib)
|
DYLIBS=(bin/${SYS}*/$FWNAME.dylib)
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ${#DYLIBS[@]} -gt 0 && -e ${DYLIBS[0]} ]]; then
|
if [[ ${#DYLIBS[@]} -gt 0 && -e ${DYLIBS[0]} ]]; then
|
||||||
echo "Creating framework for $SYS"
|
echo "Creating framework for $SYS"
|
||||||
|
|
|
@ -41,9 +41,9 @@ do
|
||||||
PLATFORM="AppleTVOS"
|
PLATFORM="AppleTVOS"
|
||||||
elif [[ "${ARCH}" == "mac_x86_64" || "${ARCH}" == "mac_i386" ]]; then
|
elif [[ "${ARCH}" == "mac_x86_64" || "${ARCH}" == "mac_i386" ]]; then
|
||||||
PLATFORM="MacOSX"
|
PLATFORM="MacOSX"
|
||||||
elif [[ "${ARCH}" == "watchos_arm64_32" || "${ARCH}" == "watchos_armv7k" ]]; then
|
elif [[ "${ARCH}" == "watchos_arm64_32" || "${ARCH}" == "watchos_armv7k" || "${ARCH}" == "watchos_arm64" ]]; then
|
||||||
PLATFORM="WatchOS"
|
PLATFORM="WatchOS"
|
||||||
elif [[ "${ARCH}" == "watchos_i386" ]]; then
|
elif [[ "${ARCH}" == "watchos_i386" || "${ARCH}" == "watchos_x86_64" ]]; then
|
||||||
PLATFORM="WatchSimulator"
|
PLATFORM="WatchSimulator"
|
||||||
else
|
else
|
||||||
PLATFORM="iPhoneOS"
|
PLATFORM="iPhoneOS"
|
||||||
|
|
Loading…
Reference in New Issue