-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPackage.swift
56 lines (55 loc) · 1.81 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
// swift-tools-version:5.8
import PackageDescription
import Foundation
let package = Package(
name: "swift-ass-renderer",
platforms: [
.iOS(.v15),
.tvOS(.v15),
.macOS(.v12),
.macCatalyst(.v15)
],
products: [
.library(name: "SwiftAssRenderer", targets: ["SwiftAssRenderer"])
],
dependencies: [
.package(url: "https://github.com/mihai8804858/swift-snapshot-testing", branch: "main"),
.package(url: "https://github.com/mihai8804858/swift-libass", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/pointfreeco/combine-schedulers", .upToNextMajor(from: "1.0.0"))
],
targets: [
.target(
name: "SwiftAssRenderer",
dependencies: [
.target(name: "SwiftAssBlend"),
.product(name: "SwiftLibass", package: "swift-libass"),
.product(name: "CombineSchedulers", package: "combine-schedulers")
],
path: "Sources/SwiftAssRenderer",
resources: [
.copy("Resources/PrivacyInfo.xcprivacy")
]
),
.target(
name: "SwiftAssBlend",
dependencies: [
.product(name: "SwiftLibass", package: "swift-libass")
],
path: "Sources/SwiftAssBlend"
),
.testTarget(
name: "SwiftAssRendererTests",
dependencies: [
.target(name: "SwiftAssRenderer"),
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
],
path: "Tests",
exclude: ["Pipeline/__Snapshots__"],
resources: [
.copy("Resources/Fonts"),
.copy("Resources/Subs")
]
)
],
swiftLanguageVersions: [.v5]
)