summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2020-08-18 16:18:56 +0800
committerYi Kong <yikong@google.com>2020-08-19 01:39:25 +0800
commit20d691f817268eed53176b46a8b757fae3607754 (patch)
treebce4e067912b3f4bdcf847a6dda006c6c556d296
parent5e346d444d2311bf0e676a1a1a492f7a96b167d2 (diff)
downloadextras-20d691f817268eed53176b46a8b757fae3607754.tar.gz
profcollectd: Workaround rust build system does not automatically install dependent so files
The indirectly dependent shared libraries are not automatically installed by the build system. Explicitly declare shared dependencies from the rust_binary rule to workaround the issue. Test: check system/lib64/libprofcollectd.so Bug: 165161105 Bug: 163175424 Bug: 79161490 Change-Id: I3c235aae1ae22a8775856e3dd00100a8cfd2263e
-rw-r--r--profcollectd/Android.bp10
1 files changed, 10 insertions, 0 deletions
diff --git a/profcollectd/Android.bp b/profcollectd/Android.bp
index 16ffb54a..6f0a1dea 100644
--- a/profcollectd/Android.bp
+++ b/profcollectd/Android.bp
@@ -20,6 +20,11 @@ rust_binary {
srcs: ["profcollectctl.rs"],
rustlibs: ["libprofcollectd_rust"],
+
+ // Explicitly declare dependency on libprofcollectd since otherwise soong won't automatically
+ // include the library on system partition.
+ // http://b/165161105
+ shared_libs: ["libprofcollectd"],
}
rust_binary {
@@ -30,6 +35,11 @@ rust_binary {
rustlibs: ["libprofcollectd_rust"],
init_rc: ["profcollectd.rc"],
+
+ // Explicitly declare dependency on libprofcollectd since otherwise soong won't automatically
+ // include the library on system partition.
+ // http://b/165161105
+ shared_libs: ["libprofcollectd"],
}
filegroup {