Initial Commit
This commit is contained in:
commit
9f32b787c7
15 changed files with 7823 additions and 0 deletions
49
Package.swift
Normal file
49
Package.swift
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
// 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: "ArtifactUI",
|
||||
platforms: [
|
||||
.macOS(.v14)
|
||||
],
|
||||
products: [
|
||||
// Products define the executables and libraries a package produces, making them visible to other packages.
|
||||
.library(
|
||||
name: "ArtifactUI",
|
||||
targets: ["ArtifactUI"]),
|
||||
],
|
||||
traits: [
|
||||
.default(enabledTraits: ["STB"]),
|
||||
.trait(name: "STB")
|
||||
],
|
||||
dependencies: [
|
||||
.package(path: "../ArtifactMath"),
|
||||
.package(path: "../ArtifactColor"),
|
||||
.package(path: "../ArtifactState"),
|
||||
.package(path: "../ArtifactPlatform"),
|
||||
],
|
||||
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: "ArtifactUI",
|
||||
dependencies: [
|
||||
"ArtifactMath",
|
||||
"ArtifactColor",
|
||||
"ArtifactState",
|
||||
"ArtifactPlatform",
|
||||
.target(name: "stb_truetype", condition: .when(traits: ["STB"]))
|
||||
],
|
||||
),
|
||||
.target(
|
||||
name: "stb_truetype",
|
||||
publicHeadersPath: "."
|
||||
),
|
||||
.testTarget(
|
||||
name: "ArtifactUITests",
|
||||
dependencies: ["ArtifactUI"]
|
||||
),
|
||||
]
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue