bazel-lib/tools/BUILD.bazel

68 lines
1.4 KiB
Python
Raw Normal View History

load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//lib:utils.bzl", "is_bazel_6_or_greater")
load("//lib:write_source_files.bzl", "write_source_files")
load(":release.bzl", "multi_platform_go_binaries", "release")
exports_files([
"create_release.sh",
"create_version.sh",
])
multi_platform_go_binaries(
name = "copy_to_directory",
embed = ["//tools/copy_to_directory:copy_to_directory_lib"],
tags = ["manual"],
)
2023-01-14 23:51:01 +00:00
multi_platform_go_binaries(
name = "copy_directory",
embed = ["//tools/copy_directory:copy_directory_lib"],
tags = ["manual"],
)
multi_platform_go_binaries(
name = "expand_template",
embed = ["//tools/expand_template:expand_template_lib"],
tags = ["manual"],
)
release(
name = "release",
tags = [
"local",
"manual",
"no-remote",
],
targets = [
2023-01-14 23:51:01 +00:00
":copy_directory",
":copy_to_directory",
2023-06-09 23:22:37 +00:00
":expand_template",
],
)
write_source_files(
name = "releases_versions_check_in",
files = {
"integrity.bzl": ":release_versions",
},
tags = (["manual"] if not is_bazel_6_or_greater() else []),
)
bzl_library(
name = "hashes",
srcs = ["hashes.bzl"],
visibility = ["//visibility:public"],
)
bzl_library(
name = "integrity",
srcs = ["integrity.bzl"],
visibility = ["//visibility:public"],
)
bzl_library(
name = "version",
srcs = ["version.bzl"],
visibility = ["//visibility:public"],
)