-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
42 lines (41 loc) · 1.64 KB
/
Copy pathPackage.swift
File metadata and controls
42 lines (41 loc) · 1.64 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "TeleprompterStudio",
platforms: [
.iOS(.v17),
.macOS(.v14),
],
products: [
// An xtool project should contain exactly one library product,
// representing the main app.
.library(
name: "TeleprompterStudio",
targets: ["TeleprompterStudio"]
),
],
targets: [
.target(
name: "TeleprompterStudio",
resources: [
.copy("TeleprompterEngine/Resources/prompter.html"),
.copy("TeleprompterEngine/Resources/prompter.css"),
.copy("TeleprompterEngine/Resources/prompter.js"),
.copy("LANServer/WebResources/editor.html"),
.copy("LANServer/WebResources/editor.css"),
.copy("LANServer/WebResources/editor.js"),
// Shared once here (not duplicated per-consumer) because SwiftPM requires
// resource basenames to be unique within a target, even across subdirectories.
.copy("SharedWebResources/marked.min.js"),
.copy("SharedWebResources/katex"),
],
// Swift 6 tools/syntax, but Swift 5 language mode: relaxed (non-strict) actor
// isolation checking, matching how most shipping iOS apps build today. See
// BUILD_NOTES.md "Concurrency" for the handful of spots that were written with
// strict-mode discipline anyway (explicit main-actor hops via Task/DispatchQueue).
swiftSettings: [
.swiftLanguageMode(.v5)
]
),
]
)