| // This file is generated by cargo2android.py --run --device --tests --dependencies --global_defaults=crosvm_defaults --add_workspace --features=gdb. |
| // NOTE: The --features=gdb should be applied only to the host (not the device) and there are inline changes to achieve this |
| |
| 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", |
| target: { |
| linux_glibc_x86_64: { |
| features: [ |
| "gdb", |
| "gdbstub", |
| ], |
| rustlibs: [ |
| "libgdbstub", |
| ], |
| }, |
| }, |
| 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, |
| }, |
| } |
| |
| rust_test { |
| name: "arch_device_test_src_lib", |
| defaults: ["arch_test_defaults"], |
| } |
| |
| rust_library { |
| name: "libarch", |
| defaults: ["crosvm_defaults"], |
| host_supported: true, |
| crate_name: "arch", |
| srcs: ["src/lib.rs"], |
| edition: "2018", |
| target: { |
| linux_glibc_x86_64: { |
| features: [ |
| "gdb", |
| "gdbstub", |
| ], |
| rustlibs: [ |
| "libgdbstub", |
| ], |
| }, |
| }, |
| rustlibs: [ |
| "libacpi_tables", |
| "libbase_rust", |
| "libdevices", |
| "libhypervisor", |
| "libkernel_cmdline", |
| "liblibc", |
| "libminijail_rust", |
| "libpower_monitor", |
| "libresources", |
| "libsync_rust", |
| "libthiserror", |
| "libvm_control", |
| "libvm_memory", |
| ], |
| } |
| |
| // dependent_library ["feature_list"] |
| // ../../adhd/audio_streams/src/audio_streams.rs |
| // ../../adhd/cras/client/cras-sys/src/lib.rs |
| // ../../adhd/cras/client/libcras/src/libcras.rs |
| // ../../libchromeos-rs/src/lib.rs |
| // ../../minijail/rust/minijail-sys/lib.rs |
| // ../../minijail/rust/minijail/src/lib.rs |
| // ../../rust/vmm_vhost/src/lib.rs "default,vhost-user,vhost-user-master" |
| // ../../vm_tools/p9/src/lib.rs |
| // ../../vm_tools/p9/wire_format_derive/wire_format_derive.rs |
| // ../acpi_tables/src/lib.rs |
| // ../assertions/src/lib.rs |
| // ../base/src/lib.rs |
| // ../bit_field/bit_field_derive/bit_field_derive.rs |
| // ../bit_field/src/lib.rs |
| // ../cros_async/src/lib.rs |
| // ../data_model/src/lib.rs |
| // ../devices/src/lib.rs |
| // ../disk/src/disk.rs |
| // ../enumn/src/lib.rs |
| // ../fuse/src/lib.rs |
| // ../hypervisor/src/lib.rs |
| // ../io_uring/src/lib.rs |
| // ../kernel_cmdline/src/kernel_cmdline.rs |
| // ../kvm/src/lib.rs |
| // ../kvm_sys/src/lib.rs |
| // ../linux_input_sys/src/lib.rs |
| // ../net_sys/src/lib.rs |
| // ../net_util/src/lib.rs |
| // ../power_monitor/src/lib.rs |
| // ../rand_ish/src/lib.rs |
| // ../resources/src/lib.rs |
| // ../rutabaga_gfx/src/lib.rs |
| // ../sync/src/lib.rs |
| // ../sys_util/poll_token_derive/poll_token_derive.rs |
| // ../sys_util/src/lib.rs |
| // ../tempfile/src/lib.rs |
| // ../usb_sys/src/lib.rs |
| // ../usb_util/src/lib.rs |
| // ../vfio_sys/src/lib.rs |
| // ../vhost/src/lib.rs |
| // ../virtio_sys/src/lib.rs |
| // ../vm_control/src/lib.rs |
| // ../vm_memory/src/lib.rs |
| // async-task-4.0.3 "default,std" |
| // async-trait-0.1.51 |
| // autocfg-1.0.1 |
| // bitflags-1.2.1 "default" |
| // cfg-if-1.0.0 |
| // downcast-rs-1.2.0 "default,std" |
| // futures-0.3.16 "alloc,std" |
| // futures-channel-0.3.16 "alloc,futures-sink,sink,std" |
| // futures-core-0.3.16 "alloc,std" |
| // futures-io-0.3.16 "std" |
| // futures-sink-0.3.16 "alloc,std" |
| // futures-task-0.3.16 "alloc,std" |
| // futures-util-0.3.16 "alloc,channel,futures-channel,futures-io,futures-sink,io,memchr,sink,slab,std" |
| // getrandom-0.2.3 "std" |
| // intrusive-collections-0.9.2 "alloc,default" |
| // itoa-0.4.7 |
| // libc-0.2.98 "default,std" |
| // log-0.4.14 |
| // memchr-2.4.0 "default,std" |
| // memoffset-0.5.6 "default" |
| // once_cell-1.8.0 "alloc,default,race,std" |
| // paste-1.0.5 |
| // pin-project-lite-0.2.7 |
| // pin-utils-0.1.0 |
| // pkg-config-0.3.19 |
| // ppv-lite86-0.2.10 "simd,std" |
| // proc-macro2-1.0.28 "default,proc-macro" |
| // protobuf-2.24.1 |
| // quote-1.0.9 "default,proc-macro" |
| // rand-0.8.4 "alloc,default,getrandom,libc,rand_chacha,rand_hc,std,std_rng" |
| // rand_chacha-0.3.1 "std" |
| // rand_core-0.6.3 "alloc,getrandom,std" |
| // remain-0.2.2 |
| // remove_dir_all-0.5.3 |
| // ryu-1.0.5 |
| // serde-1.0.126 "default,derive,serde_derive,std" |
| // serde_derive-1.0.126 "default" |
| // serde_json-1.0.65 "default,std" |
| // slab-0.4.3 "default,std" |
| // smallvec-1.6.1 |
| // syn-1.0.74 "clone-impls,default,derive,full,parsing,printing,proc-macro,quote,visit-mut" |
| // tempfile-3.2.0 |
| // thiserror-1.0.26 |
| // thiserror-impl-1.0.26 |
| // unicode-xid-0.2.2 "default" |