FMDB.podspec 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Pod::Spec.new do |s|
  2. s.name = 'FMDB'
  3. s.version = '2.7.4'
  4. s.summary = 'A Cocoa / Objective-C wrapper around SQLite.'
  5. s.homepage = 'https://github.com/ccgus/fmdb'
  6. s.license = 'MIT'
  7. s.author = { 'August Mueller' => 'gus@flyingmeat.com' }
  8. s.source = { :git => 'https://github.com/ccgus/fmdb.git', :tag => "#{s.version}" }
  9. s.requires_arc = true
  10. s.default_subspec = 'standard'
  11. # use the built-in library version of sqlite3
  12. s.subspec 'standard' do |ss|
  13. ss.library = 'sqlite3'
  14. ss.source_files = 'src/fmdb/FM*.{h,m}'
  15. ss.exclude_files = 'src/fmdb.m'
  16. end
  17. # use the built-in library version of sqlite3 with custom FTS tokenizer source files
  18. s.subspec 'FTS' do |ss|
  19. ss.source_files = 'src/extra/fts3/*.{h,m}'
  20. ss.dependency 'FMDB/standard'
  21. end
  22. # build the latest stable version of sqlite3
  23. s.subspec 'standalone' do |ss|
  24. ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DFMDB_SQLITE_STANDALONE' }
  25. ss.dependency 'sqlite3'
  26. ss.source_files = 'src/fmdb/FM*.{h,m}'
  27. ss.exclude_files = 'src/fmdb.m'
  28. end
  29. # build with FTS support and custom FTS tokenizer source files
  30. s.subspec 'standalone-fts' do |ss|
  31. ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DFMDB_SQLITE_STANDALONE' }
  32. ss.source_files = 'src/fmdb/FM*.{h,m}', 'src/extra/fts3/*.{h,m}'
  33. ss.exclude_files = 'src/fmdb.m'
  34. ss.dependency 'sqlite3/fts'
  35. end
  36. # use SQLCipher and enable -DSQLITE_HAS_CODEC flag
  37. s.subspec 'SQLCipher' do |ss|
  38. ss.dependency 'SQLCipher'
  39. ss.source_files = 'src/fmdb/FM*.{h,m}'
  40. ss.exclude_files = 'src/fmdb.m'
  41. ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC -DHAVE_USLEEP=1', 'HEADER_SEARCH_PATHS' => 'SQLCipher' }
  42. end
  43. end