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", |
| 18 | relative_install_path: "hw", |
| 19 | srcs: [ |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 20 | "bluetooth_hci.cc", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 21 | "bluetooth_address.cc", |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 22 | "vendor_interface.cc", |
| 23 | ], |
| 24 | shared_libs: [ |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 25 | "android.hardware.bluetooth@1.0", |
| 26 | "libbase", |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 27 | "libcutils", |
| 28 | "libhardware", |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 29 | "libhidlbase", |
| 30 | "libhidltransport", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 31 | "liblog", |
| 32 | "libutils", |
| 33 | ], |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 34 | static_libs: [ |
| 35 | "android.hardware.bluetooth-async", |
Myles Watson | 274a381 | 2017-02-23 06:29:08 -0800 | [diff] [blame] | 36 | "android.hardware.bluetooth-hci", |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 37 | ], |
| 38 | } |
| 39 | |
| 40 | cc_library_static { |
| 41 | name: "android.hardware.bluetooth-async", |
| 42 | srcs: [ |
| 43 | "async_fd_watcher.cc", |
| 44 | ], |
| 45 | export_include_dirs: ["."], |
| 46 | shared_libs: [ |
| 47 | "libbase", |
| 48 | "libcutils", |
| 49 | "liblog", |
| 50 | "libutils", |
| 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", |
| 56 | srcs: [ |
| 57 | "hci_packetizer.cc", |
| 58 | ], |
| 59 | export_include_dirs: ["."], |
| 60 | shared_libs: [ |
| 61 | "libbase", |
| 62 | "libcutils", |
| 63 | "libhidlbase", |
| 64 | "liblog", |
| 65 | "libutils", |
| 66 | ], |
| 67 | } |
| 68 | |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 69 | cc_test { |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 70 | name: "bluetooth-vendor-interface-unit-tests", |
| 71 | srcs: [ |
Myles Watson | 7d42dca | 2017-01-24 16:51:39 -0800 | [diff] [blame] | 72 | "test/async_fd_watcher_unittest.cc", |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 73 | ], |
| 74 | local_include_dirs: [ |
| 75 | "test", |
| 76 | ], |
| 77 | shared_libs: [ |
| 78 | "libbase", |
| 79 | "liblog", |
| 80 | ], |
Myles Watson | be6176d | 2017-02-21 13:27:01 -0800 | [diff] [blame] | 81 | static_libs: [ |
| 82 | "android.hardware.bluetooth-async", |
| 83 | ], |
Myles Watson | b43a5b2 | 2017-01-31 12:20:44 -0800 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | cc_test_host { |
| 87 | name: "bluetooth-address-unit-tests", |
| 88 | srcs: [ |
| 89 | "bluetooth_address.cc", |
Myles Watson | 6a7d622 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 90 | "test/bluetooth_address_test.cc", |
| 91 | "test/properties.cc", |
| 92 | ], |
| 93 | local_include_dirs: [ |
| 94 | "test", |
| 95 | ], |
| 96 | shared_libs: [ |
| 97 | "libbase", |
| 98 | "liblog", |
Andre Eisenbach | 89ba528 | 2016-10-13 15:45:02 -0700 | [diff] [blame] | 99 | ], |
| 100 | } |