Build bytemuck
The Android.bp is directly generated from cargo2android.py --config cargo2android.json
Tests are disabled, because they rely on bytemuck, while bytemuck with derive feature enabled depends on bytemuck_derive, so a circular dependency will form.
Test: mma under the bytemuck folder
Bug: b/288486627
Change-Id: I184bf53304376d391c86c5b4ff8dbb542de61df1
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..0389742
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,20 @@
+// This file is generated by cargo2android.py --config cargo2android.json.
+// Do not modify this file as changes will be overridden on upgrade.
+
+
+
+rust_proc_macro {
+ name: "libbytemuck_derive",
+ crate_name: "bytemuck_derive",
+ cargo_env_compat: true,
+ cargo_pkg_version: "1.4.1",
+ srcs: ["src/lib.rs"],
+ edition: "2018",
+ rustlibs: [
+ "libproc_macro2",
+ "libquote",
+ "libsyn",
+ ],
+ product_available: true,
+ vendor_available: true,
+}
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..bbcd4ca
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,5 @@
+{
+ "device": true,
+ "run": true,
+ "tests": false
+}