Pod::Spec.new do |s| s.name = "SWCompression" s.version = "3.0.0-test1" s.summary = "Framework with implementations in Swift of different (de)compression algorithms" s.description = <<-DESC A framework which contains native (written in Swift) implementations of compression algorithms. Swift developers currently have access only to various wrappers written in Objective-C around system libraries if they want to decompress something. SWCompression allows to do this with pure Swift without relying on availability of system libraries. DESC s.homepage = "https://github.com/tsolomko/SWCompression" s.documentation_url = "http://tsolomko.github.io/SWCompression" s.license = { :type => "MIT", :file => "LICENSE" } s.author = { "Timofey Solomko" => "tsolomko@gmail.com" } 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.source = { :git => "https://github.com/tsolomko/SWCompression.git", :tag => "v#{s.version}" } # This is subspec for internal use by other subspecs. # It should not be included directly in Podfile. s.subspec 'Common' do |sp| sp.public_header_files = 'Sources/Service/SWCompression.h' sp.source_files = "Sources/{CheckSums.swift,DataWithPointer.swift,Extensions.swift,Protocols.swift,Service/*.swift,Service/*.h}" end s.subspec 'Deflate' do |sp| sp.dependency 'SWCompression/Common' sp.source_files = 'Sources/{Deflate.swift,HuffmanTree.swift,BitToByteWriter.swift}' end s.subspec 'GZip' do |sp| sp.dependency 'SWCompression/Common' sp.dependency 'SWCompression/Deflate' sp.source_files = 'Sources/GZipArchive.swift' end s.subspec 'Zlib' do |sp| sp.dependency 'SWCompression/Common' sp.dependency 'SWCompression/Deflate' sp.source_files = 'Sources/ZlibArchive.swift' end s.subspec 'BZip2' do |sp| sp.dependency 'SWCompression/Common' sp.source_files = 'Sources/{BZip2.swift,HuffmanTree.swift,BitToByteWriter.swift}' sp.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DSWCOMP_ZIP_POD_BZ2' } end s.subspec 'LZMA' do |sp| sp.dependency 'SWCompression/Common' sp.source_files = 'Sources/LZMA*.swift' sp.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DSWCOMP_ZIP_POD_LZMA' } end s.subspec 'XZ' do |sp| sp.dependency 'SWCompression/Common' sp.dependency 'SWCompression/LZMA' sp.source_files = 'Sources/XZArchive.swift' end s.subspec 'ZIP' do |sp| sp.dependency 'SWCompression/Common' sp.dependency 'SWCompression/Deflate' sp.source_files = 'Sources/ZipContainer.swift' sp.pod_target_xcconfig = { 'OTHER_SWIFT_FLAGS' => '-DSWCOMP_ZIP_POD_BUILD' } end end