aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2021-08-20 15:06:42 +0000
committerIvan Lozano <ivanlozano@google.com>2021-08-20 15:12:42 +0000
commit7d3a49b251eaf64358f6b84fd200fdd4de1fe584 (patch)
treeb248ed2a0d1bd4253ea196ea6adc3ed9dd88236d
parent209973119ec15e155a62d3c27445cd550accd1e0 (diff)
downloadjni-sys-7d3a49b251eaf64358f6b84fd200fdd4de1fe584.tar.gz
Add jni-sys Android.bp file
Bug: 191167066 Test: mma Change-Id: I81744038f7a4b600bec447649d4ddb5ec97c85dc
-rw-r--r--Android.bp36
1 files changed, 36 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..c5d2563
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,36 @@
+// This file is generated by cargo2android.py --run --device --tests.
+// Do not modify this file as changes will be overridden on upgrade.
+
+
+
+rust_defaults {
+ name: "jni-sys_test_defaults",
+ crate_name: "jni_sys",
+ srcs: ["src/lib.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ edition: "2015",
+}
+
+rust_test_host {
+ name: "jni-sys_host_test_src_lib",
+ defaults: ["jni-sys_test_defaults"],
+ test_options: {
+ unit_test: true,
+ },
+}
+
+rust_test {
+ name: "jni-sys_device_test_src_lib",
+ defaults: ["jni-sys_test_defaults"],
+}
+
+rust_library {
+ name: "libjni_sys",
+ host_supported: true,
+ crate_name: "jni_sys",
+ cargo_env_compat: true,
+ cargo_pkg_version: "0.3.0",
+ srcs: ["src/lib.rs"],
+ edition: "2015",
+}