一键导入
build
Use when: configuring or building atsf4g-co with CMake, resolving build errors, or adjusting Windows/MSVC/vcpkg and Unix/Linux/macOS build options.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when: configuring or building atsf4g-co with CMake, resolving build errors, or adjusting Windows/MSVC/vcpkg and Unix/Linux/macOS build options.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when: generating deployment configs, rendering per-instance scripts, editing Helm values, analyzing install/**/*.tpl Go templates, yaml.tpl/sh.tpl/bat.tpl files, or using atdtool deployment workflows.
Use when: auditing or optimizing AI agent prompts, bridge files, skills, SKILL.md metadata, and cross-tool compatibility.
Use when: writing or reviewing C++/CMake/Markdown code, applying project engineering conventions, checking cpplint, clang-format, cmake-format, cmake-lint, markdownlint, clang-tidy, protobuf, RPC, generated-code, service/component CMake rules.
Use when: working on atgateway v2 protocol code, ECDH handshakes, encryption, compression, reconnection, FlatBuffers schema, or gateway unit tests.
Use when: editing enable_expression config fields, environment-variable expansion syntax, YAML deployment values, or atapp config templates.
Use when: running or writing unit tests, discovering/filtering private test-framework cases, or fixing Windows DLL/PATH test startup issues.
| name | build |
| description | Use when: configuring or building atsf4g-co with CMake, resolving build errors, or adjusting Windows/MSVC/vcpkg and Unix/Linux/macOS build options. |
This project uses CMake (>= 3.24) and requires a C++17 toolchain.
mkdir build_jobs_msvc
cd build_jobs_msvc
# Configure with vcpkg
cmake [SOURCE_PATH] -G "Visual Studio 17 2022" -A x64 \
"-DCMAKE_TOOLCHAIN_FILE=<VCPKG_INSTALL_DIR>/scripts/buildsystems/vcpkg.cmake" \
-DPROJECT_ENABLE_UNITTEST=YES \
-DPROJECT_ENABLE_SAMPLE=YES \
-DPROJECT_ENABLE_TOOLS=YES
# Build
cmake --build . --config Debug
cmake --build . --config RelWithDebInfo # For production
Notes:
<BUILD_DIR>/publish/.# Auto setup with cmake_dev.sh
bash cmake_dev.sh [options] ...
# Example: Enable OpenSSL, unit tests, samples
bash ./cmake_dev.sh -lus -- -DCRYPTO_USE_OPENSSL=YES
# Build
cd build_jobs_*
cmake --build . -- -j4
| Option | Default | Description |
|---|---|---|
PROJECT_ENABLE_UNITTEST | NO | Enable unit tests |
PROJECT_ENABLE_SAMPLE | NO | Enable sample applications |
PROJECT_ENABLE_TOOLS | NO | Enable tools |
BUILD_SHARED_LIBS | NO | Build shared libraries |
CRYPTO_USE_OPENSSL | NO | Use OpenSSL for crypto |
CRYPTO_USE_MBEDTLS | NO | Use MbedTLS for crypto |
If you are unsure what was configured, inspect CMakeCache.txt in the build folder.