forked from Cocoanetics/DTFoundation
/
DTFoundation.podspec
54 lines (47 loc) · 1.7 KB
/
DTFoundation.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
Pod::Spec.new do |spec|
spec.name = 'DTFoundation'
spec.version = '1.1.0'
spec.summary = "Standard toolset classes and categories."
spec.homepage = "https://github.com/Cocoanetics/DTFoundation"
spec.author = { "Oliver Drobnik" => "oliver@drobnik.com" }
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, '4.3'
ss.dependency 'DTFoundation/Core'
ss.ios.frameworks = 'QuartzCore'
ss.ios.source_files = 'Core/Source/iOS/*.{h,m}'
end
spec.subspec 'AppKit' do |ss|
ss.platform = :osx, '10.6'
ss.dependency 'DTFoundation/Core'
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