diff options
author | Maurice Lam <yukl@google.com> | 2023-02-15 18:59:39 +0000 |
---|---|---|
committer | Maurice Lam <yukl@google.com> | 2023-02-15 19:49:35 +0000 |
commit | 40fb2dba9e93e56bf42094b5acc6b71bd3ca78c0 (patch) | |
tree | 1dcc7d8f198a0a55ae34b5e0348b764be2825e77 | |
parent | 7547b2c517884aba2d3bddcd5f6b396f8f0e4ce7 (diff) | |
download | ouroboros-40fb2dba9e93e56bf42094b5acc6b71bd3ca78c0.tar.gz |
Run cargo2android on ouroboros
Bug: 267375624
Test: m libouroboros.rlib-std
Change-Id: I4ae079f215b3df8ade3c88280ba7c2f695975362
-rw-r--r-- | Android.bp | 26 | ||||
-rw-r--r-- | cargo2android.json | 5 |
2 files changed, 31 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..dfddd5f --- /dev/null +++ b/Android.bp @@ -0,0 +1,26 @@ +// This file is generated by cargo2android.py --config cargo2android.json. +// Do not modify this file as changes will be overridden on upgrade. + + + +rust_library_rlib { + name: "libouroboros", + host_supported: true, + crate_name: "ouroboros", + cargo_env_compat: true, + cargo_pkg_version: "0.15.5", + srcs: ["src/lib.rs"], + edition: "2018", + features: [ + "default", + "std", + ], + rustlibs: [ + "libaliasable", + ], + proc_macros: ["libouroboros_macro"], + apex_available: [ + "//apex_available:platform", + "//apex_available:anyapex", + ], +} diff --git a/cargo2android.json b/cargo2android.json new file mode 100644 index 0000000..d851ed5 --- /dev/null +++ b/cargo2android.json @@ -0,0 +1,5 @@ +{ + "device": true, + "force-rlib": true, + "run": true +}
\ No newline at end of file |