| // This file is generated by cargo_embargo. |
| // 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_inner_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", |
| "balloon", |
| "geniezone", |
| "gunyah", |
| "usb", |
| ], |
| rustlibs: [ |
| "libacpi_tables", |
| "libanyhow", |
| "libargh", |
| "libasync_task", |
| "libaudio_streams", |
| "libaudio_util", |
| "libballoon_control", |
| "libbase_rust", |
| "libbit_field", |
| "libbytes", |
| "libcfg_if", |
| "libchrono", |
| "libcrc32fast", |
| "libcros_async", |
| "libcros_tracing", |
| "libcrosvm_cli", |
| "libdata_model", |
| "libdisk", |
| "libfuse_rust", |
| "libfutures", |
| "libhypervisor", |
| "libkvm_sys", |
| "liblibc", |
| "liblinux_input_sys", |
| "libmemoffset", |
| "libminijail_rust", |
| "libnet_sys", |
| "libnet_util", |
| "libnum_traits", |
| "libonce_cell", |
| "libp9", |
| "libpower_monitor", |
| "librand", |
| "libresources", |
| "librutabaga_gfx", |
| "libserde", |
| "libserde_json", |
| "libserde_keyvalue", |
| "libsmallvec", |
| "libsync_rust", |
| "libtempfile", |
| "libthiserror", |
| "libusb_util", |
| "libuuid", |
| "libvfio_sys", |
| "libvhost", |
| "libvirtio_sys", |
| "libvm_control", |
| "libvm_memory", |
| "libvmm_vhost", |
| "libzerocopy", |
| ], |
| proc_macros: [ |
| "libasync_trait", |
| "libenumn", |
| "libremain", |
| ], |
| target: { |
| host: { |
| features: [ |
| "gfxstream", |
| "gpu", |
| "gpu_display", |
| "virgl_renderer", |
| "virgl_renderer_next", |
| ], |
| rustlibs: [ |
| "libgpu_display", |
| "librutabaga_gfx", |
| ], |
| shared_libs: ["libgfxstream_backend"], |
| }, |
| }, |
| |
| } |
| |
| rust_test { |
| name: "devices_test_tests_irqchip_main", |
| defaults: ["crosvm_inner_defaults"], |
| host_supported: true, |
| crate_name: "irqchip", |
| cargo_env_compat: true, |
| cargo_pkg_version: "0.1.0", |
| srcs: ["tests/irqchip/main.rs"], |
| test_suites: ["general-tests"], |
| auto_gen_config: true, |
| test_options: { |
| unit_test: false, |
| }, |
| edition: "2021", |
| features: [ |
| "audio", |
| "balloon", |
| "geniezone", |
| "gunyah", |
| "usb", |
| ], |
| rustlibs: [ |
| "libacpi_tables", |
| "libanyhow", |
| "libargh", |
| "libasync_task", |
| "libaudio_streams", |
| "libaudio_util", |
| "libballoon_control", |
| "libbase_rust", |
| "libbit_field", |
| "libbytes", |
| "libcfg_if", |
| "libchrono", |
| "libcrc32fast", |
| "libcros_async", |
| "libcros_tracing", |
| "libcrosvm_cli", |
| "libdata_model", |
| "libdevices", |
| "libdisk", |
| "libfuse_rust", |
| "libfutures", |
| "libhypervisor", |
| "libkvm_sys", |
| "liblibc", |
| "liblinux_input_sys", |
| "libmemoffset", |
| "libminijail_rust", |
| "libnet_sys", |
| "libnet_util", |
| "libnum_traits", |
| "libonce_cell", |
| "libp9", |
| "libpower_monitor", |
| "librand", |
| "libresources", |
| "librutabaga_gfx", |
| "libserde", |
| "libserde_json", |
| "libserde_keyvalue", |
| "libsmallvec", |
| "libsync_rust", |
| "libtempfile", |
| "libthiserror", |
| "libusb_util", |
| "libuuid", |
| "libvfio_sys", |
| "libvhost", |
| "libvirtio_sys", |
| "libvm_control", |
| "libvm_memory", |
| "libvmm_vhost", |
| "libzerocopy", |
| ], |
| proc_macros: [ |
| "libasync_trait", |
| "libenumn", |
| "libremain", |
| ], |
| target: { |
| host: { |
| features: [ |
| "gfxstream", |
| "gpu", |
| "gpu_display", |
| "virgl_renderer", |
| "virgl_renderer_next", |
| ], |
| rustlibs: [ |
| "libgpu_display", |
| "librutabaga_gfx", |
| ], |
| shared_libs: ["libgfxstream_backend"], |
| }, |
| }, |
| |
| } |
| |
| rust_library { |
| name: "libdevices", |
| defaults: ["crosvm_inner_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", |
| "balloon", |
| "geniezone", |
| "gunyah", |
| "usb", |
| ], |
| rustlibs: [ |
| "libacpi_tables", |
| "libanyhow", |
| "libargh", |
| "libasync_task", |
| "libaudio_streams", |
| "libaudio_util", |
| "libballoon_control", |
| "libbase_rust", |
| "libbit_field", |
| "libcfg_if", |
| "libchrono", |
| "libcros_async", |
| "libcros_tracing", |
| "libcrosvm_cli", |
| "libdata_model", |
| "libdisk", |
| "libfuse_rust", |
| "libfutures", |
| "libhypervisor", |
| "libkvm_sys", |
| "liblibc", |
| "liblinux_input_sys", |
| "libmemoffset", |
| "libminijail_rust", |
| "libnet_sys", |
| "libnet_util", |
| "libnum_traits", |
| "libonce_cell", |
| "libp9", |
| "libpower_monitor", |
| "librand", |
| "libresources", |
| "librutabaga_gfx", |
| "libserde", |
| "libserde_json", |
| "libserde_keyvalue", |
| "libsmallvec", |
| "libsync_rust", |
| "libthiserror", |
| "libusb_util", |
| "libuuid", |
| "libvfio_sys", |
| "libvhost", |
| "libvirtio_sys", |
| "libvm_control", |
| "libvm_memory", |
| "libvmm_vhost", |
| "libzerocopy", |
| ], |
| proc_macros: [ |
| "libasync_trait", |
| "libenumn", |
| "libremain", |
| ], |
| visibility: ["//vendor:__subpackages__"], |
| target: { |
| host: { |
| features: [ |
| "gfxstream", |
| "gpu", |
| "gpu_display", |
| "virgl_renderer", |
| "virgl_renderer_next", |
| ], |
| rustlibs: [ |
| "libgpu_display", |
| "librutabaga_gfx", |
| ], |
| shared_libs: ["libgfxstream_backend"], |
| }, |
| }, |
| |
| } |