forked from jpsim/Yams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
37 lines (35 loc) · 955 Bytes
/
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
// swift-tools-version:5.4
import PackageDescription
let dependencies: [Package.Dependency]
#if swift(>=5.6) && swift(<5.7) && os(macOS)
dependencies = [.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")]
#else
dependencies = []
#endif
let package = Package(
name: "Yams",
products: [
.library(name: "Yams", targets: ["Yams"])
],
dependencies: dependencies,
targets: [
.target(
name: "CYaml",
exclude: ["CMakeLists.txt"],
cSettings: [.define("YAML_DECLARE_EXPORT")]
),
.target(
name: "Yams",
dependencies: ["CYaml"],
exclude: ["CMakeLists.txt"]
),
.testTarget(
name: "YamsTests",
dependencies: ["Yams"],
exclude: ["CMakeLists.txt"],
resources: [
.copy("Fixtures/SourceKitten#289/debug.yaml"),
]
)
]
)