commit | 6d11991f1deaa909695797561db13f879cbc2754 | [log] [tgz] |
---|---|---|
author | Ludvig Hansson <ludvig@google.com> | Thu Jan 20 17:18:20 2022 +0100 |
committer | Sijie Chen <sijiec@google.com> | Fri Mar 17 23:55:29 2023 +0000 |
tree | 2f45ef5dcbd73c76463c8291f2ec5a964bbc1a15 | |
parent | 7a40e97d74d821aeeb45ce94bb9083e9c693e781 [diff] |
Clean additional Robolectric variable Add LOCAL_INSTRUMENT_SRCJARS to list of variables to reset when calling CLEAR_VARS from a makefile. This fixes an issue when generating JaCoCo coverage reports for Robolectric tests. The value from another module would bleed into the current one causing the wrong source directory to be used during report creation, which in turn resulted in an empty report. This would only happen for modules still using 'Android.mk'; when using Android.bp files the value for LOCAL_INSTRUMENT_SRCJARS is always set from 'robolectric.go'. Bug: 214588476 Test: m clockwork-frameworks-robotests-jacoco Change-Id: I7b527c82bdbe4db06acd1a1fa1a2443e64ed703d (cherry picked from commit cc799bdf9161dc3c0f6eb437ed064f9712bbfd6b)
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.