-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
46 lines (44 loc) · 1.38 KB
/
Copy pathPackage.swift
File metadata and controls
46 lines (44 loc) · 1.38 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
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "ImagePet",
platforms: [
.macOS(.v13)
],
products: [
.executable(name: "imagepet", targets: ["ImagePetCLI"])
],
dependencies: [
.package(url: "https://github.com/gewill/Swift-WebP.git", exact: "0.7.1"),
.package(url: "https://github.com/awxkee/mozjpeg.swift.git", exact: "1.1.3"),
.package(url: "https://github.com/apple/swift-argument-parser.git", exact: "1.3.1")
],
targets: [
.target(
name: "ImagePetCore",
dependencies: [
.product(name: "SwiftWebP", package: "Swift-WebP"),
.product(name: "mozjpeg", package: "mozjpeg.swift")
],
path: "Sources/ImagePetCore"
),
.executableTarget(
name: "ImagePetCLI",
dependencies: [
"ImagePetCore",
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
path: "Sources/ImagePetCLI"
),
.testTarget(
name: "ImagePetCoreTests",
dependencies: ["ImagePetCore"],
path: "Tests/ImagePetCoreTests"
),
.testTarget(
name: "ImagePetCLITests",
dependencies: ["ImagePetCLI"],
path: "Tests/ImagePetCLITests"
)
]
)