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 { |
Jakub Pawlowski | de6c013 | 2019-11-12 16:14:32 +0100 | [diff] [blame] | 17 | name: "android.hardware.bluetooth@1.1-service.sim", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 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", |
Jakub Pawlowski | de6c013 | 2019-11-12 16:14:32 +0100 | [diff] [blame] | 28 | "android.hardware.bluetooth@1.1", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 29 | "libbase", |
| 30 | "libchrome", |
| 31 | "libcutils", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 32 | "libhidlbase", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 33 | "liblog", |
| 34 | "libutils", |
| 35 | ], |
| 36 | cflags: [ |
| 37 | "-fvisibility=hidden", |
| 38 | "-Wall", |
| 39 | "-Wextra", |
| 40 | "-Werror", |
| 41 | "-DHAS_NO_BDROID_BUILDCFG", |
| 42 | ], |
Chienyuan | db55f31 | 2019-10-31 14:01:28 +0800 | [diff] [blame] | 43 | generated_headers: [ |
| 44 | "RootCanalGeneratedPackets_h", |
Chienyuan | 3d8a803 | 2019-11-01 18:04:07 +0800 | [diff] [blame] | 45 | "BluetoothGeneratedPackets_h", |
Chienyuan | db55f31 | 2019-10-31 14:01:28 +0800 | [diff] [blame] | 46 | ], |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 47 | static_libs: [ |
| 48 | "android.hardware.bluetooth-async", |
| 49 | "android.hardware.bluetooth-hci", |
| 50 | "libbt-rootcanal", |
Myles Watson | e22dde2 | 2019-01-18 11:42:33 -0800 | [diff] [blame] | 51 | "libbt-rootcanal-types", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 52 | ], |
| 53 | include_dirs: [ |
| 54 | "system/bt", |
Myles Watson | 1a0a0da | 2019-10-17 11:36:33 -0700 | [diff] [blame] | 55 | "system/bt/gd", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 56 | "system/bt/hci/include", |
Jakub Pawlowski | ecace46 | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 57 | "system/bt/internal_include", |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 58 | "system/bt/stack/include", |
| 59 | ], |
Jakub Pawlowski | de6c013 | 2019-11-12 16:14:32 +0100 | [diff] [blame] | 60 | init_rc: ["android.hardware.bluetooth@1.1-service.sim.rc"], |
Myles Watson | 73ad031 | 2017-03-07 04:28:51 -0800 | [diff] [blame] | 61 | } |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 62 | |
| 63 | cc_library_shared { |
Jakub Pawlowski | de6c013 | 2019-11-12 16:14:32 +0100 | [diff] [blame] | 64 | name: "android.hardware.bluetooth@1.1-impl-sim", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 65 | proprietary: true, |
| 66 | relative_install_path: "hw", |
| 67 | srcs: [ |
| 68 | "bluetooth_hci.cc", |
| 69 | ], |
| 70 | |
Jakub Pawlowski | e56fabc | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 71 | header_libs: ["libbluetooth_headers"], |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 72 | shared_libs: [ |
| 73 | "android.hardware.bluetooth@1.0", |
Jakub Pawlowski | de6c013 | 2019-11-12 16:14:32 +0100 | [diff] [blame] | 74 | "android.hardware.bluetooth@1.1", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 75 | "libbase", |
| 76 | "libchrome", |
| 77 | "libcutils", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 78 | "libhidlbase", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 79 | "liblog", |
| 80 | "libutils", |
| 81 | ], |
| 82 | cflags: [ |
| 83 | "-Wall", |
| 84 | "-Wextra", |
| 85 | "-Werror", |
| 86 | "-DHAS_NO_BDROID_BUILDCFG", |
| 87 | ], |
Chienyuan | db55f31 | 2019-10-31 14:01:28 +0800 | [diff] [blame] | 88 | generated_headers: [ |
| 89 | "RootCanalGeneratedPackets_h", |
Chienyuan | 3d8a803 | 2019-11-01 18:04:07 +0800 | [diff] [blame] | 90 | "BluetoothGeneratedPackets_h", |
Chienyuan | db55f31 | 2019-10-31 14:01:28 +0800 | [diff] [blame] | 91 | ], |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 92 | static_libs: [ |
| 93 | "android.hardware.bluetooth-async", |
| 94 | "android.hardware.bluetooth-hci", |
| 95 | "libbt-rootcanal", |
Myles Watson | e22dde2 | 2019-01-18 11:42:33 -0800 | [diff] [blame] | 96 | "libbt-rootcanal-types", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 97 | ], |
| 98 | include_dirs: [ |
| 99 | "system/bt", |
Myles Watson | 1a0a0da | 2019-10-17 11:36:33 -0700 | [diff] [blame] | 100 | "system/bt/gd", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 101 | "system/bt/hci/include", |
Jakub Pawlowski | ecace46 | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 102 | "system/bt/internal_include", |
Myles Watson | 28eff18 | 2017-05-17 11:39:18 -0700 | [diff] [blame] | 103 | "system/bt/stack/include", |
| 104 | ], |
| 105 | } |