-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
90 lines (87 loc) · 2.92 KB
/
Copy pathPackage.swift
File metadata and controls
90 lines (87 loc) · 2.92 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
// swift-tools-version: 6.1
//===----------------------------------------------------------------------===//
//
// This source file is part of the asroutes project.
//
// Copyright (c) 2026 Craig A. Munro
//
// Licensed under the Apache License, Version 2.0.
// See the LICENSE file for details.
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
import PackageDescription
let package = Package(
name: "asroutes",
platforms: [
.iOS(.v18),
.macOS(.v15),
],
products: [
.library(name: "ASRoutesClient", targets: ["ASRoutesClient"]),
.executable(name: "asroutes", targets: ["ASRoutesExecutable"]),
],
dependencies: [
.package(
url: "https://github.com/RouteObjects/swift-cidr.git",
.upToNextMinor(from: "0.4.0")
),
.package(
url: "https://github.com/apple/swift-nio.git",
.upToNextMajor(from: "2.100.0")
),
.package(
url: "https://github.com/apple/swift-argument-parser",
.upToNextMajor(from: "1.7.0")
),
],
targets: [
.target(
name: "ASRoutesClient",
dependencies: [
.product(name: "CIDR", package: "swift-cidr"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
]
),
// Keep command behavior in an importable target so Xcode can build its tests;
// the separately named executable target below now owns only process startup.
.target(
name: "ASRoutesCLI",
dependencies: [
"ASRoutesClient",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "CIDR", package: "swift-cidr"),
],
path: "Sources/ASRoutesCLI"
),
.executableTarget(
name: "ASRoutesExecutable",
dependencies: ["ASRoutesCLI"],
// Keep process startup separate so ASRoutesCLI remains an importable,
// testable module in both SwiftPM and Xcode.
path: "Sources/ASRoutesExecutable"
),
.testTarget(
name: "ASRoutesClientTests",
dependencies: [
"ASRoutesClient",
"ASRoutesCLI",
.product(name: "CIDR", package: "swift-cidr"),
.product(name: "NIOEmbedded", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
]
),
.testTarget(
name: "ASRoutesCLITests",
dependencies: [
"ASRoutesClient",
"ASRoutesCLI",
.product(name: "CIDR", package: "swift-cidr"),
],
path: "Tests/ASRoutesCLITests"
),
],
swiftLanguageModes: [.v6]
)