forked from yapstudios/YapDatabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYapDatabase.podspec
39 lines (33 loc) · 1.25 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
Pod::Spec.new do |s|
s.name = "YapDatabase"
s.version = "2.6.1"
s.summary = "A key/value store built atop sqlite for iOS & Mac."
s.homepage = "https://github.com/yapstudios/YapDatabase"
s.license = 'MIT'
s.ios.deployment_target = '6.0'
s.osx.deployment_target = '10.8'
s.author = { "Robbie Hanson" => "[email protected]" }
s.source = { :git => "https://github.com/yapstudios/YapDatabase.git", :tag => s.version.to_s }
s.default_subspec = 'standard'
s.subspec 'common' do |ss|
ss.source_files = 'YapDatabase/**/*.{h,m,mm}'
ss.xcconfig = { 'OTHER_LDFLAGS' => '-weak_library /usr/lib/libc++.dylib' }
ss.private_header_files = 'YapDatabase/**/Internal/*.h'
ss.dependency 'CocoaLumberjack', '~> 2'
ss.requires_arc = true
end
# use a builtin version of sqlite3
s.subspec 'standard' do |ss|
ss.library = 'sqlite3'
ss.dependency 'YapDatabase/common'
ss.requires_arc = true
end
# use SQLCipher and enable -DSQLITE_HAS_CODEC flag
s.subspec 'SQLCipher' do |ss|
ss.dependency 'SQLCipher/fts'
ss.dependency 'YapDatabase/common'
ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC' }
ss.requires_arc = true
end
s.requires_arc = true
end