Merge 9783683650 into 14751996b1
This commit is contained in:
commit
c4e8344f2e
23
BUILD
23
BUILD
|
|
@ -178,14 +178,23 @@ genrule(
|
||||||
name = "StaConfig",
|
name = "StaConfig",
|
||||||
srcs = [],
|
srcs = [],
|
||||||
outs = ["include/sta/StaConfig.hh"],
|
outs = ["include/sta/StaConfig.hh"],
|
||||||
cmd = """echo -e '
|
cmd = """
|
||||||
#pragma once
|
SHA1=""
|
||||||
#define STA_VERSION "2.7.0"
|
if [ -f bazel-out/stable-status.txt ]; then
|
||||||
#define STA_GIT_SHA1 "f21d4a3878e2531e3af4930818d9b5968aad9416"
|
SHA1=$$(grep '^STABLE_STA_GIT_SHA1 ' bazel-out/stable-status.txt \
|
||||||
#define SSTA 0
|
| cut -d' ' -f2-) || true
|
||||||
#define ZLIB_FOUND
|
fi
|
||||||
#define HAVE_CXX_STD_FORMAT 1' > \"$@\"
|
[ -z "$$SHA1" ] && SHA1="unknown"
|
||||||
|
printf '#pragma once\\n' > $@
|
||||||
|
printf '#define STA_VERSION "3.1.0"\\n' >> $@
|
||||||
|
printf '#define STA_GIT_SHA1 "%s"\\n' "$$SHA1" >> $@
|
||||||
|
printf '#define SSTA 0\\n' >> $@
|
||||||
|
printf '#define ZLIB_FOUND\\n' >> $@
|
||||||
|
printf '#define HAVE_CXX_STD_FORMAT 1\\n' >> $@
|
||||||
""",
|
""",
|
||||||
|
# stamp = -1: only stamps with --stamp (or --config=release).
|
||||||
|
# Without --stamp, STA_GIT_SHA1 will be "unknown".
|
||||||
|
stamp = -1,
|
||||||
visibility = ["//:__subpackages__"],
|
visibility = ["//:__subpackages__"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue