| // 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_defaults { |
| name: "arch_test_defaults", |
| defaults: ["crosvm_defaults"], |
| crate_name: "arch", |
| srcs: ["src/lib.rs"], |
| test_suites: ["general-tests"], |
| auto_gen_config: true, |
| edition: "2018", |
| rustlibs: [ |
| "libacpi_tables", |
| "libbase_rust", |
| "libdevices", |
| "libhypervisor", |
| "libkernel_cmdline", |
| "liblibc", |
| "libminijail_rust", |
| "libpower_monitor", |
| "libresources", |
| "libsync_rust", |
| "libthiserror", |
| "libvm_control", |
| "libvm_memory", |
| ], |
| } |
| |
| rust_test_host { |
| name: "arch_host_test_src_lib", |
| defaults: ["arch_test_defaults"], |
| test_options: { |
| unit_test: true, |
| }, |
| target: { |
| linux_glibc_x86_64: { |
| features: [ |
| "gdb", |
| ], |
| rustlibs: [ |
| "libgdbstub_arch", |
| ], |
| }, |
| }, |
| } |
| |
| rust_test { |
| name: "arch_device_test_src_lib", |
| defaults: ["arch_test_defaults"], |
| target: { |
| linux_glibc_x86_64: { |
| features: [ |
| "gdb", |
| ], |
| rustlibs: [ |
| "libgdbstub_arch", |
| ], |
| }, |
| }, |
| } |
| |
| rust_library { |
| name: "libarch", |
| defaults: ["crosvm_defaults"], |
| host_supported: true, |
| crate_name: "arch", |
| srcs: ["src/lib.rs"], |
| edition: "2018", |
| rustlibs: [ |
| "libacpi_tables", |
| "libbase_rust", |
| "libdevices", |
| "libhypervisor", |
| "libkernel_cmdline", |
| "liblibc", |
| "libminijail_rust", |
| "libpower_monitor", |
| "libresources", |
| "libsync_rust", |
| "libthiserror", |
| "libvm_control", |
| "libvm_memory", |
| ], |
| target: { |
| linux_glibc_x86_64: { |
| features: [ |
| "gdb", |
| ], |
| rustlibs: [ |
| "libgdbstub_arch", |
| ], |
| }, |
| }, |
| } |