-
Notifications
You must be signed in to change notification settings - Fork 255
/
WhirlyGlobe.podspec
117 lines (111 loc) · 5.01 KB
/
WhirlyGlobe.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#
# Be sure to run `pod lib lint WhirlyGlobe.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = "WhirlyGlobe"
s.version = "3.5"
s.summary = "WhirlyGlobe-Maply: Geospatial visualization for iOS and Android."
s.description = <<-DESC
WhirlyGlobe-Maply is a high performance geospatial display toolkit for iOS and Android.
The iOS version supports big, complex apps like Dark Sky and National Geographic World Atlas,
among others. Even so, it's easy to get started on your own project.
DESC
s.homepage = "https://github.com/mousebird/WhirlyGlobe"
s.license = 'Apache 2.0'
s.author = { "Steve Gifford" => "[email protected]" }
s.social_media_url = 'https://twitter.com/@mousebirdc'
s.platform = :ios, '12.0'
s.requires_arc = true
s.source = { :git => 'https://github.com/mousebird/WhirlyGlobe.git', :branch => 'topic/xcframework' }
s.module_name = "WhirlyGlobe"
s.default_subspec = "WhirlyGlobe"
s.compiler_flags = ""
s.pod_target_xcconfig = {
"DEFINES_MODULE" => "YES",
"MTL_LANGUAGE_REVISION" => "Metal21",
"GCC_PREPROCESSOR_DEFINITIONS" => %w(
__USE_SDL_GLES__
__IPHONEOS__
SQLITE_OPEN_READONLY
HAVE_PTHREAD=1
).join(" "),
"HEADER_SEARCH_PATHS" => %w(
"$(SDKROOT)/usr/include/libxml2"
"$(PODS_ROOT)/KissXML/KissXML/"
"${PODS_TARGET_SRCROOT}/common/local_libs/eigen/"
"${PODS_TARGET_SRCROOT}/common/local_libs/nanopb/"
"${PODS_TARGET_SRCROOT}/common/local_libs/clipper"
"${PODS_TARGET_SRCROOT}/common/local_libs/lodepng"
"${PODS_TARGET_SRCROOT}/common/local_libs/glues/include/"
"${PODS_TARGET_SRCROOT}/common/local_libs/GeographicLib/include/"
"${PODS_TARGET_SRCROOT}/ios/library/WhirlyGlobe-MaplyComponent/include/private/"
"${PODS_TARGET_SRCROOT}/ios/library/WhirlyGlobe-MaplyComponent/include/"
"${PODS_TARGET_SRCROOT}/ios/library/WhirlyGlobe-MaplyComponent/include/vector_tiles/"
).join(" "),
# For angle-bracket includes
"SYSTEM_HEADER_SEARCH_PATHS" => %w(
).join(" "),
"CLANG_WARN_DOCUMENTATION_COMMENTS" => "NO",
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES"
}
s.subspec 'locallibs' do |ll|
ll.source_files =
'common/local_libs/aaplus/**/*.{h,cpp}',
'common/local_libs/clipper/cpp/*.{cpp,hpp}',
'common/local_libs/shapefile/**/*.{c,h}',
'common/local_libs/lodepng/*.{cpp,h}',
'common/local_libs/nanopb/*.{c,h}',
'common/local_libs/GeographicLib/src/*.cpp',
'common/local_libs/GeographicLib/include/GeographicLib/*.{h,hpp}'
ll.preserve_paths =
'common/local_libs/eigen/Eigen/**',
'common/local_libs/lodepng/*.h',
'common/local_libs/nanopb/*.h',
'common/local_libs/GeographicLib/include/GeographicLib/*.{h,hpp}'
ll.private_header_files =
'common/local_libs/aaplus/**/*.h',
'common/local_libs/clipper/cpp/*.hpp',
'common/local_libs/shapefile/**/*.h',
'common/local_libs/nanopb/*.h',
'common/local_libs/GeographicLib/include/GeographicLib/*.{h,hpp}'
end
s.subspec 'glues' do |gl|
gl.source_files = 'common/local_libs/glues/**/*.{cpp,h}'
gl.private_header_files = 'common/local_libs/glues/**/*.h'
end
s.subspec 'WhirlyGlobe' do |mc|
mc.source_files =
'common/WhirlyGlobeLib/src/*.{c,cpp}',
'common/WhirlyGlobeLib/include/*.h',
'ios/library/WhirlyGlobeLib/src/*.{mm,m,cpp,metal}',
'ios/library/WhirlyGlobeLib/include/*.h',
'ios/library/WhirlyGlobe-MaplyComponent/include/**/*.h',
'ios/library/WhirlyGlobe-MaplyComponent/src/**/*.{mm,m,cpp,metal}',
'ios/library/WhirlyGlobe-MaplyComponent/WhirlyGlobeMaplyComponent/*.h'
mc.exclude_files =
'common/WhirlyGlobeLib/src/*GLES.{h,cpp}',
'ios/library/WhirlyGlobeLib/src/Texture_iOS.mm',
'ios/library/WhirlyGlobeLib/include/TextureGLES_iOS.h'
mc.public_header_files =
'ios/library/WhirlyGlobe-MaplyComponent/include/**/*.h',
'ios/library/WhirlyGlobe-MaplyComponent/WhirlyGlobeMaplyComponent/*.h'
mc.private_header_files =
'common/WhirlyGlobeLib/include/**/*.h',
'ios/library/WhirlyGlobeLib/include/*.h',
'ios/library/WhirlyGlobe-MaplyComponent/include/private/*.h'
mc.dependency 'WhirlyGlobe/locallibs'
mc.dependency 'WhirlyGlobe/glues'
mc.dependency 'SMCalloutView'
mc.dependency 'FMDB'
mc.dependency 'libjson'
mc.dependency 'KissXML'
mc.dependency 'proj4'
mc.libraries = 'z', 'xml2', 'c++', 'sqlite3'
mc.frameworks = 'CoreLocation', 'CoreServices', 'SystemConfiguration', 'CFNetwork', 'UIKit', 'Accelerate', 'MetalKit', 'MetalPerformanceShaders'
end
end