blob: 84a49cf0a78cd21b229de37528bfe05a508e9e33 [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
Bob Badourb224b362021-02-12 20:13:01 -080016package {
17 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "hardware_interfaces_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["hardware_interfaces_license"],
23}
24
Ayushi Khopkara37d3df2021-06-24 20:24:03 +053025cc_defaults {
26 name: "android.hardware.bluetooth@1.0-defaults",
Hongguang Chena12b18a2021-07-08 23:31:34 +000027 vendor: true,
Andre Eisenbach89ba5282016-10-13 15:45:02 -070028 relative_install_path: "hw",
29 srcs: [
Andre Eisenbach89ba5282016-10-13 15:45:02 -070030 "bluetooth_hci.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070031 "bluetooth_address.cc",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070032 "vendor_interface.cc",
33 ],
34 shared_libs: [
Myles Watson6a7d6222016-10-13 15:45:02 -070035 "android.hardware.bluetooth@1.0",
36 "libbase",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070037 "libcutils",
38 "libhardware",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070039 "libhidlbase",
Myles Watson6a7d6222016-10-13 15:45:02 -070040 "liblog",
41 "libutils",
42 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080043 static_libs: [
44 "android.hardware.bluetooth-async",
Myles Watson274a3812017-02-23 06:29:08 -080045 "android.hardware.bluetooth-hci",
Myles Watsonbe6176d2017-02-21 13:27:01 -080046 ],
47}
48
Ayushi Khopkara37d3df2021-06-24 20:24:03 +053049cc_library {
50 name: "android.hardware.bluetooth@1.0-impl",
51 defaults: [
52 "hidl_defaults",
53 "android.hardware.bluetooth@1.0-defaults",
54 ],
55}
56
57cc_library {
58 name: "android.hardware.bluetooth@1.0-impl-test",
59 defaults: [
60 "hidl_defaults",
61 "android.hardware.bluetooth@1.0-defaults",
62 ],
63 cflags: [
64 "-DBT_FUZZER",
65 ],
66}
67
Myles Watsonbe6176d2017-02-21 13:27:01 -080068cc_library_static {
69 name: "android.hardware.bluetooth-async",
Hongguang Chena12b18a2021-07-08 23:31:34 +000070 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080071 defaults: ["hidl_defaults"],
Myles Watsonbe6176d2017-02-21 13:27:01 -080072 srcs: [
73 "async_fd_watcher.cc",
74 ],
75 export_include_dirs: ["."],
76 shared_libs: [
Myles Watsonbe6176d2017-02-21 13:27:01 -080077 "liblog",
Myles Watsonbe6176d2017-02-21 13:27:01 -080078 ],
Myles Watson6a7d6222016-10-13 15:45:02 -070079}
80
Myles Watson274a3812017-02-23 06:29:08 -080081cc_library_static {
82 name: "android.hardware.bluetooth-hci",
Hongguang Chena12b18a2021-07-08 23:31:34 +000083 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080084 defaults: ["hidl_defaults"],
Myles Watson274a3812017-02-23 06:29:08 -080085 srcs: [
86 "hci_packetizer.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080087 "hci_protocol.cc",
88 "h4_protocol.cc",
89 "mct_protocol.cc",
Myles Watson274a3812017-02-23 06:29:08 -080090 ],
91 export_include_dirs: ["."],
92 shared_libs: [
93 "libbase",
Myles Watson274a3812017-02-23 06:29:08 -080094 "libhidlbase",
95 "liblog",
96 "libutils",
97 ],
98}
99
Myles Watsonb43a5b22017-01-31 12:20:44 -0800100cc_test {
Myles Watson6a7d6222016-10-13 15:45:02 -0700101 name: "bluetooth-vendor-interface-unit-tests",
Steven Moreland2cfae522017-04-13 14:19:19 -0700102 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -0800103 defaults: ["hidl_defaults"],
Myles Watson6a7d6222016-10-13 15:45:02 -0700104 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -0800105 "test/async_fd_watcher_unittest.cc",
Zach Johnson917efb12017-02-26 23:46:05 -0800106 "test/h4_protocol_unittest.cc",
107 "test/mct_protocol_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -0800108 ],
109 local_include_dirs: [
110 "test",
111 ],
112 shared_libs: [
113 "libbase",
Zach Johnson917efb12017-02-26 23:46:05 -0800114 "libhidlbase",
Myles Watsonb43a5b22017-01-31 12:20:44 -0800115 "liblog",
Philip Cuadra8b3f3152017-04-20 16:02:48 -0700116 "libutils",
Myles Watsonb43a5b22017-01-31 12:20:44 -0800117 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -0800118 static_libs: [
119 "android.hardware.bluetooth-async",
Zach Johnson917efb12017-02-26 23:46:05 -0800120 "android.hardware.bluetooth-hci",
121 "libgmock",
Myles Watsonbe6176d2017-02-21 13:27:01 -0800122 ],
Keun Soo YIM68ae05d2018-11-27 14:04:42 -0800123 test_suites: ["general-tests"],
Myles Watsonb43a5b22017-01-31 12:20:44 -0800124}
125
126cc_test_host {
127 name: "bluetooth-address-unit-tests",
Steven Moreland691a4552017-03-08 15:58:46 -0800128 defaults: ["hidl_defaults"],
Myles Watsonb43a5b22017-01-31 12:20:44 -0800129 srcs: [
130 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -0700131 "test/bluetooth_address_test.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -0700132 ],
133 local_include_dirs: [
134 "test",
135 ],
136 shared_libs: [
137 "libbase",
Elliott Hughes69a08532020-05-20 08:22:46 -0700138 "libcutils",
Myles Watson6a7d6222016-10-13 15:45:02 -0700139 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -0700140 ],
141}
Steven Moreland90e3a502017-11-02 14:16:29 -0700142
143cc_binary {
144 name: "android.hardware.bluetooth@1.0-service",
Chih-Hung Hsieh3f2ea622017-11-20 10:49:11 -0800145 defaults: ["hidl_defaults"],
Steven Moreland90e3a502017-11-02 14:16:29 -0700146 relative_install_path: "hw",
147 vendor: true,
148 init_rc: ["android.hardware.bluetooth@1.0-service.rc"],
149 srcs: ["service.cpp"],
150
151 shared_libs: [
152 "liblog",
153 "libcutils",
154 "libdl",
155 "libbase",
156 "libutils",
157 "libhardware",
158 "libhidlbase",
Steven Moreland90e3a502017-11-02 14:16:29 -0700159 "android.hardware.bluetooth@1.0",
160 ],
161}