aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorAndrew Walbran <qwandor@google.com>2021-03-12 16:36:50 +0000
committerAndrew Walbran <qwandor@google.com>2021-03-30 16:27:37 +0000
commitea0d2d32318cc81aca08b64d2f34cb9ee9aef3e5 (patch)
tree2377f0703a57702b707bb56dacd6c88c6cd73e79 /Android.bp
parentf2b560084491ce3f9da4bc451322e80d10bde4e9 (diff)
downloadshared_child-ea0d2d32318cc81aca08b64d2f34cb9ee9aef3e5.tar.gz
Import shared_child crate.
Bug: 184003702 Change-Id: Ia69a9f2d19bc4ba384daeb8983f72d338aef6c02
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp41
1 files changed, 41 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..79874d6
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,41 @@
+// This file is generated by cargo2android.py --run --device --dependencies --tests.
+// Do not modify this file as changes will be overridden on upgrade.
+
+rust_library {
+ name: "libshared_child",
+ host_supported: true,
+ crate_name: "shared_child",
+ srcs: ["src/lib.rs"],
+ edition: "2015",
+ rustlibs: [
+ "liblibc",
+ ],
+}
+
+rust_defaults {
+ name: "shared_child_defaults",
+ crate_name: "shared_child",
+ srcs: ["src/lib.rs"],
+ test_suites: ["general-tests"],
+ auto_gen_config: true,
+ edition: "2015",
+ rustlibs: [
+ "liblibc",
+ ],
+}
+
+rust_test_host {
+ name: "shared_child_host_test_src_lib",
+ defaults: ["shared_child_defaults"],
+ test_options: {
+ unit_test: true,
+ },
+}
+
+rust_test {
+ name: "shared_child_device_test_src_lib",
+ defaults: ["shared_child_defaults"],
+}
+
+// dependent_library ["feature_list"]
+// libc-0.2.88 "default,std"