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