-
Notifications
You must be signed in to change notification settings - Fork 15
/
Package.swift
71 lines (69 loc) · 2.71 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
69
70
71
// swift-tools-version: 5.10
import PackageDescription
#if os(macOS)
let deps: [Package.Dependency] = [
.package(url: "https://github.com/eonil/FSEvents", branch: "master"),
]
let tdeps: [Target.Dependency] = [
.product(name: "EonilFSEvents", package: "FSEvents"),
]
#else
let deps: [Package.Dependency] = []
let tdeps: [Target.Dependency] = []
#endif
let package = Package(
name: "toucan",
platforms: [
.macOS(.v14),
.iOS(.v17),
.tvOS(.v17),
.watchOS(.v10),
.visionOS(.v1),
],
products: [
.executable(name: "toucan-cli", targets: ["toucan-cli"]),
.library(name: "ToucanSDK", targets: ["ToucanSDK"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"),
.package(url: "https://github.com/apple/swift-markdown", branch: "main"),
.package(url: "https://github.com/apple/swift-log", from: "1.6.0"),
.package(url: "https://github.com/apple/swift-algorithms", from: "1.2.0"),
.package(url: "https://github.com/binarybirds/file-manager-kit", from: "0.1.0"),
.package(url: "https://github.com/binarybirds/shell-kit", from: "1.0.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird", from: "2.2.0"),
.package(url: "https://github.com/hummingbird-project/swift-mustache", from: "2.0.0"),
.package(url: "https://github.com/jpsim/Yams", from: "5.1.0"),
.package(url: "https://github.com/scinfu/SwiftSoup", from: "2.7.0"),
] + deps,
targets: [
.executableTarget(
name: "toucan-cli",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Hummingbird", package: "hummingbird"),
.target(name: "ToucanSDK"),
] + tdeps
),
.target(
name: "ToucanSDK",
dependencies: [
.product(name: "Algorithms", package: "swift-algorithms"),
.product(name: "Markdown", package: "swift-markdown"),
.product(name: "Logging", package: "swift-log"),
.product(name: "ShellKit", package: "shell-kit"),
.product(name: "FileManagerKit", package: "file-manager-kit"),
.product(name: "Mustache", package: "swift-mustache"),
.product(name: "SwiftSoup", package: "SwiftSoup"),
.product(name: "Yams", package: "yams"),
]
),
.testTarget(
name: "ToucanSDKTests",
dependencies: [
.target(name: "ToucanSDK"),
]
)
]
)