blob: 916b53c008ffe97c388ae147aeaccfaef9073398 [file] [log] [blame]
Myles Watson73ad0312017-03-07 04:28:51 -08001//
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07002// Copyright 2017 The Android Open Source Project
Myles Watson73ad0312017-03-07 04:28:51 -08003//
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
16cc_binary {
Jakub Pawlowskide6c0132019-11-12 16:14:32 +010017 name: "android.hardware.bluetooth@1.1-service.sim",
Myles Watson73ad0312017-03-07 04:28:51 -080018 proprietary: true,
19 relative_install_path: "hw",
20 srcs: [
21 "bluetooth_hci.cc",
22 "service.cc",
23 ],
24
Jakub Pawlowskie56fabc2017-10-19 00:26:09 -070025 header_libs: ["libbluetooth_headers"],
Myles Watson73ad0312017-03-07 04:28:51 -080026 shared_libs: [
27 "android.hardware.bluetooth@1.0",
Jakub Pawlowskide6c0132019-11-12 16:14:32 +010028 "android.hardware.bluetooth@1.1",
Myles Watson73ad0312017-03-07 04:28:51 -080029 "libbase",
30 "libchrome",
31 "libcutils",
Myles Watson73ad0312017-03-07 04:28:51 -080032 "libhidlbase",
Myles Watson73ad0312017-03-07 04:28:51 -080033 "liblog",
34 "libutils",
Sanjay Ramankandath466f60a2020-04-24 14:40:59 +000035 "libprotobuf-cpp-lite",
Myles Watson73ad0312017-03-07 04:28:51 -080036 ],
37 cflags: [
38 "-fvisibility=hidden",
39 "-Wall",
40 "-Wextra",
41 "-Werror",
42 "-DHAS_NO_BDROID_BUILDCFG",
43 ],
Chienyuandb55f312019-10-31 14:01:28 +080044 generated_headers: [
45 "RootCanalGeneratedPackets_h",
Chienyuan3d8a8032019-11-01 18:04:07 +080046 "BluetoothGeneratedPackets_h",
Chienyuandb55f312019-10-31 14:01:28 +080047 ],
Myles Watson73ad0312017-03-07 04:28:51 -080048 static_libs: [
49 "android.hardware.bluetooth-async",
50 "android.hardware.bluetooth-hci",
51 "libbt-rootcanal",
Myles Watsone22dde22019-01-18 11:42:33 -080052 "libbt-rootcanal-types",
Sanjay Ramankandath466f60a2020-04-24 14:40:59 +000053 "libscriptedbeaconpayload-protos-lite",
Myles Watson73ad0312017-03-07 04:28:51 -080054 ],
55 include_dirs: [
56 "system/bt",
Myles Watson1a0a0da2019-10-17 11:36:33 -070057 "system/bt/gd",
Myles Watson73ad0312017-03-07 04:28:51 -080058 "system/bt/hci/include",
Jakub Pawlowskiecace462017-10-17 16:40:41 -070059 "system/bt/internal_include",
Myles Watson73ad0312017-03-07 04:28:51 -080060 "system/bt/stack/include",
61 ],
Jakub Pawlowskide6c0132019-11-12 16:14:32 +010062 init_rc: ["android.hardware.bluetooth@1.1-service.sim.rc"],
Myles Watson73ad0312017-03-07 04:28:51 -080063}
Myles Watson28eff182017-05-17 11:39:18 -070064
65cc_library_shared {
Jakub Pawlowskide6c0132019-11-12 16:14:32 +010066 name: "android.hardware.bluetooth@1.1-impl-sim",
Myles Watson28eff182017-05-17 11:39:18 -070067 proprietary: true,
68 relative_install_path: "hw",
69 srcs: [
70 "bluetooth_hci.cc",
71 ],
72
Jakub Pawlowskie56fabc2017-10-19 00:26:09 -070073 header_libs: ["libbluetooth_headers"],
Myles Watson28eff182017-05-17 11:39:18 -070074 shared_libs: [
75 "android.hardware.bluetooth@1.0",
Jakub Pawlowskide6c0132019-11-12 16:14:32 +010076 "android.hardware.bluetooth@1.1",
Myles Watson28eff182017-05-17 11:39:18 -070077 "libbase",
78 "libchrome",
79 "libcutils",
Myles Watson28eff182017-05-17 11:39:18 -070080 "libhidlbase",
Myles Watson28eff182017-05-17 11:39:18 -070081 "liblog",
82 "libutils",
Sanjay Ramankandath466f60a2020-04-24 14:40:59 +000083 "libprotobuf-cpp-lite",
Myles Watson28eff182017-05-17 11:39:18 -070084 ],
85 cflags: [
86 "-Wall",
87 "-Wextra",
88 "-Werror",
89 "-DHAS_NO_BDROID_BUILDCFG",
90 ],
Chienyuandb55f312019-10-31 14:01:28 +080091 generated_headers: [
92 "RootCanalGeneratedPackets_h",
Chienyuan3d8a8032019-11-01 18:04:07 +080093 "BluetoothGeneratedPackets_h",
Chienyuandb55f312019-10-31 14:01:28 +080094 ],
Myles Watson28eff182017-05-17 11:39:18 -070095 static_libs: [
96 "android.hardware.bluetooth-async",
97 "android.hardware.bluetooth-hci",
98 "libbt-rootcanal",
Myles Watsone22dde22019-01-18 11:42:33 -080099 "libbt-rootcanal-types",
Sanjay Ramankandath466f60a2020-04-24 14:40:59 +0000100 "libscriptedbeaconpayload-protos-lite",
Myles Watson28eff182017-05-17 11:39:18 -0700101 ],
102 include_dirs: [
103 "system/bt",
Myles Watson1a0a0da2019-10-17 11:36:33 -0700104 "system/bt/gd",
Myles Watson28eff182017-05-17 11:39:18 -0700105 "system/bt/hci/include",
Jakub Pawlowskiecace462017-10-17 16:40:41 -0700106 "system/bt/internal_include",
Myles Watson28eff182017-05-17 11:39:18 -0700107 "system/bt/stack/include",
108 ],
109}