mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-28 02:20:54 +01:00
54 lines
1.5 KiB
Ruby
Executable File
54 lines
1.5 KiB
Ruby
Executable File
Pod::Spec.new do |s|
|
|
s.name = 'FMDB'
|
|
s.version = '2.5'
|
|
s.summary = 'A Cocoa / Objective-C wrapper around SQLite.'
|
|
s.homepage = 'https://github.com/ccgus/fmdb'
|
|
s.license = 'MIT'
|
|
s.author = { 'August Mueller' => 'gus@flyingmeat.com' }
|
|
s.source = { :git => 'https://github.com/ccgus/fmdb.git', :tag => 'v2.5' }
|
|
s.requires_arc = true
|
|
|
|
s.default_subspec = 'standard'
|
|
|
|
s.subspec 'common' do |ss|
|
|
ss.source_files = 'src/fmdb/FM*.{h,m}'
|
|
ss.exclude_files = 'src/fmdb.m'
|
|
end
|
|
|
|
# use the built-in library version of sqlite3
|
|
s.subspec 'standard' do |ss|
|
|
ss.library = 'sqlite3'
|
|
ss.dependency 'FMDB/common'
|
|
end
|
|
|
|
# use the built-in library version of sqlite3 with custom FTS tokenizer source files
|
|
s.subspec 'FTS' do |ss|
|
|
ss.source_files = 'src/extra/fts3/*.{h,m}'
|
|
ss.dependency 'FMDB/standard'
|
|
end
|
|
|
|
# build the latest stable version of sqlite3
|
|
s.subspec 'standalone' do |ss|
|
|
ss.default_subspec = 'default'
|
|
ss.dependency 'FMDB/common'
|
|
|
|
ss.subspec 'default' do |sss|
|
|
sss.dependency 'sqlite3'
|
|
end
|
|
|
|
# build with FTS support and custom FTS tokenizer source files
|
|
ss.subspec 'FTS' do |sss|
|
|
sss.source_files = 'src/extra/fts3/*.{h,m}'
|
|
sss.dependency 'sqlite3/fts'
|
|
end
|
|
end
|
|
|
|
# use SQLCipher and enable -DSQLITE_HAS_CODEC flag
|
|
s.subspec 'SQLCipher' do |ss|
|
|
ss.dependency 'SQLCipher'
|
|
ss.dependency 'FMDB/common'
|
|
ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC' }
|
|
end
|
|
|
|
end
|