-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (47 loc) · 1.24 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "TOMLKit",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.watchOS(.v6),
.tvOS(.v12),
],
products: [
.library(name: "TOMLKit", targets: ["TOMLKit"]),
],
dependencies: [
// Use this dependency when one of the `TOMLTable` comparison tests fail and
// XCTAssertEqual tells you "<huge TOMLTable> is not equal to <other huge TOMLTable>"
// .package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "0.1.0"),
.package(name: "Checkit", url: "https://github.com/karwa/swift-checkit.git", from: "0.0.2"),
],
targets: [
.target(
name: "CTOML",
cxxSettings: [
.define("TOML_EXCEPTIONS", to: "1"),
.define("_CRT_NONSTDC_NO_WARNINGS", .when(platforms: [.windows])),
]
),
.target(
name: "TOMLKit",
dependencies: ["CTOML"]
),
.testTarget(
name: "TOMLKitTests",
dependencies: [
"TOMLKit",
.product(name: "Checkit", package: "Checkit"), /* .product(name: "CustomDump", package: "swift-custom-dump") */
]
),
],
cLanguageStandard: .c99,
cxxLanguageStandard: .cxx17
)
#if swift(>=5.6) && !os(Windows)
package.dependencies.append(
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
)
#endif