-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
32 lines (28 loc) · 843 Bytes
/
Package.swift
File metadata and controls
32 lines (28 loc) · 843 Bytes
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
// swift-tools-version: 5.7
import PackageDescription
let dependencies: [Package.Dependency]
if Context.environment["ALLUI_ENV"] == "LOCAL" {
dependencies = [
.package(name: "CoreUI", path: "../CoreUI"),
]
} else {
dependencies = [
.package(url: "https://github.com/Everything-as-UI/CoreUI.git", branch: "main")
]
}
let package = Package(
name: "TerminalUI",
platforms: [.macOS(.v10_15)],
products: [
.executable(name: "TerminalUI", targets: ["TerminalUI"])
],
dependencies: dependencies,
targets: [
.systemLibrary(name: "Curses"),
.executableTarget(name: "TerminalUI",
dependencies: [
.product(name: "CoreUI", package: "CoreUI"),
"Curses"
])
]
)