-
Notifications
You must be signed in to change notification settings - Fork 4
/
Package.swift
45 lines (44 loc) · 1.7 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
// swift-tools-version:5.8
import PackageDescription
let package = Package(
name: "soto-codegenerator",
platforms: [.macOS(.v10_15)],
products: [
.executable(name: "SotoCodeGenerator", targets: ["SotoCodeGenerator"]),
.plugin(name: "SotoCodeGeneratorPlugin", targets: ["SotoCodeGeneratorPlugin"]),
],
dependencies: [
.package(url: "https://github.com/soto-project/soto-smithy.git", from: "0.4.3"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.0"),
.package(url: "https://github.com/hummingbird-project/swift-mustache.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
],
targets: [
.executableTarget(
name: "SotoCodeGenerator",
dependencies: [
.byName(name: "SotoCodeGeneratorLib"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Logging", package: "swift-log"),
]
),
.target(
name: "SotoCodeGeneratorLib",
dependencies: [
.product(name: "SotoSmithy", package: "soto-smithy"),
.product(name: "SotoSmithyAWS", package: "soto-smithy"),
.product(name: "Mustache", package: "swift-mustache"),
.product(name: "Logging", package: "swift-log"),
]
),
.plugin(
name: "SotoCodeGeneratorPlugin",
capability: .buildTool(),
dependencies: ["SotoCodeGenerator"]
),
.testTarget(
name: "SotoCodeGeneratorTests",
dependencies: ["SotoCodeGeneratorLib"]
),
]
)