Add Source File

How to add a new source file to the BoringSSL build.

Google Updated 24.3k repo stars

File contents

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.
    • For the schema of build.json, refer to the Go structs in util/pregenerate/build.go.
  2. Update Pregenerated Files:

google/boringssl commit 63678f8863

Frequently asked questions

npx get-skill add google/add-source-file