-
Notifications
You must be signed in to change notification settings - Fork 17
/
Package.swift
185 lines (183 loc) · 6.83 KB
/
Package.swift
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "MapCore",
platforms: [
.iOS(.v14),
.macOS(.v10_14),
],
products: [
.library(
name: "MapCore",
targets: ["MapCore"]
),
.library(
name: "MapCoreSharedModule",
targets: ["MapCoreSharedModule"]
),
.library(
name: "MapCoreSharedModuleCpp",
targets: ["MapCoreSharedModuleCpp"]
),
],
dependencies: [
.package(url: "https://github.com/UbiqueInnovation/djinni.git", .upToNextMinor(from: "1.0.9")),
],
targets: [
.target(
name: "earcut",
path: "external/earcut/",
exclude: [
"earcut/glfw",
"earcut/test",
"earcut/appveyor.yml",
"earcut/CHANGELOG.md",
"earcut/CMakeLists.txt",
"earcut/LICENSE",
"earcut/README.md",
],
sources: [
"",
"earcut/include/",
"earcut/include/mapbox/",
],
publicHeadersPath: "earcut/include/mapbox/",
cxxSettings: [
.headerSearchPath("earcut/include/"),
.headerSearchPath("earcut/include/mapbox/"),
]
),
.target(
name: "protozero",
path: "external/protozero/",
exclude: [
"protozero/bench",
"protozero/cmake",
"protozero/test",
"protozero/doc",
"protozero/test",
"protozero/tools",
"protozero/appveyor.yml",
"protozero/CHANGELOG.md",
"protozero/CMakeLists.txt",
"protozero/CONTRIBUTING.md",
"protozero/FUZZING.md",
"protozero/LICENSE.from_folly",
"protozero/LICENSE.md",
"protozero/README.md",
"protozero/UPGRADING.md",
],
sources: [
"",
"protozero/include/",
],
publicHeadersPath: "protozero/include/",
cxxSettings: [
.headerSearchPath("protozero/include/"),
]
),
.target(
name: "vtzero",
dependencies: ["protozero"],
path: "external/vtzero/",
exclude: [
"vtzero/cmake",
"vtzero/test",
"vtzero/doc",
"vtzero/test",
"vtzero/examples",
"vtzero/include-external",
"vtzero/appveyor.yml",
"vtzero/build-appveyor.bat",
"vtzero/build-msys2.bat",
"vtzero/CHANGELOG.md",
"vtzero/CMakeLists.txt",
"vtzero/codecov.yml",
"vtzero/CONTRIBUTING.md",
"vtzero/EXTERNAL_LICENSES.txt",
"vtzero/LICENSE",
"vtzero/README.md",
],
sources: [
"",
"vtzero/include/",
],
publicHeadersPath: "vtzero/include/",
cxxSettings: [
.headerSearchPath("vtzero/include/"),
]
),
.target(
name: "MapCore",
dependencies: ["MapCoreSharedModule"],
path: "ios",
exclude: ["readme.md"],
resources: [
.process("graphics/Shader/Metal/"),
]
),
.target(
name: "MapCoreSharedModule",
dependencies: [
"MapCoreSharedModuleCpp",
],
path: "bridging/ios",
publicHeadersPath: ""
),
.target(
name: "MapCoreSharedModuleCpp",
dependencies: [
"vtzero",
"earcut",
.product(name: "DjinniSupport", package: "djinni"),
],
path: "shared",
sources: ["src", "public"],
publicHeadersPath: "public",
cxxSettings: [
.headerSearchPath("public"),
.headerSearchPath("src"),
.headerSearchPath("src/external/pugixml"),
.headerSearchPath("src/external/gpc"),
.headerSearchPath("src/logger"),
.headerSearchPath("src/graphics"),
.headerSearchPath("src/graphics/helpers"),
.headerSearchPath("src/map"),
.headerSearchPath("src/map/camera"),
.headerSearchPath("src/map/controls"),
.headerSearchPath("src/map/coordinates"),
.headerSearchPath("src/map/layers"),
.headerSearchPath("src/map/layers/objects"),
.headerSearchPath("src/map/layers/tiled"),
.headerSearchPath("src/map/layers/tiled/raster"),
.headerSearchPath("src/map/layers/tiled/wmts"),
.headerSearchPath("src/map/layers/tiled/vector"),
.headerSearchPath("src/map/layers/tiled/vector/geojson"),
.headerSearchPath("src/map/layers/tiled/vector/geojson/geojsonvt"),
.headerSearchPath("src/map/layers/tiled/vector/tiles"),
.headerSearchPath("src/map/layers/tiled/vector/tiles/raster"),
.headerSearchPath("src/map/layers/tiled/vector/tiles/polygon"),
.headerSearchPath("src/map/layers/tiled/vector/tiles/line"),
.headerSearchPath("src/map/layers/tiled/vector/sourcemanagers"),
.headerSearchPath("src/map/layers/tiled/vector/sublayers"),
.headerSearchPath("src/map/layers/tiled/vector/sublayers/raster"),
.headerSearchPath("src/map/layers/tiled/vector/sublayers/line"),
.headerSearchPath("src/map/layers/tiled/vector/sublayers/polygon"),
.headerSearchPath("src/map/layers/tiled/vector/sublayers/symbol"),
.headerSearchPath("src/map/layers/tiled/vector/sublayers/background"),
.headerSearchPath("src/map/layers/tiled/vector/symbol"),
.headerSearchPath("src/map/layers/tiled/vector/description"),
.headerSearchPath("src/map/layers/tiled/vector/parsing"),
.headerSearchPath("src/map/layers/polygon"),
.headerSearchPath("src/map/layers/icon"),
.headerSearchPath("src/map/layers/line"),
.headerSearchPath("src/map/layers/text"),
.headerSearchPath("src/map/scheduling"),
.headerSearchPath("src/utils"),
.define("DEBUG", to: "1", .when(configuration: .debug)),
.define("NDEBUG", to: "1", .when(configuration: .release)),
]
),
],
cxxLanguageStandard: .cxx17
)