mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Move BuildExtensions into the Components folder
Complete grouping the standalone modules under Components. Updates the local Swift package path in project.yml.
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
// swift-tools-version: 6.2
|
||||
|
||||
import CompilerPluginSupport
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "BuildExtensions",
|
||||
platforms: [.macOS(.v15)],
|
||||
products: [
|
||||
.library(name: "Macros", targets: ["Macros"])
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/swiftlang/swift-syntax", from: "603.0.2")
|
||||
],
|
||||
targets: [
|
||||
// The public macro declarations imported by the app.
|
||||
.target(name: "Macros",
|
||||
dependencies: ["MacrosImplementation"],
|
||||
swiftSettings: [
|
||||
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
|
||||
.enableUpcomingFeature("InferIsolatedConformances")
|
||||
]),
|
||||
// The compiler plugin holding the SwiftSyntax expansions.
|
||||
.macro(name: "MacrosImplementation",
|
||||
dependencies: [
|
||||
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
|
||||
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
|
||||
],
|
||||
swiftSettings: [
|
||||
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
|
||||
.enableUpcomingFeature("InferIsolatedConformances")
|
||||
]),
|
||||
.testTarget(name: "MacrosTests",
|
||||
dependencies: [
|
||||
"MacrosImplementation",
|
||||
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax")
|
||||
],
|
||||
swiftSettings: [
|
||||
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
|
||||
.enableUpcomingFeature("InferIsolatedConformances")
|
||||
])
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user