Agent Skills
› google/boringssl
› add-source-file
add-source-file
GitHub指导如何向 BoringSSL 构建系统添加新源文件。需更新 build.json 配置并重新生成构建文件,确保代码正确纳入编译流程。
Trigger Scenarios
需要向项目添加新的 C/C++ 或汇编源文件
修改了构建配置文件需要重新生成构建脚本
Install
npx skills add google/boringssl --skill add-source-file -g -y
SKILL.md
Frontmatter
{
"name": "add-source-file",
"description": "How to add a new source file to the BoringSSL build."
}
Adding a Source File to the Build
To add a new source file (C/C++, header, or assembly) to BoringSSL, you must update the build configuration and regenerate the build files.
Steps
-
Update
build.json:- Add the new file to the correct section (e.g.,
srcs,hdrs,internal_hdrs) under the appropriate target in build.json. - For the schema of
build.json, refer to the Go structs in util/pregenerate/build.go.
- Add the new file to the correct section (e.g.,
-
Update Pregenerated Files:
- After modifying
build.json, you must regenerate the build files. - Refer to gen/README.md or use the update_pregenerated_files skill to update the pre-generated files.
- After modifying
Version History
- 179af5a Current 2026-08-20 19:54


