Browse Source

Merge pull request #199 from snooc/podspec-dsqlite

Sync'd podspec with podspec from Cocoapods Specs.
August "Gus" Mueller 12 years ago
parent
commit
685ed00cfb
1 changed files with 25 additions and 12 deletions
  1. 25 12
      fmdb.podspec

+ 25 - 12
fmdb.podspec

@@ -1,23 +1,36 @@
 Pod::Spec.new do |s|
-  s.name     = 'FMDB'
-  s.version  = '2.0'
-  s.summary  = 'A Cocoa / Objective-C wrapper around SQLite.'
+  s.name = 'FMDB'
+  s.version = '2.1'
+  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' }
+  s.license = 'MIT'
+  s.author = { 'August Mueller' => 'gus@flyingmeat.com' }
+  s.source = { :git => 'https://github.com/ccgus/fmdb.git',
+                 :tag => 'v2.1' }
 
-  s.source_files = 'src/FM*.{h,m}'
-  s.exclude_files = 'src/fmdb\.m'
-  s.library = 'sqlite3'
+  s.default_subspec = 'standard'
 
-  s.subspec 'SQLCipher' do |ss|
+  s.subspec 'common' do |ss|
     ss.source_files = 'src/FM*.{h,m}'
-    ss.exclude_files = 'src/fmdb\.m'
+    ss.exclude_files = 'src/fmdb.m'
+  end
+
+  # use a builtin version of sqlite3
+  s.subspec 'standard' do |ss|
     ss.library = 'sqlite3'
+    ss.dependency 'FMDB/common'
+  end
 
-    ss.xcconfig     =  { 'OTHER_CFLAGS' => '$(inherited) -DSQLITE_HAS_CODEC' }
+  # use a custom built version of sqlite3, with FTS4 enabled
+  s.subspec 'standalone' do |ss|
+    ss.dependency 'sqlite3/fts'
+    ss.dependency 'FMDB/common'
+  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