Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 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 | |
Bob Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 16 | package { |
| 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 | |
Ayushi Khopkar | 0be5891 | 2021-06-01 10:34:02 +0530 | [diff] [blame] | 25 | cc_library { |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 26 | name: "android.hardware.bluetooth@1.0-impl", |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 27 | defaults: ["hidl_defaults"], |
Hongguang Chen | a12b18a | 2021-07-08 23:31:34 +0000 | [diff] [blame] | 28 | vendor: true, |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 29 | relative_install_path: "hw", |
| 30 | srcs: [ |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 31 | "bluetooth_hci.cc", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 32 | "bluetooth_address.cc", |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 33 | "vendor_interface.cc", |
| 34 | ], |
| 35 | shared_libs: [ |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 36 | "android.hardware.bluetooth@1.0", |
| 37 | "libbase", |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 38 | "libcutils", |
| 39 | "libhardware", |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 40 | "libhidlbase", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 41 | "liblog", |
| 42 | "libutils", |
| 43 | ], |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 44 | static_libs: [ |
| 45 | "android.hardware.bluetooth-async", |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 46 | "android.hardware.bluetooth-hci", |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 47 | ], |
| 48 | } |
| 49 | |
| 50 | cc_library_static { |
| 51 | name: "android.hardware.bluetooth-async", |
Hongguang Chen | a12b18a | 2021-07-08 23:31:34 +0000 | [diff] [blame] | 52 | vendor: true, |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 53 | defaults: ["hidl_defaults"], |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 54 | srcs: [ |
| 55 | "async_fd_watcher.cc", |
| 56 | ], |
| 57 | export_include_dirs: ["."], |
| 58 | shared_libs: [ |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 59 | "liblog", |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 60 | ], |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 61 | } |
| 62 | |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 63 | cc_library_static { |
| 64 | name: "android.hardware.bluetooth-hci", |
Hongguang Chen | a12b18a | 2021-07-08 23:31:34 +0000 | [diff] [blame] | 65 | vendor: true, |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 66 | defaults: ["hidl_defaults"], |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 67 | srcs: [ |
| 68 | "hci_packetizer.cc", |
Zach Johnson | 917efb1 | 2017-02-26 23:46:05 -0800 | [diff] [blame] | 69 | "hci_protocol.cc", |
| 70 | "h4_protocol.cc", |
| 71 | "mct_protocol.cc", |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 72 | ], |
| 73 | export_include_dirs: ["."], |
| 74 | shared_libs: [ |
| 75 | "libbase", |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 76 | "libhidlbase", |
| 77 | "liblog", |
| 78 | "libutils", |
| 79 | ], |
| 80 | } |
| 81 | |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 82 | cc_test { |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 83 | name: "bluetooth-vendor-interface-unit-tests", |
Steven Moreland | 2cfae52 | 2017-04-13 14:19:19 -0700 | [diff] [blame] | 84 | vendor: true, |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 85 | defaults: ["hidl_defaults"], |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 86 | srcs: [ |
Myles Watson | 7d42dca | 2017-01-24 16:51:39 -0800 | [diff] [blame] | 87 | "test/async_fd_watcher_unittest.cc", |
Zach Johnson | 917efb1 | 2017-02-26 23:46:05 -0800 | [diff] [blame] | 88 | "test/h4_protocol_unittest.cc", |
| 89 | "test/mct_protocol_unittest.cc", |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 90 | ], |
| 91 | local_include_dirs: [ |
| 92 | "test", |
| 93 | ], |
| 94 | shared_libs: [ |
| 95 | "libbase", |
Zach Johnson | 917efb1 | 2017-02-26 23:46:05 -0800 | [diff] [blame] | 96 | "libhidlbase", |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 97 | "liblog", |
Philip Cuadra | 8b3f315 | 2017-04-20 16:02:48 -0700 | [diff] [blame] | 98 | "libutils", |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 99 | ], |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 100 | static_libs: [ |
| 101 | "android.hardware.bluetooth-async", |
Zach Johnson | 917efb1 | 2017-02-26 23:46:05 -0800 | [diff] [blame] | 102 | "android.hardware.bluetooth-hci", |
| 103 | "libgmock", |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 104 | ], |
Keun Soo YIM | 68ae05d | 2018-11-27 14:04:42 -0800 | [diff] [blame] | 105 | test_suites: ["general-tests"], |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | cc_test_host { |
| 109 | name: "bluetooth-address-unit-tests", |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 110 | defaults: ["hidl_defaults"], |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 111 | srcs: [ |
| 112 | "bluetooth_address.cc", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 113 | "test/bluetooth_address_test.cc", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 114 | ], |
| 115 | local_include_dirs: [ |
| 116 | "test", |
| 117 | ], |
| 118 | shared_libs: [ |
| 119 | "libbase", |
Elliott Hughes | 69a0853 | 2020-05-20 08:22:46 -0700 | [diff] [blame] | 120 | "libcutils", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 121 | "liblog", |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 122 | ], |
| 123 | } |
Steven Moreland | 90e3a50 | 2017-11-02 14:16:29 -0700 | [diff] [blame] | 124 | |
| 125 | cc_binary { |
| 126 | name: "android.hardware.bluetooth@1.0-service", |
Chih-Hung Hsieh | 3f2ea62 | 2017-11-20 10:49:11 -0800 | [diff] [blame] | 127 | defaults: ["hidl_defaults"], |
Steven Moreland | 90e3a50 | 2017-11-02 14:16:29 -0700 | [diff] [blame] | 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", |
Steven Moreland | 90e3a50 | 2017-11-02 14:16:29 -0700 | [diff] [blame] | 141 | "android.hardware.bluetooth@1.0", |
| 142 | ], |
| 143 | } |