Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
70 lines (68 loc) · 2.58 KB
/
Copy pathPackage.swift
File metadata and controls
70 lines (68 loc) · 2.58 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// swift-tools-version:6.2
// SPDX-License-Identifier: GPL-3.0-only
// Copyright (C) 2026 Artem Efimov
import PackageDescription
let package = Package(
name: "Brow",
platforms: [.macOS(.v26)],
products: [
.executable(name: "BrowApp", targets: ["BrowApp"]),
// The command-line tool. `grove`, its second name, is a symlink made by packaging.
.executable(name: "brow", targets: ["brow-cli"]),
],
targets: [
// Accounts, credentials, usage and token refresh (used by the notch), and
// git worktrees, cmux, Claude Code sessions and the shared session store
// (used by Workspaces). It came from the grove repository with its history.
.target(
name: "GroveCore",
swiftSettings: [.swiftLanguageMode(.v5)]
),
// The Workspaces panel and its engine state. Never imports BrowKit: what it
// needs from the app hosting it comes in through protocols and closures.
.target(
name: "GroveAppKit",
dependencies: ["GroveCore"],
swiftSettings: [.swiftLanguageMode(.v5)]
),
// The notch, the limits, Settings, and Brow's side of Workspaces.
.target(
name: "BrowKit",
dependencies: ["GroveCore", "GroveAppKit"],
swiftSettings: [.swiftLanguageMode(.v5)]
),
.executableTarget(
name: "BrowApp",
dependencies: ["BrowKit", "GroveAppKit", "GroveCore"],
swiftSettings: [.swiftLanguageMode(.v5)]
),
.executableTarget(
name: "brow-cli",
dependencies: ["GroveCore"],
swiftSettings: [.swiftLanguageMode(.v5)]
),
// The made-up accounts of the README screenshots, shared by both test bundles that
// render them so the pictures agree. For tests only: no product links it.
.target(
name: "DemoFixture",
dependencies: ["GroveCore"],
path: "Tests/DemoFixture",
swiftSettings: [.swiftLanguageMode(.v5)]
),
.testTarget(
name: "GroveCoreTests",
dependencies: ["GroveCore"],
swiftSettings: [.swiftLanguageMode(.v5)]
),
.testTarget(
name: "GroveAppKitTests",
dependencies: ["GroveAppKit", "DemoFixture"],
swiftSettings: [.swiftLanguageMode(.v5)]
),
.testTarget(
name: "BrowKitTests",
dependencies: ["BrowKit", "GroveAppKit", "GroveCore", "DemoFixture"],
swiftSettings: [.swiftLanguageMode(.v5)]
),
]
)