blob: 2ae262c2738ced7ce8a9a0b48ca0e90fb5f12fdb [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",
18 relative_install_path: "hw",
19 srcs: [
Andre Eisenbach89ba5282016-10-13 15:45:02 -070020 "bluetooth_hci.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070021 "bluetooth_address.cc",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070022 "vendor_interface.cc",
23 ],
24 shared_libs: [
Myles Watson6a7d6222016-10-13 15:45:02 -070025 "android.hardware.bluetooth@1.0",
26 "libbase",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070027 "libcutils",
28 "libhardware",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070029 "libhidlbase",
30 "libhidltransport",
Myles Watson6a7d6222016-10-13 15:45:02 -070031 "liblog",
32 "libutils",
33 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080034 static_libs: [
35 "android.hardware.bluetooth-async",
Myles Watson274a3812017-02-23 06:29:08 -080036 "android.hardware.bluetooth-hci",
Myles Watsonbe6176d2017-02-21 13:27:01 -080037 ],
38}
39
40cc_library_static {
41 name: "android.hardware.bluetooth-async",
42 srcs: [
43 "async_fd_watcher.cc",
44 ],
45 export_include_dirs: ["."],
46 shared_libs: [
47 "libbase",
48 "libcutils",
49 "liblog",
50 "libutils",
51 ],
Myles Watson6a7d6222016-10-13 15:45:02 -070052}
53
Myles Watson274a3812017-02-23 06:29:08 -080054cc_library_static {
55 name: "android.hardware.bluetooth-hci",
56 srcs: [
57 "hci_packetizer.cc",
58 ],
59 export_include_dirs: ["."],
60 shared_libs: [
61 "libbase",
62 "libcutils",
63 "libhidlbase",
64 "liblog",
65 "libutils",
66 ],
67}
68
Myles Watsonb43a5b22017-01-31 12:20:44 -080069cc_test {
Myles Watson6a7d6222016-10-13 15:45:02 -070070 name: "bluetooth-vendor-interface-unit-tests",
71 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -080072 "test/async_fd_watcher_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -080073 ],
74 local_include_dirs: [
75 "test",
76 ],
77 shared_libs: [
78 "libbase",
79 "liblog",
80 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080081 static_libs: [
82 "android.hardware.bluetooth-async",
83 ],
Myles Watsonb43a5b22017-01-31 12:20:44 -080084}
85
86cc_test_host {
87 name: "bluetooth-address-unit-tests",
88 srcs: [
89 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070090 "test/bluetooth_address_test.cc",
91 "test/properties.cc",
92 ],
93 local_include_dirs: [
94 "test",
95 ],
96 shared_libs: [
97 "libbase",
98 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070099 ],
100}