summaryrefslogtreecommitdiff
path: root/CC/RULES
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-04-12 15:02:08 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-18 12:44:10 +0200
commit0db46fee9f6ef1dea2b6fe8aee671850fb78391f (patch)
tree8f330f9cf54665e8f2cf64f632d437a275d97e31 /CC/RULES
parent9e061c2705e6fc9516b3c88a8db99882aed0f433 (diff)
downloadrules-cc-0db46fee9f6ef1dea2b6fe8aee671850fb78391f.tar.gz
rules: Support hdrs-only for install-with-deps rule
Diffstat (limited to 'CC/RULES')
-rw-r--r--CC/RULES4
1 files changed, 3 insertions, 1 deletions
diff --git a/CC/RULES b/CC/RULES
index 9616a70..ff642b9 100644
--- a/CC/RULES
+++ b/CC/RULES
@@ -484,7 +484,7 @@
]
, "config_vars": ["PREFIX"]
, "target_fields": ["targets"]
- , "string_fields": ["flat-libs", "prefix"]
+ , "string_fields": ["flat-libs", "prefix", "hdrs-only"]
, "imports": {"install result": "install-with-deps result"}
, "field_doc":
{ "targets": ["Targets to install artifacts from."]
@@ -499,6 +499,7 @@
, "prefix is specified, the value from the config variable \"PREFIX\" is"
, "taken, with the default value being \"/\"."
]
+ , "hdrs-only": ["Only collect headers from deps (without subdirectory)."]
}
, "config_doc":
{ "PREFIX":
@@ -527,6 +528,7 @@
}
]
, ["flat-libs", {"type": "FIELD", "name": "flat-libs"}]
+ , ["hdrs-only", {"type": "FIELD", "name": "hdrs-only"}]
]
, "body": {"type": "CALL_EXPRESSION", "name": "install result"}
}