Add Android.bp

Test: atest --host -c --include-subdirs .
Change-Id: I42d7f1cb98b14cf976bbe8fcddd5929100542473
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..66731fc
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,77 @@
+// This file is generated by cargo2android.py --device --run --dependencies --tests.
+
+rust_library {
+    name: "libnum_traits",
+    host_supported: true,
+    crate_name: "num_traits",
+    srcs: ["src/lib.rs"],
+    edition: "2015",
+    features: [
+        "default",
+        "std",
+    ],
+    flags: [
+        "--cfg has_i128",
+        "--cfg has_to_int_unchecked",
+    ],
+}
+
+rust_defaults {
+    name: "num-traits_defaults",
+    crate_name: "num_traits",
+    srcs: ["src/lib.rs"],
+    test_suites: ["general-tests"],
+    auto_gen_config: true,
+    edition: "2015",
+    features: [
+        "default",
+        "std",
+    ],
+    flags: [
+        "--cfg has_i128",
+        "--cfg has_to_int_unchecked",
+    ],
+}
+
+rust_test_host {
+    name: "num-traits_host_test_src_lib",
+    defaults: ["num-traits_defaults"],
+}
+
+rust_test {
+    name: "num-traits_device_test_src_lib",
+    defaults: ["num-traits_defaults"],
+}
+
+rust_defaults {
+    name: "num-traits_defaults_cast",
+    crate_name: "cast",
+    srcs: ["tests/cast.rs"],
+    test_suites: ["general-tests"],
+    auto_gen_config: true,
+    edition: "2015",
+    features: [
+        "default",
+        "std",
+    ],
+    flags: [
+        "--cfg has_i128",
+        "--cfg has_to_int_unchecked",
+    ],
+    rustlibs: [
+        "libnum_traits",
+    ],
+}
+
+rust_test_host {
+    name: "num-traits_host_test_tests_cast",
+    defaults: ["num-traits_defaults_cast"],
+}
+
+rust_test {
+    name: "num-traits_device_test_tests_cast",
+    defaults: ["num-traits_defaults_cast"],
+}
+
+// dependent_library ["feature_list"]
+//   autocfg-1.0.0
diff --git a/TEST_MAPPING b/TEST_MAPPING
new file mode 100644
index 0000000..fef6b7a
--- /dev/null
+++ b/TEST_MAPPING
@@ -0,0 +1,19 @@
+// Generated by cargo2android.py for tests in Android.bp
+{
+  "presubmit": [
+    {
+      "name": "num-traits_host_test_src_lib",
+      "host": true
+    },
+    {
+      "name": "num-traits_device_test_src_lib"
+    },
+    {
+      "name": "num-traits_host_test_tests_cast",
+      "host": true
+    },
+    {
+      "name": "num-traits_device_test_tests_cast"
+    }
+  ]
+}