blob: f82bc1fedca49960fa924be5bf8acef3229406ff [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",
18 relative_install_path: "hw",
19 srcs: [
Andre Eisenbach89ba5282016-10-13 15:45:02 -070020 "bluetooth_hci.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070021 "bluetooth_address.cc",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070022 "vendor_interface.cc",
23 ],
24 shared_libs: [
Myles Watson6a7d6222016-10-13 15:45:02 -070025 "android.hardware.bluetooth@1.0",
26 "libbase",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070027 "libcutils",
28 "libhardware",
29 "libhwbinder",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070030 "libhidlbase",
31 "libhidltransport",
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",
37 ],
38}
39
40cc_library_static {
41 name: "android.hardware.bluetooth-async",
42 srcs: [
43 "async_fd_watcher.cc",
44 ],
45 export_include_dirs: ["."],
46 shared_libs: [
47 "libbase",
48 "libcutils",
49 "liblog",
50 "libutils",
51 ],
Myles Watson6a7d6222016-10-13 15:45:02 -070052}
53
Myles Watsonb43a5b22017-01-31 12:20:44 -080054cc_test {
Myles Watson6a7d6222016-10-13 15:45:02 -070055 name: "bluetooth-vendor-interface-unit-tests",
56 srcs: [
Myles Watson7d42dca2017-01-24 16:51:39 -080057 "test/async_fd_watcher_unittest.cc",
Myles Watsonb43a5b22017-01-31 12:20:44 -080058 ],
59 local_include_dirs: [
60 "test",
61 ],
62 shared_libs: [
63 "libbase",
64 "liblog",
65 ],
Myles Watsonbe6176d2017-02-21 13:27:01 -080066 static_libs: [
67 "android.hardware.bluetooth-async",
68 ],
Myles Watsonb43a5b22017-01-31 12:20:44 -080069}
70
71cc_test_host {
72 name: "bluetooth-address-unit-tests",
73 srcs: [
74 "bluetooth_address.cc",
Myles Watson6a7d6222016-10-13 15:45:02 -070075 "test/bluetooth_address_test.cc",
76 "test/properties.cc",
77 ],
78 local_include_dirs: [
79 "test",
80 ],
81 shared_libs: [
82 "libbase",
83 "liblog",
Andre Eisenbach89ba5282016-10-13 15:45:02 -070084 ],
85}