diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-04-22 12:53:32 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-04-22 13:56:44 +0200 |
commit | a277ee4162bbe4e56b0cb7206595c4ca8416fc2c (patch) | |
tree | 9e1608634f5a0cf7f286b21754a809910e1ffc8e | |
parent | eaf4587f032549d79400fd4de9aba7c65e6c2fa2 (diff) | |
download | rules-cc-a277ee4162bbe4e56b0cb7206595c4ca8416fc2c.tar.gz |
rule ["CC", "header directory"]: drop ill-advised "public stage"
The idea, as documented, of a header directory is to have a
directory, closed as a tree, owned by the respective library and
internally handled in an efficient way (as a single tree). If we
open up that directory, we just have staged data, and therefore
should treat it as such.
-rw-r--r-- | CC/RULES | 22 |
1 files changed, 4 insertions, 18 deletions
@@ -107,18 +107,13 @@ , "efficiently by the tool." ] , "target_fields": ["hdrs"] - , "string_fields": ["stage", "public stage"] + , "string_fields": ["stage"] , "field_doc": { "hdrs": ["The header files to be put into the header directory."] , "stage": [ "The location of the header directory." , "Path segments are joined with \"/\"." ] - , "public stage": - [ "If non-empty, no closure for the header directory's stage is created, " - , "so can be combined with other header directories having the same " - , "public staging directory." - ] } , "expression": { "type": "let*" @@ -141,18 +136,9 @@ } ] , [ "dir" - , { "type": "if" - , "cond": {"type": "FIELD", "name": "public stage"} - , "then": - { "type": "to_subdir" - , "subdir": {"type": "var", "name": "stage"} - , "$1": {"type": "var", "name": "hdrs"} - } - , "else": - { "type": "singleton_map" - , "key": {"type": "var", "name": "stage"} - , "value": {"type": "TREE", "$1": {"type": "var", "name": "hdrs"}} - } + , { "type": "singleton_map" + , "key": {"type": "var", "name": "stage"} + , "value": {"type": "TREE", "$1": {"type": "var", "name": "hdrs"}} } ] ] |