-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
62 lines (60 loc) · 1.95 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "MetaWear",
platforms: [.macOS(.v10_15), .iOS(.v13), .watchOS(.v6), .tvOS(.v13)],
products: [
.library(name: "MetaWear", targets: ["MetaWear"]),
.library(name: "MetaWearCpp", targets: ["MetaWearCpp"]),
.library(name: "MetaWearSync", targets: ["MetaWearSync"]),
.library(name: "MetaWearFirmware", targets: ["MetaWearFirmware"])
],
dependencies: [
.package(
name: "NordicDFU",
url: "https://github.com/NordicSemiconductor/IOS-DFU-Library",
.exactItem(.init(4, 11, 1))
)
],
targets: [
.target(
name: "MetaWear",
dependencies: ["NordicDFU", "MetaWearCpp"],
path: "Sources/MetaWear"
),
.target(
name: "MetaWearCpp",
path: "Sources/MetaWearCpp",
exclude: [
"./bindings",
"./c-binding-generator",
"./src/metawear/generator",
"./config.mk",
"./cppdocs",
"./Doxyfile",
"./LICENSE.md",
"./Makefile",
"./project_version.mk",
"./README.md",
"./test",
"./MetaWear.Win32.vcxproj",
"./MetaWear.WinRT.vcxproj"
],
publicHeadersPath: "./src",
cxxSettings: [
.headerSearchPath("./src")
]
),
.target(name: "MetaWearSync",
dependencies: ["MetaWear"],
path: "Sources/MetaWearSync"
),
.target(
name: "MetaWearFirmware",
dependencies: ["NordicDFU", "MetaWear", "MetaWearCpp"],
path: "Sources/MetaWearFirmware"
),
.testTarget(name: "MetaWearTests", dependencies: ["MetaWear", "MetaWearCpp"])
],
cxxLanguageStandard: .cxx11
)