blob: f66c25e97648dca06424ca5d1a8054be47e5d64e [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 Moreland691a4552017-03-08 15:58:46 -080018 defaults: ["hidl_defaults"],
Steven Moreland2cfae522017-04-13 14:19:19 -070019 vendor: true,
Andre Eisenbach89ba5282016-10-13 15:45:02 -070020 relative_install_path: "hw",
21 srcs: [
Andre Eisenbach89ba5282016-10-13 15:45:02 -070022 "bluetooth_hci.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070023 "bluetooth_address.cc",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070024 "vendor_interface.cc",
25 ],
26 shared_libs: [
Myles Watson6a7d6222016-10-13 15:45:02 -070027 "android.hardware.bluetooth@1.0",
28 "libbase",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070029 "libcutils",
30 "libhardware",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070031 "libhidlbase",
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",
Steven Moreland2cfae522017-04-13 14:19:19 -070043 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080044 defaults: ["hidl_defaults"],
Myles Watsonbe6176d2017-02-21 13:27:01 -080045 srcs: [
46 "async_fd_watcher.cc",
47 ],
48 export_include_dirs: ["."],
49 shared_libs: [
Myles Watsonbe6176d2017-02-21 13:27:01 -080050 "liblog",
Myles Watsonbe6176d2017-02-21 13:27:01 -080051 ],
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",
Steven Moreland2cfae522017-04-13 14:19:19 -070056 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080057 defaults: ["hidl_defaults"],
Myles Watson274a3812017-02-23 06:29:08 -080058 srcs: [
59 "hci_packetizer.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080060 "hci_protocol.cc",
61 "h4_protocol.cc",
62 "mct_protocol.cc",
Myles Watson274a3812017-02-23 06:29:08 -080063 ],
64 export_include_dirs: ["."],
65 shared_libs: [
66 "libbase",
Myles Watson274a3812017-02-23 06:29:08 -080067 "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",
Steven Moreland2cfae522017-04-13 14:19:19 -070075 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080076 defaults: ["hidl_defaults"],
Myles Watson6a7d6222016-10-13 15:45:02 -070077 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -080078 "test/async_fd_watcher_unittest.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080079 "test/h4_protocol_unittest.cc",
80 "test/mct_protocol_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -080081 ],
82 local_include_dirs: [
83 "test",
84 ],
85 shared_libs: [
86 "libbase",
Zach Johnson917efb12017-02-26 23:46:05 -080087 "libhidlbase",
Myles Watsonb43a5b22017-01-31 12:20:44 -080088 "liblog",
Philip Cuadra8b3f3152017-04-20 16:02:48 -070089 "libutils",
Myles Watsonb43a5b22017-01-31 12:20:44 -080090 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080091 static_libs: [
92 "android.hardware.bluetooth-async",
Zach Johnson917efb12017-02-26 23:46:05 -080093 "android.hardware.bluetooth-hci",
94 "libgmock",
Myles Watsonbe6176d2017-02-21 13:27:01 -080095 ],
Keun Soo YIM68ae05d2018-11-27 14:04:42 -080096 test_suites: ["general-tests"],
Myles Watsonb43a5b22017-01-31 12:20:44 -080097}
98
99cc_test_host {
100 name: "bluetooth-address-unit-tests",
Steven Moreland691a4552017-03-08 15:58:46 -0800101 defaults: ["hidl_defaults"],
Myles Watsonb43a5b22017-01-31 12:20:44 -0800102 srcs: [
103 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -0700104 "test/bluetooth_address_test.cc",
105 "test/properties.cc",
106 ],
107 local_include_dirs: [
108 "test",
109 ],
110 shared_libs: [
111 "libbase",
112 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -0700113 ],
114}
Steven Moreland90e3a502017-11-02 14:16:29 -0700115
116cc_binary {
117 name: "android.hardware.bluetooth@1.0-service",
Chih-Hung Hsieh3f2ea622017-11-20 10:49:11 -0800118 defaults: ["hidl_defaults"],
Steven Moreland90e3a502017-11-02 14:16:29 -0700119 relative_install_path: "hw",
120 vendor: true,
121 init_rc: ["android.hardware.bluetooth@1.0-service.rc"],
122 srcs: ["service.cpp"],
123
124 shared_libs: [
125 "liblog",
126 "libcutils",
127 "libdl",
128 "libbase",
129 "libutils",
130 "libhardware",
131 "libhidlbase",
Steven Moreland90e3a502017-11-02 14:16:29 -0700132 "android.hardware.bluetooth@1.0",
133 ],
134}