xref: /aosp_15_r20/external/crosvm/android_audio/Android.bp (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    // See: http://go/android-license-faq
8    // A large-scale-change added 'default_applicable_licenses' to import
9    // all of the 'license_kinds' from "external_crosvm_license"
10    // to get the below license kinds:
11    //   SPDX-license-identifier-BSD
12    //   SPDX-license-identifier-MIT
13    default_applicable_licenses: ["external_crosvm_license"],
14}
15
16rust_library {
17    name: "libandroid_audio",
18    defaults: ["crosvm_inner_defaults"],
19    host_supported: true,
20    crate_name: "android_audio",
21    cargo_env_compat: true,
22    cargo_pkg_version: "0.1.0",
23    crate_root: "src/lib.rs",
24    edition: "2021",
25    rustlibs: [
26        "libaudio_streams",
27        "libbase_rust",
28        "libthiserror",
29    ],
30
31    // added manually
32    target: {
33        android: {
34            shared_libs: ["libaaudio"],
35        },
36        host: {
37            features: ["libaaudio_stub"],
38        },
39    },
40    proc_macros: ["libasync_trait"],
41}
42