2018-02-08 16:22:29 +00:00
|
|
|
Pod::Spec.new do |s|
|
2018-09-26 09:09:00 +00:00
|
|
|
openssl_version = "%OPENSSL-VERSION%"
|
2020-11-12 19:13:57 +00:00
|
|
|
openssl_targets = "ios-sim-cross-x86_64 ios64-cross-arm64 ios64-cross-arm64e macos64-x86_64 macos64-arm64 mac-catalyst-arm64"
|
2020-11-12 20:09:47 +00:00
|
|
|
script_version = "7"
|
2018-09-26 09:09:00 +00:00
|
|
|
|
2018-02-08 16:22:29 +00:00
|
|
|
s.name = "OpenSSL-Apple"
|
2018-11-12 09:21:44 +00:00
|
|
|
s.version = "#{openssl_version}.#{script_version}"
|
2018-02-08 16:22:29 +00:00
|
|
|
s.summary = "A script for compiling OpenSSL for Apple Devices"
|
2019-09-26 08:09:55 +00:00
|
|
|
s.authors = "Felix Schulze", "Davide De Rosa", "Ezat Hashim"
|
2018-02-08 16:22:29 +00:00
|
|
|
|
2018-09-24 09:36:28 +00:00
|
|
|
s.homepage = "https://github.com/keeshux/openssl-apple.git"
|
2019-02-23 21:47:05 +00:00
|
|
|
s.source = { :git => s.homepage.to_s, :tag => "v#{script_version}" }
|
2018-02-08 16:22:29 +00:00
|
|
|
s.license = { :type => 'Apache', :file => 'LICENSE' }
|
|
|
|
|
|
|
|
s.prepare_command = <<-CMD
|
2019-11-01 19:39:20 +00:00
|
|
|
./build-libssl.sh --version="#{openssl_version}" --targets="#{openssl_targets}"
|
2018-02-08 16:22:29 +00:00
|
|
|
./create-openssl-framework.sh dynamic
|
|
|
|
CMD
|
|
|
|
|
2020-11-11 23:29:54 +00:00
|
|
|
s.ios.deployment_target = "12.0"
|
2019-09-26 07:52:03 +00:00
|
|
|
s.ios.vendored_frameworks = "frameworks/iPhone/openssl.framework"
|
2020-11-12 19:13:57 +00:00
|
|
|
s.ios.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
|
|
|
|
s.ios.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
|
2020-11-11 23:29:54 +00:00
|
|
|
s.osx.deployment_target = "10.15"
|
2019-09-26 07:52:03 +00:00
|
|
|
s.osx.vendored_frameworks = "frameworks/MacOSX/openssl.framework"
|
|
|
|
s.requires_arc = false
|
2018-02-08 16:22:29 +00:00
|
|
|
end
|