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", |
| 32 | "libhidltransport", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 33 | "liblog", |
| 34 | "libutils", |
| 35 | ], |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 36 | static_libs: [ |
| 37 | "android.hardware.bluetooth-async", |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 38 | "android.hardware.bluetooth-hci", |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 39 | ], |
| 40 | } |
| 41 | |
| 42 | cc_library_static { |
| 43 | name: "android.hardware.bluetooth-async", |
Steven Moreland | 2cfae52 | 2017-04-13 14:19:19 -0700 | [diff] [blame] | 44 | vendor: true, |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 45 | defaults: ["hidl_defaults"], |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 46 | srcs: [ |
| 47 | "async_fd_watcher.cc", |
| 48 | ], |
| 49 | export_include_dirs: ["."], |
| 50 | shared_libs: [ |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 51 | "liblog", |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 52 | ], |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 53 | } |
| 54 | |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 55 | cc_library_static { |
| 56 | name: "android.hardware.bluetooth-hci", |
Steven Moreland | 2cfae52 | 2017-04-13 14:19:19 -0700 | [diff] [blame] | 57 | vendor: true, |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 58 | defaults: ["hidl_defaults"], |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 59 | srcs: [ |
| 60 | "hci_packetizer.cc", |
Zach Johnson | 917efb1 | 2017-02-26 23:46:05 -0800 | [diff] [blame] | 61 | "hci_protocol.cc", |
| 62 | "h4_protocol.cc", |
| 63 | "mct_protocol.cc", |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 64 | ], |
| 65 | export_include_dirs: ["."], |
| 66 | shared_libs: [ |
| 67 | "libbase", |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 68 | "libhidlbase", |
| 69 | "liblog", |
| 70 | "libutils", |
| 71 | ], |
| 72 | } |
| 73 | |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 74 | cc_test { |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 75 | name: "bluetooth-vendor-interface-unit-tests", |
Steven Moreland | 2cfae52 | 2017-04-13 14:19:19 -0700 | [diff] [blame] | 76 | vendor: true, |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 77 | defaults: ["hidl_defaults"], |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 78 | srcs: [ |
Myles Watson | 7d42dca | 2017-01-24 16:51:39 -0800 | [diff] [blame] | 79 | "test/async_fd_watcher_unittest.cc", |
Zach Johnson | 917efb1 | 2017-02-26 23:46:05 -0800 | [diff] [blame] | 80 | "test/h4_protocol_unittest.cc", |
| 81 | "test/mct_protocol_unittest.cc", |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 82 | ], |
| 83 | local_include_dirs: [ |
| 84 | "test", |
| 85 | ], |
| 86 | shared_libs: [ |
| 87 | "libbase", |
Zach Johnson | 917efb1 | 2017-02-26 23:46:05 -0800 | [diff] [blame] | 88 | "libhidlbase", |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 89 | "liblog", |
| 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 | ], |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | cc_test_host { |
| 99 | name: "bluetooth-address-unit-tests", |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 100 | defaults: ["hidl_defaults"], |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 101 | srcs: [ |
| 102 | "bluetooth_address.cc", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 103 | "test/bluetooth_address_test.cc", |
| 104 | "test/properties.cc", |
| 105 | ], |
| 106 | local_include_dirs: [ |
| 107 | "test", |
| 108 | ], |
| 109 | shared_libs: [ |
| 110 | "libbase", |
| 111 | "liblog", |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 112 | ], |
| 113 | } |