blob: fec2264dc4bc41508a840f516d2a36bd0111439c [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",
32 "libhidltransport",
Myles Watson6a7d6222016-10-13 15:45:02 -070033 "liblog",
34 "libutils",
35 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080036 static_libs: [
37 "android.hardware.bluetooth-async",
Myles Watson274a3812017-02-23 06:29:08 -080038 "android.hardware.bluetooth-hci",
Myles Watsonbe6176d2017-02-21 13:27:01 -080039 ],
40}
41
42cc_library_static {
43 name: "android.hardware.bluetooth-async",
Steven Moreland2cfae522017-04-13 14:19:19 -070044 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080045 defaults: ["hidl_defaults"],
Myles Watsonbe6176d2017-02-21 13:27:01 -080046 srcs: [
47 "async_fd_watcher.cc",
48 ],
49 export_include_dirs: ["."],
50 shared_libs: [
Myles Watsonbe6176d2017-02-21 13:27:01 -080051 "liblog",
Myles Watsonbe6176d2017-02-21 13:27:01 -080052 ],
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",
Steven Moreland2cfae522017-04-13 14:19:19 -070057 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080058 defaults: ["hidl_defaults"],
Myles Watson274a3812017-02-23 06:29:08 -080059 srcs: [
60 "hci_packetizer.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080061 "hci_protocol.cc",
62 "h4_protocol.cc",
63 "mct_protocol.cc",
Myles Watson274a3812017-02-23 06:29:08 -080064 ],
65 export_include_dirs: ["."],
66 shared_libs: [
67 "libbase",
Myles Watson274a3812017-02-23 06:29:08 -080068 "libhidlbase",
69 "liblog",
70 "libutils",
71 ],
72}
73
Myles Watsonb43a5b22017-01-31 12:20:44 -080074cc_test {
Myles Watson6a7d6222016-10-13 15:45:02 -070075 name: "bluetooth-vendor-interface-unit-tests",
Steven Moreland2cfae522017-04-13 14:19:19 -070076 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080077 defaults: ["hidl_defaults"],
Myles Watson6a7d6222016-10-13 15:45:02 -070078 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -080079 "test/async_fd_watcher_unittest.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080080 "test/h4_protocol_unittest.cc",
81 "test/mct_protocol_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -080082 ],
83 local_include_dirs: [
84 "test",
85 ],
86 shared_libs: [
87 "libbase",
Zach Johnson917efb12017-02-26 23:46:05 -080088 "libhidlbase",
Myles Watsonb43a5b22017-01-31 12:20:44 -080089 "liblog",
90 ],
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 ],
Myles Watsonb43a5b22017-01-31 12:20:44 -080096}
97
98cc_test_host {
99 name: "bluetooth-address-unit-tests",
Steven Moreland691a4552017-03-08 15:58:46 -0800100 defaults: ["hidl_defaults"],
Myles Watsonb43a5b22017-01-31 12:20:44 -0800101 srcs: [
102 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -0700103 "test/bluetooth_address_test.cc",
104 "test/properties.cc",
105 ],
106 local_include_dirs: [
107 "test",
108 ],
109 shared_libs: [
110 "libbase",
111 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -0700112 ],
113}