OSDN Git Service

export async_fd_watcher
authorJeongik Cha <jeongik@google.com>
Wed, 24 Feb 2021 13:29:18 +0000 (22:29 +0900)
committerJeongik Cha <jeongik@google.com>
Wed, 24 Feb 2021 13:29:18 +0000 (22:29 +0900)
extract async_fd_watcher into library to be shared with remote HAL
implementation for BT

Bug: 181112377
Test: check building successfully
Change-Id: I7eef789e37e70f94a50f9ee15f0f80e0bb2da82a

vendor_libs/linux/interface/Android.bp

index 3709ab7..85fde7d 100644 (file)
@@ -30,7 +30,6 @@ cc_binary {
         "hci_packetizer.cc",
         "h4_protocol.cc",
         "bluetooth_hci.cc",
-        "async_fd_watcher.cc",
         "service.cc",
     ],
     cflags: [
@@ -47,8 +46,29 @@ cc_binary {
         "liblog",
         "libutils",
     ],
+    static_libs: [
+        "async_fd_watcher",
+    ],
     conlyflags: [
         "-std=c99",
     ],
     init_rc: ["android.hardware.bluetooth@1.1-service.btlinux.rc"],
 }
+
+cc_library_static {
+    name: "async_fd_watcher",
+    proprietary: true,
+    srcs: [
+        "async_fd_watcher.cc",
+    ],
+    cflags: [
+        "-Wall",
+        "-Werror",
+    ],
+    shared_libs: [
+        "liblog",
+    ],
+    export_include_dirs: [
+        ".",
+    ],
+}
\ No newline at end of file