• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "system_bt_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["system_bt_license"],
8}
9
10cc_library_static {
11    name: "libbt-common",
12    defaults: [
13        "fluoride_defaults",
14        "clang_file_coverage",
15    ],
16    host_supported: true,
17    include_dirs: [
18        "system/bt",
19        "system/bt/stack/include",
20        "system/bt/gd/rust/shim",
21    ],
22    srcs: [
23        "address_obfuscator.cc",
24        "message_loop_thread.cc",
25        "metric_id_allocator.cc",
26        "metrics.cc",
27        "once_timer.cc",
28        "os_utils.cc",
29        "repeating_timer.cc",
30        "time_util.cc",
31        "stop_watch_legacy.cc",
32    ],
33    shared_libs: [
34        "libcrypto",
35    ],
36    static_libs: [
37        "libbt-protos-lite",
38    ],
39}
40
41cc_test {
42    name: "bluetooth_test_common",
43    test_suites: ["device-tests"],
44    defaults: [
45        "fluoride_defaults",
46        "clang_coverage_bin",
47    ],
48    host_supported: true,
49    test_options: {
50        unit_test: true,
51    },
52    include_dirs: [
53        "system/bt",
54        "system/bt/stack/include",
55        "system/bt/gd/rust/shim",
56    ],
57    srcs: [
58        "address_obfuscator_unittest.cc",
59        "leaky_bonded_queue_unittest.cc",
60        "lru_unittest.cc",
61        "message_loop_thread_unittest.cc",
62        "metrics_unittest.cc",
63        "metric_id_allocator_unittest.cc",
64        "once_timer_unittest.cc",
65        "repeating_timer_unittest.cc",
66        "state_machine_unittest.cc",
67        "time_util_unittest.cc",
68        "id_generator_unittest.cc",
69    ],
70    shared_libs: [
71        "libprotobuf-cpp-lite",
72        "libcrypto",
73    ],
74    static_libs: [
75        "libgmock",
76        "libbt-common",
77        "libbt-protos-lite",
78    ],
79    sanitize: {
80        cfi: false,
81    },
82}
83
84cc_test {
85    name: "net_test_performance",
86    defaults: ["fluoride_defaults"],
87    test_suites: ["device-tests"],
88    include_dirs: ["system/bt"],
89    host_supported: true,
90    srcs: [
91        "test/thread_performance_test.cc",
92    ],
93    shared_libs: [
94        "liblog",
95    ],
96    static_libs: [
97        "libgmock",
98        "libosi",
99        "libbt-common",
100    ],
101}
102
103cc_benchmark {
104    name: "bluetooth_benchmark_thread_performance",
105    defaults: [
106        "fluoride_defaults",
107    ],
108    host_supported: true,
109    include_dirs: ["system/bt"],
110    srcs: [
111        "benchmark/thread_performance_benchmark.cc",
112    ],
113    shared_libs: [
114        "libcrypto",
115        "liblog",
116    ],
117    static_libs: [
118        "libosi",
119        "libbt-common",
120    ],
121}
122
123cc_benchmark {
124    name: "bluetooth_benchmark_timer_performance",
125    defaults: [
126        "fluoride_defaults",
127    ],
128    host_supported: false,
129    include_dirs: ["system/bt"],
130    srcs: [
131        "benchmark/timer_performance_benchmark.cc",
132    ],
133    shared_libs: [
134        "liblog",
135        "libcrypto",
136        "libprotobuf-cpp-lite",
137        "libcrypto",
138        "libcutils",
139    ],
140    static_libs: [
141        "libosi",
142        "libbt-common",
143        "libbt-protos-lite",
144    ],
145}
146