-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
60 lines (58 loc) · 2.15 KB
/
Copy pathPackage.swift
File metadata and controls
60 lines (58 loc) · 2.15 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
50
51
52
53
54
55
56
57
58
59
60
// swift-tools-version: 5.9
// Root-level Package.swift for SPM consumption via GitHub URL.
// The actual Swift implementation lives in swift/.
import PackageDescription
let package = Package(
name: "MeshtasticTAK",
platforms: [
.iOS(.v15),
.macOS(.v12),
],
products: [
.library(
name: "MeshtasticTAK",
targets: ["MeshtasticTAK"]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.38.1"),
// DocC documentation generator. A command plugin only — it is NOT linked
// into the MeshtasticTAK product; it enables
// `swift package generate-documentation` for the hosted API docs and
// Xcode Quick Help. Consumers resolve it transitively but never link it.
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.5.0"),
],
targets: [
.target(
name: "CZstd",
path: "swift/Sources/CZstd",
publicHeadersPath: "include",
cSettings: [
.define("ZSTD_DISABLE_ASM"),
]
),
.target(
name: "MeshtasticTAK",
dependencies: [
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
"CZstd",
],
path: "swift/Sources/MeshtasticTAK",
resources: [
.copy("Resources/dict_non_aircraft.zstd"),
.copy("Resources/dict_aircraft.zstd"),
]
),
.testTarget(
name: "MeshtasticTAKTests",
dependencies: ["MeshtasticTAK"],
path: "swift/Tests/MeshtasticTAKTests"
// Fixtures are loaded directly from `testdata/` at the repo root at
// test runtime using `#filePath` to build the path. This matches
// what the Kotlin, Python, C#, and TypeScript suites do, and means
// adding a new fixture is a single-step operation (drop the .xml
// into `testdata/cot_xml/` and re-run `./build.sh test`) instead
// of also having to mirror it under `Fixtures/` for SPM to bundle.
),
]
)