-
Notifications
You must be signed in to change notification settings - Fork 68
/
MIHCrypto.podspec
61 lines (49 loc) · 1.77 KB
/
MIHCrypto.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Pod::Spec.new do |s|
s.name = "MIHCrypto"
s.version = "0.5.0"
s.license = 'MIT'
s.summary = "OpenSSL wrapper for Objective-C"
s.description = "MIHCrypto provides an object-oriented cryptography framework based on libCrypto
by OpenSSL. Supports RSA, DES, AES, ECC (Elliptic Curve Cryptography) and more."
s.homepage = "https://github.com/hohl/MIHCrypto"
s.authors = {'Michael Hohl' => 'me@michaelhohl.net'}
s.source = { :git => "https://github.com/hohl/MIHCrypto.git", :tag => "#{s.version}" }
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.requires_arc = true
s.static_framework = true
s.xcconfig = { 'OTHER_CFLAGS' => '-DLIBRESSL',
'LIBRARY_SEARCH_PATHS' => '"${PODS_ROOT}/OpenSSL-Universal/lib-ios"' }
s.subspec 'Core' do |core|
core.source_files = 'MIHCrypto/{Utils,Core}/*.{h,m,c}'
core.dependency 'OpenSSL-Universal', '~> 1.1.180'
end
s.subspec 'Mathematics' do |ss|
ss.source_files = 'MIHCrypto/Mathematics/*.{h,m,c}'
ss.dependency 'MIHCrypto/Core'
end
s.subspec 'AES' do |ss|
ss.source_files = 'MIHCrypto/AES/*.{h,m,c}'
ss.dependency 'MIHCrypto/Core'
end
s.subspec 'DES' do |ss|
ss.source_files = 'MIHCrypto/DES/*.{h,m,c}'
ss.dependency 'MIHCrypto/Core'
end
s.subspec 'EC' do |ss|
ss.source_files = 'MIHCrypto/EC/*.{h,m,c}'
ss.dependency 'MIHCrypto/Core'
end
s.subspec 'MD5' do |ss|
ss.source_files = 'MIHCrypto/MD5/*.{h,m,c}'
ss.dependency 'MIHCrypto/Core'
end
s.subspec 'RSA' do |ss|
ss.source_files = 'MIHCrypto/RSA/*.{h,m,c}'
ss.dependency 'MIHCrypto/Core'
end
s.subspec 'SHA' do |ss|
ss.source_files = 'MIHCrypto/SHA/*.{h,m,c}'
ss.dependency 'MIHCrypto/Core'
end
end