• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2016 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16cc_library_shared {
17    name: "android.hardware.bluetooth@1.0-impl",
18    defaults: ["hidl_defaults"],
19    vendor: true,
20    relative_install_path: "hw",
21    srcs: [
22        "bluetooth_hci.cc",
23        "bluetooth_address.cc",
24        "vendor_interface.cc",
25    ],
26    shared_libs: [
27        "android.hardware.bluetooth@1.0",
28        "libbase",
29        "libcutils",
30        "libhardware",
31        "libhidlbase",
32        "libhidltransport",
33        "liblog",
34        "libutils",
35    ],
36    static_libs: [
37        "android.hardware.bluetooth-async",
38        "android.hardware.bluetooth-hci",
39    ],
40}
41
42cc_library_static {
43    name: "android.hardware.bluetooth-async",
44    vendor: true,
45    defaults: ["hidl_defaults"],
46    srcs: [
47        "async_fd_watcher.cc",
48    ],
49    export_include_dirs: ["."],
50    shared_libs: [
51        "liblog",
52    ],
53}
54
55cc_library_static {
56    name: "android.hardware.bluetooth-hci",
57    vendor: true,
58    defaults: ["hidl_defaults"],
59    srcs: [
60        "hci_packetizer.cc",
61        "hci_protocol.cc",
62        "h4_protocol.cc",
63        "mct_protocol.cc",
64    ],
65    export_include_dirs: ["."],
66    shared_libs: [
67        "libbase",
68        "libhidlbase",
69        "liblog",
70        "libutils",
71    ],
72}
73
74cc_test {
75    name: "bluetooth-vendor-interface-unit-tests",
76    vendor: true,
77    defaults: ["hidl_defaults"],
78    srcs: [
79        "test/async_fd_watcher_unittest.cc",
80        "test/h4_protocol_unittest.cc",
81        "test/mct_protocol_unittest.cc",
82    ],
83    local_include_dirs: [
84        "test",
85    ],
86    shared_libs: [
87        "libbase",
88        "libhidlbase",
89        "liblog",
90        "libutils",
91    ],
92    static_libs: [
93        "android.hardware.bluetooth-async",
94        "android.hardware.bluetooth-hci",
95        "libgmock",
96    ],
97}
98
99cc_test_host {
100    name: "bluetooth-address-unit-tests",
101    defaults: ["hidl_defaults"],
102    srcs: [
103        "bluetooth_address.cc",
104        "test/bluetooth_address_test.cc",
105        "test/properties.cc",
106    ],
107    local_include_dirs: [
108        "test",
109    ],
110    shared_libs: [
111        "libbase",
112        "liblog",
113    ],
114}
115