Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
61 lines (60 loc) · 2.45 KB
/
Copy pathPackage.swift
File metadata and controls
61 lines (60 loc) · 2.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
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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Lilo",
platforms: [
.macOS("26.0")
],
dependencies: [
.package(url: "https://github.com/groue/GRDB.swift.git", from: "7.10.0"),
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.10.0")
],
targets: [
.executableTarget(
name: "Lilo",
dependencies: [
.product(name: "GRDB", package: "GRDB.swift"),
.product(name: "Sparkle", package: "Sparkle"),
"GhosttyVt"
],
path: "Lilo",
exclude: [
"Info.plist",
"Extensions/bridge-src",
"Lilo.entitlements",
"Lilo.Debug.entitlements",
// Compiled by Xcode into default.metallib; SwiftPM builds have no terminal renderer.
"Terminal/TerminalShaders.metal"
],
resources: [
.copy("Resources"),
.copy("Extensions/ChromeAPIAugmentation.js"),
.copy("Extensions/ChromeAPIBackgroundPrelude.js"),
.copy("Extensions/ChromeAPIGapModules.json"),
.copy("Extensions/ChromeContentCompat.js"),
.copy("Extensions/ChromeStaticRules.js"),
.copy("Extensions/ChromeWebStoreShim.js"),
.copy("ContentBlocker/GenericCosmetics.js"),
.copy("ContentBlocker/ProceduralCosmetics.js"),
.copy("ContentBlocker/Scriptlets.js"),
.copy("Reader/Readability.js"),
.copy("Reader/ReaderView.js"),
.copy("ContentBlocker/content-blocker-rules.json"),
.copy("Extensions/public-suffix-list.dat"),
.copy("ContentBlocker/BlockerResources"),
.copy("Agent/AgentPage.js"),
.copy("Agent/AgentInspector.js"),
.copy("Agent/InspectorCDP.js")
],
// Mirrors the Xcode target's SWIFT_STRICT_MEMORY_SAFETY and its warning-as-error group.
swiftSettings: [.unsafeFlags(["-strict-memory-safety", "-Werror", "StrictMemorySafety"])],
linkerSettings: [.linkedLibrary("c++")]
),
.binaryTarget(name: "GhosttyVt", path: "Vendor/GhosttyVt.xcframework"),
.testTarget(
name: "LiloTests",
dependencies: ["Lilo", "GhosttyVt"],
path: "LiloTests"
)
]
)