summaryrefslogtreecommitdiff
path: root/system/gd/rust/gddi/Android.bp
blob: 91713ac48c42fda64fc3b996e86bcb4a62f04c99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "system_bt_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["system_bt_license"],
}

rust_library {
    name: "libgddi",
    defaults: ["gd_rust_defaults"],
    crate_name: "gddi",
    srcs: ["src/lib.rs"],
    edition: "2018",
    proc_macros: ["libgddi_macros"],
    rustlibs: ["libtokio"],
    apex_available: [
        "//apex_available:platform",
        "com.android.bluetooth",
    ],
    min_sdk_version: "30",
}

rust_proc_macro {
    name: "libgddi_macros",
    crate_name: "gddi_macros",
    srcs: ["macros/lib.rs"],
    edition: "2018",
    rustlibs: [
        "libproc_macro2",
        "libquote",
        "libsyn",
    ],
}