Files
Lukas Obermann 4236fa3804 feat!: adjust naming for compiles languages that dont create namespaces per file
This includes a Proof of Concept in form of a Swift Package. Only one file had to be replaced, because I couldnt make sense of how else to do it. But it compiles.
2024-11-16 02:01:25 +01:00

38 lines
1.4 KiB
Swift

// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
import CompilerPluginSupport
let package = Package(
name: "OptolithDatabaseSchema",
platforms: [
.macOS(.v13), .iOS(.v16), .tvOS(.v16), .watchOS(.v9), .macCatalyst(.v16)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "OptolithDatabaseSchema",
targets: ["OptolithDatabaseSchema"]),
],
dependencies: [
.package(url: "https://github.com/elyukai/DiscriminatedEnum.git", branch: "main"),
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.0-latest"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "OptolithDatabaseSchema",
dependencies: ["DiscriminatedEnum", "OptolithDatabaseSchemaMacros"]),
.macro(
name: "OptolithDatabaseSchemaMacros",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax")
]
),
]
)