Add contents property to art-bootclasspath-fragment
Adds coverage properties too so that the contents are consistent with
the configuration even when EMMA_INSTRUMENT_FRAMEWORK=true.
Bug: 177892522
Test: m nothing
m EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true nothing
Change-Id: I2060c99c510a36dfbfce57dfd72b336841ff1ff3
diff --git a/build/boot/Android.bp b/build/boot/Android.bp
index ca6ab24..42ed020 100644
--- a/build/boot/Android.bp
+++ b/build/boot/Android.bp
@@ -24,6 +24,21 @@
bootclasspath_fragment {
name: "art-bootclasspath-fragment",
image_name: "art",
+ // Must match the ART_APEX_JARS set in build/make/core/envsetup.mk
+ contents: [
+ "core-oj",
+ "core-libart",
+ "okhttp",
+ "bouncycastle",
+ "apache-xml",
+ ],
+ // Additional properties to append when coverage is enabled, i.e. when
+ // EMMA_INSTRUMENT_FRAMEWORK=true
+ coverage: {
+ contents: [
+ "jacocoagent",
+ ],
+ },
visibility: [
"//art/build/apex",
"//art/build/sdk",