Fix build by adding bt_types to bluetooth.h (1/2)
Allow bt_types to be included as a shared or static library.
Test: Compiles
Change-Id: I24bc3dafaddd83405bd0bfa37fd5df5b4238f253
diff --git a/types/Android.bp b/types/Android.bp
index cd7d96b..2f17fbb 100644
--- a/types/Android.bp
+++ b/types/Android.bp
@@ -1,5 +1,12 @@
// Bluetooth types
-cc_library_static {
+cc_library_headers {
+ name: "libbluetooth-types-header",
+ export_include_dirs: ["./"],
+ vendor_available: true,
+ host_supported: true,
+}
+
+cc_library {
name: "libbluetooth-types",
vendor_available: true,
defaults: ["fluoride_types_defaults"],
@@ -11,7 +18,8 @@
srcs: [
"raw_address.cc",
],
- export_include_dirs: ["./"],
+ header_libs: ["libbluetooth-types-header"],
+ export_header_lib_headers: ["libbluetooth-types-header"],
}
// ========================================================