mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-27 17:43:27 +00:00
179 lines
3.8 KiB
Python
179 lines
3.8 KiB
Python
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
|
load("//lib/private:stamping.bzl", "stamp_build_setting")
|
|
|
|
exports_files(
|
|
glob(["*.bzl"]),
|
|
visibility = [
|
|
"//docs:__pkg__",
|
|
"//lib:__subpackages__",
|
|
],
|
|
)
|
|
|
|
# Macro that creates targets enabling the use of `--stamp` in Starlark rules
|
|
stamp_build_setting(name = "stamp")
|
|
|
|
toolchain_type(
|
|
name = "jq_toolchain_type",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
toolchain_type(
|
|
name = "yq_toolchain_type",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "docs",
|
|
srcs = ["docs.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:docs"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "expand_make_vars",
|
|
srcs = ["expand_make_vars.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:expand_make_vars"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "params_file",
|
|
srcs = ["params_file.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:params_file"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "paths",
|
|
srcs = ["paths.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:paths"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "utils",
|
|
srcs = ["utils.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:utils"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "jq",
|
|
srcs = ["jq.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:jq"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "directory_path",
|
|
srcs = ["directory_path.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:directory_path"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "output_files",
|
|
srcs = ["output_files.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:output_files"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "copy_file",
|
|
srcs = ["copy_file.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:copy_file"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "copy_directory",
|
|
srcs = ["copy_directory.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:copy_directory"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "copy_to_directory",
|
|
srcs = ["copy_to_directory.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:copy_to_directory"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "copy_to_bin",
|
|
srcs = ["copy_to_bin.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:copy_to_bin"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "write_source_files",
|
|
srcs = ["write_source_files.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":diff_test",
|
|
":utils",
|
|
"//lib/private:fail_with_message_test",
|
|
"//lib/private:write_source_file",
|
|
],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "diff_test",
|
|
srcs = ["diff_test.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:diff_test"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "run_binary",
|
|
srcs = ["run_binary.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:run_binary"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "transitions",
|
|
srcs = ["transitions.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "windows_utils",
|
|
srcs = ["windows_utils.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "repo_utils",
|
|
srcs = ["repo_utils.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//lib/private:patch",
|
|
"//lib/private:repo_utils",
|
|
],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "yq",
|
|
srcs = ["yq.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:yq"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "host_repo",
|
|
srcs = ["host_repo.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//lib/private:host_repo",
|
|
],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "stamping",
|
|
srcs = ["stamping.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//lib/private:stamping"],
|
|
)
|