blob: d2c65b282913d36114c838a5bf5b259071bf4a0d [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 Moreland6cf7d712017-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",
30 "libhwbinder",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070031 "libhidlbase",
32 "libhidltransport",
Myles Watson6a7d6222016-10-13 15:45:02 -070033 "liblog",
34 "libutils",
35 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080036 static_libs: [
37 "android.hardware.bluetooth-async",
Myles Watson274a3812017-02-23 06:29:08 -080038 "android.hardware.bluetooth-hci",
Myles Watsonbe6176d2017-02-21 13:27:01 -080039 ],
40}
41
42cc_library_static {
43 name: "android.hardware.bluetooth-async",
44 srcs: [
45 "async_fd_watcher.cc",
46 ],
47 export_include_dirs: ["."],
48 shared_libs: [
49 "libbase",
50 "libcutils",
51 "liblog",
52 "libutils",
53 ],
Myles Watson6a7d6222016-10-13 15:45:02 -070054}
55
Myles Watson274a3812017-02-23 06:29:08 -080056cc_library_static {
57 name: "android.hardware.bluetooth-hci",
58 srcs: [
59 "hci_packetizer.cc",
60 ],
61 export_include_dirs: ["."],
62 shared_libs: [
63 "libbase",
64 "libcutils",
65 "libhidlbase",
66 "liblog",
67 "libutils",
68 ],
69}
70
Myles Watsonb43a5b22017-01-31 12:20:44 -080071cc_test {
Myles Watson6a7d6222016-10-13 15:45:02 -070072 name: "bluetooth-vendor-interface-unit-tests",
73 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -080074 "test/async_fd_watcher_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -080075 ],
76 local_include_dirs: [
77 "test",
78 ],
79 shared_libs: [
80 "libbase",
81 "liblog",
82 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080083 static_libs: [
84 "android.hardware.bluetooth-async",
85 ],
Myles Watsonb43a5b22017-01-31 12:20:44 -080086}
87
88cc_test_host {
89 name: "bluetooth-address-unit-tests",
90 srcs: [
91 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070092 "test/bluetooth_address_test.cc",
93 "test/properties.cc",
94 ],
95 local_include_dirs: [
96 "test",
97 ],
98 shared_libs: [
99 "libbase",
100 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -0700101 ],
102}