aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-12-21 14:52:31 +0000
committerAndrew Scull <ascull@google.com>2022-12-21 15:00:43 +0000
commit9c5c3d56ee9c2d77c8956b5378f9ab65fe6049bf (patch)
treebd4167803f3c9ccdde57ee9f62a2e6ffe96277e5
parent070bf94494f921b8c0993decfd0b042cda18b0ed (diff)
downloadcxx-9c5c3d56ee9c2d77c8956b5378f9ab65fe6049bf.tar.gz
Allow vendor code to use cxx bindings
Set `vendor_available` to true for `libcxx` and `libcxxbridge05` so that vendor code can use their own cxx generated code or build against libraries that use cxx generated code. Test: TH Change-Id: I8f8a5695e8bb70e813df8a48b7937c4f4711d0f2
-rw-r--r--Android.bp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 2504c397..04cfc9de 100644
--- a/Android.bp
+++ b/Android.bp
@@ -51,6 +51,7 @@ rust_library {
],
shared_libs: ["libc++"],
host_supported: true,
+ vendor_available: true,
apex_available: [
"//apex_available:platform",
"com.android.btservices",
@@ -61,11 +62,12 @@ rust_library {
}
cc_library_static {
- host_supported: true,
name: "libcxxbridge05",
defaults: ["rust_static_cc_lib_defaults"],
cflags: ["-DRUST_CXX_NO_EXCEPTIONS"],
srcs: ["src/cxx.cc"],
+ host_supported: true,
+ vendor_available: true,
apex_available: [
"//apex_available:platform",
"com.android.btservices",