summaryrefslogtreecommitdiff
path: root/CC/proto/RULES
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-04-26 11:44:45 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-04-26 11:44:45 +0200
commitb48ea94548702786dc66067546e85de0d71efe27 (patch)
tree4c96a884d3274d4a3f9c6c85668f62778c2da14b /CC/proto/RULES
parent0ec029037c13ab313c2a692493cb798bfdf9e34e (diff)
parent0d35d779351a30d8b2bb6c27bca94acf56d6143d (diff)
downloadrules-cc-b48ea94548702786dc66067546e85de0d71efe27.tar.gz
Merge branch 'rules' into rules-cc/rules
Diffstat (limited to 'CC/proto/RULES')
-rw-r--r--CC/proto/RULES42
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"