Add java_boot_libs to art.module.sdk
Test: m art.module.sdk, unpack and check output
Bug: 171061220
Change-Id: I027b32c17f89787bccd7200b84ad4e21a4d7b9c3
diff --git a/build/sdk/Android.bp b/build/sdk/Android.bp
index 405904c..a0f71cf 100644
--- a/build/sdk/Android.bp
+++ b/build/sdk/Android.bp
@@ -75,6 +75,22 @@
},
android: {
+ // Create placeholder java_import prebuilts for the java boot libraries so that Soong
+ // can retrieve their dex implementation jars from the associated prebuilt_apex. All
+ // libraries listed in the exported_java_libs property of the ART apex (see
+ // packages/modules/ArtPrebuilt) must have a prebuilt provided by this sdk or one of
+ // the ART module_exports. Those java boot libraries which do not require a prebuilt for
+ // another reason, e.g. test, are listed here.
+ java_boot_libs: [
+ "apache-xml",
+ "bouncycastle",
+ "core-oj",
+ // The following are boot libs that are provided as java_libs in
+ // art-module-test-exports.
+ // "core-libart",
+ // "okhttp",
+ ],
+
java_header_libs: [
// Needed by any module that builds against any non-numeric
// sdk_version other than "none".