-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
25 lines (24 loc) · 1.09 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
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "subt",
products: [
.executable(name: "subt", targets: ["subt"]),
.library(name: "SubtitlePlayer", targets: ["SubtitlePlayer"]),
.library(name: "OpenSubtitlesDownloader", targets: ["OpenSubtitlesDownloader"]),
.library(name: "Common", targets: ["Common"])
],
dependencies: [
.package(url: "https://github.com/ReactiveX/RxSwift.git", .exact("5.0.0")),
.package(url: "https://github.com/1024jp/GzipSwift", .exact("5.0.0"))
],
targets: [
.target(name: "Common"),
.target(name: "SubtitlePlayer", dependencies: ["Common", "RxSwift"]),
.target(name: "OpenSubtitlesDownloader", dependencies: ["Common", "RxSwift"]),
.target(name: "subt", dependencies: ["Common", "SubtitlePlayer", "OpenSubtitlesDownloader", "Gzip"]),
.testTarget(name: "CommonTests", dependencies: ["Common"]),
.testTarget(name: "SubtitlePlayerTests", dependencies: ["SubtitlePlayer"]),
.testTarget(name: "subtTests", dependencies: ["subt"])
]
)