2021-11-08 14:40:36 +00:00
|
|
|
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
|
|
|
|
2022-08-05 00:53:22 +00:00
|
|
|
package(default_visibility = ["//lib:__subpackages__"])
|
|
|
|
|
2021-11-17 05:30:32 +00:00
|
|
|
exports_files(
|
|
|
|
glob(["*.bzl"]),
|
|
|
|
visibility = ["//docs:__pkg__"],
|
|
|
|
)
|
|
|
|
|
2022-04-14 17:48:44 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "copy_common",
|
|
|
|
srcs = ["copy_common.bzl"],
|
|
|
|
)
|
|
|
|
|
2022-04-01 03:04:35 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "copy_file",
|
|
|
|
srcs = ["copy_file.bzl"],
|
2022-04-14 17:48:44 +00:00
|
|
|
deps = [
|
|
|
|
":copy_common",
|
|
|
|
":directory_path",
|
|
|
|
],
|
2022-04-01 03:04:35 +00:00
|
|
|
)
|
|
|
|
|
2022-04-04 00:52:03 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "copy_directory",
|
|
|
|
srcs = ["copy_directory.bzl"],
|
2022-04-14 17:48:44 +00:00
|
|
|
deps = [":copy_common"],
|
2022-04-04 00:52:03 +00:00
|
|
|
)
|
|
|
|
|
2021-11-17 05:30:32 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "copy_to_directory",
|
|
|
|
srcs = ["copy_to_directory.bzl"],
|
|
|
|
deps = [
|
2022-04-14 17:48:44 +00:00
|
|
|
":copy_common",
|
2022-03-04 00:40:32 +00:00
|
|
|
":directory_path",
|
2022-07-28 19:50:41 +00:00
|
|
|
":glob_match",
|
2022-03-16 00:36:22 +00:00
|
|
|
":output_files",
|
2021-11-17 05:30:32 +00:00
|
|
|
":paths",
|
|
|
|
"@bazel_skylib//lib:paths",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2022-04-12 23:31:04 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "copy_to_bin",
|
|
|
|
srcs = ["copy_to_bin.bzl"],
|
2022-05-03 22:29:09 +00:00
|
|
|
deps = [
|
|
|
|
":copy_file",
|
|
|
|
"@bazel_skylib//lib:paths",
|
|
|
|
],
|
2022-04-12 23:31:04 +00:00
|
|
|
)
|
|
|
|
|
2021-11-08 14:40:36 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "params_file",
|
|
|
|
srcs = ["params_file.bzl"],
|
2022-08-12 02:30:45 +00:00
|
|
|
deps = [":expand_locations"],
|
2021-11-08 14:40:36 +00:00
|
|
|
)
|
|
|
|
|
2021-11-09 23:13:30 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "paths",
|
|
|
|
srcs = ["paths.bzl"],
|
|
|
|
deps = ["@bazel_skylib//lib:paths"],
|
|
|
|
)
|
|
|
|
|
2021-11-10 14:34:00 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "docs",
|
|
|
|
srcs = ["docs.bzl"],
|
|
|
|
deps = [
|
2022-03-03 00:00:53 +00:00
|
|
|
"//lib:write_source_files",
|
2021-11-10 14:34:00 +00:00
|
|
|
"@io_bazel_stardoc//stardoc:stardoc_lib",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2021-11-08 14:40:36 +00:00
|
|
|
bzl_library(
|
2022-08-12 02:30:45 +00:00
|
|
|
name = "expand_locations",
|
|
|
|
srcs = ["expand_locations.bzl"],
|
|
|
|
deps = [
|
|
|
|
"@bazel_skylib//lib:paths",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "expand_template",
|
|
|
|
srcs = ["expand_template.bzl"],
|
|
|
|
deps = [
|
|
|
|
":expand_locations",
|
|
|
|
"@bazel_skylib//lib:dicts",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "expand_variables",
|
|
|
|
srcs = ["expand_variables.bzl"],
|
2022-06-16 23:26:29 +00:00
|
|
|
deps = [
|
|
|
|
"@bazel_skylib//lib:paths",
|
|
|
|
],
|
2021-11-08 14:40:36 +00:00
|
|
|
)
|
2021-11-09 23:13:30 +00:00
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "utils",
|
|
|
|
srcs = ["utils.bzl"],
|
|
|
|
)
|
2021-12-09 00:47:45 +00:00
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "jq",
|
|
|
|
srcs = ["jq.bzl"],
|
|
|
|
)
|
2022-01-28 02:15:28 +00:00
|
|
|
|
|
|
|
bzl_library(
|
2022-03-15 00:33:52 +00:00
|
|
|
name = "write_source_file",
|
|
|
|
srcs = ["write_source_file.bzl"],
|
|
|
|
deps = [
|
|
|
|
":directory_path",
|
2022-03-16 00:36:22 +00:00
|
|
|
":output_files",
|
2022-03-15 00:33:52 +00:00
|
|
|
"//lib:utils",
|
|
|
|
],
|
2022-01-28 02:15:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "fail_with_message_test",
|
|
|
|
srcs = ["fail_with_message_test.bzl"],
|
|
|
|
)
|
2022-03-04 00:40:32 +00:00
|
|
|
|
2022-07-28 18:15:14 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "glob_match",
|
|
|
|
srcs = ["glob_match.bzl"],
|
|
|
|
)
|
|
|
|
|
2022-03-04 00:40:32 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "directory_path",
|
|
|
|
srcs = ["directory_path.bzl"],
|
|
|
|
deps = ["//lib:utils"],
|
|
|
|
)
|
2022-03-15 00:33:52 +00:00
|
|
|
|
|
|
|
bzl_library(
|
2022-03-16 00:36:22 +00:00
|
|
|
name = "output_files",
|
|
|
|
srcs = ["output_files.bzl"],
|
2022-03-15 00:33:52 +00:00
|
|
|
deps = ["//lib:utils"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "diff_test",
|
|
|
|
srcs = ["diff_test.bzl"],
|
|
|
|
)
|
2022-04-01 03:04:35 +00:00
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "run_binary",
|
|
|
|
srcs = ["run_binary.bzl"],
|
|
|
|
deps = [
|
2022-08-12 02:30:45 +00:00
|
|
|
":expand_locations",
|
|
|
|
":expand_variables",
|
2022-07-15 05:32:39 +00:00
|
|
|
"//lib:stamping",
|
2022-04-01 03:04:35 +00:00
|
|
|
"@bazel_skylib//lib:dicts",
|
|
|
|
],
|
|
|
|
)
|
2022-04-12 01:08:30 +00:00
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "repo_utils",
|
|
|
|
srcs = ["repo_utils.bzl"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "patch",
|
|
|
|
srcs = ["patch.bzl"],
|
|
|
|
deps = [":repo_utils"],
|
|
|
|
)
|
2022-04-20 04:45:06 +00:00
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "yq",
|
|
|
|
srcs = ["yq.bzl"],
|
|
|
|
)
|
2022-04-28 21:18:06 +00:00
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "host_repo",
|
|
|
|
srcs = ["host_repo.bzl"],
|
|
|
|
deps = [":repo_utils"],
|
|
|
|
)
|
2022-07-15 05:32:39 +00:00
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "stamping",
|
|
|
|
srcs = ["stamping.bzl"],
|
|
|
|
)
|