commit | 70a53bd6cf801d2aeb60e168e9ddf650d9126e5b | [log] [tgz] |
---|---|---|
author | Luca Farsi <lucafarsi@google.com> | Wed Aug 07 17:29:16 2024 -0700 |
committer | Luca Farsi <lucafarsi@google.com> | Thu Aug 08 12:02:57 2024 -0700 |
tree | 37b9d1e51d2c94502998dda9be84f4e988e10d59 | |
parent | 70270692d05bbe686543e193a890ca567151f935 [diff] |
Refactor OptimizedBuildTarget and add general-tests optimization Refactor the OptimizedBuildTarget base class to more simply handle enabling/disabling build optimizations based on flags. Now all optimizers (aside from the no-op NullOptimizer will have their enabling built into the base class, and also necessitate their get_build_targets and package_outputs functions to be defined in order to not error out. Add the GeneralTestsOptimizer class as well, unimplemented for now. Test: atest build_test_suites_test Bug: 358215235 Change-Id: Ide22c64fc238d754db8d8e76484947401e54e680
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.