1// This file is generated by cargo2android.py --run --device --test --global_defaults=crosvm_defaults --dependencies.
2
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "external_adhd_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-BSD
9    default_applicable_licenses: ["external_adhd_license"],
10}
11
12rust_defaults {
13    name: "libcras_defaults",
14    defaults: ["crosvm_defaults"],
15    crate_name: "libcras",
16    srcs: ["src/libcras.rs"],
17    test_suites: ["general-tests"],
18    auto_gen_config: true,
19    edition: "2018",
20    rustlibs: [
21        "libaudio_streams",
22        "libcras_sys",
23        "libdata_model",
24        "liblibc",
25        "libsys_util",
26    ],
27}
28
29rust_test_host {
30    name: "libcras_host_test_src_libcras",
31    defaults: ["libcras_defaults"],
32}
33
34rust_test {
35    name: "libcras_device_test_src_libcras",
36    defaults: ["libcras_defaults"],
37}
38
39rust_library {
40    name: "liblibcras",
41    defaults: ["crosvm_defaults"],
42    host_supported: true,
43    crate_name: "libcras",
44    srcs: ["src/libcras.rs"],
45    edition: "2018",
46    rustlibs: [
47        "libaudio_streams",
48        "libcras_sys",
49        "libdata_model",
50        "liblibc",
51        "libsys_util",
52    ],
53}
54
55// dependent_library ["feature_list"]
56//   ../../../../crosvm/assertions/src/lib.rs
57//   ../../../../crosvm/data_model/src/lib.rs
58//   ../../../../crosvm/sync/src/lib.rs
59//   ../../../../crosvm/sys_util/poll_token_derive/poll_token_derive.rs
60//   ../../../../crosvm/sys_util/src/lib.rs
61//   ../../../../crosvm/syscall_defines/src/lib.rs
62//   ../../../../crosvm/tempfile/src/lib.rs
63//   ../../../audio_streams/src/audio_streams.rs
64//   ../cras-sys/src/lib.rs
65//   libc-0.2.76 "default,std"
66//   proc-macro2-1.0.19 "default,proc-macro"
67//   quote-1.0.7 "default,proc-macro"
68//   syn-1.0.39 "clone-impls,default,derive,parsing,printing,proc-macro,quote"
69//   unicode-xid-0.2.1 "default"
70