commit | 7d0c90b51fb21b2815f244958b4b26c320335f51 | [log] [tgz] |
---|---|---|
author | Jared Duke <jdduke@google.com> | Mon May 09 18:09:01 2022 -0700 |
committer | Jared Duke <jdduke@google.com> | Wed May 11 09:47:12 2022 -0700 |
tree | ad6102299018df83d2907dd8a71201fae3e45ba4 | |
parent | 516162764478bc530b58d2d5be27740c9c40b811 [diff] |
Add keep rules for @KeepForWeakReference annotation Ensure annotated fields are kept when treeshaking-related optimizations are enabled. Note that this still allows field removal if tree shaking reveals no references, but will avoid removal if there are references that might impact downstream usage, e.g., weak references. Bug: 227455445 Test: atest InternalAnnotationsTest Change-Id: I59c6277c43b14c5de8154fa1eefad01f0702e413
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.