blob: fb20195c0eaaf5e340f9891a9d4968f238b76c9d [file] [log] [blame]
Andre Eisenbach89ba5282016-10-13 15:45:02 -07001//
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",
Steven Moreland6ca34f12017-02-27 08:58:08 -080018 proprietary: true,
Andre Eisenbach89ba5282016-10-13 15:45:02 -070019 relative_install_path: "hw",
20 srcs: [
Andre Eisenbach89ba5282016-10-13 15:45:02 -070021 "bluetooth_hci.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070022 "bluetooth_address.cc",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070023 "vendor_interface.cc",
24 ],
25 shared_libs: [
Myles Watson6a7d6222016-10-13 15:45:02 -070026 "android.hardware.bluetooth@1.0",
27 "libbase",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070028 "libcutils",
29 "libhardware",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070030 "libhidlbase",
31 "libhidltransport",
Myles Watson6a7d6222016-10-13 15:45:02 -070032 "liblog",
33 "libutils",
34 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080035 static_libs: [
36 "android.hardware.bluetooth-async",
Myles Watson274a3812017-02-23 06:29:08 -080037 "android.hardware.bluetooth-hci",
Myles Watsonbe6176d2017-02-21 13:27:01 -080038 ],
39}
40
41cc_library_static {
42 name: "android.hardware.bluetooth-async",
43 srcs: [
44 "async_fd_watcher.cc",
45 ],
46 export_include_dirs: ["."],
47 shared_libs: [
48 "libbase",
49 "libcutils",
50 "liblog",
51 "libutils",
52 ],
Myles Watson6a7d6222016-10-13 15:45:02 -070053}
54
Myles Watson274a3812017-02-23 06:29:08 -080055cc_library_static {
56 name: "android.hardware.bluetooth-hci",
57 srcs: [
58 "hci_packetizer.cc",
59 ],
60 export_include_dirs: ["."],
61 shared_libs: [
62 "libbase",
63 "libcutils",
64 "libhidlbase",
65 "liblog",
66 "libutils",
67 ],
68}
69
Myles Watsonb43a5b22017-01-31 12:20:44 -080070cc_test {
Myles Watson6a7d6222016-10-13 15:45:02 -070071 name: "bluetooth-vendor-interface-unit-tests",
72 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -080073 "test/async_fd_watcher_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -080074 ],
75 local_include_dirs: [
76 "test",
77 ],
78 shared_libs: [
79 "libbase",
80 "liblog",
81 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080082 static_libs: [
83 "android.hardware.bluetooth-async",
84 ],
Myles Watsonb43a5b22017-01-31 12:20:44 -080085}
86
87cc_test_host {
88 name: "bluetooth-address-unit-tests",
89 srcs: [
90 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070091 "test/bluetooth_address_test.cc",
92 "test/properties.cc",
93 ],
94 local_include_dirs: [
95 "test",
96 ],
97 shared_libs: [
98 "libbase",
99 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -0700100 ],
101}