-
Notifications
You must be signed in to change notification settings - Fork 4
/
Package.swift
36 lines (29 loc) · 1.2 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
// swift-tools-version:4.0
import PackageDescription
//#if os(Linux)
let packageDependencies: [Package.Dependency] = [
.package(url: "git://github.com/NobodyNada/Clibwebsockets", from: "1.0.0"),
.package(url: "git://github.com/stephencelis/CSQLite", from: "0.0.0"),
.package(url: "git://github.com/NobodyNada/COpenSSL", from: "0.1.0"),
.package(url: "git://github.com/NobodyNada/Clibuv", from: "0.0.0"),
.package(url: "git://github.com/NobodyNada/Clibevent", from: "0.0.0")
]
let targetDependencies: [Target.Dependency] = ["Clibwebsockets", "COpenSSL", "Clibuv", "Clibevent"]
/*#else
let packageDependencies: [Package.Dependency] = [
.package(url: "https://github.com/IBM-Swift/CZlib", .revision("318dbf1")),
.package(url: "git://github.com/stephencelis/CSQLite", from: "0.0.0"),
]
let targetDependencies: [Target.Dependency] = ["CZlib"]
#endif*/
let package = Package(
name: "SwiftChatSE",
products: [
.library(name: "SwiftChatSE", targets: ["SwiftChatSE"]),
],
dependencies: packageDependencies,
targets: [
.target(name: "SwiftChatSE", dependencies: targetDependencies),
.testTarget(name: "SwiftChatSETests", dependencies: ["SwiftChatSE"]),
]
)