aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge E. Moreira <jemoreira@google.com>2021-11-02 13:35:57 -0700
committerJorge Moreira Broche <jemoreira@google.com>2021-11-02 22:53:40 +0000
commitbeef2f8189fb73b474ff0ca460eb873c8f1b4bf2 (patch)
tree74122272998b7397ddc08dbf7aa68718bcbfd8e1
parent8410424afd86e43cc2d9ef00c5b0a76312a45444 (diff)
downloadgdbstub_arch-beef2f8189fb73b474ff0ca460eb873c8f1b4bf2.tar.gz
This reverts commit e047593e838eab64da3ebfcf463bbbcf8f138aff. Bug: 197859996 Test: locally Change-Id: I550fb428a8f674e769e2bca09c2733d8033cf047
-rw-r--r--Android.bp59
1 files changed, 59 insertions, 0 deletions
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",
+ ],
+}