Files
CavesOfSwift/Package.swift

50 lines
1.1 KiB
Swift
Raw Permalink Normal View History

2024-05-05 17:01:56 +10:00
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "CavesOfJolk-Swift",
platforms: [
.macOS(.v11)
],
products: [
.executable(name: "Test", targets: ["Test"]),
.library(name: "JolkEngine", targets: ["JolkEngine"]),
.library(name: "Maths", targets: ["Maths"]),
2024-05-05 17:01:56 +10:00
],
dependencies: [
.package(
url: "https://github.com/ctreffs/SwiftSDL2.git",
.upToNextMajor(from: "1.4.1")),
.package(
url: "https://github.com/apple/swift-collections.git",
.upToNextMinor(from: "1.1.0")),
2024-05-05 17:01:56 +10:00
],
targets: [
.executableTarget(
name: "Test",
dependencies: [ .target(name: "JolkEngine") ],
resources: [ .process("Resources") ]
),
.target(
name: "JolkEngine",
dependencies: [
.product(name: "SDL", package: "SwiftSDL2"),
.product(name: "Collections", package: "swift-collections"),
"HSLuv",
.target(name: "Maths"),
2024-05-05 17:01:56 +10:00
],
swiftSettings: [
.unsafeFlags(["-Xcc", "-DGL_SILENCE_DEPRECATION"])
]
),
.target(name: "HSLuv"),
.target(
name: "Maths",
swiftSettings: [
.unsafeFlags(["-DUSE_SIMD"])
]
),
2024-05-05 17:01:56 +10:00
]
)