-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
67 lines (65 loc) · 2.2 KB
/
Copy pathPackage.swift
File metadata and controls
67 lines (65 loc) · 2.2 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
// swift-tools-version: 6.1
import PackageDescription
let package = Package(
name: "OpenPromptr",
platforms: [
.macOS(.v13)
],
products: [
.executable(
name: "OpenPromptr",
targets: ["OpenPromptr"]
)
],
dependencies: [
// Pinned exactly: the notarization broker builds with
// `--only-use-versions-from-resolved-file` against its own copy of
// Package.resolved.
.package(url: "https://github.com/mxcl/AppUpdater.git", exact: "4.1.2"),
.package(url: "https://github.com/httpswift/swifter.git", exact: "1.5.0"),
],
targets: [
.target(
name: "OpenPromptrCore"
),
// Objective-C bridge to the private CGVirtualDisplay API. It lives in
// its own target because a single SwiftPM target cannot mix Swift and
// Objective-C sources. Compiled with ARC.
.target(
name: "VirtualDisplayBridge",
cSettings: [
.unsafeFlags(["-fobjc-arc"])
],
linkerSettings: [
.linkedFramework("Foundation"),
.linkedFramework("CoreGraphics"),
]
),
.executableTarget(
name: "OpenPromptr",
dependencies: [
"OpenPromptrCore", "VirtualDisplayBridge",
.product(name: "AppUpdater", package: "AppUpdater"),
.product(name: "Swifter", package: "swifter"),
],
linkerSettings: [
.linkedFramework("AppKit"),
.linkedFramework("AVFoundation"),
.linkedFramework("CoreImage"),
.linkedFramework("CoreGraphics"),
.linkedFramework("CoreMedia"),
.linkedFramework("CoreVideo"),
.linkedFramework("Metal"),
.linkedFramework("QuartzCore"),
.linkedFramework("ServiceManagement"),
.linkedFramework("ScreenCaptureKit"),
.linkedFramework("SwiftUI"),
]
),
.testTarget(
name: "OpenPromptrCoreTests",
dependencies: ["OpenPromptrCore"]
),
],
swiftLanguageModes: [.v6]
)