-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
40 lines (39 loc) · 1.35 KB
/
Copy pathPackage.swift
File metadata and controls
40 lines (39 loc) · 1.35 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
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "Galley",
platforms: [.macOS(.v11)],
dependencies: [
.package(url: "https://github.com/sparkle-project/Sparkle", from: "2.9.1"),
],
targets: [
.target(
name: "CSynctex",
path: "Sources/CSynctex",
publicHeadersPath: "."
),
.executableTarget(
name: "GalleyPDF",
dependencies: [
"CSynctex",
.product(name: "Sparkle", package: "Sparkle"),
],
path: "Sources/Galley",
linkerSettings: [
.unsafeFlags(["-Xlinker", "-rpath", "-Xlinker", "@executable_path/../Frameworks"]),
]
),
// The `galleypdf` command. Deliberately free of Sparkle and CSynctex so
// it stays a few milliseconds of process start; it only builds a
// galleypdf:// URL and hands it to LaunchServices.
//
// The product is named GalleyPDFCLI rather than galleypdf because the
// build directory is case-insensitive on APFS and would collide with
// the GalleyPDF executable. The Makefile installs it into the bundle
// under its real name.
.executableTarget(
name: "GalleyPDFCLI",
path: "Sources/GalleyPDFCLI"
),
]
)