From 0db46fee9f6ef1dea2b6fe8aee671850fb78391f Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 12 Apr 2023 15:02:08 +0200 Subject: rules: Support hdrs-only for install-with-deps rule --- CC/RULES | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CC/RULES') 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"} } -- cgit v1.2.3