177 lines
4.0 KiB
Plaintext
177 lines
4.0 KiB
Plaintext
// This file is generated by cargo2android.py --config cargo2android.json.
|
|
// Do not modify this file as changes will be overridden on upgrade.
|
|
|
|
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "external_crosvm_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-BSD
|
|
default_applicable_licenses: ["external_crosvm_license"],
|
|
}
|
|
|
|
rust_test {
|
|
name: "devices_test_src_lib",
|
|
defaults: ["crosvm_defaults"],
|
|
host_supported: true,
|
|
crate_name: "devices",
|
|
cargo_env_compat: true,
|
|
cargo_pkg_version: "0.1.0",
|
|
srcs: ["src/lib.rs"],
|
|
test_suites: ["general-tests"],
|
|
auto_gen_config: true,
|
|
test_options: {
|
|
unit_test: false,
|
|
},
|
|
edition: "2021",
|
|
features: [
|
|
"audio",
|
|
"usb",
|
|
],
|
|
rustlibs: [
|
|
"libacpi_tables",
|
|
"libanyhow",
|
|
"libargh",
|
|
"libasync_task",
|
|
"libaudio_streams",
|
|
"libballoon_control",
|
|
"libbase_rust",
|
|
"libbit_field",
|
|
"libcfg_if",
|
|
"libcros_async",
|
|
"libdata_model",
|
|
"libdisk",
|
|
"libfuse_rust",
|
|
"libfutures",
|
|
"libhypervisor",
|
|
"libkvm_sys",
|
|
"liblibc",
|
|
"liblinux_input_sys",
|
|
"libmemoffset",
|
|
"libminijail_rust",
|
|
"libnet_sys",
|
|
"libnet_util",
|
|
"libonce_cell",
|
|
"libp9",
|
|
"libpower_monitor",
|
|
"libresources",
|
|
"libserde",
|
|
"libserde_json",
|
|
"libserde_keyvalue",
|
|
"libsmallvec",
|
|
"libsync_rust",
|
|
"libtempfile",
|
|
"libthiserror",
|
|
"libusb_util",
|
|
"libuuid",
|
|
"libvfio_sys",
|
|
"libvhost",
|
|
"libvirtio_sys",
|
|
"libvm_control",
|
|
"libvm_memory",
|
|
"libvmm_vhost",
|
|
],
|
|
proc_macros: [
|
|
"libenumn",
|
|
"libremain",
|
|
],
|
|
target: {
|
|
host: {
|
|
features: [
|
|
"gfxstream",
|
|
"gpu",
|
|
],
|
|
rustlibs: [
|
|
"libgpu_display",
|
|
"librutabaga_gfx",
|
|
],
|
|
shared_libs: [
|
|
"libvirglrenderer",
|
|
"libgfxstream_backend",
|
|
],
|
|
},
|
|
android: {
|
|
shared_libs: ["libdrm"],
|
|
static_libs: [
|
|
"libepoxy",
|
|
"libgbm",
|
|
"libvirglrenderer",
|
|
],
|
|
},
|
|
},
|
|
}
|
|
|
|
rust_library {
|
|
name: "libdevices",
|
|
defaults: ["crosvm_defaults"],
|
|
host_supported: true,
|
|
crate_name: "devices",
|
|
cargo_env_compat: true,
|
|
cargo_pkg_version: "0.1.0",
|
|
srcs: ["src/lib.rs"],
|
|
edition: "2021",
|
|
features: [
|
|
"audio",
|
|
"usb",
|
|
],
|
|
rustlibs: [
|
|
"libacpi_tables",
|
|
"libanyhow",
|
|
"libargh",
|
|
"libasync_task",
|
|
"libaudio_streams",
|
|
"libballoon_control",
|
|
"libbase_rust",
|
|
"libbit_field",
|
|
"libcfg_if",
|
|
"libcros_async",
|
|
"libdata_model",
|
|
"libdisk",
|
|
"libfuse_rust",
|
|
"libfutures",
|
|
"libhypervisor",
|
|
"libkvm_sys",
|
|
"liblibc",
|
|
"liblinux_input_sys",
|
|
"libmemoffset",
|
|
"libminijail_rust",
|
|
"libnet_sys",
|
|
"libnet_util",
|
|
"libonce_cell",
|
|
"libp9",
|
|
"libpower_monitor",
|
|
"libresources",
|
|
"libserde",
|
|
"libserde_json",
|
|
"libserde_keyvalue",
|
|
"libsmallvec",
|
|
"libsync_rust",
|
|
"libthiserror",
|
|
"libusb_util",
|
|
"libuuid",
|
|
"libvfio_sys",
|
|
"libvhost",
|
|
"libvirtio_sys",
|
|
"libvm_control",
|
|
"libvm_memory",
|
|
"libvmm_vhost",
|
|
],
|
|
proc_macros: [
|
|
"libenumn",
|
|
"libremain",
|
|
],
|
|
target: {
|
|
host: {
|
|
features: [
|
|
"gfxstream",
|
|
"gpu",
|
|
],
|
|
rustlibs: [
|
|
"libgpu_display",
|
|
"librutabaga_gfx",
|
|
],
|
|
shared_libs: ["libgfxstream_backend"],
|
|
},
|
|
},
|
|
}
|