Repository navigation
Expand file tree
/
Copy pathProject.swift
More file actions
83 lines (82 loc) · 3.85 KB
/
Copy pathProject.swift
File metadata and controls
83 lines (82 loc) · 3.85 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import ProjectDescription
let project = Project(
name: "TenexLauncher",
packages: [
.remote(url: "https://github.com/onevcat/Kingfisher.git", requirement: .upToNextMajor(from: "8.1.0")),
],
targets: [
.target(
name: "TenexLauncher",
destinations: [.mac],
product: .app,
bundleId: "chat.tenex.launcher",
deploymentTargets: .macOS("14.0"),
infoPlist: .extendingDefault(with: [
"CFBundleDisplayName": "TENEX",
"LSUIElement": true,
"TenexRepoRoot": "$(SRCROOT)",
]),
sources: [
.glob("Sources/TenexLauncher/**/*.swift"),
// iOS app sources (exclude its @main App.swift — we provide our own)
.glob(
"deps/tui/ios-app/Sources/TenexMVP/**/*.swift",
excluding: [
"deps/tui/ios-app/Sources/TenexMVP/App.swift",
"deps/tui/ios-app/Sources/TenexMVP/Services/DictationManager.swift",
"deps/tui/ios-app/Sources/TenexMVP/Views/DictationOverlayView.swift",
// MainTabView uses Tab() API requiring macOS 15+; launcher provides its own
"deps/tui/ios-app/Sources/TenexMVP/Navigation/MainTabView.swift",
// AppRootSceneView depends on excluded AppSessionStore
"deps/tui/ios-app/Sources/TenexMVP/Navigation/AppRootSceneView.swift",
// AppSessionStore duplicates launcher's own login/session management
"deps/tui/ios-app/Sources/TenexMVP/AppSession/AppSessionStore.swift",
]
),
],
resources: [
"deps/tui/ios-app/Sources/TenexMVP/Resources/**",
"Resources/**",
],
dependencies: [
.package(product: "Kingfisher", type: .runtime),
],
settings: .settings(
base: [
"DEVELOPMENT_TEAM": "456SHKPP26",
"CODE_SIGN_STYLE": "Automatic",
// FFI header search paths
"HEADER_SEARCH_PATHS": [
"$(inherited)",
"$(SRCROOT)/deps/tui/ios-app/Sources/TenexMVP/TenexCoreFFI",
"$(SRCROOT)/Sources/OrchestratorFFI",
],
// Rust static libraries for macOS
"LIBRARY_SEARCH_PATHS": [
"$(inherited)",
"$(SRCROOT)/deps/tui/target/aarch64-apple-darwin/release",
"$(SRCROOT)/target/aarch64-apple-darwin/release",
],
"OTHER_LDFLAGS": [
"$(inherited)",
"$(SRCROOT)/deps/tui/target/aarch64-apple-darwin/release/libtenex_core.a",
"$(SRCROOT)/target/aarch64-apple-darwin/release/libtenex_orchestrator.a",
"-framework", "SystemConfiguration",
],
// Swift import paths for the modulemaps
"SWIFT_INCLUDE_PATHS": [
"$(inherited)",
"$(SRCROOT)/deps/tui/ios-app/Sources/TenexMVP/TenexCoreFFI",
"$(SRCROOT)/Sources/OrchestratorFFI",
"$(SRCROOT)/Sources/UIKitShim", // UIKit shim modulemap for macOS
],
"OTHER_SWIFT_FLAGS": [
"$(inherited)",
"-Xfrontend", "-disable-autolink-framework", "-Xfrontend", "UIUtilities",
"-Xfrontend", "-disable-autolink-framework", "-Xfrontend", "SwiftUICore",
],
]
)
),
]
)