-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
123 lines (105 loc) · 3.65 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// swift-tools-version:5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Bazelize",
platforms: [
.macOS(.v11),
],
products: [
.executable(name: "bazelize", targets: ["Bazelize"]),
.library(name: "Cocoapod", type: .dynamic, targets: ["Cocoapod"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/tuist/XcodeProj", from: "8.8.0"),
.package(url: "https://github.com/Flight-School/AnyCodable", from: "0.6.6"),
.package(url: "https://github.com/jpsim/Yams", from: "5.0.1"),
.package(url: "https://github.com/kylef/PathKit", from: "1.0.1"),
.package(url: "https://github.com/yume190/SwiftCommand", from: "1.1.3"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.1.4"),
/// tag: swift-DEVELOPMENT-SNAPSHOT-2023-01-28-a
/// support async command
.package(
url: "https://github.com/apple/swift-package-manager",
revision: "1cf758cd67f2ee5d4dbb4f33c2cb0ecea6235c96"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.executableTarget(
name: "Bazelize",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"PathKit",
"BazelizeKit",
]),
.target(
name: "RuleBuilder",
dependencies: [
"Util",
]),
.testTarget(
name: "RuleBuilderTests",
dependencies: ["RuleBuilder"]),
.target(
name: "BazelizeKit",
dependencies: [
"Yams",
"XCode",
"Util",
"RuleBuilder",
"PluginLoader",
.product(name: "XcodeProj", package: "XcodeProj"),
]),
.target(
name: "Util",
dependencies: [
"Yams",
"PathKit",
]),
.testTarget(
name: "UtilTests",
dependencies: ["Util"]),
.target(
name: "XCode",
dependencies: [
"Util",
"RuleBuilder",
"PluginInterface",
"AnyCodable",
.product(name: "XcodeProj", package: "XcodeProj"),
.product(name: "SwiftPMDataModel-auto", package: "swift-package-manager"),
]),
.testTarget(
name: "XCodeTests",
dependencies: ["XCode"]),
.target(
name: "Cocoapod",
dependencies: [
"PluginInterface",
"Util",
"AnyCodable",
"PathKit",
]),
.testTarget(
name: "CocoapodTests",
dependencies: ["Cocoapod"],
resources: [
.copy("Resource"),
]),
.target(
name: "PluginInterface",
dependencies: ["PathKit"]),
.target(
name: "PluginLoader",
dependencies: [
"PathKit",
"PluginInterface",
"Util",
"SwiftCommand",
]),
// .testTarget(
// name: "SwiftBazelGenTests",
// dependencies: ["SwiftBazelGen"]),
])