forked from pinterest/PINRemoteImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PINRemoteImage.podspec
80 lines (70 loc) · 2.67 KB
/
PINRemoteImage.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Be sure to run `pod lib lint PINRemoteImage.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = "PINRemoteImage"
s.version = "3.0.0-beta.14"
s.summary = "A thread safe, performant, feature rich image fetcher"
s.homepage = "https://github.com/pinterest/PINRemoteImage"
s.license = 'Apache 2.0'
s.author = { "Garrett Moon" => "garrett@pinterest.com" }
s.source = { :git => "https://github.com/pinterest/PINRemoteImage.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/garrettmoon'
ios_deployment = "7.0"
tvos_deployment = "9.0"
osx_deployment = "10.9"
s.ios.deployment_target = ios_deployment
s.tvos.deployment_target = tvos_deployment
s.requires_arc = true
s.default_subspecs = 'PINCache'
### Subspecs
s.subspec 'Core' do |cs|
cs.dependency 'PINOperation'
cs.ios.deployment_target = ios_deployment
cs.tvos.deployment_target = tvos_deployment
cs.osx.deployment_target = osx_deployment
cs.source_files = 'Source/Classes/**/*.{h,m}'
cs.public_header_files = 'Source/Classes/**/*.h'
cs.exclude_files = 'Source/Classes/PINCache/*.{h,m}'
cs.frameworks = 'ImageIO', 'Accelerate'
end
s.subspec 'iOS' do |ios|
ios.ios.deployment_target = ios_deployment
ios.tvos.deployment_target = tvos_deployment
ios.dependency 'PINRemoteImage/Core'
ios.frameworks = 'UIKit'
end
s.subspec 'OSX' do |cs|
cs.osx.deployment_target = osx_deployment
cs.dependency 'PINRemoteImage/Core'
cs.frameworks = 'Cocoa', 'CoreServices'
end
# The tvOS spec is no longer necessary, iOS should be used instead.
s.subspec 'tvOS' do |tvos|
tvos.dependency 'PINRemoteImage/iOS'
end
s.subspec 'WebP' do |webp|
webp.ios.deployment_target = ios_deployment
webp.tvos.deployment_target = tvos_deployment
webp.osx.deployment_target = osx_deployment
webp.xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) PIN_WEBP=1',
'USER_HEADER_SEARCH_PATHS' => '$(inherited) $(SRCROOT)/libwebp/src'
}
webp.dependency 'PINRemoteImage/Core'
webp.dependency 'libwebp'
end
s.subspec "PINCache" do |pc|
pc.dependency 'PINRemoteImage/Core'
pc.dependency 'PINCache', '=3.0.1-beta.7'
pc.ios.deployment_target = ios_deployment
pc.tvos.deployment_target = tvos_deployment
pc.osx.deployment_target = osx_deployment
pc.source_files = 'Source/Classes/PINCache/*.{h,m}'
end
end