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