Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 1 | // |
Jakub Pawlowski | 5b790fe | 2017-09-18 09:00:20 -0700 | [diff] [blame] | 2 | // Copyright 2017 The Android Open Source Project |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 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_binary { |
| 17 | name: "android.hardware.bluetooth@1.0-service.sim", |
| 18 | proprietary: true, |
| 19 | relative_install_path: "hw", |
| 20 | srcs: [ |
| 21 | "bluetooth_hci.cc", |
| 22 | "service.cc", |
| 23 | ], |
| 24 | |
Jakub Pawlowski | e56fabc | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 25 | header_libs: ["libbluetooth_headers"], |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 26 | shared_libs: [ |
| 27 | "android.hardware.bluetooth@1.0", |
| 28 | "libbase", |
| 29 | "libchrome", |
| 30 | "libcutils", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 31 | "libhwbinder", |
| 32 | "libhidlbase", |
| 33 | "libhidltransport", |
| 34 | "liblog", |
| 35 | "libutils", |
| 36 | ], |
| 37 | cflags: [ |
| 38 | "-fvisibility=hidden", |
| 39 | "-Wall", |
| 40 | "-Wextra", |
| 41 | "-Werror", |
| 42 | "-DHAS_NO_BDROID_BUILDCFG", |
| 43 | ], |
| 44 | static_libs: [ |
| 45 | "android.hardware.bluetooth-async", |
| 46 | "android.hardware.bluetooth-hci", |
| 47 | "libbt-rootcanal", |
Myles Watson | e22dde2 | 2019-01-18 11:42:33 -0800 | [diff] [blame] | 48 | "libbt-rootcanal-types", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 49 | ], |
| 50 | include_dirs: [ |
| 51 | "system/bt", |
| 52 | "system/bt/hci/include", |
Jakub Pawlowski | ecace46 | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 53 | "system/bt/internal_include", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 54 | "system/bt/stack/include", |
| 55 | ], |
| 56 | init_rc: ["android.hardware.bluetooth@1.0-service.sim.rc"], |
| 57 | } |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 58 | |
| 59 | cc_library_shared { |
| 60 | name: "android.hardware.bluetooth@1.0-impl-sim", |
| 61 | proprietary: true, |
| 62 | relative_install_path: "hw", |
| 63 | srcs: [ |
| 64 | "bluetooth_hci.cc", |
| 65 | ], |
| 66 | |
Jakub Pawlowski | e56fabc | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 67 | header_libs: ["libbluetooth_headers"], |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 68 | shared_libs: [ |
| 69 | "android.hardware.bluetooth@1.0", |
| 70 | "libbase", |
| 71 | "libchrome", |
| 72 | "libcutils", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 73 | "libhidlbase", |
| 74 | "libhidltransport", |
| 75 | "liblog", |
| 76 | "libutils", |
| 77 | ], |
| 78 | cflags: [ |
| 79 | "-Wall", |
| 80 | "-Wextra", |
| 81 | "-Werror", |
| 82 | "-DHAS_NO_BDROID_BUILDCFG", |
| 83 | ], |
| 84 | static_libs: [ |
| 85 | "android.hardware.bluetooth-async", |
| 86 | "android.hardware.bluetooth-hci", |
| 87 | "libbt-rootcanal", |
Myles Watson | e22dde2 | 2019-01-18 11:42:33 -0800 | [diff] [blame] | 88 | "libbt-rootcanal-types", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 89 | ], |
| 90 | include_dirs: [ |
| 91 | "system/bt", |
| 92 | "system/bt/hci/include", |
Jakub Pawlowski | ecace46 | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 93 | "system/bt/internal_include", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 94 | "system/bt/stack/include", |
| 95 | ], |
| 96 | } |