This commit is contained in:
Michele Balistreri 2020-11-30 17:03:41 +03:00
parent d2c49786e9
commit 1dcac13e9d
2 changed files with 55 additions and 0 deletions

55
secp256k1.podspec Normal file
View File

@ -0,0 +1,55 @@
#
# Be sure to run `pod lib lint secp256k1.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'secp256k1'
s.version = '0.1.4'
s.summary = 'secp256k1 bindings for swift.'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
This pod binds the bitcoin-core library, the ECDSA curve, secp256k1 into Swift. This curve is used for
Bitcoin, Ethereum and many other Cryptocurrency Signature generation and verification.
DESC
s.homepage = 'https://github.com/status-im/secp256k1.swift'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Koray Koska' => 'koray@koska.at' }
s.source = { :git => 'https://github.com/status-im/secp256k1.swift.git', :tag => s.version.to_s, :submodules => true }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.module_name = 'secp256k1'
s.pod_target_xcconfig = {
'OTHER_CFLAGS' => '-DHAVE_CONFIG_H=1 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-shorten-64-to-32 -Wno-conditional-uninitialized -Wno-unused-function -Wno-long-long -Wno-overlength-strings -O3',
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/secp256k1/Classes/secp256k1"'
}
s.source_files = 'secp256k1/Classes/secp256k1.swift', 'secp256k1/Classes/secp256k1/{src,include}/*.{h,c}', 'secp256k1/Classes/secp256k1/src/modules/{recovery,ecdh}/*.{h,c}', 'secp256k1/Classes/*.{h,c}'
s.public_header_files = 'secp256k1/Classes/secp256k1/include/*.h'
s.private_header_files = 'secp256k1/Classes/secp256k1_ec_mult_static_context.h', 'secp256k1/Classes/secp256k1/*.h', 'secp256k1/Classes/secp256k1/src/*.h', 'secp256k1/Classes/secp256k1/src/modules/{recovery, ecdh}/*.h'
s.exclude_files = 'secp256k1/Classes/secp256k1/src/test*.{c,h}', 'secp256k1/Classes/secp256k1/src/gen_context.c', 'secp256k1/Classes/secp256k1/src/bench*.{c,h}', 'secp256k1/Classes/secp256k1/src/modules/{recovery,ecdh}/*test*.{c,h}'
# s.resource_bundles = {
# 'secp256k1' => ['secp256k1/Assets/*.png']
# }
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end

View File