commit | 3f2741215f0b34884cb486757f8280a21b875023 | [log] [tgz] |
---|---|---|
author | Jared Duke <jdduke@google.com> | Mon Aug 14 21:09:50 2023 +0000 |
committer | Jared Duke <jdduke@google.com> | Tue Aug 15 15:48:35 2023 +0000 |
tree | a088fd8f19c0e9fce18b0be11d1e1ec8a85ef2f2 | |
parent | 82d233a1bd63c695161a53b347872b1c4296ceb6 [diff] |
Add global rule for -keepattributes Exceptions R8 full mode requires an explicit keep rule for keeping attributes for a given target (class/method/member). As such, we can set the global rule for keeping these attributes with minimal cost while reducing the maintenance burden for adding incremental keep rules. For a typical Android build, this adds <20KB total to the image. Bug: 215530220 Test: m Change-Id: Iad3de32e27da0ca93b618d8a203ee65bae0bb5d1
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.