This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (46 loc) · 1.68 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SwiftSyntaxHighlighter",
platforms: [
.macOS(.v10_13)
],
products: [
.library(
name: "SwiftSyntaxHighlighter",
targets: ["SwiftSyntaxHighlighter"]),
.executable(name: "swift-highlight",
targets: ["swift-highlight"])
],
dependencies: [
.package(name: "SwiftSyntax",
url: "https://github.com/apple/swift-syntax.git",
.revision("release/5.4")),
.package(name: "swift-argument-parser",
url: "https://github.com/apple/swift-argument-parser.git",
.upToNextMinor(from: "0.3.2"))
],
targets: [
.target(name: "Highlighter",
dependencies: ["SwiftSyntax"]),
.target(name: "Pygments",
dependencies: ["Highlighter"],
path: "Sources/TokenizationSchemes/Pygments"),
.target(name: "Xcode",
dependencies: ["Highlighter"],
path: "Sources/TokenizationSchemes/Xcode"),
.target(
name: "swift-highlight",
dependencies: [
"SwiftSyntaxHighlighter",
.product(name: "ArgumentParser", package: "swift-argument-parser")
]),
.target(
name: "SwiftSyntaxHighlighter",
dependencies: ["SwiftSyntax", "Highlighter", "Xcode", "Pygments"]),
.testTarget(
name: "SwiftSyntaxHighlighterTests",
dependencies: ["SwiftSyntaxHighlighter"]),
]
)