49 строки
1.2 KiB
Ruby
49 строки
1.2 KiB
Ruby
Pod::Spec.new do |s|
|
|
s.name = 'SQLite.swift'
|
|
s.module_name = 'SQLite'
|
|
s.version = '0.1.0.pre'
|
|
s.summary = 'A type-safe, Swift-language layer over SQLite3.'
|
|
|
|
s.description = <<-DESC
|
|
SQLite.swift provides compile-time confidence in SQL statement syntax and
|
|
intent.
|
|
DESC
|
|
|
|
s.homepage = 'https://github.com/stephencelis/SQLite.swift'
|
|
s.license = { type: 'MIT', file: 'LICENSE.txt' }
|
|
|
|
s.author = { 'Stephen Celis' => 'stephen@stephencelis.com' }
|
|
s.social_media_url = 'https://twitter.com/stephencelis'
|
|
|
|
s.source = {
|
|
git: 'https://github.com/stephencelis/SQLite.swift.git',
|
|
tag: s.version
|
|
}
|
|
|
|
s.module_map = 'SQLite/module.modulemap'
|
|
|
|
s.default_subspec = 'Library'
|
|
|
|
s.subspec 'Core' do |ss|
|
|
ss.source_files = 'SQLite/**/*.{swift,c,h,m}'
|
|
ss.private_header_files = 'SQLite/fts3_tokenizer.h'
|
|
end
|
|
|
|
s.subspec 'Library' do |ss|
|
|
ss.dependency 'SQLite.swift/Core'
|
|
|
|
ss.library = 'sqlite3'
|
|
end
|
|
|
|
s.subspec 'Cipher' do |ss|
|
|
ss.dependency 'SQLCipher'
|
|
ss.dependency 'SQLite.swift/Core'
|
|
|
|
ss.source_files = 'SQLiteCipher/**/*.{swift,c,h,m}'
|
|
|
|
ss.xcconfig = {
|
|
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SQLITE_HAS_CODEC=1'
|
|
}
|
|
end
|
|
end
|