commit | fa23d2993b42f9b62cc44b1a428de469e009651f | [log] [tgz] |
---|---|---|
author | Mårten Kongstad <amhk@google.com> | Thu May 11 14:47:02 2023 +0200 |
committer | Mårten Kongstad <amhk@google.com> | Fri May 12 08:50:49 2023 +0200 |
tree | 43df05b39470e143261c130bb217b1cfb06a2ed3 | |
parent | 7b6aacb055d6e5134118ad2583b703e9a65aa65c [diff] |
aconfig: separate flag declarations and flag values Simplify how aconfig configurations work: remove the ability to set flag values based on build-id. The aconfig files now some in two flavours: - flag declaration files: introduce new flags; aconfig will assign the flags a hard-coded default value (disabled, read-write) - flag value files: assign flags new values `aconfig create-cache` expects flags to be declared exactly once, and for their values to be reassigned zero or more times. The flag value files are identical what used to be called override files. Also, remove the now obsolete build-id parameter: this was used to calculate default values before applying overrides, and is no longer needed. Also rename a few more structs and functions to be closer to the .proto names. This will make it easier to use the generated proto structs directly, and get rid of the hand-crafter wrappers. Bug: 279485059 Test: atest aconfig.test Change-Id: I7bf881338b0567f932099ce419cac457abbe8df8
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.