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
10rust_defaults {
11    name: "bt_topshim_facade.defaults",
12    defaults: [
13        "gd_rust_defaults",
14    ],
15    crate_name: "bt_topshim_facade",
16    srcs: ["src/main.rs"],
17    ld_flags: [
18        "-fsanitize-minimal-runtime",
19        "-fsanitize=undefined",
20    ],
21    rustlibs: [
22        "libbluetooth_core_rs_for_facade",
23        "libbt_common",
24        "libbt_topshim",
25        "libbt_topshim_facade_protobuf",
26        "libclap",
27        "libfutures",
28        "libgrpcio",
29        "liblog_rust",
30        "libnix",
31        "libnum_traits",
32        "libtokio",
33    ],
34    static_libs: [
35        "aics",
36        "avrcp-target-service",
37        "lib-bt-packets",
38        "lib-bt-packets-avrcp",
39        "lib-bt-packets-base",
40        "libFraunhoferAAC",
41        "libbluetooth-types",
42        "libbluetooth_crypto_toolbox",
43        "libbluetooth_gd", // Gabeldorsche
44        "libbluetooth_log",
45        "libbt-audio-asrc",
46        "libbt-audio-hal-interface",
47        "libbt-bta",
48        "libbt-bta-core",
49        "libbt-btu-main-thread",
50        "libbt-common",
51        "libbt-hci",
52        "libbt-jni-thread",
53        "libbt-sbc-decoder",
54        "libbt-sbc-encoder",
55        "libbt-stack",
56        "libbt-stack-core",
57        "libbt_topshim_cxx",
58        "libbtcore",
59        "libbtdevice",
60        "libbte",
61        "libbthalutils",
62        "libbtif",
63        "libbtif-core",
64        "libchrome",
65        "libevent",
66        "libflatbuffers-cpp",
67        "libg722codec",
68        "liblc3",
69        "libopus",
70        "libosi",
71        "libudrv-uipc",
72    ],
73    shared_libs: [
74        "libaconfig_storage_read_api_cc",
75        "libbinder",
76        "libcrypto",
77        "libcutils",
78        "libgrpc++",
79        "libgrpc_wrap",
80        "liblog",
81        "server_configurable_flags",
82    ],
83    proc_macros: [
84        "libpaste",
85    ],
86}
87
88rust_binary_host {
89    name: "bt_topshim_facade",
90    defaults: ["bt_topshim_facade.defaults"],
91    static_libs: [
92        "bluetooth_flags_c_lib",
93    ],
94}
95
96rust_test_host {
97    name: "bt_topshim_facade.test",
98    defaults: ["bt_topshim_facade.defaults"],
99    static_libs: [
100        "bluetooth_flags_c_lib_for_test",
101    ],
102    test_suites: ["general-tests"],
103}
104