Initial Commit
This commit is contained in:
commit
9b2f49ea5c
8 changed files with 857 additions and 0 deletions
42
Package.swift
Normal file
42
Package.swift
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
// 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: "ArtifactPlatform",
|
||||
platforms: [.macOS(.v14)],
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||
.library(
|
||||
name: "ArtifactPlatform",
|
||||
targets: ["ArtifactPlatform"]
|
||||
),
|
||||
],
|
||||
traits: [
|
||||
.default(enabledTraits: ["GLFW"]),
|
||||
.trait(name: "GLFW", description: "Enables the builtin GLFW backend."),
|
||||
.trait(name: "SDL3", description: "Enables the builtin SDL3 backend."),
|
||||
],
|
||||
dependencies: [
|
||||
.package(path: "../GLFW"),
|
||||
.package(path: "../SDL3"),
|
||||
.package(path: "../ArtifactMath"),
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
||||
// Targets can depend on other targets in this package and products from dependencies.
|
||||
.target(
|
||||
name: "ArtifactPlatform",
|
||||
dependencies: [
|
||||
"ArtifactMath",
|
||||
.product(name: "GLFW", package: "GLFW", condition: .when(traits: ["GLFW"])),
|
||||
.product(name: "SDL3", package: "SDL3", condition: .when(traits: ["SDL3"])),
|
||||
]
|
||||
),
|
||||
.testTarget(
|
||||
name: "ArtifactPlatformTests",
|
||||
dependencies: ["ArtifactPlatform"],
|
||||
),
|
||||
],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue