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_shim",
25        "libbt_topshim",
26        "libbt_topshim_facade_protobuf",
27        "libclap",
28        "libfutures",
29        "libgrpcio",
30        "liblazy_static",
31        "liblog_rust",
32        "libnix",
33        "libnum_traits",
34        "libtokio",
35    ],
36    static_libs: [
37        "avrcp-target-service",
38        "lib-bt-packets",
39        "lib-bt-packets-avrcp",
40        "lib-bt-packets-base",
41        "libFraunhoferAAC",
42        "libaudio-a2dp-hw-utils",
43        "libbluetooth-dumpsys",
44        "libbluetooth-gdx",
45        "libbluetooth-types",
46        "libbluetooth_core_rs",
47        "libbluetooth_crypto_toolbox",
48        "libbluetooth_gd", // Gabeldorsche
49        "libbluetooth_log",
50        "libbt-audio-asrc",
51        "libbt-audio-hal-interface",
52        "libbt-bta",
53        "libbt-bta-core",
54        "libbt-btu-main-thread",
55        "libbt-common",
56        "libbt-hci",
57        "libbt-jni-thread",
58        "libbt-sbc-decoder",
59        "libbt-sbc-encoder",
60        "libbt-stack",
61        "libbt-stack-core",
62        "libbt_shim_bridge",
63        "libbt_topshim_cxx",
64        "libbtcore",
65        "libbtdevice",
66        "libbte",
67        "libbthalutils",
68        "libbtif",
69        "libbtif-core",
70        "libchrome",
71        "libevent",
72        "libflatbuffers-cpp",
73        "libg722codec",
74        "liblc3",
75        "libopus",
76        "libosi",
77        "libudrv-uipc",
78    ],
79    shared_libs: [
80        "libaconfig_storage_read_api_cc",
81        "libcrypto",
82        "libcutils",
83        "libgrpc++",
84        "libgrpc_wrap",
85        "liblog",
86        "server_configurable_flags",
87    ],
88    proc_macros: [
89        "libpaste",
90    ],
91}
92
93rust_binary_host {
94    name: "bt_topshim_facade",
95    defaults: ["bt_topshim_facade.defaults"],
96}
97
98rust_test_host {
99    name: "bt_topshim_facade.test",
100    defaults: ["bt_topshim_facade.defaults"],
101    test_suites: ["general-tests"],
102}
103