初始提交:terminalX 可运行态(M0/M1/M1.5 已真机验证)
- M0: libghostty SSH 终端(渲染/输入/连接)+ 白屏修复(OutputGate) + 会话状态机/自动重连 - M1: tsnet 用户态组网 + SSH-over-tsnet(fd 桥),shell 级真机验证;R5(Go+gvisor+C+++Swift 同进程) retire - M1.5: tmux -CC 原生 tab(MVP) - 结构: packages/(TXCore·TXTransport), apps/TerminalX, vendor/(libghostty-spm/libssh2/mbedtls/tsnet-bridge), artifacts/ - 文档: CLAUDE.md + docs/HANDOFF.md(新会话入口) - 环境: 认证代理→依赖 vendor 本地化;Go 在 ~/.local/go;仅模拟器/未签名 - 待续: M2 mosh, tmux 多 pane, M4 安全(host key/SE) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
4
vendor/mbedtls/programs/test/cmake_package/.gitignore
vendored
Normal file
4
vendor/mbedtls/programs/test/cmake_package/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
build
|
||||
Makefile
|
||||
cmake_package
|
||||
mbedtls
|
||||
38
vendor/mbedtls/programs/test/cmake_package/CMakeLists.txt
vendored
Normal file
38
vendor/mbedtls/programs/test/cmake_package/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
cmake_minimum_required(VERSION 3.5.1)
|
||||
|
||||
#
|
||||
# Simulate configuring and building Mbed TLS as the user might do it. We'll
|
||||
# skip installing it, and use the build directory directly instead.
|
||||
#
|
||||
|
||||
set(MbedTLS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../..")
|
||||
set(MbedTLS_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/mbedtls")
|
||||
|
||||
execute_process(
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
"-H${MbedTLS_SOURCE_DIR}"
|
||||
"-B${MbedTLS_BINARY_DIR}"
|
||||
"-DENABLE_PROGRAMS=NO"
|
||||
"-DENABLE_TESTING=NO"
|
||||
# Turn on generated files explicitly in case this is a release
|
||||
"-DGEN_FILES=ON")
|
||||
|
||||
execute_process(
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
--build "${MbedTLS_BINARY_DIR}")
|
||||
|
||||
#
|
||||
# Locate the package.
|
||||
#
|
||||
|
||||
set(MbedTLS_DIR "${MbedTLS_BINARY_DIR}/cmake")
|
||||
find_package(MbedTLS REQUIRED)
|
||||
|
||||
#
|
||||
# At this point, the Mbed TLS targets should have been imported, and we can now
|
||||
# link to them from our own program.
|
||||
#
|
||||
|
||||
add_executable(cmake_package cmake_package.c)
|
||||
target_link_libraries(cmake_package
|
||||
MbedTLS::mbedcrypto MbedTLS::mbedtls MbedTLS::mbedx509)
|
||||
27
vendor/mbedtls/programs/test/cmake_package/cmake_package.c
vendored
Normal file
27
vendor/mbedtls/programs/test/cmake_package/cmake_package.c
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Simple program to test that Mbed TLS builds correctly as a CMake package.
|
||||
*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include "mbedtls/build_info.h"
|
||||
|
||||
#include "mbedtls/platform.h"
|
||||
|
||||
#include "mbedtls/version.h"
|
||||
|
||||
/* The main reason to build this is for testing the CMake build, so the program
|
||||
* doesn't need to do very much. It calls a single library function to ensure
|
||||
* linkage works, but that is all. */
|
||||
int main()
|
||||
{
|
||||
/* This version string is 18 bytes long, as advised by version.h. */
|
||||
char version[18];
|
||||
|
||||
mbedtls_version_get_string_full(version);
|
||||
|
||||
mbedtls_printf("Built against %s\n", version);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user