Created
January 17, 2013 14:14
-
-
Save odrobnik/4556184 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |spec| | |
spec.name = 'DTFoundation' | |
spec.version = '1.0.0' | |
spec.summary = "Standard toolset classes and categories." | |
spec.homepage = "https://github.com/Cocoanetics/DTFoundation" | |
spec.author = { "Oliver Drobnik" => "[email protected]" } | |
spec.source = { :git => "https://github.com/Cocoanetics/DTFoundation.git", :tag => spec.version.to_s } | |
spec.license = 'BSD' | |
spec.requires_arc = true | |
spec.subspec 'Core' do |ss| | |
ss.ios.deployment_target = '4.3' | |
ss.osx.deployment_target = '10.6' | |
ss.source_files = 'Core/Source/*.{h,m}' | |
end | |
spec.subspec 'UIKit' do |ss| | |
ss.platform = 'iOS' | |
ss.ios.deployment_target = '4.3' | |
ss.ios.frameworks = 'QuartzCore' | |
ss.ios.source_files = 'Core/Source/iOS/*.{h,m}' | |
end | |
spec.subspec 'AppKit' do |ss| | |
ss.platform = 'OSX' | |
ss.osx.deployment_target = '10.6' | |
ss.osx.source_files = 'Core/Source/OSX/*.{h,m}' | |
end | |
spec.subspec 'DTHMLParser' do |ss| | |
ss.ios.deployment_target = '4.3' | |
ss.dependency 'DTFoundation/Core' | |
ss.source_files = 'Core/Source/DTHTMLParser/*.{h,m}' | |
ss.library = 'xml2' | |
ss.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' } | |
end | |
spec.subspec 'DTZipArchive' do |ss| | |
ss.ios.deployment_target = '4.3' | |
ss.source_files = 'Core/Source/DTZipArchive/*.{h,m}' | |
# Ideally minizip should have a Pod | |
# ss.dependency 'Minizip' | |
ss.subspec 'Minizip' do |sss| | |
sss.source_files = 'Core/Source/Externals/minizip/*.{h,c}' | |
end | |
end | |
spec.subspec 'DTUTI' do |ss| | |
ss.ios.deployment_target = '4.3' | |
ss.ios.frameworks = ['MobileCoreServices'] | |
ss.source_files = 'Core/Source/DTUTI/*.{h,m}' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks good, however I don't see the advantage of having UIKit and AppKit in a separate subspec. Am I missing something?
One thing though:
Should be: