-
Notifications
You must be signed in to change notification settings - Fork 11
/
Package.swift
31 lines (30 loc) · 1.33 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
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "Meridian",
platforms: [.macOS(.v10_15)],
products: [
.executable(name: "Demo", targets: ["Demo"]),
.library(name: "Meridian", targets: ["Meridian"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio", from: "2.64.0"),
.package(url: "https://github.com/vapor/websocket-kit.git", from: "2.0.0"),
.package(url: "https://github.com/swift-server/swift-backtrace.git", from: "1.2.0"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "0.3.0"),
],
targets: [
.executableTarget(name: "Demo", dependencies: [
.target(name: "Meridian"),
.product(name: "Backtrace", package: "swift-backtrace"),
], path: "Demo"),
.target(name: "Meridian", dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOWebSocket", package: "swift-nio"),
.product(name: "WebSocketKit", package: "websocket-kit"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
], path: "Meridian"),
.testTarget(name: "MeridianTests", dependencies: ["Meridian"], path: "MeridianTests"),
]
)