47 lines
1.7 KiB
Swift
47 lines
1.7 KiB
Swift
// swift-tools-version: 6.1
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "TestGame",
|
|
platforms: [.macOS(.v14)],
|
|
products: [
|
|
.executable(name: "TestGame", targets: ["TestGame"])
|
|
],
|
|
dependencies: [
|
|
.package(path: "../ArtifactUI"),
|
|
.package(path: "../ArtifactPlatform", traits: ["SDL3"]),
|
|
.package(path: "../ArtifactGraphics"),
|
|
.package(path: "../ArtifactColor"),
|
|
.package(path: "../ArtifactSDL3WebGPU"),
|
|
.package(path: "../ArtifactWorld"),
|
|
.package(path: "../ArtifactFilesystem"),
|
|
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.2"),
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "TestGame",
|
|
dependencies: [
|
|
"ArtifactSDL3WebGPU",
|
|
"ArtifactPlatform",
|
|
"ArtifactGraphics",
|
|
"ArtifactColor",
|
|
"ArtifactUI",
|
|
"ArtifactWorld",
|
|
"ArtifactFilesystem",
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser")
|
|
],
|
|
linkerSettings: [
|
|
.unsafeFlags(["-L\(Context.packageDirectory)/../GLFW/Artifacts/glfw/lib-universal", "-L\(Context.packageDirectory)/../WGPUNative/Artifacts/WGPUNative/lib/macOS"]),
|
|
.linkedLibrary("glfw3"),
|
|
.linkedLibrary("wgpu_native"),
|
|
.linkedFramework("CoreGraphics"),
|
|
.linkedFramework("IOKit"),
|
|
.linkedFramework("Cocoa"),
|
|
.linkedFramework("QuartzCore"),
|
|
.linkedFramework("Metal")
|
|
]
|
|
),
|
|
]
|
|
)
|