Files
playdate-kit/Package.swift
T

46 lines
1.2 KiB
Swift
Raw Normal View History

// swift-tools-version: 6.3
2026-07-24 10:33:45 +02:00
import PackageDescription
let package = Package(
name: "playdate-kit",
2026-07-24 10:33:45 +02:00
products: [
.library(
name: "PlaydateKit",
targets: ["PlaydateKit"]
2026-07-24 10:33:45 +02:00
),
],
dependencies: [
.package(
url: "https://github.com/swiftlang/swift-docc-plugin",
from: "1.4.0"
),
],
2026-07-24 10:33:45 +02:00
targets: [
// The Playdate C API headers, resolved through the "playdate"
// pkg-config module. Run Scripts/install-pkgconfig.sh once to point
// it at your Playdate SDK installation.
.systemLibrary(
name: "CPlaydate",
path: "Sources/CPlaydate",
pkgConfig: "playdate"
),
.target(
name: "PlaydateKit",
2026-07-24 10:33:45 +02:00
dependencies: ["CPlaydate"],
path: "Sources/PlaydateKit",
2026-07-24 10:33:45 +02:00
swiftSettings: [
.enableUpcomingFeature("ApproachableConcurrency"),
],
),
.testTarget(
name: "PlaydateKitTests",
dependencies: ["PlaydateKit"],
path: "Tests/PlaydateKit",
2026-07-24 10:33:45 +02:00
swiftSettings: [
.enableUpcomingFeature("ApproachableConcurrency"),
],
),
]
)