From bde8c848d8c2fe8f50cd9a811f9483cf956510be Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Wed, 1 May 2019 18:25:14 -0700 Subject: [PATCH] adbd: compile a static version. Test: mma Change-Id: I785de074f9b5cc63d1804420b734c4b07081a716 --- adb/Android.bp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/adb/Android.bp b/adb/Android.bp index eec133584..87e4adc82 100644 --- a/adb/Android.bp +++ b/adb/Android.bp @@ -508,6 +508,52 @@ cc_binary { ], } +cc_binary { + name: "static_adbd", + defaults: ["adbd_defaults", "host_adbd_supported"], + + recovery_available: false, + static_executable: true, + host_supported: false, + + srcs: [ + "daemon/main.cpp", + ], + + cflags: [ + "-D_GNU_SOURCE", + "-Wno-deprecated-declarations", + ], + + strip: { + keep_symbols: true, + }, + + static_libs: [ + "libadbd", + "libadbd_services", + "libasyncio", + "libavb_user", + "libbase", + "libbootloader_message", + "libcap", + "libcrypto", + "libcrypto_utils", + "libcutils", + "libdiagnose_usb", + "libext4_utils", + "libfec", + "libfec_rs", + "libfs_mgr", + "liblog", + "liblp", + "libmdnssd", + "libminijail", + "libselinux", + "libsquashfs_utils", + ], +} + cc_binary { name: "abb",