diff options
author | Andrew Walbran <qwandor@google.com> | 2022-11-08 16:45:38 +0000 |
---|---|---|
committer | Andrew Walbran <qwandor@google.com> | 2022-11-08 17:46:10 +0000 |
commit | 319db232e357feaef76aec45e9a5fa01ff7c815a (patch) | |
tree | ed4839de0fe7a8658aa38cb7668357f944d6007a | |
parent | eca2600b1486f80d6e6533d77c3dc879476035f3 (diff) | |
download | virtio-drivers-319db232e357feaef76aec45e9a5fa01ff7c815a.tar.gz |
Add Soong Blueprint file.
Bug: 256624101
Bug: 237250092
Bug: 237250409
Test: atest virtio-drivers_test_src_lib
Change-Id: I3f3c1d6e9b4cd315f88e2204880f41c9599730d8
-rw-r--r-- | Android.bp | 41 | ||||
-rw-r--r-- | cargo2android.json | 6 |
2 files changed, 47 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..1a6af1d --- /dev/null +++ b/Android.bp @@ -0,0 +1,41 @@ +// This file is generated by cargo2android.py --config cargo2android.json. +// Do not modify this file as changes will be overridden on upgrade. + + + +rust_library { + name: "libvirtio_drivers", + host_supported: true, + crate_name: "virtio_drivers", + cargo_env_compat: true, + cargo_pkg_version: "0.1.0", + srcs: ["src/lib.rs"], + edition: "2018", + rustlibs: [ + "libbitflags", + "liblog_rust", + ], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], +} + +rust_test { + name: "virtio-drivers_test_src_lib", + host_supported: true, + crate_name: "virtio_drivers", + 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: true, + }, + edition: "2018", + rustlibs: [ + "libbitflags", + "liblog_rust", + ], +} diff --git a/cargo2android.json b/cargo2android.json new file mode 100644 index 0000000..cf6ca9c --- /dev/null +++ b/cargo2android.json @@ -0,0 +1,6 @@ +{ + "dependencies": true, + "device": true, + "run": true, + "tests": true +}
\ No newline at end of file |