OSDN Git Service

Loosen libhardware dependency
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 20 Sep 2017 20:16:11 +0000 (13:16 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 20 Sep 2017 20:56:49 +0000 (20:56 +0000)
In most places we don't really need the libhardware library, just the
headers.

Bug: 66187274
Test: compilation test
Change-Id: Ifa2f547165fcf8b34bc29ab80d2bd12ce02f4ae1

bta/Android.bp
btif/Android.bp
test/rootcanal/Android.bp
test/suite/Android.bp
vendor_libs/linux/interface/Android.bp

index a69e174..50736de 100644 (file)
@@ -118,8 +118,8 @@ cc_test {
     srcs: [
         "test/bta_hf_client_test.cc",
     ],
+    header_libs: ["libhardware_headers"],
     shared_libs: [
-        "libhardware",
         "liblog",
         "libprotobuf-cpp-lite",
     ],
index c5ff076..adc35be 100644 (file)
@@ -106,9 +106,9 @@ cc_test {
     defaults: ["fluoride_defaults"],
     include_dirs: btifCommonIncludes,
     srcs: ["test/btif_storage_test.cc"],
+    header_libs: ["libhardware_headers"],
     shared_libs: [
         "liblog",
-        "libhardware",
         "libcutils",
     ],
     static_libs: [
@@ -131,9 +131,9 @@ cc_test {
       "src/btif_profile_queue.cc",
       "test/btif_profile_queue_test.cc"
     ],
+    header_libs: ["libhardware_headers"],
     shared_libs: [
         "liblog",
-        "libhardware",
         "libcutils",
     ],
     static_libs: [
index 4f26312..faa0e7c 100644 (file)
@@ -22,12 +22,12 @@ cc_binary {
         "service.cc",
     ],
 
+    header_libs: ["libhardware_headers"],
     shared_libs: [
         "android.hardware.bluetooth@1.0",
         "libbase",
         "libchrome",
         "libcutils",
-        "libhardware",
         "libhwbinder",
         "libhidlbase",
         "libhidltransport",
@@ -64,12 +64,12 @@ cc_library_shared {
         "bluetooth_hci.cc",
     ],
 
+    header_libs: ["libhardware_headers"],
     shared_libs: [
         "android.hardware.bluetooth@1.0",
         "libbase",
         "libchrome",
         "libcutils",
-        "libhardware",
         "libhidlbase",
         "libhidltransport",
         "liblog",
index e4d3a2b..9fe2fa6 100644 (file)
@@ -11,6 +11,7 @@ cc_test {
         "gatt/gatt_test.cc",
         "gatt/gatt_unittest.cc",
     ],
+    header_libs: ["libhardware_headers"],
     shared_libs: [
         "liblog",
         "libhardware",
index 56baf9e..937e6ed 100644 (file)
@@ -24,11 +24,11 @@ cc_binary {
         "async_fd_watcher.cc",
         "service.cc"
     ],
+    header_libs: ["libhardware_headers"],
     shared_libs: [
         "android.hardware.bluetooth@1.0",
         "libbase",
         "libcutils",
-        "libhardware",
         "libhidlbase",
         "libhidltransport",
         "liblog",