diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2023-11-09 00:46:20 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-11-09 00:46:20 +0000 |
commit | 03d501eaf14441d84ba90267788f5a341c740bf5 (patch) | |
tree | b4117d1e3f8b58573bac244c44693f9aaca78a18 | |
parent | a4d95aa0067b27ccba773ee366551489f236b634 (diff) | |
parent | bf8f8631f59c28ddea177a34122653b295d055fd (diff) | |
download | cfg-if-03d501eaf14441d84ba90267788f5a341c740bf5.tar.gz |
Merge "Adding autogenerated Trusty makefile rules" into main am: bf8f8631f5
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/cfg-if/+/2748960
Change-Id: I48f33808766d5aad7cefae3db2296c0cd7f23057
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | cargo2rulesmk.json | 4 | ||||
-rw-r--r-- | rules.mk | 19 |
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 |