-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
118 lines (116 loc) · 5.16 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Choco",
platforms: [
.macOS(.v10_15)
],
products: [
.library(name: "MplsParser", targets: ["MplsParser"]),
.library(name: "libChoco", targets: ["libChoco"]),
.executable(name: "choco-cli", targets: ["choco-cli"]),
.executable(name: "chapter-tool", targets: ["chapter-tool"]),
.executable(name: "fix-rarbg", targets: ["fix-rarbg"]),
.executable(name: "video-encoder", targets: ["video-encoder"]),
],
dependencies: [
.package(url: "https://github.com/kojirou1994/Kwift.git", from: "1.0.0"),
.package(url: "https://github.com/kojirou1994/Precondition.git", from: "1.0.0"),
.package(url: "https://github.com/kojirou1994/Units.git", from: "0.0.1"),
.package(url: "https://github.com/kojirou1994/PrettyBytes.git", from: "0.0.1"),
.package(url: "https://github.com/apple/swift-argument-parser.git", exact: "1.3.1"),
.package(url: "https://github.com/kojirou1994/URLFileManager.git", from: "0.0.1"),
.package(url: "https://github.com/kojirou1994/MediaUtility.git", from: "0.6.0"),
.package(url: "https://github.com/kojirou1994/Executable.git", from: "0.6.0"),
.package(url: "https://github.com/kojirou1994/IOUtility.git", from: "0.0.1"),
.package(url: "https://github.com/onevcat/Rainbow.git", from: "3.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
.package(url: "https://github.com/kojirou1994/BufferUtility.git", from: "0.0.1"),
.package(url: "https://github.com/kojirou1994/SystemUp.git", from: "0.2.4"),
.package(url: "https://github.com/kojirou1994/YYJSONEncoder.git", from: "0.0.2"),
.package(url: "https://github.com/AlwaysRightInstitute/mustache.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/apple/swift-crypto.git", from: "1.0.0"),
.package(url: "https://github.com/kojirou1994/ISOCodes.git", exact: "0.1.0"),
.package(url: "https://github.com/objecthub/swift-numberkit.git", from: "2.4.0"),
.package(url: "https://github.com/kojirou1994/Escape.git", from: "0.0.1"),
],
targets: [
.target(
name: "MplsParser",
dependencies: [
.product(name: "IOModule", package: "IOUtility"),
.product(name: "IOStreams", package: "IOUtility"),
.product(name: "Precondition", package: "Precondition"),
.product(name: "MediaUtility", package: "MediaUtility"),
]
),
.target(
name: "libChoco",
dependencies: [
"MplsParser",
"Rainbow",
"URLFileManager",
.product(name: "SystemUp", package: "SystemUp"),
"ISOCodes",
.product(name: "Precondition", package: "Precondition"),
.product(name: "mustache", package: "mustache"),
.product(name: "KwiftUtility", package: "Kwift"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "MediaUtility", package: "MediaUtility"),
.product(name: "MediaTools", package: "MediaUtility"),
.product(name: "Logging", package: "swift-log"),
.product(name: "FPExecutableLauncher", package: "Executable"),
.product(name: "PosixExecutableLauncher", package: "Executable"),
.product(name: "JSON", package: "YYJSONEncoder"),
.product(name: "NumberKit", package: "swift-numberkit"),
.product(name: "Escape", package: "Escape"),
]
),
.executableTarget(
name: "video-encoder",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Command", package: "SystemUp"),
]
),
.executableTarget(
name: "choco-cli",
dependencies: [
"libChoco",
.product(name: "Rainbow", package: "Rainbow"),
.product(name: "PrettyBytes", package: "PrettyBytes"),
.product(name: "Units", package: "Units"),
.product(name: "BufferUtility", package: "BufferUtility"),
.product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [.linux])),
.product(name: "SystemFileManager", package: "SystemUp"),
]
),
.executableTarget(
name: "chapter-tool",
dependencies: [
.product(name: "PosixExecutableLauncher", package: "Executable"),
"URLFileManager",
.product(name: "Logging", package: "swift-log"),
.product(name: "MediaUtility", package: "MediaUtility"),
.product(name: "MediaTools", package: "MediaUtility"),
.product(name: "ArgumentParser", package: "swift-argument-parser")
]),
.executableTarget(
name: "fix-rarbg",
dependencies: [
"ISOCodes",
.product(name: "PosixExecutableLauncher", package: "Executable"),
.product(name: "Logging", package: "swift-log"),
.product(name: "MediaUtility", package: "MediaUtility"),
.product(name: "MediaTools", package: "MediaUtility"),
.product(name: "SystemFileManager", package: "SystemUp"),
.product(name: "ArgumentParser", package: "swift-argument-parser")
]),
.testTarget(
name: "MplsParserTests",
dependencies: ["MplsParser"]),
.testTarget(
name: "ChocoTests",
dependencies: ["libChoco"]),
]
)