2020-11-04 05:02:08 +01:00
|
|
|
config_setting(
|
|
|
|
name = "release",
|
|
|
|
values = {
|
|
|
|
"compilation_mode": "opt",
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
2020-11-01 05:26:58 +01:00
|
|
|
genrule(
|
2020-11-04 05:02:08 +01:00
|
|
|
name = "buildinfo",
|
|
|
|
srcs = ["//:defs.bzl"],
|
2020-11-01 05:26:58 +01:00
|
|
|
outs = ["buildinfo.txt"],
|
2020-11-04 05:02:08 +01:00
|
|
|
cmd = select({
|
|
|
|
"release": "$(location //scripts:buildinfo) $(location //:defs.bzl) bazel-out/stable-status.txt release > $@",
|
|
|
|
"//conditions:default": "$(location //scripts:buildinfo) $(location //:defs.bzl) bazel-out/stable-status.txt devel > $@",
|
|
|
|
}),
|
2020-11-01 05:26:58 +01:00
|
|
|
stamp = 1,
|
2020-11-04 05:02:08 +01:00
|
|
|
tools = [
|
|
|
|
"//scripts:buildinfo",
|
|
|
|
],
|
2020-11-01 05:26:58 +01:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
alias(
|
|
|
|
name = "tsconfig.json",
|
|
|
|
actual = "//ts:tsconfig.json",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
2020-11-04 05:02:08 +01:00
|
|
|
|
|
|
|
# for version info
|
|
|
|
exports_files(["defs.bzl"])
|