forked from pvzig/SlackKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
57 lines (55 loc) · 2.23 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
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "SlackKit",
platforms: [
.macOS(.v14)
],
products: [
.library(name: "SlackKit", targets: ["SlackKit"]),
.library(name: "SKClient", targets: ["SKClient"]),
.library(name: "SKCore", targets: ["SKCore"]),
.library(name: "SKRTMAPI", targets: ["SKRTMAPI"]),
.library(name: "SKServer", targets: ["SKServer"]),
.library(name: "SKWebAPI", targets: ["SKWebAPI"])
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.3.0"),
.package(url: "https://github.com/vapor/websocket-kit", from: "2.15.0"),
.package(url: "https://github.com/daltoniam/Starscream", from: "4.0.4"),
],
targets: [
.target(name: "SlackKit",
dependencies: ["SKCore", "SKClient", "SKRTMAPI", "SKServer"],
path: "SlackKit/Sources"),
.target(name: "SKClient",
dependencies: ["SKCore"],
path: "SKClient/Sources"),
.target(name: "SKCore",
path: "SKCore/Sources"),
.target(name: "SKRTMAPI",
dependencies: [
"SKCore",
"SKWebAPI",
.product(name: "Starscream", package: "Starscream", condition: .when(platforms: [.macOS, .iOS, .tvOS])),
.product(name: "WebSocketKit", package: "websocket-kit", condition: .when(platforms: [.macOS, .linux])),
],
path: "SKRTMAPI/Sources"),
.target(name: "SKServer",
dependencies: ["SKCore", "SKWebAPI",
.product(name: "Hummingbird", package: "hummingbird")],
path: "SKServer/Sources"),
.target(name: "SKWebAPI",
dependencies: ["SKCore"],
path: "SKWebAPI/Sources"),
.testTarget(name: "SlackKitTests",
dependencies: ["SlackKit", "SKCore", "SKClient", "SKRTMAPI", "SKServer"],
path: "SlackKitTests",
exclude: [
"Supporting Files"
],
resources: [
.copy("Resources")
])
]
)