generated from Apodini/ApodiniTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
98 lines (93 loc) · 3.19 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
// swift-tools-version:5.5
//
// This source file is part of the Apodini HotROD example open source project
//
// SPDX-FileCopyrightText: 2022 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <paul.schmiedmayer@tum.de>
//
// SPDX-License-Identifier: MIT
//
import PackageDescription
let package = Package(
name: "ApodiniHotRODExample",
platforms: [
.macOS(.v11)
],
products: [
.executable(
name: "frontend",
targets: ["frontend"]
),
.executable(
name: "customer",
targets: ["customer"]
),
.executable(
name: "driver",
targets: ["driver"]
),
.executable(
name: "route",
targets: ["route"]
)
],
dependencies: [
.package(url: "https://github.com/Apodini/Apodini.git", .upToNextMinor(from: "0.9.2")),
.package(url: "https://github.com/Apodini/ApodiniAsyncHTTPClient.git", .upToNextMinor(from: "0.3.4"))
],
targets: [
.executableTarget(
name: "frontend",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.product(name: "ApodiniHTTP", package: "Apodini"),
.product(name: "ApodiniObserve", package: "Apodini"),
.product(name: "ApodiniObserveOpenTelemetry", package: "Apodini"),
.product(name: "ApodiniAsyncHTTPClient", package: "ApodiniAsyncHTTPClient"),
.target(name: "Models")
],
resources: [
.process("Resources")
]
),
.executableTarget(
name: "customer",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.product(name: "ApodiniHTTP", package: "Apodini"),
.product(name: "ApodiniObserve", package: "Apodini"),
.product(name: "ApodiniObserveOpenTelemetry", package: "Apodini"),
.target(name: "Models"),
.target(name: "Utils")
]
),
.executableTarget(
name: "driver",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.product(name: "ApodiniHTTP", package: "Apodini"),
.product(name: "ApodiniObserve", package: "Apodini"),
.product(name: "ApodiniObserveOpenTelemetry", package: "Apodini"),
.target(name: "Models"),
.target(name: "Utils")
]
),
.executableTarget(
name: "route",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.product(name: "ApodiniHTTP", package: "Apodini"),
.product(name: "ApodiniObserve", package: "Apodini"),
.product(name: "ApodiniObserveOpenTelemetry", package: "Apodini"),
.target(name: "Models"),
.target(name: "Utils")
]
),
.target(
name: "Models",
dependencies: [
.product(name: "Apodini", package: "Apodini")
]
),
.target(name: "Utils")
]
)