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_library {
11    name: "libbluetooth_with_facades",
12    defaults: ["gd_rust_defaults"],
13    crate_name: "bluetooth_with_facades",
14    srcs: ["src/lib.rs"],
15    edition: "2018",
16    rustlibs: [
17      "libbt_hal",
18      "libbt_hci",
19      "libbt_facade_proto",
20      "libfutures",
21      "libgrpcio",
22      "libprotobuf",
23      "libtokio",
24      "libgddi",
25      "libbt_main",
26      "liblog_rust",
27    ],
28}
29
30rust_binary {
31    name: "bluetooth_with_facades",
32    defaults: ["gd_rust_defaults"],
33    srcs: ["src/main.rs"],
34    edition: "2018",
35    rustlibs: [
36      "libclap",
37      "libbluetooth_with_facades",
38      "libfutures",
39      "libgrpcio",
40      "libtokio",
41      "libnix",
42      "libbt_common",
43      "liblog_rust",
44    ],
45}
46
47rust_library {
48    name: "libbt_facade_helpers",
49    defaults: ["gd_rust_defaults"],
50    crate_name: "bt_facade_helpers",
51    srcs: ["helpers/lib.rs"],
52    edition: "2018",
53    rustlibs: [
54        "libbt_facade_proto",
55        "libbt_packets",
56        "libbytes",
57        "libfutures",
58        "libgrpcio",
59        "libtokio",
60        "libprotobuf",
61        "liblog_rust",
62        "libcxx",
63    ],
64}
65