Mapbox.podspec
1.61 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Pod::Spec.new do |m|
m.name = 'Mapbox'
m.version = '1.1.0'
m.summary = 'Open source alternative to MapKit.'
m.description = 'Open source alternative to MapKit supporting custom tile sources, offline use, and complete cache control.'
m.homepage = 'http://mapbox.com/mobile'
m.license = 'BSD'
m.author = { 'Mapbox' => 'ios@mapbox.com' }
m.screenshot = 'https://raw.github.com/mapbox/mapbox-ios-sdk/packaging/screenshot.png'
m.source = { :git => 'https://github.com/mapbox/mapbox-ios-sdk.git', :tag => m.version.to_s }
m.platform = :ios
m.ios.deployment_target = '5.0'
m.source_files = 'Proj4/*.h', 'MapView/Map/*.{h,c,m}'
m.requires_arc = true
m.prefix_header_file = 'MapView/MapView_Prefix.pch'
m.pre_install do |pod, target_definition|
Dir.chdir(pod.root) do
command = "xcodebuild -project MapView/MapView.xcodeproj -target Resources CONFIGURATION_BUILD_DIR=../Resources 2>&1 > /dev/null"
unless system(command)
raise ::Pod::Informative, "Failed to generate Mapbox resources bundle"
end
end
end
m.resource = 'Resources/Mapbox.bundle'
m.documentation_url = 'https://www.mapbox.com/mapbox-ios-sdk'
m.frameworks = 'CoreGraphics', 'CoreLocation', 'Foundation', 'QuartzCore', 'UIKit'
m.libraries = 'Proj4', 'sqlite3', 'z'
m.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC', 'LIBRARY_SEARCH_PATHS' => '"${PODS_ROOT}/Mapbox/Proj4"' }
m.preserve_paths = 'Proj4/libProj4.a', 'MapView/MapView.xcodeproj', 'MapView/Map/Resources'
m.dependency 'FMDB', '2.0'
m.dependency 'GRMustache', '5.4.3'
m.dependency 'SMCalloutView', '1.1'
end