summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Inseob Kim <inseob@google.com> 2021-08-31 20:28:50 +0900
committer Inseob Kim <inseob@google.com> 2021-09-07 21:26:56 +0900
commit01befc8f41d98a660f66ca00565f56db9f69137d (patch)
tree3509aa0e9549bb70234083f45652a443dd81e57b
parenta07b8ebcdadd4e21fc1b7be4df3528b6edd73a17 (diff)
Export rpc_unstable header
It'll be used by microdroid payload. Test: build Change-Id: I6eaccb55f291a7426ee047bbf6f1f2d211b5b94d
-rw-r--r--libs/binder/Android.bp6
-rw-r--r--libs/binder/include_rpc_unstable/binder_rpc_unstable.hpp (renamed from libs/binder/rust/src/binder_rpc_unstable.hpp)0
-rw-r--r--libs/binder/rust/Android.bp2
3 files changed, 7 insertions, 1 deletions
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index 572d948509..fccc9fa68a 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -329,6 +329,7 @@ cc_library {
"libbinder_ndk",
"libutils",
],
+ export_include_dirs: ["include_rpc_unstable"],
// enumerate stable entry points, for apex use
stubs: {
@@ -342,6 +343,11 @@ cc_library {
],
}
+filegroup {
+ name: "libbinder_rpc_unstable_header",
+ srcs: ["include_rpc_unstable/binder_rpc_unstable.hpp"],
+}
+
// libbinder historically contained additional interfaces that provided specific
// functionality in the platform but have nothing to do with binder itself. These
// are moved out of libbinder in order to avoid the overhead of their vtables.
diff --git a/libs/binder/rust/src/binder_rpc_unstable.hpp b/libs/binder/include_rpc_unstable/binder_rpc_unstable.hpp
index 7932d0f29c..7932d0f29c 100644
--- a/libs/binder/rust/src/binder_rpc_unstable.hpp
+++ b/libs/binder/include_rpc_unstable/binder_rpc_unstable.hpp
diff --git a/libs/binder/rust/Android.bp b/libs/binder/rust/Android.bp
index fe2da18b0d..d9d7cafa7c 100644
--- a/libs/binder/rust/Android.bp
+++ b/libs/binder/rust/Android.bp
@@ -109,7 +109,7 @@ rust_bindgen {
// TODO(b/184872979): remove once the Rust API is created.
rust_bindgen {
name: "libbinder_rpc_unstable_bindgen",
- wrapper_src: "src/binder_rpc_unstable.hpp",
+ wrapper_src: ":libbinder_rpc_unstable_header",
crate_name: "binder_rpc_unstable_bindgen",
source_stem: "bindings",
shared_libs: [