|
| 1 | +// swift-tools-version:5.10 |
| 2 | +import PackageDescription |
| 3 | +import Foundation |
| 4 | + |
| 5 | +let package = Package( |
| 6 | + name: "swift-ass-renderer", |
| 7 | + platforms: [ |
| 8 | + .iOS(.v15), |
| 9 | + .tvOS(.v15), |
| 10 | + .visionOS(.v1), |
| 11 | + .macOS(.v12), |
| 12 | + .macCatalyst(.v15) |
| 13 | + ], |
| 14 | + products: [ |
| 15 | + .library(name: "SwiftAssRenderer", targets: ["SwiftAssRenderer"]) |
| 16 | + ], |
| 17 | + dependencies: [ |
| 18 | + .package(url: "https://github.com/mihai8804858/swift-snapshot-testing", branch: "main"), |
| 19 | + .package(url: "https://github.com/mihai8804858/swift-libass", .upToNextMajor(from: "1.0.0")), |
| 20 | + .package(url: "https://github.com/pointfreeco/combine-schedulers", .upToNextMajor(from: "1.0.0")) |
| 21 | + ], |
| 22 | + targets: [ |
| 23 | + .target( |
| 24 | + name: "SwiftAssRenderer", |
| 25 | + dependencies: [ |
| 26 | + .target(name: "SwiftAssBlend"), |
| 27 | + .product(name: "SwiftLibass", package: "swift-libass"), |
| 28 | + .product(name: "CombineSchedulers", package: "combine-schedulers") |
| 29 | + ], |
| 30 | + path: "Sources/SwiftAssRenderer", |
| 31 | + resources: [ |
| 32 | + .copy("Resources/PrivacyInfo.xcprivacy") |
| 33 | + ] |
| 34 | + ), |
| 35 | + .target( |
| 36 | + name: "SwiftAssBlend", |
| 37 | + dependencies: [ |
| 38 | + .product(name: "SwiftLibass", package: "swift-libass") |
| 39 | + ], |
| 40 | + path: "Sources/SwiftAssBlend" |
| 41 | + ), |
| 42 | + .testTarget( |
| 43 | + name: "SwiftAssRendererTests", |
| 44 | + dependencies: [ |
| 45 | + .target(name: "SwiftAssRenderer"), |
| 46 | + .product(name: "SnapshotTesting", package: "swift-snapshot-testing") |
| 47 | + ], |
| 48 | + path: "Tests", |
| 49 | + exclude: ["Pipeline/__Snapshots__"], |
| 50 | + resources: [ |
| 51 | + .copy("Resources/Fonts"), |
| 52 | + .copy("Resources/Subs") |
| 53 | + ] |
| 54 | + ) |
| 55 | + ], |
| 56 | + swiftLanguageVersions: [.v5] |
| 57 | +) |
0 commit comments