summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Kheirallah <khei@google.com>2023-04-26 18:05:21 +0000
committerElie Kheirallah <khei@google.com>2023-04-26 18:08:59 +0000
commit0683ec4325e83dfc51c0f07552bb1d2cfa472fce (patch)
tree0c6c1359490afeab2cdb0f513cbb0523c4b559d8
parentf15993e47f3f2c7956a835718e293404dfa656cc (diff)
downloadthreadpool-0683ec4325e83dfc51c0f07552bb1d2cfa472fce.tar.gz
add Android.bp to libthreadpool
Bug: 278781569 Test: m Change-Id: I65d8aeab33d776f987647b81962aa4618f9c78f2
-rw-r--r--Android.bp19
-rw-r--r--cargo2android.json3
2 files changed, 22 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..a99ec20
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,19 @@
+// This file is generated by cargo2android.py --config cargo2android.json.
+// Do not modify this file as changes will be overridden on upgrade.
+
+
+
+rust_library_host {
+ name: "libthreadpool",
+ // has rustc warnings
+ crate_name: "threadpool",
+ cargo_env_compat: true,
+ cargo_pkg_version: "1.8.1",
+ srcs: ["src/lib.rs"],
+ edition: "2015",
+ rustlibs: [
+ "libnum_cpus",
+ ],
+ product_available: true,
+ vendor_available: true,
+}
diff --git a/cargo2android.json b/cargo2android.json
new file mode 100644
index 0000000..1d33ddd
--- /dev/null
+++ b/cargo2android.json
@@ -0,0 +1,3 @@
+{
+ "run": true
+}