commit | b27f2ce4364d23248c75e93f349a8596b20ee275 | [log] [tgz] |
---|---|---|
author | Mårten Kongstad <amhk@google.com> | Fri Jun 02 11:43:21 2023 +0200 |
committer | Mårten Kongstad <amhk@google.com> | Fri Jun 02 12:49:26 2023 +0200 |
tree | 0f44a74620f95a9be2837e317556d1ada6e6d767 | |
parent | cfc5f5e9fdf87ad281d383bc9b8eb32437ba5436 [diff] |
aconfig: give commands ownership of all arguments Pass the Cache argument to command::create_<lang>_lib functions by value instead of by reference, to align with other commands. The intended ownership flow is as follows: - main creates objects based on command line arguments - main hands commands ownership of the objects - command processes the objects - command gives main ownership of any generated output - main writes the output to file Rationale: commands.rs is a unit testable version of main, and to the rest of aconfig, acts as the top level entry point; main.rs exists only to parse command line arguments and perform I/O. Bug: 283910447 Test: atest aconfig.test Change-Id: I1e1dea7da8ecc2bb6e2f7ee4a6df64562c148959
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.