-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
56 lines (48 loc) · 3.69 KB
/
Package.swift
File metadata and controls
56 lines (48 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "TUIkit",
// Minimum deployment targets for Apple platforms
// Linux is automatically supported (no platform specification needed)
platforms: [
.macOS(.v14)
],
products: [
// ── Low-level (no deps) ─────────────────────────────────────────────────────────────────────────
.library(name: "TUIkitCore", targets: ["TUIkitCore"]),
.library(name: "TUIkitStyling", targets: ["TUIkitStyling"]),
// ── Mid-level ───────────────────────────────────────────────────────────────────────────────────
.library(name: "TUIkitView", targets: ["TUIkitView"]),
.library(name: "TUIkitImage", targets: ["TUIkitImage"]),
// ── High-level (aggregates all) ─────────────────────────────────────────────────────────────────
.library(name: "TUIkit", targets: ["TUIkit"]),
// ── App ─────────────────────────────────────────────────────────────────────────────────────────
.executable(name: "TUIkitExample", targets: ["TUIkitExample"]),
],
dependencies: [
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.4.3"),
],
targets: [
// ── Low-level (no deps) ─────────────────────────────────────────────────────────────────────────
.target(name: "CSTBImage", publicHeadersPath: "include"),
.target(name: "TUIkitCore"),
.target(name: "TUIkitStyling"),
// ── Mid-level ───────────────────────────────────────────────────────────────────────────────────
.target(name: "TUIkitView", dependencies: ["TUIkitCore"]),
.target(name: "TUIkitImage", dependencies: ["CSTBImage", "TUIkitStyling"]),
// ── High-level (aggregates all) ─────────────────────────────────────────────────────────────────
.target(
name: "TUIkit",
dependencies: ["TUIkitCore", "TUIkitStyling", "TUIkitImage", "TUIkitView"],
resources: [.copy("Localization/translations"), .copy("VERSION")]
),
// ── App & Tests ─────────────────────────────────────────────────────────────────────────────────
.executableTarget(
name: "TUIkitExample",
dependencies: ["TUIkit"],
resources: [.copy("Resources")]
),
.testTarget(name: "TUIkitTests", dependencies: ["TUIkit"]),
]
)