forked from stephencelis/SQLite.swift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SQLite.swift.podspec
69 lines (59 loc) · 2.35 KB
/
SQLite.swift.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Pod::Spec.new do |s|
s.name = "SQLite.swift"
s.version = "0.11.5"
s.summary = "A type-safe, Swift-language layer over SQLite3 for iOS and OS X."
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 = 'MIT'
s.author = { "Stephen Celis" => "[email protected]" }
s.source = { :git => "https://github.com/stephencelis/SQLite.swift.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/stephencelis'
s.module_name = 'SQLite'
s.ios.deployment_target = "8.0"
s.tvos.deployment_target = "9.1"
s.osx.deployment_target = "10.10"
s.watchos.deployment_target = "2.2"
s.default_subspec = 'standard'
s.pod_target_xcconfig = {
'SWIFT_VERSION' => '4.1',
}
s.subspec 'standard' do |ss|
ss.source_files = 'Sources/{SQLite,SQLiteObjc}/**/*.{c,h,m,swift}'
ss.exclude_files = 'Sources/**/Cipher.swift'
ss.private_header_files = 'Sources/SQLiteObjc/*.h'
ss.library = 'sqlite3'
ss.test_spec 'tests' do |test_spec|
test_spec.resources = 'Tests/SQLiteTests/fixtures/*'
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
end
end
s.subspec 'standalone' do |ss|
ss.source_files = 'Sources/{SQLite,SQLiteObjc}/**/*.{c,h,m,swift}'
ss.exclude_files = 'Sources/**/Cipher.swift'
ss.private_header_files = 'Sources/SQLiteObjc/*.h'
ss.xcconfig = {
'OTHER_SWIFT_FLAGS' => '$(inherited) -DSQLITE_SWIFT_STANDALONE'
}
ss.dependency 'sqlite3'
ss.test_spec 'tests' do |test_spec|
test_spec.resources = 'Tests/SQLiteTests/fixtures/*'
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
end
end
s.subspec 'SQLCipher' do |ss|
ss.source_files = 'Sources/{SQLite,SQLiteObjc}/**/*.{c,h,m,swift}'
ss.private_header_files = 'Sources/SQLiteObjc/*.h'
ss.xcconfig = {
'OTHER_SWIFT_FLAGS' => '$(inherited) -DSQLITE_SWIFT_SQLCIPHER',
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SQLITE_HAS_CODEC=1'
}
ss.dependency 'SQLCipher', '>= 3.4.0'
ss.test_spec 'tests' do |test_spec|
test_spec.resources = 'Tests/SQLiteTests/fixtures/*'
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
end
end
end