bazel-skylib/lib/BUILD

96 lines
1.4 KiB
Python
Raw Normal View History

load("//:bzl_library.bzl", "bzl_library")
2017-10-10 14:59:31 +00:00
licenses(["notice"])
package(default_visibility = ["//visibility:public"])
# export bzl files for the documentation
exports_files(
glob(["*.bzl"]),
visibility = ["//:__subpackages__"],
)
bzl_library(
name = "collections",
srcs = ["collections.bzl"],
)
bzl_library(
name = "dicts",
srcs = ["dicts.bzl"],
)
bzl_library(
name = "partial",
srcs = ["partial.bzl"],
)
bzl_library(
name = "paths",
srcs = ["paths.bzl"],
)
bzl_library(
name = "selects",
srcs = ["selects.bzl"],
)
bzl_library(
name = "sets",
srcs = ["sets.bzl"],
)
bzl_library(
name = "new_sets",
srcs = ["new_sets.bzl"],
deps = [
":dicts",
],
)
bzl_library(
name = "shell",
srcs = ["shell.bzl"],
)
bzl_library(
name = "structs",
srcs = ["structs.bzl"],
)
bzl_library(
name = "types",
srcs = ["types.bzl"],
)
bzl_library(
name = "unittest",
srcs = ["unittest.bzl"],
deps = [
":new_sets",
":sets",
":types",
],
)
2018-02-20 21:11:31 +00:00
bzl_library(
2018-02-20 21:11:31 +00:00
name = "versions",
srcs = ["versions.bzl"],
)
filegroup(
name = "test_deps",
testonly = True,
srcs = ["BUILD"] + glob(["*.bzl"]),
)
# The files needed for distribution
filegroup(
name = "distribution",
srcs = glob(["*"]),
visibility = [
"//:__pkg__",
"//distribution:__pkg__",
],
)