-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPackage.swift
68 lines (66 loc) · 2.15 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "SwisstopoMapSDK",
platforms: [
.iOS(.v14)
],
products: [
.library(
name: "SwisstopoMapSDK",
targets: ["SwisstopoMapSDK"]
),
.library(
name: "SwisstopoMapSDKSharedModule",
targets: ["SwisstopoMapSDKSharedModule"]
),
.library(
name: "SwisstopoMapSDKSharedModuleCpp",
targets: ["SwisstopoMapSDKSharedModuleCpp"]
),
],
dependencies: [
.package(url: "https://github.com/openmobilemaps/maps-core", from: .init(stringLiteral: "3.0.0-rc.4")),
.package(url: "https://github.com/openmobilemaps/layer-gps.git", from: .init(stringLiteral: "3.0.0-rc.4"))
],
targets: [
.target(
name: "SwisstopoMapSDK",
dependencies: [
.product(name: "LayerGps", package: "layer-gps"),
.product(name: "MapCore", package: "maps-core"),
"SwisstopoMapSDKSharedModule",
],
path: "ios",
exclude: ["README.md", "docs/install_readme.md"],
resources: [
.copy("resources/wmts/WMTSCapabilities_2056.xml"),
]
),
.target(
name: "SwisstopoMapSDKSharedModule",
dependencies: [
"SwisstopoMapSDKSharedModuleCpp",
.product(name: "MapCoreSharedModule", package: "maps-core"),
],
path: "bridging/ios",
publicHeadersPath: ""
),
.target(
name: "SwisstopoMapSDKSharedModuleCpp",
dependencies: [
.product(name: "MapCoreSharedModuleCpp", package: "maps-core"),
],
path: "shared",
sources: ["src", "public"],
publicHeadersPath: "public",
cxxSettings: [
.headerSearchPath("public"),
.headerSearchPath("src/config/layers"),
.headerSearchPath("src/config"),
.headerSearchPath("src"),
]
),
],
cxxLanguageStandard: .cxx17
)