blob: 46a498752b7bbc353688c4dd97f228f26de7c78b [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: [
Philip Cuadra8b3f3152017-04-20 16:02:48 -070027 "android.frameworks.schedulerservice@1.0",
Myles Watson6a7d6222016-10-13 15:45:02 -070028 "android.hardware.bluetooth@1.0",
29 "libbase",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070030 "libcutils",
31 "libhardware",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070032 "libhidlbase",
33 "libhidltransport",
Myles Watson6a7d6222016-10-13 15:45:02 -070034 "liblog",
35 "libutils",
36 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080037 static_libs: [
38 "android.hardware.bluetooth-async",
Myles Watson274a3812017-02-23 06:29:08 -080039 "android.hardware.bluetooth-hci",
Myles Watsonbe6176d2017-02-21 13:27:01 -080040 ],
41}
42
43cc_library_static {
44 name: "android.hardware.bluetooth-async",
Steven Moreland2cfae522017-04-13 14:19:19 -070045 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080046 defaults: ["hidl_defaults"],
Myles Watsonbe6176d2017-02-21 13:27:01 -080047 srcs: [
48 "async_fd_watcher.cc",
49 ],
50 export_include_dirs: ["."],
51 shared_libs: [
Philip Cuadra8b3f3152017-04-20 16:02:48 -070052 "android.frameworks.schedulerservice@1.0",
Myles Watsonbe6176d2017-02-21 13:27:01 -080053 "liblog",
Myles Watsonbe6176d2017-02-21 13:27:01 -080054 ],
Myles Watson6a7d6222016-10-13 15:45:02 -070055}
56
Myles Watson274a3812017-02-23 06:29:08 -080057cc_library_static {
58 name: "android.hardware.bluetooth-hci",
Steven Moreland2cfae522017-04-13 14:19:19 -070059 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080060 defaults: ["hidl_defaults"],
Myles Watson274a3812017-02-23 06:29:08 -080061 srcs: [
62 "hci_packetizer.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080063 "hci_protocol.cc",
64 "h4_protocol.cc",
65 "mct_protocol.cc",
Myles Watson274a3812017-02-23 06:29:08 -080066 ],
67 export_include_dirs: ["."],
68 shared_libs: [
69 "libbase",
Myles Watson274a3812017-02-23 06:29:08 -080070 "libhidlbase",
71 "liblog",
72 "libutils",
73 ],
74}
75
Myles Watsonb43a5b22017-01-31 12:20:44 -080076cc_test {
Myles Watson6a7d6222016-10-13 15:45:02 -070077 name: "bluetooth-vendor-interface-unit-tests",
Steven Moreland2cfae522017-04-13 14:19:19 -070078 vendor: true,
Steven Moreland691a4552017-03-08 15:58:46 -080079 defaults: ["hidl_defaults"],
Myles Watson6a7d6222016-10-13 15:45:02 -070080 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -080081 "test/async_fd_watcher_unittest.cc",
Zach Johnson917efb12017-02-26 23:46:05 -080082 "test/h4_protocol_unittest.cc",
83 "test/mct_protocol_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -080084 ],
85 local_include_dirs: [
86 "test",
87 ],
88 shared_libs: [
Philip Cuadra8b3f3152017-04-20 16:02:48 -070089 "android.frameworks.schedulerservice@1.0",
Myles Watsonb43a5b22017-01-31 12:20:44 -080090 "libbase",
Zach Johnson917efb12017-02-26 23:46:05 -080091 "libhidlbase",
Myles Watsonb43a5b22017-01-31 12:20:44 -080092 "liblog",
Philip Cuadra8b3f3152017-04-20 16:02:48 -070093 "libutils",
Myles Watsonb43a5b22017-01-31 12:20:44 -080094 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080095 static_libs: [
96 "android.hardware.bluetooth-async",
Zach Johnson917efb12017-02-26 23:46:05 -080097 "android.hardware.bluetooth-hci",
98 "libgmock",
Myles Watsonbe6176d2017-02-21 13:27:01 -080099 ],
Myles Watsonb43a5b22017-01-31 12:20:44 -0800100}
101
102cc_test_host {
103 name: "bluetooth-address-unit-tests",
Steven Moreland691a4552017-03-08 15:58:46 -0800104 defaults: ["hidl_defaults"],
Myles Watsonb43a5b22017-01-31 12:20:44 -0800105 srcs: [
106 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -0700107 "test/bluetooth_address_test.cc",
108 "test/properties.cc",
109 ],
110 local_include_dirs: [
111 "test",
112 ],
113 shared_libs: [
114 "libbase",
115 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -0700116 ],
117}