blob: e04c2f4c1b3be10b231a7a6154c2e73a7ab71abc [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",
Zach Johnson917efb12017-02-26 23:46:05 -080059 "hci_protocol.cc",
60 "h4_protocol.cc",
61 "mct_protocol.cc",
Myles Watson274a3812017-02-23 06:29:08 -080062 ],
63 export_include_dirs: ["."],
64 shared_libs: [
65 "libbase",
66 "libcutils",
67 "libhidlbase",
68 "liblog",
69 "libutils",
70 ],
71}
72
Myles Watsonb43a5b22017-01-31 12:20:44 -080073cc_test {
Myles Watson6a7d6222016-10-13 15:45:02 -070074 name: "bluetooth-vendor-interface-unit-tests",
75 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -080076 "test/async_fd_watcher_unittest.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080077 "test/h4_protocol_unittest.cc",
78 "test/mct_protocol_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -080079 ],
80 local_include_dirs: [
81 "test",
82 ],
83 shared_libs: [
84 "libbase",
Zach Johnson917efb12017-02-26 23:46:05 -080085 "libhidlbase",
Myles Watsonb43a5b22017-01-31 12:20:44 -080086 "liblog",
87 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080088 static_libs: [
89 "android.hardware.bluetooth-async",
Zach Johnson917efb12017-02-26 23:46:05 -080090 "android.hardware.bluetooth-hci",
91 "libgmock",
Myles Watsonbe6176d2017-02-21 13:27:01 -080092 ],
Myles Watsonb43a5b22017-01-31 12:20:44 -080093}
94
95cc_test_host {
96 name: "bluetooth-address-unit-tests",
97 srcs: [
98 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070099 "test/bluetooth_address_test.cc",
100 "test/properties.cc",
101 ],
102 local_include_dirs: [
103 "test",
104 ],
105 shared_libs: [
106 "libbase",
107 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -0700108 ],
109}