diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-04-26 11:44:45 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-04-26 11:44:45 +0200 |
commit | b48ea94548702786dc66067546e85de0d71efe27 (patch) | |
tree | 4c96a884d3274d4a3f9c6c85668f62778c2da14b /CC/proto/RULES | |
parent | 0ec029037c13ab313c2a692493cb798bfdf9e34e (diff) | |
parent | 0d35d779351a30d8b2bb6c27bca94acf56d6143d (diff) | |
download | rules-cc-b48ea94548702786dc66067546e85de0d71efe27.tar.gz |
Merge branch 'rules' into rules-cc/rules
Diffstat (limited to 'CC/proto/RULES')
-rw-r--r-- | CC/proto/RULES | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/CC/proto/RULES b/CC/proto/RULES index 8a0711e..6d2e725 100644 --- a/CC/proto/RULES +++ b/CC/proto/RULES @@ -99,6 +99,7 @@ } ] , ["provider", "ENV"] + , ["default", {"type": "empty_map"}] , [ "ENV" , { "type": "if" , "cond": {"type": "var", "name": "PATH"} @@ -114,6 +115,46 @@ , "else": {"type": "CALL_EXPRESSION", "name": "base-provides"} } ] + , ["provider", "NON_SYSTEM_TOOLS"] + , ["default", {"type": "empty_map"}] + , [ "NON_SYSTEM_TOOLS" + , { "type": "map_union" + , "$1": + { "type": "++" + , "$1": + [ [{"type": "CALL_EXPRESSION", "name": "base-provides"}] + , { "type": "if" + , "cond": {"type": "FIELD", "name": "PROTOC"} + , "then": + [ { "type": "singleton_map" + , "key": "PROTOC" + , "value": + { "type": "if" + , "cond": {"type": "FIELD", "name": "toolchain"} + , "then": true + , "else": false + } + } + ] + } + , { "type": "if" + , "cond": {"type": "FIELD", "name": "GRPC_PLUGIN"} + , "then": + [ { "type": "singleton_map" + , "key": "GRPC_PLUGIN" + , "value": + { "type": "if" + , "cond": {"type": "FIELD", "name": "toolchain"} + , "then": true + , "else": false + } + } + ] + } + ] + } + } + ] , ["provider", "TOOLCHAIN"] , ["default", {"type": "empty_map"}] , [ "TOOLCHAIN" @@ -170,6 +211,7 @@ , "GRPC_PLUGIN" , "ENV" , "TOOLCHAIN" + , "NON_SYSTEM_TOOLS" , "compile-deps" , "compile-args" , "link-deps" |