1# BUILD file defining @rules_license/rules 2# 3# Copyright 2020 Google LLC 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 7# You may obtain a copy of the License at 8# 9# https://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14# See the License for the specific language governing permissions and 15# limitations under the License. 16"""Rules for making license declarations.""" 17 18load("@rules_license//rules:licenses_core.bzl", "trace") 19 20package( 21 default_applicable_licenses = ["//:license"], 22 default_visibility = ["//visibility:public"], 23) 24 25licenses(["notice"]) 26 27# This target controls the value of the traced target used during dependency collection. 28# This value should always be the empty string! 29# Specify this value with a flag, like --@rules_license//rules:trace_target=//target/to:trace 30trace( 31 name = "trace_target", 32 build_setting_default = "", # TRACE-TARGET-SHOULD-BE-EMPTY 33 visibility = ["//visibility:public"], 34) 35 36filegroup( 37 name = "standard_package", 38 srcs = glob(["**"]), 39) 40 41# Do not create a bzl_library(). That would create a dependency loop back 42# to bazel-skylib. We export the .bzl files to the documentation maker. 43exports_files( 44 glob([ 45 "*.bzl", 46 ]), 47 visibility = ["//doc_build:__pkg__"], 48) 49