• 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        "liblog",
33        "libutils",
34    ],
35    static_libs: [
36        "android.hardware.bluetooth-async",
37        "android.hardware.bluetooth-hci",
38    ],
39}
40
41cc_library_static {
42    name: "android.hardware.bluetooth-async",
43    vendor: true,
44    defaults: ["hidl_defaults"],
45    srcs: [
46        "async_fd_watcher.cc",
47    ],
48    export_include_dirs: ["."],
49    shared_libs: [
50        "liblog",
51    ],
52}
53
54cc_library_static {
55    name: "android.hardware.bluetooth-hci",
56    vendor: true,
57    defaults: ["hidl_defaults"],
58    srcs: [
59        "hci_packetizer.cc",
60        "hci_protocol.cc",
61        "h4_protocol.cc",
62        "mct_protocol.cc",
63    ],
64    export_include_dirs: ["."],
65    shared_libs: [
66        "libbase",
67        "libhidlbase",
68        "liblog",
69        "libutils",
70    ],
71}
72
73cc_test {
74    name: "bluetooth-vendor-interface-unit-tests",
75    vendor: true,
76    defaults: ["hidl_defaults"],
77    srcs: [
78        "test/async_fd_watcher_unittest.cc",
79        "test/h4_protocol_unittest.cc",
80        "test/mct_protocol_unittest.cc",
81    ],
82    local_include_dirs: [
83        "test",
84    ],
85    shared_libs: [
86        "libbase",
87        "libhidlbase",
88        "liblog",
89        "libutils",
90    ],
91    static_libs: [
92        "android.hardware.bluetooth-async",
93        "android.hardware.bluetooth-hci",
94        "libgmock",
95    ],
96    test_suites: ["general-tests"],
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
116cc_binary {
117    name: "android.hardware.bluetooth@1.0-service",
118    defaults: ["hidl_defaults"],
119    relative_install_path: "hw",
120    vendor: true,
121    init_rc: ["android.hardware.bluetooth@1.0-service.rc"],
122    srcs: ["service.cpp"],
123
124    shared_libs: [
125        "liblog",
126        "libcutils",
127        "libdl",
128        "libbase",
129        "libutils",
130        "libhardware",
131        "libhidlbase",
132        "android.hardware.bluetooth@1.0",
133    ],
134}
135