commit | b24c1c3dbde9ac93d034be033bbb951f803ef0e2 | [log] [tgz] |
---|---|---|
author | Luca Farsi <lucafarsi@google.com> | Thu Aug 01 14:47:10 2024 -0700 |
committer | Luca Farsi <lucafarsi@google.com> | Fri Aug 02 14:45:36 2024 -0700 |
tree | 7525fc4b859c81f96d2f0fc86c824da6bb9e18c9 | |
parent | 8afaf50fafbd2fa2ca79f5b58c75fedc038e61d1 [diff] |
Don't build targets if they're not used. Add functionality in build_test_suites.py to not build targets if their outputs are not used in the test configurations saved in the build context. If none of the tests reference the targets' outputs they will not be built at all. Note that the corresponding flags will need to be enabled for these optimizations to take place. Test: atest optimized_targets_test Bug: 348489774 Change-Id: I8f0ac90e75552ae80073f13229b026c7f23476a6
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.