Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created November 26, 2022 03:18
Show Gist options
  • Save laevandus/e898accf4ff906b11f076f2c564701f7 to your computer and use it in GitHub Desktop.
Save laevandus/e898accf4ff906b11f076f2c564701f7 to your computer and use it in GitHub Desktop.
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "ToomasKit",
platforms: [
.iOS(.v16)
],
products: [
.library(
name: "ToomasKit",
targets: ["ToomasKit"]
),
],
targets: [
.target(
name: "ToomasKit",
plugins: [
.plugin(name: "ToomasKitPlugin")
]
),
.executableTarget(
name: "CodeGenerator"
),
.plugin(
name: "ToomasKitPlugin",
capability: .buildTool(),
dependencies: ["CodeGenerator"]
),
.testTarget(
name: "ToomasKitTests",
dependencies: ["ToomasKit"]
),
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment