fmdb.podspec 1019 B

123456789101112131415161718192021222324252627282930313233343536
  1. Pod::Spec.new do |s|
  2. s.name = 'FMDB'
  3. s.version = '2.1'
  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',
  9. :tag => 'v2.1' }
  10. s.default_subspec = 'standard'
  11. s.subspec 'common' do |ss|
  12. ss.source_files = 'src/fmdb/FM*.{h,m}'
  13. ss.exclude_files = 'src/fmdb.m'
  14. end
  15. # use a builtin version of sqlite3
  16. s.subspec 'standard' do |ss|
  17. ss.library = 'sqlite3'
  18. ss.dependency 'FMDB/common'
  19. end
  20. # use a custom built version of sqlite3, with FTS4 enabled
  21. s.subspec 'standalone' do |ss|
  22. ss.dependency 'sqlite3/fts'
  23. ss.dependency 'FMDB/common'
  24. end
  25. # use SQLCipher and enable -DSQLITE_HAS_CODEC flag
  26. s.subspec 'SQLCipher' do |ss|
  27. ss.dependency 'SQLCipher'
  28. ss.dependency 'FMDB/common'
  29. ss.xcconfig = { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC' }
  30. end
  31. end