1// 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 16package { 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 25cc_library_shared { 26 name: "android.hardware.bluetooth@1.0-impl", 27 defaults: ["hidl_defaults"], 28 vendor: true, 29 relative_install_path: "hw", 30 srcs: [ 31 "bluetooth_hci.cc", 32 "bluetooth_address.cc", 33 "vendor_interface.cc", 34 ], 35 shared_libs: [ 36 "android.hardware.bluetooth@1.0", 37 "libbase", 38 "libcutils", 39 "libhardware", 40 "libhidlbase", 41 "liblog", 42 "libutils", 43 ], 44 static_libs: [ 45 "android.hardware.bluetooth-async", 46 "android.hardware.bluetooth-hci", 47 ], 48} 49 50cc_library_static { 51 name: "android.hardware.bluetooth-async", 52 vendor: true, 53 defaults: ["hidl_defaults"], 54 srcs: [ 55 "async_fd_watcher.cc", 56 ], 57 export_include_dirs: ["."], 58 shared_libs: [ 59 "liblog", 60 ], 61} 62 63cc_library_static { 64 name: "android.hardware.bluetooth-hci", 65 vendor: true, 66 defaults: ["hidl_defaults"], 67 srcs: [ 68 "hci_packetizer.cc", 69 "hci_protocol.cc", 70 "h4_protocol.cc", 71 "mct_protocol.cc", 72 ], 73 export_include_dirs: ["."], 74 shared_libs: [ 75 "libbase", 76 "libhidlbase", 77 "liblog", 78 "libutils", 79 ], 80} 81 82cc_test { 83 name: "bluetooth-vendor-interface-unit-tests", 84 vendor: true, 85 defaults: ["hidl_defaults"], 86 srcs: [ 87 "test/async_fd_watcher_unittest.cc", 88 "test/h4_protocol_unittest.cc", 89 "test/mct_protocol_unittest.cc", 90 ], 91 local_include_dirs: [ 92 "test", 93 ], 94 shared_libs: [ 95 "libbase", 96 "libhidlbase", 97 "liblog", 98 "libutils", 99 ], 100 static_libs: [ 101 "android.hardware.bluetooth-async", 102 "android.hardware.bluetooth-hci", 103 "libgmock", 104 ], 105 test_suites: ["general-tests"], 106} 107 108cc_test_host { 109 name: "bluetooth-address-unit-tests", 110 defaults: ["hidl_defaults"], 111 srcs: [ 112 "bluetooth_address.cc", 113 "test/bluetooth_address_test.cc", 114 ], 115 local_include_dirs: [ 116 "test", 117 ], 118 shared_libs: [ 119 "libbase", 120 "libcutils", 121 "liblog", 122 ], 123} 124 125cc_binary { 126 name: "android.hardware.bluetooth@1.0-service", 127 defaults: ["hidl_defaults"], 128 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", 141 "android.hardware.bluetooth@1.0", 142 ], 143} 144