This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
56 lines (54 loc) · 1.61 KB
/
Package.swift
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
// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "SafeURL",
platforms: [ .macOS("10.13") ],
products: [
.library(
name: "SafeURL",
targets: [
"SafeURL",
]),
.plugin(
name: "SafeURLPlugin",
targets: [
"SafeURLPlugin",
])
],
dependencies: [
.package(url: "https://github.com/jpsim/SourceKitten.git", from: "0.32.0"),
.package(url: "https://github.com/baguio/XcodeIssueReporting", .upToNextMajor(from: "1.0.0")),
],
targets: [
// Interface
.target(
name: "SafeURL"
),
.plugin(
name: "SafeURLPlugin",
capability: .buildTool(),
dependencies: ["SafeURLLintExecutable", "SafeURLLintFramework"]
),
// Plugin internal code
.target(
name: "SafeURLLintFramework",
dependencies: [
.product(name: "SourceKittenFramework", package: "SourceKitten"),
.product(name: "XcodeIssueReporting", package: "XcodeIssueReporting"),
.product(name: "XcodeIssueReportingForSourceKitten", package: "XcodeIssueReporting"),
]
),
.executableTarget(
name: "SafeURLLintExecutable",
dependencies: ["SafeURLLintFramework"]
),
.testTarget(
name: "SafeURLTests",
dependencies: [
"SafeURL",
"SafeURLLintFramework",
],
plugins: ["SafeURLPlugin"]
),
]
)