Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (69 sloc) 2.07 KB
// swift-tools-version:4.1
import PackageDescription
var deps: [Package.Dependency] = [
.package(url: "https://github.com/pixelspark/sqlite.git", from: Version("3.0.0")),
.package(url: "https://github.com/pixelspark/postgres-wire-server.git", from: Version("1.0.0")),
.package(url: "https://github.com/IBM-Swift/Kitura.git", from: Version("2.0.0")),
.package(url: "https://github.com/jatoben/CommandLine.git", from: Version("3.0.0-pre1")),
.package(url: "https://github.com/pixelspark/swift-parser-generator.git", from: Version("2.0.2")),
.package(url: "https://github.com/IBM-Swift/HeliumLogger.git", from: Version("1.7.1")),
.package(url: "https://github.com/vzsg/ed25519.git", from: Version("0.2.0")),
.package(url: "https://github.com/pixelspark/base58.git", from: Version("1.0.0")),
.package(url: "https://github.com/Bouke/NetService.git", from: Version("0.0.0")),
.package(url: "https://github.com/IBM-Swift/Kitura-WebSocket", from: Version("1.0.0")),
]
var ccDeps: [Target.Dependency] = [
"SQLite",
"Ed25519",
"Base58",
"HeliumLogger",
"Kitura",
"Kitura-WebSocket",
"NetService"
]
#if !os(Linux)
// Starscream is used for outgoing WebSocket connections; unfortunately it is not available on Linux
deps.append(.package(url: "https://github.com/daltoniam/Starscream.git", from: Version("3.0.0")))
ccDeps.append("Starscream")
#endif
let package = Package(
name: "Catena",
products: [
.library(
name: "CatenaCore",
type: .static,
targets: ["CatenaCore"]
),
.library(
name: "CatenaSQL",
type: .static,
targets: ["CatenaSQL"]
),
.executable(name: "Catena", targets: ["Catena"]),
],
dependencies: deps,
targets: [
.testTarget(name: "CatenaTests", dependencies: ["CatenaCore"]),
.testTarget(name: "CatenaSQLTests", dependencies: ["CatenaSQL"]),
.target(
name: "Catena",
dependencies: [
"CatenaCore",
"CatenaSQL",
"CommandLine"
]
),
.target(
name: "CatenaSQL",
dependencies: [
"CatenaCore",
"SwiftParser",
"PostgresWireServer"
]
),
.target(
name: "CatenaCore",
dependencies: ccDeps
)
]
)
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.