generated from Apodini/Template-Repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
81 lines (77 loc) · 3.48 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
// swift-tools-version:5.6
//
// This source file is part of the Apodini open source project
//
// SPDX-FileCopyrightText: 2021 Paul Schmiedmayer and the project authors (see CONTRIBUTORS.md) <[email protected]>
//
// SPDX-License-Identifier: MIT
//
import PackageDescription
let package = Package(
name: "ApodiniAuditLinguaWebService",
platforms: [
.macOS(.v11)
],
products: [
.executable(name: "BadLinguaWebService", targets: ["BadLinguaWebService"]),
.executable(name: "ImprovedLinguaWebService", targets: ["ImprovedLinguaWebService"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/Apodini/Apodini.git", .upToNextMinor(from: "0.10.0")),
.package(url: "https://github.com/vapor/fluent-kit.git", from: "1.16.0"),
.package(url: "https://github.com/vapor/fluent-sqlite-driver", from: "4.2.0")
],
targets: [
.executableTarget(
name: "BadLinguaWebService",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.product(name: "ApodiniHTTP", package: "Apodini"),
.product(name: "ApodiniREST", package: "Apodini"),
.product(name: "ApodiniAudit", package: "Apodini"),
.product(name: "ApodiniOpenAPI", package: "Apodini"),
.product(name: "ApodiniDatabase", package: "Apodini"),
.product(name: "ApodiniAuthorizationBasicScheme", package: "Apodini"),
.product(name: "ApodiniAuthorization", package: "Apodini"),
.product(name: "FluentKit", package: "fluent-kit"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.target(name: "Shared")
]),
.executableTarget(
name: "ImprovedLinguaWebService",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.product(name: "ApodiniHTTP", package: "Apodini"),
.product(name: "ApodiniREST", package: "Apodini"),
.product(name: "ApodiniAudit", package: "Apodini"),
.product(name: "ApodiniOpenAPI", package: "Apodini"),
.product(name: "ApodiniDatabase", package: "Apodini"),
.product(name: "ApodiniAuthorizationBasicScheme", package: "Apodini"),
.product(name: "ApodiniAuthorization", package: "Apodini"),
.product(name: "FluentKit", package: "fluent-kit"),
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.target(name: "Shared")
]),
.target(
name: "Shared",
dependencies: [
.product(name: "Apodini", package: "Apodini"),
.product(name: "ApodiniDatabase", package: "Apodini"),
.product(name: "ApodiniAudit", package: "Apodini")
],
resources: [
.process("Resources")
]),
.testTarget(
name: "LinguaWebServiceTests",
dependencies: [
.target(name: "BadLinguaWebService"),
.target(name: "ImprovedLinguaWebService"),
.product(name: "XCTApodiniNetworking", package: "Apodini"),
.product(name: "ApodiniHTTPProtocol", package: "Apodini"),
.product(name: "XCTApodini", package: "Apodini")
]
)
]
)