bazel-lib/lib/BUILD.bazel

215 lines
4.3 KiB
Python
Raw Normal View History

2021-11-08 14:40:36 +00:00
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2022-07-15 05:32:39 +00:00
load("//lib/private:stamping.bzl", "stamp_build_setting")
2021-11-08 14:40:36 +00:00
# Ensure that users building their own rules can dep on our bzl_library targets for their stardoc
package(default_visibility = ["//visibility:public"])
exports_files(
glob(["*.bzl"]),
visibility = [
"//docs:__pkg__",
"//lib:__subpackages__",
],
)
2021-11-08 14:40:36 +00:00
2022-07-15 05:32:39 +00:00
# Macro that creates targets enabling the use of `--stamp` in Starlark rules
stamp_build_setting(name = "stamp")
toolchain_type(
name = "jq_toolchain_type",
)
2022-04-20 04:45:06 +00:00
toolchain_type(
name = "yq_toolchain_type",
)
bzl_library(
name = "docs",
srcs = ["docs.bzl"],
deps = ["//lib/private/docs"],
)
2021-11-08 14:40:36 +00:00
bzl_library(
name = "expand_make_vars",
srcs = ["expand_make_vars.bzl"],
deps = [
"//lib/private/docs:expand_locations",
"//lib/private/docs:expand_template",
"//lib/private/docs:expand_variables",
],
2021-11-08 14:40:36 +00:00
)
bzl_library(
name = "params_file",
srcs = ["params_file.bzl"],
deps = ["//lib/private/docs:params_file"],
2021-11-08 14:40:36 +00:00
)
bzl_library(
name = "paths",
srcs = ["paths.bzl"],
deps = ["//lib/private/docs:paths"],
)
bzl_library(
name = "utils",
srcs = ["utils.bzl"],
deps = ["//lib/private/docs:utils"],
)
2021-12-09 00:47:45 +00:00
bzl_library(
name = "jq",
srcs = ["jq.bzl"],
visibility = ["//visibility:public"],
deps = ["//lib/private/docs:jq"],
2021-12-09 00:47:45 +00:00
)
bzl_library(
name = "directory_path",
srcs = ["directory_path.bzl"],
deps = ["//lib/private/docs:directory_path"],
)
bzl_library(
name = "output_files",
srcs = ["output_files.bzl"],
deps = ["//lib/private/docs:output_files"],
)
bzl_library(
name = "copy_file",
srcs = ["copy_file.bzl"],
deps = ["//lib/private/docs:copy_file"],
)
2022-04-04 00:52:03 +00:00
bzl_library(
name = "copy_directory",
srcs = ["copy_directory.bzl"],
deps = ["//lib/private/docs:copy_directory"],
2022-04-04 00:52:03 +00:00
)
bzl_library(
name = "copy_to_directory",
srcs = ["copy_to_directory.bzl"],
deps = ["//lib/private/docs:copy_to_directory"],
2021-12-09 00:47:45 +00:00
)
2022-01-28 02:15:28 +00:00
2022-04-12 23:31:04 +00:00
bzl_library(
name = "copy_to_bin",
srcs = ["copy_to_bin.bzl"],
deps = ["//lib/private/docs:copy_to_bin"],
2022-04-12 23:31:04 +00:00
)
2022-01-28 02:15:28 +00:00
bzl_library(
name = "write_source_files",
srcs = ["write_source_files.bzl"],
deps = [
":diff_test",
2022-01-28 02:15:28 +00:00
":utils",
"//lib/private/docs:fail_with_message_test",
"//lib/private/docs:write_source_file",
2022-01-28 02:15:28 +00:00
],
)
bzl_library(
name = "diff_test",
srcs = ["diff_test.bzl"],
deps = ["//lib/private/docs:diff_test"],
)
bzl_library(
name = "run_binary",
srcs = ["run_binary.bzl"],
deps = ["//lib/private/docs:run_binary"],
)
bzl_library(
name = "repo_utils",
srcs = ["repo_utils.bzl"],
deps = [
"//lib/private/docs:patch",
"//lib/private/docs:repo_utils",
],
)
2022-04-20 04:45:06 +00:00
bzl_library(
name = "yq",
srcs = ["yq.bzl"],
deps = ["//lib/private/docs:yq"],
2022-04-20 04:45:06 +00:00
)
2022-07-28 18:15:14 +00:00
bzl_library(
name = "glob_match",
srcs = ["glob_match.bzl"],
deps = ["//lib/private/docs:glob_match"],
2022-07-28 18:15:14 +00:00
)
bzl_library(
name = "host_repo",
srcs = ["host_repo.bzl"],
deps = [
"//lib/private/docs:host_repo",
"@bazel_skylib//lib:versions",
],
)
2022-07-15 05:32:39 +00:00
bzl_library(
name = "stamping",
srcs = ["stamping.bzl"],
deps = ["//lib/private/docs:stamping"],
2022-07-15 05:32:39 +00:00
)
bzl_library(
name = "testing",
srcs = ["testing.bzl"],
deps = [
":params_file",
":utils",
"@bazel_skylib//lib:types",
"@bazel_skylib//rules:diff_test",
"@bazel_skylib//rules:write_file",
],
)
bzl_library(
name = "extensions",
srcs = ["extensions.bzl"],
deps = ["@aspect_bazel_lib//lib:repositories"],
)
bzl_library(
name = "repositories",
srcs = ["repositories.bzl"],
deps = [
2022-10-27 22:55:57 +00:00
":utils",
"//lib/private/docs:jq_toolchain",
"//lib/private/docs:local_config_platform",
"//lib/private/docs:yq_toolchain",
],
)
bzl_library(
name = "transitions",
srcs = ["transitions.bzl"],
deps = [
"@bazel_skylib//lib:paths",
],
)
bzl_library(
name = "windows_utils",
srcs = ["windows_utils.bzl"],
)
bzl_library(
name = "platform_utils",
srcs = ["platform_utils.bzl"],
deps = ["//lib/private/docs:platform_utils"],
)
bzl_library(
name = "base64",
srcs = ["base64.bzl"],
deps = ["//lib/private/docs:base64"],
)