49 lines
1.5 KiB
Swift
49 lines
1.5 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: "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"]
|
|
),
|
|
]
|
|
)
|