Merge branch 'drop-32bit'

This commit is contained in:
Davide De Rosa 2018-09-26 13:05:24 +02:00
commit a234d41c4a
5 changed files with 21 additions and 16 deletions

View File

@ -1,21 +1,24 @@
Pod::Spec.new do |s|
openssl_version = "%OPENSSL-VERSION%"
script_version = "v2"
s.name = "OpenSSL-Apple"
s.version = "%OPENSSL-VERSION%"
s.version = "#{openssl_version}-#{script_version}"
s.summary = "A script for compiling OpenSSL for Apple Devices"
s.authors = "Felix Schulze", "Davide De Rosa"
s.homepage = "https://github.com/keeshux/openssl-apple.git"
s.source = { :git => s.homepage.to_s, :tag => "1.0.2" }
s.source = { :git => s.homepage.to_s, :tag => script_version }
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.prepare_command = <<-CMD
./build-libssl.sh --version=#{s.version}
./build-libssl.sh --version=#{openssl_version}
./create-openssl-framework.sh dynamic
CMD
s.ios.deployment_target = "9.0"
s.ios.deployment_target = "11.0"
s.ios.vendored_frameworks = "frameworks/iPhone/openssl.framework"
s.tvos.deployment_target = "9.0"
s.tvos.deployment_target = "11.0"
s.tvos.vendored_frameworks = "frameworks/AppleTV/openssl.framework"
s.osx.deployment_target = "10.11"
s.osx.vendored_frameworks = "frameworks/MacOSX/openssl.framework"

View File

@ -19,6 +19,6 @@
<key>CFBundleVersion</key>
<string>1</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<string>11.0</string>
</dict>
</plist>

View File

@ -19,6 +19,6 @@
<key>CFBundleVersion</key>
<string>1</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>11.0</string>
</dict>
</plist>

View File

@ -25,16 +25,18 @@ set -u
# SCRIPT DEFAULTS
# Default version in case no version is specified
DEFAULTVERSION="1.0.2l"
DEFAULTVERSION="1.1.0i"
# Default (=full) set of architectures (OpenSSL <= 1.0.2) or targets (OpenSSL >= 1.1.0) to build
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"
#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"
DEFAULTARCHS="ios_x86_64 ios_arm64 tv_x86_64 tv_arm64 mac_x86_64"
DEFAULTTARGETS="ios-sim-cross-x86_64 ios64-cross-arm64 tvos-sim-cross-x86_64 tvos64-cross-arm64 macos64-x86_64"
# Minimum iOS/tvOS SDK version to build for
MACOS_MIN_SDK_VERSION="10.11"
IOS_MIN_SDK_VERSION="8.0"
TVOS_MIN_SDK_VERSION="9.0"
IOS_MIN_SDK_VERSION="11.0"
TVOS_MIN_SDK_VERSION="11.0"
# Init optional env variables (use available variable or default to empty string)
CURL_OPTIONS="${CURL_OPTIONS:-}"

View File

@ -63,15 +63,15 @@ if [ $FWTYPE == "dynamic" ]; then
SDK="${CROSS_TOP}/SDKs/${CROSS_SDK}"
if [[ $PLATFORM == AppleTVSimulator* ]]; then
MIN_SDK="-tvos_simulator_version_min 9.0"
MIN_SDK="-tvos_simulator_version_min 11.0"
elif [[ $PLATFORM == AppleTV* ]]; then
MIN_SDK="-tvos_version_min 9.0"
MIN_SDK="-tvos_version_min 11.0"
elif [[ $PLATFORM == MacOSX* ]]; then
MIN_SDK="-macosx_version_min 10.11"
elif [[ $PLATFORM == iPhoneSimulator* ]]; then
MIN_SDK="-ios_simulator_version_min 8.0"
MIN_SDK="-ios_simulator_version_min 11.0"
else
MIN_SDK="-ios_version_min 8.0"
MIN_SDK="-ios_version_min 11.0"
fi
#cd $TARGETDIR