forked from openmobilemaps/maps-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
100 lines (98 loc) · 3.27 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "MapCore",
platforms: [
.iOS(.v11),
],
products: [
.library(
name: "MapCore",
targets: ["MapCore"]
),
.library(
name: "MapCoreSharedModule",
targets: ["MapCoreSharedModule"]
),
.library(
name: "MapCoreSharedModuleCpp",
targets: ["MapCoreSharedModuleCpp"]
),
],
dependencies: [
.package(name: "DjinniSupport",
url: "https://github.com/UbiqueInnovation/djinni.git",
.upToNextMajor(from: "1.0.0")),
],
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: "MapCore",
dependencies: ["MapCoreSharedModule"],
path: "ios",
exclude: ["readme.md"],
resources: [
.process("graphics/Shader/Metal/"),
]
),
.target(
name: "MapCoreSharedModule",
dependencies: ["DjinniSupport",
"MapCoreSharedModuleCpp"],
path: "bridging/ios",
publicHeadersPath: ""
),
.target(
name: "MapCoreSharedModuleCpp",
dependencies: ["earcut"],
path: "shared",
sources: ["src"],
publicHeadersPath: "public",
cxxSettings: [
.headerSearchPath("**"),
.headerSearchPath("public"),
.headerSearchPath("src/graphics"),
.headerSearchPath("src/graphics/helpers"),
.headerSearchPath("src/logger"),
.headerSearchPath("src/map/camera"),
.headerSearchPath("src/map/controls"),
.headerSearchPath("src/map/coordinates"),
.headerSearchPath("src/map/layers/objects"),
.headerSearchPath("src/map/layers/icon"),
.headerSearchPath("src/map/layers/line"),
.headerSearchPath("src/map/layers/tiled"),
.headerSearchPath("src/map/layers/tiled/raster"),
.headerSearchPath("src/map/layers/tiled/wmts"),
.headerSearchPath("src/map/scheduling"),
.headerSearchPath("src/map"),
.headerSearchPath("src/util"),
.headerSearchPath("src/external/pugixml"),
.define("DEBUG", to: "1", .when(configuration: .debug)),
.define("NDEBUG", to: "1", .when(configuration: .release)),
]
),
],
cxxLanguageStandard: .cxx17
)