-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPackage.swift
More file actions
36 lines (34 loc) · 1.45 KB
/
Package.swift
File metadata and controls
36 lines (34 loc) · 1.45 KB
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:6.2
import PackageDescription
let _: Package =
.init(name: "VirtualTerminal",
platforms: [
.macOS(.v26),
],
products: [
.executable(name: "VTDemo", targets: ["VTDemo"]),
.library(name: "VirtualTerminal", targets: ["VirtualTerminal"]),
],
traits: [
.trait(name: "GNU", description: "GNU C Library")
],
dependencies: [
.package(url: "https://github.com/compnerd/swift-platform-core.git", branch: "main",
traits: [.trait(name: "GNU", condition: .when(traits: ["GNU"]))]),
],
targets: [
.target(name: "libunistring"),
.target(name: "Geometry"),
.target(name: "Primitives"),
.target(name: "VirtualTerminal", dependencies: [
.target(name: "Geometry"),
.target(name: "Primitives"),
.target(name: "libunistring", condition: .when(traits: ["GNU"])),
.product(name: "POSIXCore", package: "swift-platform-core", condition: .when(platforms: [.macOS, .linux])),
.product(name: "WindowsCore", package: "swift-platform-core", condition: .when(platforms: [.windows])),
]),
.executableTarget(name: "VTDemo", dependencies: [
.target(name: "VirtualTerminal"),
.product(name: "POSIXCore", package: "swift-platform-core", condition: .when(platforms: [.macOS, .linux])),
]),
])