blob: ee368fd6ebf3ba4c7e0e9fe2a4ea23edc544a761 [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 Khopkar0be58912021-06-01 10:34:02 +053025cc_library {
Andre Eisenbach89ba5282016-10-13 15:45:02 -070026 name: "android.hardware.bluetooth@1.0-impl",
Steven Moreland691a4552017-03-08 15:58:46 -080027 defaults: ["hidl_defaults"],
Hongguang Chena12b18a2021-07-08 23:31:34 +000028 vendor: true,
Andre Eisenbach89ba5282016-10-13 15:45:02 -070029 relative_install_path: "hw",
30 srcs: [
Andre Eisenbach89ba5282016-10-13 15:45:02 -070031 "bluetooth_hci.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070032 "bluetooth_address.cc",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070033 "vendor_interface.cc",
34 ],
35 shared_libs: [
Myles Watson6a7d6222016-10-13 15:45:02 -070036 "android.hardware.bluetooth@1.0",
37 "libbase",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070038 "libcutils",
39 "libhardware",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070040 "libhidlbase",
Myles Watson6a7d6222016-10-13 15:45:02 -070041 "liblog",
42 "libutils",
43 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080044 static_libs: [
45 "android.hardware.bluetooth-async",
Myles Watson274a3812017-02-23 06:29:08 -080046 "android.hardware.bluetooth-hci",
Myles Watsonbe6176d2017-02-21 13:27:01 -080047 ],
48}
49
50cc_library_static {
51 name: "android.hardware.bluetooth-async",
Hongguang Chena12b18a2021-07-08 23:31:34 +000052 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080053 defaults: ["hidl_defaults"],
Myles Watsonbe6176d2017-02-21 13:27:01 -080054 srcs: [
55 "async_fd_watcher.cc",
56 ],
57 export_include_dirs: ["."],
58 shared_libs: [
Myles Watsonbe6176d2017-02-21 13:27:01 -080059 "liblog",
Myles Watsonbe6176d2017-02-21 13:27:01 -080060 ],
Myles Watson6a7d6222016-10-13 15:45:02 -070061}
62
Myles Watson274a3812017-02-23 06:29:08 -080063cc_library_static {
64 name: "android.hardware.bluetooth-hci",
Hongguang Chena12b18a2021-07-08 23:31:34 +000065 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080066 defaults: ["hidl_defaults"],
Myles Watson274a3812017-02-23 06:29:08 -080067 srcs: [
68 "hci_packetizer.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080069 "hci_protocol.cc",
70 "h4_protocol.cc",
71 "mct_protocol.cc",
Myles Watson274a3812017-02-23 06:29:08 -080072 ],
73 export_include_dirs: ["."],
74 shared_libs: [
75 "libbase",
Myles Watson274a3812017-02-23 06:29:08 -080076 "libhidlbase",
77 "liblog",
78 "libutils",
79 ],
80}
81
Myles Watsonb43a5b22017-01-31 12:20:44 -080082cc_test {
Myles Watson6a7d6222016-10-13 15:45:02 -070083 name: "bluetooth-vendor-interface-unit-tests",
Steven Moreland2cfae522017-04-13 14:19:19 -070084 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080085 defaults: ["hidl_defaults"],
Myles Watson6a7d6222016-10-13 15:45:02 -070086 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -080087 "test/async_fd_watcher_unittest.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080088 "test/h4_protocol_unittest.cc",
89 "test/mct_protocol_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -080090 ],
91 local_include_dirs: [
92 "test",
93 ],
94 shared_libs: [
95 "libbase",
Zach Johnson917efb12017-02-26 23:46:05 -080096 "libhidlbase",
Myles Watsonb43a5b22017-01-31 12:20:44 -080097 "liblog",
Philip Cuadra8b3f3152017-04-20 16:02:48 -070098 "libutils",
Myles Watsonb43a5b22017-01-31 12:20:44 -080099 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -0800100 static_libs: [
101 "android.hardware.bluetooth-async",
Zach Johnson917efb12017-02-26 23:46:05 -0800102 "android.hardware.bluetooth-hci",
103 "libgmock",
Myles Watsonbe6176d2017-02-21 13:27:01 -0800104 ],
Keun Soo YIM68ae05d2018-11-27 14:04:42 -0800105 test_suites: ["general-tests"],
Myles Watsonb43a5b22017-01-31 12:20:44 -0800106}
107
108cc_test_host {
109 name: "bluetooth-address-unit-tests",
Steven Moreland691a4552017-03-08 15:58:46 -0800110 defaults: ["hidl_defaults"],
Myles Watsonb43a5b22017-01-31 12:20:44 -0800111 srcs: [
112 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -0700113 "test/bluetooth_address_test.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -0700114 ],
115 local_include_dirs: [
116 "test",
117 ],
118 shared_libs: [
119 "libbase",
Elliott Hughes69a08532020-05-20 08:22:46 -0700120 "libcutils",
Myles Watson6a7d6222016-10-13 15:45:02 -0700121 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -0700122 ],
123}
Steven Moreland90e3a502017-11-02 14:16:29 -0700124
125cc_binary {
126 name: "android.hardware.bluetooth@1.0-service",
Chih-Hung Hsieh3f2ea622017-11-20 10:49:11 -0800127 defaults: ["hidl_defaults"],
Steven Moreland90e3a502017-11-02 14:16:29 -0700128 relative_install_path: "hw",
129 vendor: true,
130 init_rc: ["android.hardware.bluetooth@1.0-service.rc"],
131 srcs: ["service.cpp"],
132
133 shared_libs: [
134 "liblog",
135 "libcutils",
136 "libdl",
137 "libbase",
138 "libutils",
139 "libhardware",
140 "libhidlbase",
Steven Moreland90e3a502017-11-02 14:16:29 -0700141 "android.hardware.bluetooth@1.0",
142 ],
143}