forked from yapstudios/YapDatabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
YapDatabase.podspec
204 lines (164 loc) · 8.28 KB
/
YapDatabase.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
Pod::Spec.new do |s|
s.name = "YapDatabase"
s.version = "2.9.2"
s.summary = "A key/value store built atop sqlite for iOS & Mac."
s.homepage = "https://github.com/yapstudios/YapDatabase"
s.license = 'MIT'
s.author = {
"Robbie Hanson" => "robbiehanson@deusty.com"
}
s.source = {
:git => "https://github.com/yapstudios/YapDatabase.git",
:tag => s.version.to_s
}
s.osx.deployment_target = '10.8'
s.ios.deployment_target = '6.0'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.libraries = 'c++'
s.default_subspecs = 'Standard'
# There are 2 different versions you can choose from:
# "Standard" uses the builtin version of sqlite3
# "SQLCipher" uses a version of sqlite3 compiled with SQLCipher included
#
# If you want to encrypt your database, you should choose "SQLCipher"
s.subspec 'Standard' do |ss|
ss.subspec 'Core' do |ssc|
ssc.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DYAP_STANDARD_SQLITE' }
ssc.library = 'sqlite3'
ssc.dependency 'CocoaLumberjack', '~> 2'
ssc.source_files = 'YapDatabase/*.{h,m,mm,c}', 'YapDatabase/{Internal,Utilities}/*.{h,m,mm,c}', 'YapDatabase/Extensions/Protocol/**/*.{h,m,mm,c}'
ssc.private_header_files = 'YapDatabase/Internal/*.h', 'YapDatabase/Extensions/Protocol/Internal/*.h'
end
ss.subspec 'Extensions' do |sse|
sse.dependency 'YapDatabase/Standard/Core'
sse.subspec 'Views' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/Views/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/Views/Internal/*.h'
end
sse.subspec 'SecondaryIndex' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/SecondaryIndex/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/SecondaryIndex/Internal/*.h'
end
sse.subspec 'CrossProcessNotification' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/CrossProcessNotification/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/CrossProcessNotification/Internal/*.h'
end
sse.subspec 'Relationships' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/Relationships/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/Relationships/Internal/*.h'
end
sse.subspec 'FullTextSearch' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/FullTextSearch/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/FullTextSearch/Internal/*.h'
end
sse.subspec 'Hooks' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/Hooks/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/Hooks/Internal/*.h'
end
sse.subspec 'FilteredViews' do |ssee|
ssee.dependency 'YapDatabase/Standard/Extensions/Views'
ssee.source_files = 'YapDatabase/Extensions/FilteredViews/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/FilteredViews/Internal/*.h'
end
sse.subspec 'SearchResults' do |ssee|
ssee.dependency 'YapDatabase/Standard/Extensions/Views'
ssee.dependency 'YapDatabase/Standard/Extensions/FullTextSearch'
ssee.source_files = 'YapDatabase/Extensions/SearchResults/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/SearchResults/Internal/*.h'
end
sse.subspec 'CloudKit' do |ssee|
ssee.osx.deployment_target = '10.8'
ssee.ios.deployment_target = '6.0'
ssee.tvos.deployment_target = '9.0'
ssee.source_files = 'YapDatabase/Extensions/CloudKit/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/CloudKit/Internal/*.h'
end
sse.subspec 'RTreeIndex' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/RTreeIndex/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/RTreeIndex/Internal/*.h'
end
sse.subspec 'ConnectionProxy' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/ConnectionProxy/**/*.{h,m,mm,c}'
end
sse.subspec 'ActionManager' do |ssee|
ssee.osx.framework = 'SystemConfiguration'
ssee.ios.framework = 'SystemConfiguration'
ssee.tvos.framework = 'SystemConfiguration'
ssee.dependency 'YapDatabase/Standard/Extensions/Views'
ssee.source_files = 'YapDatabase/Extensions/ActionManager/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/ActionManager/Internal/*.h'
end
end # Extensions
end #Standard
# use SQLCipher and enable -DSQLITE_HAS_CODEC flag
s.subspec 'SQLCipher' do |ss|
ss.subspec 'Core' do |ssc|
ssc.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC' }
ssc.dependency 'SQLCipher/fts'
ssc.dependency 'CocoaLumberjack', '~> 2'
ssc.source_files = 'YapDatabase/*.{h,m,mm,c}', 'YapDatabase/{Internal,Utilities}/*.{h,m,mm,c}', 'YapDatabase/Extensions/Protocol/**/*.{h,m,mm,c}'
ssc.private_header_files = 'YapDatabase/Internal/*.h', 'YapDatabase/Extensions/Protocol/Internal/*.h'
end
ss.subspec 'Extensions' do |sse|
sse.dependency 'YapDatabase/SQLCipher/Core'
sse.subspec 'Views' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/Views/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/Views/Internal/*.h'
end
sse.subspec 'SecondaryIndex' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/SecondaryIndex/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/SecondaryIndex/Internal/*.h'
end
sse.subspec 'CrossProcessNotification' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/CrossProcessNotification/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/CrossProcessNotification/Internal/*.h'
end
sse.subspec 'Relationships' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/Relationships/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/Relationships/Internal/*.h'
end
sse.subspec 'FullTextSearch' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/FullTextSearch/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/FullTextSearch/Internal/*.h'
end
sse.subspec 'Hooks' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/Hooks/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/Hooks/Internal/*.h'
end
sse.subspec 'FilteredViews' do |ssee|
ssee.dependency 'YapDatabase/SQLCipher/Extensions/Views'
ssee.source_files = 'YapDatabase/Extensions/FilteredViews/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/FilteredViews/Internal/*.h'
end
sse.subspec 'SearchResults' do |ssee|
ssee.dependency 'YapDatabase/SQLCipher/Extensions/Views'
ssee.dependency 'YapDatabase/SQLCipher/Extensions/FullTextSearch'
ssee.source_files = 'YapDatabase/Extensions/SearchResults/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/SearchResults/Internal/*.h'
end
sse.subspec 'CloudKit' do |ssee|
ssee.osx.deployment_target = '10.8'
ssee.ios.deployment_target = '6.0'
ssee.tvos.deployment_target = '9.0'
ssee.source_files = 'YapDatabase/Extensions/CloudKit/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/CloudKit/Internal/*.h'
end
sse.subspec 'RTreeIndex' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/RTreeIndex/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/RTreeIndex/Internal/*.h'
end
sse.subspec 'ConnectionProxy' do |ssee|
ssee.source_files = 'YapDatabase/Extensions/ConnectionProxy/**/*.{h,m,mm,c}'
end
sse.subspec 'ActionManager' do |ssee|
ssee.osx.framework = 'SystemConfiguration'
ssee.ios.framework = 'SystemConfiguration'
ssee.tvos.framework = 'SystemConfiguration'
ssee.dependency 'YapDatabase/SQLCipher/Extensions/Views'
ssee.source_files = 'YapDatabase/Extensions/ActionManager/**/*.{h,m,mm,c}'
ssee.private_header_files = 'YapDatabase/Extensions/ActionManager/Internal/*.h'
end
end # Extensions
end # SQLCipher
end