aboutsummaryrefslogtreecommitdiff
path: root/build/Android.bp
diff options
context:
space:
mode:
authorZach Johnson <zachoverflow@google.com>2020-12-21 18:14:30 -0800
committerZach Johnson <zachoverflow@google.com>2021-01-13 15:13:56 -0800
commit85ad6640287b0465d6cff0e9836e2f4aec14b1e0 (patch)
tree98f1235600165f21e548e587e936c23e800544e2 /build/Android.bp
parentb990c4d3d4f52fb913044472119fc8d83ee46d85 (diff)
downloadbt-85ad6640287b0465d6cff0e9836e2f4aec14b1e0.tar.gz
rusty-gd: back message loop thread with rust, if rust enabled
the rust code runs in a single threaded environment. since the main thread is now implicitly running in this environment too, this means we no longer need to transfer contexts in the shim Bug: 171749953 Tag: #gd-refactor Test: gd/cert/run Change-Id: I05ec50c525184c29627e1eaff2b62bac0b879416
Diffstat (limited to 'build/Android.bp')
-rw-r--r--build/Android.bp12
1 files changed, 11 insertions, 1 deletions
diff --git a/build/Android.bp b/build/Android.bp
index c16c20cf1..072ba109b 100644
--- a/build/Android.bp
+++ b/build/Android.bp
@@ -70,10 +70,20 @@ fluoride_defaults {
},
},
defaults: ["fluoride_types_defaults_fuzzable"],
- header_libs: ["libbluetooth_headers"],
+ header_libs: ["libbluetooth_headers", "libbt_callbacks_cxx_headers"],
+ generated_headers: [
+ "libbt_hci_bridge_header",
+ "libbt_message_loop_thread_bridge_header",
+ "cxx-bridge-header"
+ ],
+ include_dirs: ["system/bt/gd/rust/shim"],
static_libs: [
"libbluetooth-types",
"libbt-platform-protos-lite",
+ "libbluetooth_rust_interop",
+ "liblog",
+ "libcutils",
+ "libbt_shim_ffi",
],
cpp_std: "c++17",
sanitize: {