YapDatabase/YapDatabase.podspec
2014-06-30 14:14:33 +02:00

40 lines
1.2 KiB
Ruby

Pod::Spec.new do |s|
s.name = "YapDatabase"
s.version = "2.4.3"
s.summary = "A key/value store built atop sqlite for iOS & Mac."
s.homepage = "https://github.com/yaptv/YapDatabase"
s.license = 'MIT'
s.ios.deployment_target = '6.0'
s.osx.deployment_target = '10.8'
s.author = { "Robbie Hanson" => "robbiehanson@deusty.com" }
s.source = { :git => "https://github.com/yaptv/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', '~> 1'
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