2020-08-18 00:28:24 +03:00
|
|
|
// swift-tools-version:5.3
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "NvimView",
|
|
|
|
platforms: [.macOS(.v10_13)],
|
|
|
|
products: [
|
2020-08-18 18:09:02 +03:00
|
|
|
.library(name: "NvimView", targets: ["NvimView"]),
|
2020-08-18 00:28:24 +03:00
|
|
|
],
|
|
|
|
dependencies: [
|
2020-08-18 18:09:02 +03:00
|
|
|
.package(name: "MessagePack", url: "https://github.com/a2/MessagePack.swift", .upToNextMinor(from: "4.0.0")),
|
|
|
|
.package(url: "https://github.com/ReactiveX/RxSwift", .upToNextMinor(from: "5.1.1")),
|
|
|
|
.package(name: "Socket", url: "https://github.com/IBM-Swift/BlueSocket", .upToNextMinor(from: "1.0.52")),
|
2020-08-18 19:14:43 +03:00
|
|
|
.package(name: "NvimServerTypes", url: "https://github.com/qvacua/neovim", .exact("0.1.0-types")),
|
2020-08-18 00:28:24 +03:00
|
|
|
],
|
|
|
|
targets: [
|
|
|
|
.target(
|
|
|
|
name: "NvimView",
|
2020-08-18 19:14:43 +03:00
|
|
|
dependencies: ["RxSwift", "MessagePack", "Socket", "NvimServerTypes"],
|
2020-08-18 18:43:52 +03:00
|
|
|
// com.qvacua.NvimView.vim is copied by the download NvimServer script.
|
|
|
|
exclude: ["com.qvacua.NvimView.vim"],
|
2020-08-18 08:39:03 +03:00
|
|
|
resources: [
|
|
|
|
.copy("runtime"),
|
|
|
|
.copy("NvimServer"),
|
2020-08-18 18:09:02 +03:00
|
|
|
]
|
|
|
|
),
|
2020-08-18 00:28:24 +03:00
|
|
|
.testTarget(
|
|
|
|
name: "NvimViewTests",
|
2020-08-18 18:09:02 +03:00
|
|
|
dependencies: ["NvimView"]
|
|
|
|
),
|
2020-08-18 00:28:24 +03:00
|
|
|
]
|
|
|
|
)
|