-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtippecanoe-swift.podspec
More file actions
34 lines (31 loc) · 1.4 KB
/
tippecanoe-swift.podspec
File metadata and controls
34 lines (31 loc) · 1.4 KB
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
Pod::Spec.new do |s|
s.name = 'tippecanoe-swift'
s.version = `git describe --abbrev=0 --tags`
s.summary = 'Tippecanoe library with swift bindings'
s.homepage = 'https://github.com/cropio/tippecanoe-swift'
s.author = { 'Evgeny Kalashnikov' => 'lumyk@me.com' }
s.source = { :git => 'https://github.com/cropio/tippecanoe-swift.git', :tag => s.version.to_s }
s.ios.deployment_target = '10.0'
s.swift_version = '5.2'
s.source_files = 'Sources/**/*.{swift,cpp,hpp}'
s.exclude_files = 'Sources/tippecanoe/main.cpp'
s.public_header_files = 'Sources/CBindings/include/*.{hpp}'
s.libraries = 'sqlite3', 'z', 'c++'
s.prepare_command = "sh install.sh"
s.pod_target_xcconfig = {
'HEADER_SEARCH_PATHS' => '${PODS_TARGET_SRCROOT}/Sources/tippecanoe',
'OTHER_CFLAGS' => '-DTARGET_OS_IPHONE=1',
'GCC_OPTIMIZATION_LEVEL' => '3',
'GCC_WARN_INHIBIT_ALL_WARNINGS' => 'YES'
}
s.subspec 'tippecanoe' do |tippecanoe|
tippecanoe.exclude_files = 'Sources/tippecanoe/main.cpp'
tippecanoe.source_files = [
'Sources/tippecanoe/*.{c,h,cpp,hpp}',
'Sources/tippecanoe/{catch,jsonpull,milo,protozero,mapbox}/**/*.{c,h,cpp,hpp}'
]
#need for moving other headers to project headers
tippecanoe.public_header_files = 'Sources/tippecanoe/version.hpp'
tippecanoe.private_header_files = 'Sources/tippecanoe/*.{h,hpp}'
end
end