aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Larsen <perlarsen@google.com>2023-06-28 03:27:47 +0000
committerAndrei Homescu <ahomescu@google.com>2023-11-01 22:45:16 +0000
commit4a1a5be4f3a6cb809b19cc850c23c16b31e86d5a (patch)
tree81152415379a6925d196c06c6d060cc6087aac46
parent1e34a9b7a31b29fcc0d16b38cccb443ca25bac51 (diff)
downloadproc-macro-error-4a1a5be4f3a6cb809b19cc850c23c16b31e86d5a.tar.gz
Adding autogenerated Trusty makefile rules
Bug: 281857510 Test: build.py --skip-tests qemu-generic-arm64-test-debug Change-Id: Ied4575ad014b1522c5eb5fd13cfc2a0eb3ad55e5
-rw-r--r--cargo2rulesmk.json3
-rw-r--r--patches/rules.mk.diff11
-rw-r--r--rules.mk23
3 files changed, 37 insertions, 0 deletions
diff --git a/cargo2rulesmk.json b/cargo2rulesmk.json
new file mode 100644
index 0000000..01f7467
--- /dev/null
+++ b/cargo2rulesmk.json
@@ -0,0 +1,3 @@
+{
+ "patch": "patches/rules.mk.diff"
+}
diff --git a/patches/rules.mk.diff b/patches/rules.mk.diff
new file mode 100644
index 0000000..dfe4a6d
--- /dev/null
+++ b/patches/rules.mk.diff
@@ -0,0 +1,11 @@
+diff --git a/rules.mk b/rules.mk
+index 4f4804c..ff3d072 100644
+--- a/rules.mk
++++ b/rules.mk
+@@ -18,5 +18,6 @@ MODULE_LIBRARY_DEPS := \
+ external/rust/crates/proc-macro-error-attr \
+ external/rust/crates/proc-macro2 \
+ external/rust/crates/quote \
++ external/rust/crates/syn \
+
+ include make/library.mk
diff --git a/rules.mk b/rules.mk
new file mode 100644
index 0000000..7bc8377
--- /dev/null
+++ b/rules.mk
@@ -0,0 +1,23 @@
+# This file is generated by cargo2rulesmk.py --run --config cargo2rulesmk.json.
+# Do not modify this file as changes will be overridden on upgrade.
+
+LOCAL_DIR := $(GET_LOCAL_DIR)
+MODULE := $(LOCAL_DIR)
+MODULE_CRATE_NAME := proc_macro_error
+MODULE_SRCS := \
+ $(LOCAL_DIR)/src/lib.rs \
+
+MODULE_RUST_EDITION := 2018
+MODULE_RUSTFLAGS += \
+ --cfg 'feature="default"' \
+ --cfg 'feature="syn"' \
+ --cfg 'feature="syn-error"' \
+ --cfg 'skip_ui_tests' \
+
+MODULE_LIBRARY_DEPS := \
+ external/rust/crates/proc-macro-error-attr \
+ external/rust/crates/proc-macro2 \
+ external/rust/crates/quote \
+ external/rust/crates/syn \
+
+include make/library.mk