-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
53 lines (51 loc) · 1.56 KB
/
Package.swift
File metadata and controls
53 lines (51 loc) · 1.56 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
// swift-tools-version: 6.2
//
// This source file is part of the ThreadLocal open-source project
//
// SPDX-FileCopyrightText: 2025 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import CompilerPluginSupport
import PackageDescription
let package = Package(
name: "ThreadLocal",
platforms: [
.macOS(.v14),
.iOS(.v17),
.macCatalyst(.v17),
.watchOS(.v10),
.visionOS(.v1),
.tvOS(.v17)
],
products: [
.library(name: "ThreadLocal", targets: ["ThreadLocal"])
],
dependencies: [
.package(url: "https://github.com/swiftlang/swift-syntax.git", "601.0.0"..<"604.0.0")
],
targets: [
.macro(
name: "ThreadLocalMacros",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
.product(name: "SwiftDiagnostics", package: "swift-syntax")
],
swiftSettings: [.enableUpcomingFeature("ExistentialAny")]
),
.target(
name: "ThreadLocal",
dependencies: ["ThreadLocalMacros"]
),
.testTarget(
name: "ThreadLocalTests",
dependencies: [
"ThreadLocal",
"ThreadLocalMacros",
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax")
]
)
]
)