AGENT SKILL
add-source-file
How to add a new source file to the BoringSSL build.
- License 许可
- Apache-2.0
- 所属仓库
- google/boringssl
- 最近更新
- 2026-11-14
- Stars
- ★ 2.3k
- Forks
- 924
01 前言 Front Matter
- name
- add-source-file
- description
- How to add a new source file to the BoringSSL build.
03 SKILL.md 正文
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
04 同仓库更多 Skills
update-pregenerated-files
How to regenerate/update pre-generated files (e.g., perlasm, build files) in BoringSSL.
★ 2.3k
run-ssl-go-tests
How to run BoringSSL's ssl/test/runner suite (protocol-level BoGo tests)
★ 2.3k
build-and-test
How to build BoringSSL and run its tests.
★ 2.3k
add-object-nid-oid
How to add a new object with a NID and/or OID to BoringSSL.
★ 2.3k
add-error-code
How to add a new error code in BoringSSL.
★ 2.3k