gerrit/BUILD
David Ostrovsky 01090f2f0d Bazel: Fix visibility for //: rules
Change-Id: If5d59f3afde2f9a4bdf4e7dab9eef6b3c5c93693
2016-11-05 00:50:30 +01:00

27 lines
755 B
Python

package(default_visibility = ['//visibility:public'])
load('//tools/bzl:pkg_war.bzl', 'pkg_war')
genrule(
name = 'gen_version',
stamp = 1,
cmd = ("cat bazel-out/volatile-status.txt bazel-out/stable-status.txt | " +
"grep STABLE_BUILD_GERRIT_LABEL | cut -d ' ' -f 2 > $@"),
outs = ['version.txt'],
visibility = ['//visibility:public'],
)
genrule(
name = "LICENSES",
srcs = ["//Documentation:licenses.txt"],
cmd = "cp $< $@",
outs = ["LICENSES.txt"],
visibility = ['//visibility:public'],
)
pkg_war(name = 'gerrit')
pkg_war(name = 'headless', ui = None)
pkg_war(name = "polygerrit", ui = "polygerrit")
pkg_war(name = 'release', ui = 'ui_optdbg_r', context = ['//plugins:core'], doc = True)
pkg_war(name = 'withdocs', doc = True)