forked from zlib-ng/minizip-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Minizip.podspec
68 lines (60 loc) · 2.55 KB
/
Minizip.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
62
63
64
65
66
67
68
Pod::Spec.new do |s|
s.name = 'Minizip'
s.version = '2.9.1'
s.license = 'zlib'
s.summary = 'Minizip contrib in zlib with the latest bug fixes and advanced features'
s.description = <<-DESC
Minizip zlib contribution that includes:
* AES encryption
* I/O buffering
* PKWARE disk splitting
It also has the latest bug fixes that having been found all over the internet.
DESC
s.homepage = 'https://github.com/nmoinvaz/minizip'
s.authors = 'Nathan Moinvaziri', 'Gilles Vollant'
s.source = { :git => 'https://github.com/nmoinvaz/minizip.git', :tag => "#{s.version}" }
s.libraries = 'z', 'iconv'
s.default_subspecs = 'Core', 'PKCRYPT', 'WZAES_APPLE', 'BZIP2'
s.subspec 'Core' do |sp|
sp.source_files = '{mz,mz_os,mz_os_posix,mz_compat,mz_crypt,mz_strm,mz_strm_mem,mz_strm_buf,mz_strm_crypt,mz_strm_os_posix,mz_strm_zlib,mz_zip,mz_zip_rw,mz_strm_split}.{c,h}'
sp.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'HAVE_INTTYPES_H HAVE_STDINT_H HAVE_ZLIB' }
end
s.subspec 'PKCRYPT' do |sp|
# Enables PKWARE traditional encryption
sp.dependency 'Minizip/Core'
sp.source_files = 'mz_strm_pkcrypt.{c,h}'
sp.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'HAVE_PKCRYPT' }
end
s.subspec 'WZAES_APPLE' do |sp|
# Enables Apple's Security framework for AES
sp.dependency 'Minizip/Core'
sp.source_files = 'mz_strm_wzaes.{c,h}', 'mz_crypt_apple.c'
sp.framework = 'Security'
sp.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'HAVE_WZAES' }
end
s.subspec 'WZAES_BRG' do |sp|
# Enables Brian Gladman's encryption library for AES
sp.dependency 'Minizip/Core'
sp.source_files = 'lib/brg/*.{c,h}', 'mz_strm_wzaes.{c,h}', 'mz_crypt_brg.c'
sp.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'HAVE_ARC4RANDOM_BUF HAVE_WZAES' }
end
s.subspec 'BZIP2' do |sp|
# Enables BZIP2 compression
sp.dependency 'Minizip/Core'
sp.source_files = 'lib/bzip2/*.{c,h}', 'mz_strm_bzip.{c,h}'
sp.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'HAVE_BZIP2' }
end
s.subspec 'BZIP2_SYSTEM' do |sp|
# Enables system library BZIP2 compression
sp.dependency 'Minizip/Core'
sp.source_files = 'mz_strm_bzip.{c,h}'
sp.libraries = 'bz2'
sp.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'HAVE_BZIP2' }
end
s.subspec 'LZMA' do |sp|
# Enables LZMA compression
sp.dependency 'Minizip/Core'
sp.source_files = 'lib/liblzma/**/*.{c,h}', 'mz_strm_lzma.{c,h}'
sp.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'HAVE_LZMA' }
end
end