forked from Brightify/Cuckoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
76 lines (74 loc) · 2.78 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
64
65
66
67
68
69
70
71
72
73
74
75
76
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "Cuckoo",
platforms: [
.iOS("13.0"),
.tvOS("13.0"),
.macOS("10.15"),
],
products: [
.library(
name: "Cuckoo",
targets: ["Cuckoo"]
),
.plugin(
name: "CuckooPluginSingleFile",
targets: ["CuckooPluginSingleFile"]
),
// FIXME: Currently unusable because Xcode doesn't allow using prebuild commands with executable targets
// .plugin(
// name: "CuckooPluginIndividualFiles",
// targets: ["CuckooPluginIndividualFiles"]
// ),
],
dependencies: [
// Any dependency changes must also be reflected in Generator/Project.swift.
.package(url: "https://github.com/nvzqz/FileKit.git", exact: "6.1.0"),
.package(url: "https://github.com/kylef/Stencil.git", exact: "0.15.1"),
.package(url: "https://github.com/apple/swift-syntax.git", exact: "509.0.0"),
.package(url: "https://github.com/apple/swift-format.git", exact: "509.0.0"),
.package(url: "https://github.com/apple/swift-argument-parser", exact: "1.2.3"),
.package(url: "https://github.com/LebJe/TOMLKit.git", exact: "0.5.5"),
.package(url: "https://github.com/tuist/XcodeProj.git", exact: "8.15.0"),
.package(url: "https://github.com/onevcat/Rainbow", exact: "4.0.1"),
],
targets: [
.target(
name: "Cuckoo",
dependencies: [],
path: "Source"
),
.testTarget(
name: "CuckooTests",
dependencies: ["Cuckoo"],
path: "Tests"
),
.executableTarget(
name: "CuckooGenerator",
dependencies: [
.product(name: "FileKit", package: "FileKit"),
.product(name: "Stencil", package: "Stencil"),
.product(name: "SwiftFormat", package: "swift-format"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "TOMLKit", package: "TOMLKit"),
.product(name: "XcodeProj", package: "XcodeProj"),
.product(name: "Rainbow", package: "Rainbow"),
],
path: "Generator/Sources"
),
.plugin(
name: "CuckooPluginSingleFile",
capability: .buildTool(),
dependencies: ["CuckooGenerator"],
path: "Generator/Plugin/File"
),
// .plugin(
// name: "CuckooPluginIndividualFiles",
// capability: .buildTool(),
// dependencies: ["CuckooGenerator"],
// path: "Generator/Plugin/Directory"
// ),
]
)