blob: bd62e50c704b821f5d58a5927cfcbbf59461626c [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",
35 ],
36 cflags: [
37 "-fvisibility=hidden",
38 "-Wall",
39 "-Wextra",
40 "-Werror",
41 "-DHAS_NO_BDROID_BUILDCFG",
42 ],
Chienyuandb55f312019-10-31 14:01:28 +080043 generated_headers: [
44 "RootCanalGeneratedPackets_h",
Chienyuan3d8a8032019-11-01 18:04:07 +080045 "BluetoothGeneratedPackets_h",
Chienyuandb55f312019-10-31 14:01:28 +080046 ],
Myles Watson73ad0312017-03-07 04:28:51 -080047 static_libs: [
48 "android.hardware.bluetooth-async",
49 "android.hardware.bluetooth-hci",
50 "libbt-rootcanal",
Myles Watsone22dde22019-01-18 11:42:33 -080051 "libbt-rootcanal-types",
Myles Watson73ad0312017-03-07 04:28:51 -080052 ],
53 include_dirs: [
54 "system/bt",
Myles Watson1a0a0da2019-10-17 11:36:33 -070055 "system/bt/gd",
Myles Watson73ad0312017-03-07 04:28:51 -080056 "system/bt/hci/include",
Jakub Pawlowskiecace462017-10-17 16:40:41 -070057 "system/bt/internal_include",
Myles Watson73ad0312017-03-07 04:28:51 -080058 "system/bt/stack/include",
59 ],
Jakub Pawlowskide6c0132019-11-12 16:14:32 +010060 init_rc: ["android.hardware.bluetooth@1.1-service.sim.rc"],
Myles Watson73ad0312017-03-07 04:28:51 -080061}
Myles Watson28eff182017-05-17 11:39:18 -070062
63cc_library_shared {
Jakub Pawlowskide6c0132019-11-12 16:14:32 +010064 name: "android.hardware.bluetooth@1.1-impl-sim",
Myles Watson28eff182017-05-17 11:39:18 -070065 proprietary: true,
66 relative_install_path: "hw",
67 srcs: [
68 "bluetooth_hci.cc",
69 ],
70
Jakub Pawlowskie56fabc2017-10-19 00:26:09 -070071 header_libs: ["libbluetooth_headers"],
Myles Watson28eff182017-05-17 11:39:18 -070072 shared_libs: [
73 "android.hardware.bluetooth@1.0",
Jakub Pawlowskide6c0132019-11-12 16:14:32 +010074 "android.hardware.bluetooth@1.1",
Myles Watson28eff182017-05-17 11:39:18 -070075 "libbase",
76 "libchrome",
77 "libcutils",
Myles Watson28eff182017-05-17 11:39:18 -070078 "libhidlbase",
Myles Watson28eff182017-05-17 11:39:18 -070079 "liblog",
80 "libutils",
81 ],
82 cflags: [
83 "-Wall",
84 "-Wextra",
85 "-Werror",
86 "-DHAS_NO_BDROID_BUILDCFG",
87 ],
Chienyuandb55f312019-10-31 14:01:28 +080088 generated_headers: [
89 "RootCanalGeneratedPackets_h",
Chienyuan3d8a8032019-11-01 18:04:07 +080090 "BluetoothGeneratedPackets_h",
Chienyuandb55f312019-10-31 14:01:28 +080091 ],
Myles Watson28eff182017-05-17 11:39:18 -070092 static_libs: [
93 "android.hardware.bluetooth-async",
94 "android.hardware.bluetooth-hci",
95 "libbt-rootcanal",
Myles Watsone22dde22019-01-18 11:42:33 -080096 "libbt-rootcanal-types",
Myles Watson28eff182017-05-17 11:39:18 -070097 ],
98 include_dirs: [
99 "system/bt",
Myles Watson1a0a0da2019-10-17 11:36:33 -0700100 "system/bt/gd",
Myles Watson28eff182017-05-17 11:39:18 -0700101 "system/bt/hci/include",
Jakub Pawlowskiecace462017-10-17 16:40:41 -0700102 "system/bt/internal_include",
Myles Watson28eff182017-05-17 11:39:18 -0700103 "system/bt/stack/include",
104 ],
105}