-
Notifications
You must be signed in to change notification settings - Fork 7
/
VVSequelize.podspec
64 lines (54 loc) · 2 KB
/
VVSequelize.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
Pod::Spec.new do |s|
s.name = 'VVSequelize'
s.version = '0.4.7'
s.summary = 'ORM model based on SQLite3.'
s.description = <<-DESC
ORM model based on SQLite3.
DESC
s.homepage = 'https://github.com/pozi119/VVSequelize'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Valo Lee' => '[email protected]' }
s.source = { :git => 'https://github.com/pozi119/VVSequelize.git', :tag => s.version.to_s }
s.ios.deployment_target = '10.0'
s.default_subspec = 'cipher'
s.subspec 'system' do |ss|
ss.dependency 'VVSequelize/core'
ss.dependency 'VVSequelize/fts'
ss.dependency 'VVSequelize/util'
ss.libraries = 'sqlite3'
end
s.subspec 'cipher' do |ss|
ss.dependency 'VVSequelize/core'
ss.dependency 'VVSequelize/fts'
ss.dependency 'VVSequelize/util'
ss.dependency 'SQLCipher'
ss.xcconfig = {
'OTHER_CFLAGS' => '-DSQLITE_HAS_CODEC',
'HEADER_SEARCH_PATHS' => "{PODS_ROOT}/SQLCipher"
}
end
# child specs
s.subspec 'core' do |ss|
ss.source_files = 'VVSequelize/Core/**/*'
ss.public_header_files = 'VVSequelize/Core/**/*.h'
ss.dependency 'VVSequelize/header'
ss.xcconfig = { 'OTHER_CFLAGS' => '-DVVSEQUELIZE_CORE' }
end
s.subspec 'fts' do |ss|
ss.source_files = 'VVSequelize/FTS/**/*'
ss.public_header_files = 'VVSequelize/FTS/**/*.h'
ss.resource = ['VVSequelize/Assets/VVPinYin.bundle']
ss.dependency 'VVSequelize/core'
ss.dependency 'VVSequelize/header'
ss.xcconfig = { 'OTHER_CFLAGS' => '-DVVSEQUELIZE_FTS' }
end
s.subspec 'util' do |ss|
ss.source_files = 'VVSequelize/Util/**/*'
ss.public_header_files = 'VVSequelize/Util/**/*.h'
ss.dependency 'VVSequelize/header'
ss.xcconfig = { 'OTHER_CFLAGS' => '-DVVSEQUELIZE_UTIL' }
end
s.subspec 'header' do |ss|
ss.source_files = 'VVSequelize/VVSequelize.h'
end
end