xref: /aosp_15_r20/external/bazel-skylib/lib/BUILD (revision bcb5dc7965af6ee42bf2f21341a2ec00233a8c8a)
1load("//:bzl_library.bzl", "bzl_library")
2
3package(
4    default_applicable_licenses = ["//:license"],
5    default_visibility = ["//visibility:public"],
6)
7
8licenses(["notice"])
9
10# export bzl files for the documentation
11exports_files(
12    glob(["*.bzl"]),
13    visibility = ["//:__subpackages__"],
14)
15
16bzl_library(
17    name = "collections",
18    srcs = ["collections.bzl"],
19)
20
21bzl_library(
22    name = "dicts",
23    srcs = ["dicts.bzl"],
24)
25
26bzl_library(
27    name = "modules",
28    srcs = ["modules.bzl"],
29)
30
31bzl_library(
32    name = "partial",
33    srcs = ["partial.bzl"],
34)
35
36bzl_library(
37    name = "paths",
38    srcs = ["paths.bzl"],
39)
40
41bzl_library(
42    name = "selects",
43    srcs = ["selects.bzl"],
44)
45
46bzl_library(
47    name = "sets",
48    srcs = ["sets.bzl"],
49    deps = [
50        ":new_sets",
51    ],
52)
53
54bzl_library(
55    name = "new_sets",
56    srcs = ["new_sets.bzl"],
57    deps = [
58        ":dicts",
59    ],
60)
61
62bzl_library(
63    name = "shell",
64    srcs = ["shell.bzl"],
65)
66
67bzl_library(
68    name = "structs",
69    srcs = ["structs.bzl"],
70)
71
72bzl_library(
73    name = "subpackages",
74    srcs = ["subpackages.bzl"],
75)
76
77bzl_library(
78    name = "types",
79    srcs = ["types.bzl"],
80)
81
82bzl_library(
83    name = "unittest",
84    srcs = ["unittest.bzl"],
85    deps = [
86        ":new_sets",
87        ":partial",
88        ":sets",
89        ":types",
90    ],
91)
92
93bzl_library(
94    name = "versions",
95    srcs = ["versions.bzl"],
96)
97
98filegroup(
99    name = "test_deps",
100    testonly = True,
101    srcs = ["BUILD"] + glob(["*.bzl"]),
102)
103
104# The files needed for distribution
105filegroup(
106    name = "distribution",
107    srcs = glob(["*"]),
108    visibility = [
109        "//:__pkg__",
110        "//distribution:__pkg__",
111    ],
112)
113
114bzl_library(
115    name = "old_sets",
116    srcs = ["old_sets.bzl"],
117)
118