• 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_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        "libbluetooth_rs",
18        "libbt_facade_proto",
19        "libfutures",
20        "libgddi",
21        "libgrpcio",
22        "liblog_rust",
23        "libprotobuf_deprecated",
24        "libtokio",
25    ],
26}
27
28rust_binary {
29    name: "bluetooth_with_facades",
30    defaults: ["gd_rust_defaults"],
31    srcs: ["src/main.rs"],
32    edition: "2018",
33    rustlibs: [
34        "libbluetooth_with_facades",
35        "libbt_common",
36        "libclap",
37        "libfutures",
38        "libgrpcio",
39        "liblazy_static",
40        "liblog_rust",
41        "libnix",
42        "libtokio",
43    ],
44}
45
46rust_test {
47    name: "bluetooth_with_facades.test",
48    defaults: ["gd_rust_defaults"],
49    srcs: ["src/main.rs"],
50    edition: "2018",
51    rustlibs: [
52        "libbluetooth_with_facades",
53        "libbt_common",
54        "libclap",
55        "libfutures",
56        "libgrpcio",
57        "liblazy_static",
58        "liblog_rust",
59        "libnix",
60        "libtokio",
61    ],
62    test_suites: ["general-tests"],
63}
64
65rust_library {
66    name: "libbt_facade_helpers",
67    defaults: ["gd_rust_defaults"],
68    crate_name: "bt_facade_helpers",
69    srcs: ["helpers/lib.rs"],
70    edition: "2018",
71    rustlibs: [
72        "libbt_facade_proto",
73        "libbytes",
74        "libcxx",
75        "libfutures",
76        "libgrpcio",
77        "liblog_rust",
78        "libprotobuf_deprecated",
79        "libtokio",
80    ],
81    apex_available: [
82        "com.android.btservices",
83    ],
84    min_sdk_version: "30",
85}
86