---
name: google-add-source-file
description: "How to add a new source file to the BoringSSL build."
license: "Apache-2.0"
metadata:
  decimalai-skill-id: "f2c43e40-4267-44b8-a834-13e6cdb72101"
  decimalai-version-id: "4c8888ff-a35d-4d99-a0f6-96e55d1fd4ed"
  decimalai-version: "1"
  decimalai-body-sha256: "f6b8dd84a84bab0d97fd7aafb68a555343cd3203500ce3d1e8be67ce2ca7074b"
  decimalai-name: "google/add-source-file"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "devops"
  decimalai-source: "https://app.decimal.ai/s/google-add-source-file@1/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

1.  **Update `build.json`**:
    *   Add the new file to the correct section (e.g., `srcs`, `hdrs`, `internal_hdrs`) under the appropriate target in [build.json](../../../build.json).
    *   For the schema of `build.json`, refer to the Go structs in [util/pregenerate/build.go](../../../util/pregenerate/build.go).

2.  **Update Pregenerated Files**:
    *   After modifying `build.json`, you must regenerate the build files.
    *   Refer to [gen/README.md](../../../gen/README.md) or use the [update_pregenerated_files](../update_pregenerated_files/SKILL.md) skill to update the pre-generated files.
