Export dexdump, oatdump, and veridex as prebuilt host tools.
dexdump is used with the check_boot_jars script when building boot
jars.
oatdump is useful for debugging. In particular having it as a prebuilt
makes it easier for external parties to find the right oatdump binary -
the format isn't stable so it's important to use the version
corresponding to the APEX package.
veridex is used for appcompat checks on system image apps.
Test: art/build/build-art-module.sh --skip-apex
packages/modules/ArtPrebuilt/update-art-module-prebuilts.py \
--local-dist out/dist --skip-apex
ldd prebuilts/module_sdk/art/current/host-exports/x86_64/bin/dexdump
ldd prebuilts/module_sdk/art/current/host-exports/x86_64/bin/oatdump
ldd prebuilts/module_sdk/art/current/host-exports/x86_64/bin/veridex
m SOONG_CONFIG_art_module_source_build=false droid
Bug: 172480615
Change-Id: Ice0583089777f40b9b12c1a602ebc56fc22f9335
diff --git a/build/sdk/Android.bp b/build/sdk/Android.bp
index 79abbc1..f6b37e7 100644
--- a/build/sdk/Android.bp
+++ b/build/sdk/Android.bp
@@ -180,10 +180,13 @@
"okhttp-norepackage",
],
native_binaries: [
- "hiddenapi",
"dex2oat",
"dex2oatd",
+ "dexdump",
+ "hiddenapi",
+ "oatdump",
"profman",
+ "veridex",
],
native_libs: [
"libartpalette", // libdexfile dependency
diff --git a/dexdump/Android.bp b/dexdump/Android.bp
index 3b651e8..87abfc1 100644
--- a/dexdump/Android.bp
+++ b/dexdump/Android.bp
@@ -47,6 +47,7 @@
// static_sdk_tools build.
host: {
enabled: true,
+ stl: "libc++_static",
static_libs: [
"libdexfile",
"libartbase",