commit | 4d2b4b047b4943eba6b66c2a64d4680cecf0a7e7 | [log] [tgz] |
---|---|---|
author | Mårten Kongstad <amhk@google.com> | Thu Apr 27 16:05:58 2023 +0200 |
committer | Mårten Kongstad <amhk@google.com> | Thu May 04 10:40:26 2023 +0200 |
tree | f12c3f3a69047fa2c7826897b448d51f3a33c36d | |
parent | bb520729e85343fe0f3ca31f48a404eea01fa23c [diff] |
aconfig: introduce cache Introduce the Cache struct to represent parsed and verified aconfig and override content. Most commands in aconfig will work of an existing cache file, eliminating the need to re-read the input every time. Restructure main.rs to use clap to create a proper command line interface with support for sub-commands. main.rs is responsible for parsing the command line, performing disk I/O and calling the correct subcommand implementation (in commands.rs). To simplify unit tests, subcommands never perform explicit I/O; instead they only work with Read and Write traits. Also add dependencies on clap, serde and serde_json. Bug: 279485059 Test: atest aconfig.test Change-Id: Ib6abf2eabd264009804f253874b6fba924fc391b
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.