1load("//:bzl_library.bzl", "bzl_library") 2 3licenses(["notice"]) 4 5package(default_visibility = ["//visibility:public"]) 6 7# buildifier: disable=skylark-comment 8# gazelle:exclude skylark_library.bzl 9 10exports_files(["LICENSE"]) 11 12filegroup( 13 name = "test_deps", 14 testonly = True, 15 srcs = [ 16 "BUILD", 17 "//lib:test_deps", 18 "//rules:test_deps", 19 "//toolchains/unittest:test_deps", 20 ] + glob(["*.bzl"]), 21) 22 23bzl_library( 24 name = "lib", 25 srcs = ["lib.bzl"], 26 deprecation = ( 27 "lib.bzl will go away in the future, please directly depend on the" + 28 " module(s) needed as it is more efficient." 29 ), 30 deps = [ 31 "//lib:collections", 32 "//lib:dicts", 33 "//lib:new_sets", 34 "//lib:partial", 35 "//lib:paths", 36 "//lib:selects", 37 "//lib:sets", 38 "//lib:shell", 39 "//lib:structs", 40 "//lib:types", 41 "//lib:unittest", 42 "//lib:versions", 43 ], 44) 45 46bzl_library( 47 name = "bzl_library", 48 srcs = ["bzl_library.bzl"], 49) 50 51bzl_library( 52 name = "version", 53 srcs = ["version.bzl"], 54) 55 56bzl_library( 57 name = "workspace", 58 srcs = ["workspace.bzl"], 59) 60 61# The files needed for distribution. 62# TODO(aiuto): We should strip this from the release, but there is no 63# capability now to generate BUILD.foo from BUILD and have it appear in the 64# tarball as BUILD. 65filegroup( 66 name = "distribution", 67 srcs = [ 68 "LICENSE", 69 "BUILD", 70 "CODEOWNERS", 71 "CONTRIBUTORS", 72 "//lib:distribution", 73 "//rules:distribution", 74 "//rules/private:distribution", 75 "//toolchains/unittest:distribution", 76 ] + glob(["*.bzl"]), 77) 78