1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_bt_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_bt_license"],
}
cc_library_static {
name: "libbt-common",
defaults: [
"fluoride_defaults",
],
host_supported: true,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/gd",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
"address_obfuscator.cc",
"le_conn_params.cc",
"message_loop_thread.cc",
"os_utils.cc",
"repeating_timer.cc",
"stop_watch_legacy.cc",
"time_util.cc",
],
proto: {
type: "lite",
canonical_path_from_root: false,
export_proto_headers: true,
},
shared_libs: [
"libcrypto",
"libcutils",
],
apex_available: ["com.android.bt"],
min_sdk_version: "Tiramisu",
header_libs: ["libbluetooth_headers"],
static_libs: [
"libbluetooth_crypto_toolbox",
"libbluetooth_hci_pdl",
"libbluetooth_log",
"libbt-platform-protos-lite",
],
}
cc_test {
name: "bluetooth_test_common",
test_suites: ["general-tests"],
defaults: [
"fluoride_defaults",
"mts_defaults",
],
host_supported: true,
test_options: {
unit_test: true,
},
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/gd",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
"address_obfuscator_unittest.cc",
"base_bind_unittest.cc",
"leaky_bonded_queue_unittest.cc",
"message_loop_thread_unittest.cc",
"repeating_timer_unittest.cc",
"state_machine_unittest.cc",
"time_util_unittest.cc",
],
target: {
android: {
shared_libs: ["libstatssocket"],
},
},
shared_libs: [
"libbase",
"libcrypto",
"liblog",
],
static_libs: [
"libbluetooth-types",
"libbluetooth_crypto_toolbox",
"libbluetooth_hci_pdl",
"libbluetooth_log",
"libbt-common",
"libbt-platform-protos-lite",
"libchrome",
"libevent",
"libgmock",
"libprotobuf-cpp-lite",
],
sanitize: {
cfi: false,
},
header_libs: ["libbluetooth_headers"],
}
cc_test {
name: "net_test_performance",
defaults: [
"fluoride_defaults",
"mts_defaults",
],
test_suites: ["general-tests"],
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/gd",
],
host_supported: true,
srcs: [
"test/thread_performance_test.cc",
],
shared_libs: [
"libbase",
"liblog",
],
static_libs: [
"libbluetooth_log",
"libbt-common",
"libchrome",
"libcom.android.sysprop.bluetooth.wrapped",
"libevent",
"libgmock",
"libosi",
],
header_libs: ["libbluetooth_headers"],
}
cc_benchmark {
name: "bluetooth_benchmark_thread_performance",
defaults: [
"fluoride_defaults",
],
host_supported: true,
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/gd",
],
srcs: [
"benchmark/thread_performance_benchmark.cc",
],
shared_libs: [
"libbase",
"liblog",
],
static_libs: [
"libbluetooth_log",
"libbt-common",
"libchrome",
"libcom.android.sysprop.bluetooth.wrapped",
"libevent",
"libosi",
],
header_libs: ["libbluetooth_headers"],
}
|