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