Skip to content

Commit

Permalink
renaming subspecs to match CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur committed May 8, 2019
1 parent 971d7de commit 837eec8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Minizip.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,46 @@ DESC
s.homepage = 'https://github.com/nmoinvaz/minizip'
s.authors = 'Nathan Moinvaziri', 'Gilles Vollant'

s.source = { :git => 'https://github.com/nmoinvaz/minizip.git' }
s.source = { :git => 'https://github.com/nmoinvaz/minizip.git', :tag => "#{s.version}" }
s.libraries = 'z', 'iconv'
s.default_subspecs = 'Core', 'PKWARE', 'crypt_apple', 'BZIP2'
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}.{c,h}'
sp.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'HAVE_INTTYPES_H HAVE_STDINT_H HAVE_ZLIB' }
end

s.subspec 'PKWARE' do |sp|
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 'crypt_apple' do |sp|
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 MZ_ZIP_NO_SIGNING' }
end

s.subspec 'crypt_brg' do |sp|
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 MZ_ZIP_NO_SIGNING' }
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 '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' }
Expand Down

0 comments on commit 837eec8

Please sign in to comment.