2023-11-04 21:37:44 +03:00
|
|
|
// swift-tools-version:5.7
|
2020-08-18 00:28:24 +03:00
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "NvimView",
|
2023-11-04 21:37:44 +03:00
|
|
|
platforms: [.macOS(.v13)],
|
2020-08-18 00:28:24 +03:00
|
|
|
products: [
|
2020-08-18 18:09:02 +03:00
|
|
|
.library(name: "NvimView", targets: ["NvimView"]),
|
2020-08-18 00:28:24 +03:00
|
|
|
],
|
|
|
|
dependencies: [
|
2022-12-03 19:43:43 +03:00
|
|
|
.package(name: "RxPack", path: "../RxPack"),
|
2022-05-22 16:54:52 +03:00
|
|
|
.package(url: "https://github.com/a2/MessagePack.swift", from: "4.0.0"),
|
2023-11-05 00:01:01 +03:00
|
|
|
.package(url: "https://github.com/ReactiveX/RxSwift", from: "6.6.0"),
|
|
|
|
.package(url: "https://github.com/Quick/Nimble", from: "13.0.0"),
|
2020-12-24 18:00:26 +03:00
|
|
|
.package(name: "NvimServer", path: "../NvimServer"),
|
2020-08-19 00:07:22 +03:00
|
|
|
.package(name: "Commons", path: "../Commons"),
|
2020-12-06 12:55:20 +03:00
|
|
|
.package(name: "Tabs", path: "../Tabs"),
|
2020-08-18 00:28:24 +03:00
|
|
|
],
|
|
|
|
targets: [
|
|
|
|
.target(
|
|
|
|
name: "NvimView",
|
2020-12-24 18:00:26 +03:00
|
|
|
dependencies: [
|
2022-06-18 12:48:40 +03:00
|
|
|
.product(name: "RxSwift", package: "RxSwift"),
|
2022-12-03 19:43:43 +03:00
|
|
|
.product(name: "RxPack", package: "RxPack"),
|
2020-12-24 18:00:26 +03:00
|
|
|
"Tabs",
|
2022-12-03 19:43:43 +03:00
|
|
|
.product(name: "RxNeovim", package: "RxPack"),
|
2020-12-24 18:00:26 +03:00
|
|
|
.product(name: "NvimServerTypes", package: "NvimServer"),
|
2022-05-22 16:54:52 +03:00
|
|
|
.product(name: "MessagePack", package: "MessagePack.swift"),
|
2020-12-24 18:00:26 +03:00
|
|
|
"Commons",
|
|
|
|
],
|
2020-08-18 18:43:52 +03:00
|
|
|
// com.qvacua.NvimView.vim is copied by the download NvimServer script.
|
2020-12-24 14:12:07 +03:00
|
|
|
exclude: ["Resources/com.qvacua.NvimView.vim"],
|
2020-08-18 08:39:03 +03:00
|
|
|
resources: [
|
2020-12-24 14:12:07 +03:00
|
|
|
.copy("Resources/runtime"),
|
|
|
|
.copy("Resources/NvimServer"),
|
2020-08-18 18:09:02 +03:00
|
|
|
]
|
|
|
|
),
|
2022-05-22 16:54:52 +03:00
|
|
|
.testTarget(name: "NvimViewTests", dependencies: ["NvimView", "Nimble"]),
|
2020-08-18 00:28:24 +03:00
|
|
|
]
|
|
|
|
)
|