Defaults/Package.swift

80 lines
1.5 KiB
Swift
Raw Normal View History

2024-09-26 05:17:26 +08:00
// swift-tools-version:5.11
2018-04-12 01:19:30 +08:00
import PackageDescription
import CompilerPluginSupport
2018-04-12 01:19:30 +08:00
let package = Package(
2018-06-29 16:49:06 +08:00
name: "Defaults",
2019-03-26 16:49:25 +08:00
platforms: [
.macOS(.v11),
.iOS(.v14),
.tvOS(.v14),
2024-04-20 12:14:41 +08:00
.watchOS(.v9),
.visionOS(.v1)
2019-03-26 16:49:25 +08:00
],
2018-06-29 16:49:06 +08:00
products: [
.library(
name: "Defaults",
targets: [
"Defaults"
]
),
.library(
name: "DefaultsMacros",
targets: [
"DefaultsMacros"
]
2018-04-12 01:19:30 +08:00
)
2018-06-29 16:49:06 +08:00
],
dependencies: [
.package(url: "https://github.com/swiftlang/swift-syntax", from: "600.0.1")
],
2018-06-29 16:49:06 +08:00
targets: [
.target(
2024-02-10 17:20:39 +08:00
name: "Defaults",
2024-09-30 18:19:33 +08:00
resources: [
.copy("PrivacyInfo.xcprivacy")
]
// swiftSettings: [
// .swiftLanguageMode(.v5)
// ]
2018-04-12 01:19:30 +08:00
),
.macro(
name: "DefaultsMacrosDeclarations",
dependencies: [
"Defaults",
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
]
),
.target(
name: "DefaultsMacros",
dependencies: ["Defaults", "DefaultsMacrosDeclarations"]
),
2018-06-29 16:49:06 +08:00
.testTarget(
name: "DefaultsTests",
dependencies: [
"Defaults"
]
2024-09-30 18:19:33 +08:00
// swiftSettings: [
// .swiftLanguageMode(.v5)
// ]
),
.testTarget(
name: "DefaultsMacrosDeclarationsTests",
dependencies: [
"DefaultsMacros",
"DefaultsMacrosDeclarations",
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax")
]
),
.testTarget(
name: "DefaultsMacrosTests",
dependencies: [
"Defaults",
"DefaultsMacros"
]
2018-04-12 01:19:30 +08:00
)
2018-06-29 16:49:06 +08:00
]
2018-04-12 01:19:30 +08:00
)