Bluetooth: Export AsyncFdWatcher for reuse
Test: Bluetooth starts/stops
Change-Id: I1dcd8684fd150b5eb27c75e5d7803070009e0bf5
diff --git a/bluetooth/1.0/default/Android.bp b/bluetooth/1.0/default/Android.bp
index 4af079e..f82bc1f 100644
--- a/bluetooth/1.0/default/Android.bp
+++ b/bluetooth/1.0/default/Android.bp
@@ -17,7 +17,6 @@
name: "android.hardware.bluetooth@1.0-impl",
relative_install_path: "hw",
srcs: [
- "async_fd_watcher.cc",
"bluetooth_hci.cc",
"bluetooth_address.cc",
"vendor_interface.cc",
@@ -33,12 +32,28 @@
"liblog",
"libutils",
],
+ static_libs: [
+ "android.hardware.bluetooth-async",
+ ],
+}
+
+cc_library_static {
+ name: "android.hardware.bluetooth-async",
+ srcs: [
+ "async_fd_watcher.cc",
+ ],
+ export_include_dirs: ["."],
+ shared_libs: [
+ "libbase",
+ "libcutils",
+ "liblog",
+ "libutils",
+ ],
}
cc_test {
name: "bluetooth-vendor-interface-unit-tests",
srcs: [
- "async_fd_watcher.cc",
"test/async_fd_watcher_unittest.cc",
],
local_include_dirs: [
@@ -48,6 +63,9 @@
"libbase",
"liblog",
],
+ static_libs: [
+ "android.hardware.bluetooth-async",
+ ],
}
cc_test_host {