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