Files
terminalX/packages/TXTransport/Package.swift
kid 32520f09e0 feat: 完成 M2 mosh(LAN + tsnet 端到端验证)
- mosh(blinksh/ios C++)+protobuf-lite 交叉编译为 MoshCore.xcframework
  (CommonCrypto 后端、含 arm64 模拟器 slice;绕 autotools 用 CMake 直编 + 手写 config.h)
- tsnet 桥新增 UDP relay(StartMoshRelay:loopback↔tsnet.Dial 逐包搬运)
- MoshSession(pipe↔FILE*/pthread/SIGWINCH)+ MoshConnectScanner(TXCore,+4 单测=39)
- SSHTerminalModel 编排:SSH 引导 mosh-server→解析 MOSH CONNECT→relay→mosh 接管
- LAN 直连 + mosh-over-tsnet 均端到端验证通过,R1(tsnet UDP 数据报语义) 证伪

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-24 16:16:15 +08:00

44 lines
1.6 KiB
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "TXTransport",
platforms: [
.macOS(.v14),
.iOS(.v17),
],
products: [
.library(name: "TXTransport", targets: ["TXTransport"]),
],
dependencies: [
.package(path: "../TXCore"),
],
targets: [
// libssh2 + mbedTLS vendor/build/build-cssh.shlibrary-only
.binaryTarget(name: "CSSHCore", path: "../../artifacts/CSSHCore.xcframework"),
// + modulemap `import CSSH` CSSHCore
.target(name: "CSSH", publicHeadersPath: "include"),
// mosh(C++) + protobuf-lite vendor/build/build-mosh.shlibrary-only
.binaryTarget(name: "MoshCore", path: "../../artifacts/MoshCore.xcframework"),
// + modulemap `import CMosh` mosh_main MoshCore
.target(name: "CMosh", publicHeadersPath: "include"),
.target(
name: "TXTransport",
dependencies: [
"CSSH",
"CSSHCore",
"CMosh",
"MoshCore",
.product(name: "TXCore", package: "TXCore"),
],
swiftSettings: [.swiftLanguageMode(.v6)],
// mosh C++ libc++ compressor.cc zlib libz
// CommonCrypto libSystem Apple
linkerSettings: [
.linkedLibrary("c++"),
.linkedLibrary("z"),
]
),
]
)