commit | ff123a0114aec4c2ab42d9cfb8716d88a69b037c | [log] [tgz] |
---|---|---|
author | Anivia Li <aniviali@google.com> | Fri Aug 15 10:04:36 2025 -0700 |
committer | Anivia Li <aniviali@google.com> | Fri Aug 15 10:04:54 2025 -0700 |
tree | 53c824c5567f9c7be57b771ee3890a5d67257c01 | |
parent | 7d2a723520bf7ca3672c8b1e8865dff35e0faa26 [diff] |
Add instructions for updating BUILD.gn. Declare that `BUILD.gn` file is generated from `BUILD.input.gn`. The README is updated to include a warning against editing `BUILD.gn` directly and provides steps to modify `BUILD.input.gn` and run `gen.py` to regenerate `BUILD.gn`. Fixed: 425997503 Change-Id: I6b04b74b370b6667367dfc098ecd02a8302e83a1
This repository contains GN build system support for Protocol Buffers. It's in its own repository because it needs to be shared by Fuchsia and Cobalt.
This repo should be checked out such that:
//build/secondary/third_party/protobuf
.//third_party/protobuf
.//.gn
contains secondary_source = "//build/secondary/"
See the GN documentation on secondary_source.
WARNING: DO NOT MODIFY THE BUILD.gn
FILE DIRECTLY!
The BUILD.gn
file in this directory is generated automatically. Any manual changes will be overwritten.
To make changes to the build configuration:
BUILD.input.gn
file to suit your needs, for example managing visibility, suppressing warnings, etc.//third_party/protobuf
to the target version.gen.py
script located in this directory to regenerate the BUILD.gn
file.BUILD.input.gn
and the newly generated BUILD.gn
file.Failing to modify BUILD.input.gn
will result in your changes being lost the next time the build file is regenerated.