Initial Commit
This commit is contained in:
commit
2f3600c84f
2 changed files with 333 additions and 0 deletions
47
Package.swift
Normal file
47
Package.swift
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
// 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")
|
||||
]
|
||||
),
|
||||
]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue