-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
30 lines (26 loc) · 1.25 KB
/
Copy pathPackage.swift
File metadata and controls
30 lines (26 loc) · 1.25 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Silt",
platforms: [.macOS(.v14)],
products: [
.executable(name: "SiltApp", targets: ["SiltApp"]),
.executable(name: "silt", targets: ["silt"]),
.library(name: "SiltCore", targets: ["SiltCore"]),
],
targets: [
// The engine: scanning, size accounting, cleaner rules, removal.
// Must never import SwiftUI or AppKit (ARC-01).
.target(name: "SiltCore"),
// The application. Built into Silt.app by Scripts/build-app.sh.
//
// The target is SiltApp rather than Silt because the CLI target is `silt`, and the
// default filesystem on macOS is case-insensitive: Sources/Silt and Sources/silt are
// the same directory. The bundle is still named Silt.app.
.executableTarget(name: "SiltApp", dependencies: ["SiltCore"], path: "Sources/SiltApp"),
// Headless driver for the engine. Scans and reports without any interface, which keeps
// an engine problem distinguishable from an interface one.
.executableTarget(name: "silt", dependencies: ["SiltCore"], path: "Sources/silt"),
.testTarget(name: "SiltCoreTests", dependencies: ["SiltCore"]),
]
)