mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-26 13:30:30 +00:00
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
|
load("@rules_pkg//:pkg.bzl", "pkg_tar")
|
|
load(":version.bzl", "VERSION")
|
|
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
|
|
|
|
gazelle_binary(
|
|
name = "gazelle_bin",
|
|
languages = ["@bazel_skylib//gazelle/bzl"],
|
|
)
|
|
|
|
gazelle(
|
|
name = "gazelle",
|
|
gazelle = "gazelle_bin",
|
|
)
|
|
|
|
# This declares the release artifact users
|
|
pkg_tar(
|
|
name = "rules_mylang-" + VERSION,
|
|
srcs = [
|
|
"LICENSE",
|
|
"README.md",
|
|
"version.bzl",
|
|
"//mylang:package_content",
|
|
],
|
|
extension = "tar.gz",
|
|
# It is all source code, so make it read-only.
|
|
mode = "0444",
|
|
# Make it owned by root so it does not have the uid of the CI robot.
|
|
owner = "0.0",
|
|
strip_prefix = ".",
|
|
)
|
|
|
|
bzl_library(
|
|
name = "internal_deps",
|
|
srcs = ["internal_deps.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"@bazel_tools//tools/build_defs/repo:http.bzl",
|
|
"@bazel_tools//tools/build_defs/repo:utils.bzl",
|
|
],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "version",
|
|
srcs = ["version.bzl"],
|
|
visibility = ["//visibility:public"],
|
|
)
|