-
Notifications
You must be signed in to change notification settings - Fork 42
/
Package.swift
63 lines (60 loc) · 1.99 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
57
58
59
60
61
62
63
// swift-tools-version:5.2
import PackageDescription
var package = Package(
name: "IBLinter",
platforms: [.macOS(.v10_13)],
products: [
.executable(
name: "iblinter", targets: ["IBLinter"]
),
.library(
name: "IBLinterFrontend",
type: .dynamic, targets: ["IBLinterFrontend"]
),
.library(
name: "IBLinterKit", targets: ["IBLinterKit"]
),
.executable(
name: "iblinter-tools", targets: ["IBLinterTools"]
)
],
dependencies: [
.package(url: "https://github.com/IBDecodable/IBDecodable.git", from: "0.5.0"),
.package(url: "https://github.com/jpsim/SourceKitten.git", from: "0.29.0"),
.package(url: "https://github.com/phimage/XcodeProjKit.git", from: "2.2.0"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
],
targets: [
.target(
name: "IBLinter",
dependencies: ["IBLinterFrontend"]
),
.target(
name: "IBLinterFrontend",
dependencies: ["IBLinterKit"]
),
.target(
name: "IBLinterKit",
dependencies: [
"IBDecodable",
.product(name: "SourceKittenFramework", package: "SourceKitten"), "XcodeProjKit",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.target(
name: "IBLinterTools",
dependencies: ["IBLinterKit", .product(name: "ArgumentParser", package: "swift-argument-parser")]
),
.testTarget(
name: "IBLinterKitTest",
dependencies: ["IBLinterKit"],
exclude: [
"Resources"
]
),
]
)
#if os(Linux)
package.dependencies.append(.package(url: "https://github.com/apple/swift-crypto.git", from: "1.0.0"))
package.targets[2].dependencies.append(.product(name: "Crypto", package: "swift-crypto"))
#endif