blob: 527159c1226fbeec364a7809b616fb73b1596aaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
load(
"@bazel_skylib//rules:common_settings.bzl",
"BuildSettingInfo",
)
def _impl(ctx):
vars = {
"CT_LOGDIR": ctx.attr._ct_logdir[BuildSettingInfo].value,
}
return [platform_common.TemplateVariableInfo(vars)]
ct_logdir_vars = rule(
implementation = _impl,
attrs = {
"_ct_logdir": attr.label(
default = Label("@rules_erlang//:ct_logdir"),
),
},
provides = [
platform_common.TemplateVariableInfo,
],
)
|