-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
106 lines (92 loc) · 3.16 KB
/
Copy pathPackage.swift
File metadata and controls
106 lines (92 loc) · 3.16 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
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
// swift-tools-version:6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Bazelize",
platforms: [
.macOS(.v13),
],
products: [
.executable(name: "bazelize", targets: ["Bazelize"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/tuist/XcodeProj", from: "9.10.1"),
.package(url: "https://github.com/Flight-School/AnyCodable", from: "0.6.7"),
.package(url: "https://github.com/jpsim/Yams", from: "6.2.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.7.0"),
/// tag: swift-DEVELOPMENT-SNAPSHOT-2023-01-28-a
/// support async command
.package(
url: "https://github.com/apple/swift-package-manager",
branch: "swift-6.2.4-RELEASE"),
],
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: "BazelRules",
dependencies: [
"Starlark",
]),
.testTarget(
name: "BazelRulesTests",
dependencies: ["BazelRules"]),
.target(
name: "Starlark",
dependencies: [
"Util",
]),
.testTarget(
name: "StarlarkTests",
dependencies: ["Starlark"]),
.target(
name: "BazelizeKit",
dependencies: [
"Yams",
"BazelRules",
"XCode",
"Util",
"Starlark",
"PluginLoader",
.product(name: "XcodeProj", package: "XcodeProj"),
]),
.target(
name: "Util",
dependencies: [
"Yams",
"PathKit",
]),
.testTarget(
name: "UtilTests",
dependencies: ["Util"]),
.target(
name: "XCode",
dependencies: [
"Util",
"Starlark",
"AnyCodable",
.product(name: "XcodeProj", package: "XcodeProj"),
.product(name: "SwiftPMDataModel-auto", package: "swift-package-manager"),
]),
.testTarget(
name: "XCodeTests",
dependencies: ["XCode"]),
.target(
name: "PluginLoader",
dependencies: [
"PathKit",
"Util",
"XCode",
"SwiftCommand",
]),
])