aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Larsen <perlarsen@google.com>2023-06-28 00:38:41 +0000
committerAndrei Homescu <ahomescu@google.com>2023-10-31 00:17:01 +0000
commit16621d7529671b4066ff33bccdc25f3285a91141 (patch)
tree0c68c9e440451d1565d4ba49ac5f1197090c9983
parentc118b3d2e7b9cbdad5ce91da4e3b2dc2b7945c74 (diff)
downloadcfg-if-16621d7529671b4066ff33bccdc25f3285a91141.tar.gz
Adding autogenerated Trusty makefile rules
Bug: 281857510 Test: build.py qemu-generic-arm64-test-debug Change-Id: I2e788cb3698563d1d25b38b567353c034fedbd11
-rw-r--r--cargo2rulesmk.json4
-rw-r--r--rules.mk19
2 files changed, 23 insertions, 0 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json
new file mode 100644
index 0000000..6c03ee1
--- /dev/null
+++ b/cargo2rulesmk.json
@@ -0,0 +1,4 @@
+{
+ "module_add_implicit_deps": false,
+ "module_add_implicit_deps_reason": "# NOTE: This crate is a dependency of libstd, so we can't implicitly depend on\n# libstd as we would normally. The dependencies listed above are the ones\n# declared in the `Cargo.toml` when the `rustc-dep-of-std` feature is enabled."
+} \ No newline at end of file
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..05bd4dd
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,19 @@
+# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json --features .
+# Do not modify this file as changes will be overridden on upgrade.
+
+LOCAL_DIR := $(GET_LOCAL_DIR)
+MODULE := $(LOCAL_DIR)
+MODULE_CRATE_NAME := cfg_if
+MODULE_SRCS := \
+ $(LOCAL_DIR)/src/lib.rs \
+
+# NOTE: This crate is a dependency of libstd, so we can't implicitly depend on
+# libstd as we would normally. The dependencies listed above are the ones
+# declared in the `Cargo.toml` when the `rustc-dep-of-std` feature is enabled.
+MODULE_ADD_IMPLICIT_DEPS := false
+MODULE_RUST_EDITION := 2018
+MODULE_LIBRARY_DEPS := \
+ trusty/user/base/lib/libcompiler_builtins-rust \
+ trusty/user/base/lib/libcore-rust \
+
+include make/library.mk