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