2020-10-31 00:32:11 +00:00
|
|
|
Pod::Spec.new do |s|
|
2020-11-07 11:55:53 +00:00
|
|
|
openssl_version = "1.1.1h"
|
2020-11-11 19:11:33 +00:00
|
|
|
openssl_targets = "ios-sim-cross-x86_64 ios64-cross-arm64 ios64-cross-arm64e macos64-x86_64"
|
2020-10-31 00:32:11 +00:00
|
|
|
script_version = "6"
|
|
|
|
|
|
|
|
s.name = "OpenSSL-Apple"
|
|
|
|
s.version = "#{openssl_version}.#{script_version}"
|
|
|
|
s.summary = "A script for compiling OpenSSL for Apple Devices"
|
|
|
|
s.authors = "Felix Schulze", "Davide De Rosa", "Ezat Hashim"
|
|
|
|
|
|
|
|
s.homepage = "https://github.com/keeshux/openssl-apple.git"
|
|
|
|
s.source = { :git => s.homepage.to_s, :tag => "v#{script_version}" }
|
|
|
|
s.license = { :type => 'Apache', :file => 'LICENSE' }
|
|
|
|
|
|
|
|
s.prepare_command = <<-CMD
|
|
|
|
./build-libssl.sh --version="#{openssl_version}" --targets="#{openssl_targets}"
|
|
|
|
./create-openssl-framework.sh dynamic
|
|
|
|
CMD
|
|
|
|
|
|
|
|
s.ios.deployment_target = "11.0"
|
|
|
|
s.ios.vendored_frameworks = "frameworks/iPhone/openssl.framework"
|
|
|
|
s.osx.deployment_target = "10.11"
|
|
|
|
s.osx.vendored_frameworks = "frameworks/MacOSX/openssl.framework"
|
|
|
|
s.requires_arc = false
|
|
|
|
end
|