-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Texture.podspec
122 lines (106 loc) · 4.71 KB
/
Texture.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Pod::Spec.new do |spec|
spec.name = 'Texture'
spec.version = '3.2.0'
spec.license = { :type => 'Apache 2', }
spec.homepage = 'http://texturegroup.org'
spec.authors = { 'Huy Nguyen' => '[email protected]', 'Garrett Moon' => '[email protected]', 'Scott Goodson' => '[email protected]', 'Michael Schneider' => '[email protected]', 'Adlai Holler' => '[email protected]' }
spec.summary = 'Smooth asynchronous user interfaces for iOS apps.'
spec.source = { :git => 'https://github.com/TextureGroup/Texture.git', :tag => spec.version.to_s }
spec.module_name = 'AsyncDisplayKit'
spec.header_dir = 'AsyncDisplayKit'
spec.documentation_url = 'http://texturegroup.org/appledoc/'
ios_deployment_target = '14.0'
tvos_deployment_target = '14.0'
spec.ios.deployment_target = ios_deployment_target
spec.tvos.deployment_target = tvos_deployment_target
# Subspecs
spec.subspec 'Core' do |core|
core.ios.deployment_target = ios_deployment_target
core.tvos.deployment_target = tvos_deployment_target
core.compiler_flags = '-fno-exceptions'
core.public_header_files = [
'Source/*.h',
'Source/Details/**/*.h',
'Source/Layout/**/*.h',
'Source/Base/*.h',
'Source/Debug/**/*.h',
'Source/Private/ASCollectionView+Undeprecated.h',
'Source/TextKit/ASTextNodeTypes.h',
'Source/TextKit/ASTextKitComponents.h',
'Source/TextExperiment/Component/*.h',
'Source/TextExperiment/String/ASTextAttribute.h',
]
core.source_files = [
'Source/**/*.{h,mm}',
# Most TextKit components are not public because the C++ content
# in the headers will cause build errors when using
# `use_frameworks!` on 0.39.0 & Swift 2.1.
# See https://github.com/facebook/AsyncDisplayKit/issues/1153
'Source/TextKit/*.h',
]
end
spec.subspec 'PINRemoteImage' do |pin|
pin.ios.deployment_target = ios_deployment_target
pin.tvos.deployment_target = tvos_deployment_target
pin.dependency 'PINRemoteImage/iOS', '~> 3.0.0'
pin.dependency 'PINRemoteImage/PINCache'
pin.dependency 'Texture/Core'
end
spec.subspec 'IGListKit' do |igl|
igl.ios.deployment_target = ios_deployment_target
igl.tvos.deployment_target = tvos_deployment_target
igl.dependency 'IGListKit', '~> 4.0'
igl.dependency 'IGListDiffKit', '~> 4.0'
igl.dependency 'Texture/Core'
end
spec.subspec 'Yoga' do |yoga|
yoga.ios.deployment_target = ios_deployment_target
yoga.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) YOGA=1' }
yoga.dependency 'Yoga', '~> 2.0'
yoga.dependency 'Texture/Core'
end
# If flag is enabled the old TextNode with all dependencies will be compiled out
spec.subspec 'TextNode2' do |text_node|
text_node.ios.deployment_target = ios_deployment_target
text_node.tvos.deployment_target = tvos_deployment_target
text_node.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_ENABLE_TEXTNODE=0' }
text_node.dependency 'Texture/Core'
end
spec.subspec 'Video' do |video|
video.ios.deployment_target = ios_deployment_target
video.tvos.deployment_target = tvos_deployment_target
video.frameworks = ['AVFoundation', 'CoreMedia']
video.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_VIDEO=1' }
video.dependency 'Texture/Core'
end
spec.subspec 'MapKit' do |map|
map.ios.deployment_target = ios_deployment_target
map.tvos.deployment_target = tvos_deployment_target
map.frameworks = ['CoreLocation', 'MapKit']
map.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_MAPKIT=1' }
map.dependency 'Texture/Core'
end
spec.subspec 'Photos' do |photos|
photos.ios.deployment_target = ios_deployment_target
photos.tvos.deployment_target = tvos_deployment_target
photos.frameworks = 'Photos'
photos.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_PHOTOS=1' }
photos.dependency 'Texture/Core'
end
spec.subspec 'AssetsLibrary' do |assetslib|
assetslib.ios.deployment_target = ios_deployment_target
assetslib.tvos.deployment_target = tvos_deployment_target
assetslib.ios.frameworks = 'AssetsLibrary'
assetslib.ios.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_ASSETS_LIBRARY=1' }
assetslib.dependency 'Texture/Core'
end
# Include these by default for backwards compatibility.
# This will change in 3.0.
spec.default_subspecs = 'Core', 'PINRemoteImage', 'Video', 'MapKit', 'AssetsLibrary', 'Photos'
spec.social_media_url = 'https://twitter.com/TextureiOS'
spec.library = 'c++'
spec.pod_target_xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
'CLANG_CXX_LIBRARY' => 'libc++'
}
end