Files
gerrit/Documentation/BUILD
Yuxuan 'fishy' Wang 9d0e8eac3b bazel: generate licenses.txt
Modify license_map rule to:

- Accept more than 1 targets
- Add '--asciidoctor' option to generate asciidoctor txt file
- Add support for multiple licenses for a single target (diffy_logo)

Also add test_license.sh for license_test rule to handle special
DO_NOT_DISTRIBUTE exceptions.

TESTED:
  bazel build Documentation:licenses.txt
  bazel test gerrit-pgm:pgm_license_test
  bazel test gerrit-gwtui:ui_module_license_test

Change-Id: Ic64b227fea34882721e6e064b1520cd9a4d5d4a4
2016-09-28 04:57:42 +08:00

12 lines
188 B
Python

load("//tools/bzl:license.bzl", "license_map")
license_map(
name = "licenses",
targets = [
"//gerrit-pgm:pgm",
"//gerrit-gwtui:ui_module",
],
opts = ["--asciidoctor"],
)