diff options
author | Tim Klein <tim.klein@arm.com> | 2019-05-14 00:08:58 +0100 |
---|---|---|
committer | Anders Pedersen <anders.pedersen@arm.corp-partner.google.com> | 2019-05-24 20:58:32 +0200 |
commit | 12677b0637861546b93c9d53a7c6f9dad9a7906a (patch) | |
tree | d6c2bf674287955a7f6a9c1c1e3f419e281bc863 /tools | |
parent | 480428b2808d7980c9bc06f2ddcd68553cc945a7 (diff) | |
download | libbcc-12677b0637861546b93c9d53a7c6f9dad9a7906a.tar.gz |
Provide a static libbcc and bcc binary rule for vendor use
Bug: 131709055
Test: manual
Change-Id: I8873e7de0b35c12ec2fce47f68947b3114a8dce0
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bcc/Android.bp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/bcc/Android.bp b/tools/bcc/Android.bp index d26126b..5a64c4d 100644 --- a/tools/bcc/Android.bp +++ b/tools/bcc/Android.bp @@ -19,6 +19,31 @@ cc_binary { host_supported: true, defaults: ["libbcc-defaults"], + shared_libs: [ + "libbcc", + "libbcinfo", + "libLLVM_android", + ], + + target: { + android: { + shared_libs: [ + "liblog", + "libvndksupport", + ], + }, + }, + + whole_static_libs: ["libbcc_binary"], +} + +// libbcc_binary is used to compile vendor modules - should not be removed +cc_library { + name: "libbcc_binary", + host_supported: true, + vendor_available: true, + defaults: ["libbcc-defaults"], + srcs: ["Main.cpp"], shared_libs: [ |