commit | a2e5ab82c760e1010dc748397d972350f92d5e8e | [log] [tgz] |
---|---|---|
author | Mårten Kongstad <amhk@google.com> | Mon Jun 19 16:28:54 2023 +0200 |
committer | Mårten Kongstad <amhk@google.com> | Mon Jun 19 16:53:22 2023 +0200 |
tree | 48f4859a87958f6b809cd1025d333ff579edf03a | |
parent | a2e152a139cf1469ac43ee6d32c468d9286d1837 [diff] |
aconfig: make proto fields optional Change all required proto fields to optional. While the proto file is supposed to be a backwards compatible API, and fields are not supposed to be deprecated, this commit will allow for that option if needed. Implementation wise this change doesn't matter much: any parsed data needs additional verification outside what the protobuf crate's parser provides anyway, so adding checks to verify that all required fields, even though marked optional in the proto file, were found is a minor increase in code complexity. If in the future a proto field should no longer be used: - keep the field in the proto, still marked optional and clearly document that it is no longer in use - change protos.rs from checking struct.has_field() to explicitly dropping any value via struct.clear_field() Bug: 286337317 Test: atest aconfig.test Change-Id: Iad1ccfe50ecac286ff7a796aec909bec70b9520d
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.