forked from mxcl/PromiseKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPromiseKit.podspec
More file actions
50 lines (43 loc) · 1.57 KB
/
PromiseKit.podspec
File metadata and controls
50 lines (43 loc) · 1.57 KB
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
Pod::Spec.new do |s|
preserved = %w{Private PromiseKit}
s.name = "PromiseKit"
s.version = "0.9.1"
s.source = { :git => "https://github.com/mxcl/#{s.name}.git", :tag => s.version }
s.license = 'MIT'
s.summary = 'A delightful Promises implementation for iOS.'
s.requires_arc = true
s.homepage = 'http://promisekit.org'
s.social_media_url = 'https://twitter.com/mxcl'
s.authors = { 'Max Howell' => 'mxcl@me.com' }
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
s.subspec 'base' do |ss|
ss.source_files = 'PromiseKit/*.h', 'PromiseKit.{h,m}'
ss.preserve_paths = preserved
ss.frameworks = 'Foundation'
end
s.subspec 'Foundation' do |ss|
ss.dependency 'PromiseKit/base'
ss.source_files = 'PromiseKit+Foundation.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) PMK_FOUNDATION=1" }
ss.preserve_paths = preserved
ss.frameworks = 'Foundation'
ss.dependency "ChuzzleKit"
end
s.subspec 'UIKit' do |ss|
ss.dependency 'PromiseKit/base'
ss.ios.source_files = 'PromiseKit+UIKit.{h,m}'
ss.osx.source_files = ''
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) PMK_UIKIT=1" }
ss.preserve_paths = preserved
ss.ios.frameworks = 'UIKit'
ss.ios.deployment_target = '5.0'
end
s.subspec 'CoreLocation' do |ss|
ss.dependency 'PromiseKit/base'
ss.source_files = 'PromiseKit+CoreLocation.{h,m}'
ss.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) PMK_CORELOCATION=1" }
ss.frameworks = 'CoreLocation'
ss.preserve_paths = preserved
end
end