DO NOT MERGE ANYWHERE Revert "Temporarily delete build files to avoid build break"
This reverts commit e047593e838eab64da3ebfcf463bbbcf8f138aff.
Bug: 197859996
Test: locally
Change-Id: I550fb428a8f674e769e2bca09c2733d8033cf047
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..ce311f6
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,59 @@
+// This file is generated by cargo2android.py --device --run --tests.
+// Do not modify this file as changes will be overridden on upgrade.
+
+
+
+package {
+ default_applicable_licenses: ["external_rust_crates_gdbstub_arch_license"],
+}
+
+// Added automatically by a large-scale-change
+// See: http://go/android-license-faq
+license {
+ name: "external_rust_crates_gdbstub_arch_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-MIT",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
+rust_defaults {
+ name: "gdbstub_arch_defaults",
+ crate_name: "gdbstub_arch",
+ srcs: ["src/lib.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ edition: "2018",
+ rustlibs: [
+ "libgdbstub",
+ "libnum_traits",
+ ],
+}
+
+rust_test_host {
+ name: "gdbstub_arch_host_test_src_lib",
+ defaults: ["gdbstub_arch_defaults"],
+ test_options: {
+ unit_test: true,
+ },
+}
+
+rust_test {
+ name: "gdbstub_arch_device_test_src_lib",
+ defaults: ["gdbstub_arch_defaults"],
+}
+
+rust_library {
+ name: "libgdbstub_arch",
+ host_supported: true,
+ crate_name: "gdbstub_arch",
+ srcs: ["src/lib.rs"],
+ edition: "2018",
+ rustlibs: [
+ "libgdbstub",
+ "libnum_traits",
+ ],
+}