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