Export rpc_unstable header am: 01befc8f41 am: 055321eec0 am: 1dc7c13578 am: 75d947deff am: 09dbd6219b
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1814676
Change-Id: I7dfb2b672f8cb0f730bb802c859ef55a9c739045
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index 674bd7e..7036d05 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -325,6 +325,7 @@
"libbinder_ndk",
"libutils",
],
+ export_include_dirs: ["include_rpc_unstable"],
// enumerate stable entry points, for apex use
stubs: {
@@ -338,6 +339,11 @@
],
}
+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
similarity index 100%
rename from libs/binder/rust/src/binder_rpc_unstable.hpp
rename to libs/binder/include_rpc_unstable/binder_rpc_unstable.hpp
diff --git a/libs/binder/rust/Android.bp b/libs/binder/rust/Android.bp
index fe2da18..d9d7caf 100644
--- a/libs/binder/rust/Android.bp
+++ b/libs/binder/rust/Android.bp
@@ -109,7 +109,7 @@
// 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: [