-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
90 lines (86 loc) · 2.84 KB
/
Package.swift
File metadata and controls
90 lines (86 loc) · 2.84 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.2
import CompilerPluginSupport
import PackageDescription
let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("MemberImportVisibility"),
]
let package = Package(
name: "DevFoundation",
platforms: [
.iOS(.v26),
.macOS(.v26),
.tvOS(.v26),
.visionOS(.v26),
.watchOS(.v26),
],
products: [
.library(
name: "DevFoundation",
targets: ["DevFoundation"]
),
.executable(
name: "dfob",
targets: [
"DevFoundation",
"dfob",
]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.6.1"),
.package(url: "https://github.com/apple/swift-async-algorithms.git", from: "1.0.4"),
.package(url: "https://github.com/apple/swift-numerics.git", from: "1.1.0"),
.package(url: "https://github.com/DevKitOrganization/DevTesting", from: "1.5.0"),
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "602.0.0"),
.package(url: "https://github.com/prachigauriar/URLMock.git", from: "1.3.6"),
],
targets: [
.target(
name: "DevFoundation",
dependencies: [
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
"RemoteLocalizationMacros",
],
swiftSettings: swiftSettings
),
.testTarget(
name: "DevFoundationTests",
dependencies: [
"DevFoundation",
"DevTesting",
.product(name: "RealModule", package: "swift-numerics"),
"URLMock",
],
swiftSettings: swiftSettings
),
.macro(
name: "RemoteLocalizationMacros",
dependencies: [
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
],
swiftSettings: swiftSettings
),
.executableTarget(
name: "dfob",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"DevFoundation",
],
swiftSettings: swiftSettings
),
.testTarget(
name: "dfobTests",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"DevFoundation",
"DevTesting",
"dfob",
],
swiftSettings: swiftSettings
),
]
)