diff options
author | Andreas Gampe <agampe@google.com> | 2018-10-05 00:01:44 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-10-05 00:01:44 +0000 |
commit | 0c23dfee3bd3a5fd2cb15b9263623ee83b7d80c0 (patch) | |
tree | f37a5c3123e4615c2378f0830b197cf154ec5fdb | |
parent | 0aa188b3c8b1351a99b2c8cd46afac5c52f780c7 (diff) | |
parent | b017270216ed121ecb634af89534dc2ea7a49a51 (diff) | |
download | extras-0c23dfee3bd3a5fd2cb15b9263623ee83b7d80c0.tar.gz |
Merge "Simpleperf: Use defaults to pass static libs"
-rw-r--r-- | perfprofd/Android.bp | 1 | ||||
-rw-r--r-- | perfprofd/tests/Android.bp | 1 | ||||
-rw-r--r-- | simpleperf/Android.bp | 29 |
3 files changed, 18 insertions, 13 deletions
diff --git a/perfprofd/Android.bp b/perfprofd/Android.bp index 31f5806e..61da0f50 100644 --- a/perfprofd/Android.bp +++ b/perfprofd/Android.bp @@ -213,6 +213,7 @@ cc_binary { name: "perfprofd", defaults: [ "perfprofd_defaults", + "libsimpleperf_elf_read_static_reqs_defaults", ], srcs: [ diff --git a/perfprofd/tests/Android.bp b/perfprofd/tests/Android.bp index b562cf03..215f9fc3 100644 --- a/perfprofd/tests/Android.bp +++ b/perfprofd/tests/Android.bp @@ -19,6 +19,7 @@ cc_test { name: "perfprofd_test", defaults: [ "perfprofd_test_defaults", + "libsimpleperf_elf_read_static_reqs_defaults", ], test_suites: ["device-tests"], host_supported: true, diff --git a/simpleperf/Android.bp b/simpleperf/Android.bp index bf967457..dc98a269 100644 --- a/simpleperf/Android.bp +++ b/simpleperf/Android.bp @@ -41,10 +41,26 @@ cc_defaults { ], } +cc_defaults { + name: "libsimpleperf_elf_read_static_reqs_defaults", + static_libs: [ + "libLLVMObject", + "libLLVMBitReader", + "libLLVMMC", + "libLLVMMCParser", + "libLLVMCore", + "libLLVMSupport", + "liblzma", + "libz", + "libziparchive", + ], +} + cc_library_static { name: "libsimpleperf_elf_read", defaults: [ "simpleperf_defaults", + "libsimpleperf_elf_read_static_reqs_defaults", ], host_supported: true, @@ -60,19 +76,6 @@ cc_library_static { static_libs: [ "libbase", ], - // Use whole-static to avoid having to pull this in later. - whole_static_libs: [ - "libLLVMObject", - "libLLVMBitReader", - "libLLVMMC", - "libLLVMMCParser", - "libLLVMCore", - "libLLVMSupport", - "liblog", - "liblzma", - "libz", - "libziparchive", - ], target: { // Required for LLVM. |