xref: /aosp_15_r20/external/bazel-skylib/gazelle/BUILD (revision bcb5dc7965af6ee42bf2f21341a2ec00233a8c8a)
1*bcb5dc79SHONG Yifanload("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2*bcb5dc79SHONG Yifanload("@rules_license//rules:license.bzl", "license")
3*bcb5dc79SHONG Yifan
4*bcb5dc79SHONG Yifanpackage(default_applicable_licenses = ["//:license"])
5*bcb5dc79SHONG Yifan
6*bcb5dc79SHONG Yifanlicense(
7*bcb5dc79SHONG Yifan    name = "license",
8*bcb5dc79SHONG Yifan    package_name = "bazelbuild/bazel_skylib_gazelle_module",
9*bcb5dc79SHONG Yifan    license_kinds = ["@rules_license//licenses/spdx:Apache-2.0"],
10*bcb5dc79SHONG Yifan)
11*bcb5dc79SHONG Yifan
12*bcb5dc79SHONG Yifanlicenses(["notice"])
13*bcb5dc79SHONG Yifan
14*bcb5dc79SHONG Yifanexports_files(["WORKSPACE.bzlmod"])
15*bcb5dc79SHONG Yifan
16*bcb5dc79SHONG Yifanbzl_library(
17*bcb5dc79SHONG Yifan    name = "setup",
18*bcb5dc79SHONG Yifan    srcs = ["setup.bzl"],
19*bcb5dc79SHONG Yifan    visibility = ["//visibility:public"],
20*bcb5dc79SHONG Yifan    deps = [
21*bcb5dc79SHONG Yifan        "@bazel_gazelle//:deps",
22*bcb5dc79SHONG Yifan        "@io_bazel_rules_go//go:deps",
23*bcb5dc79SHONG Yifan    ],
24*bcb5dc79SHONG Yifan)
25*bcb5dc79SHONG Yifan
26*bcb5dc79SHONG Yifanbzl_library(
27*bcb5dc79SHONG Yifan    name = "workspace",
28*bcb5dc79SHONG Yifan    srcs = ["workspace.bzl"],
29*bcb5dc79SHONG Yifan    visibility = ["//visibility:public"],
30*bcb5dc79SHONG Yifan    deps = [
31*bcb5dc79SHONG Yifan        "@bazel_skylib//:workspace",
32*bcb5dc79SHONG Yifan        "@bazel_tools//tools/build_defs/repo:http.bzl",
33*bcb5dc79SHONG Yifan        "@bazel_tools//tools/build_defs/repo:utils.bzl",
34*bcb5dc79SHONG Yifan    ],
35*bcb5dc79SHONG Yifan)
36*bcb5dc79SHONG Yifan
37*bcb5dc79SHONG Yifan# TODO(arostovtsev): exclude everything below from distro tarball
38*bcb5dc79SHONG Yifanfilegroup(
39*bcb5dc79SHONG Yifan    name = "distribution",
40*bcb5dc79SHONG Yifan    srcs = [
41*bcb5dc79SHONG Yifan        "BUILD",
42*bcb5dc79SHONG Yifan        "MODULE.bazel",
43*bcb5dc79SHONG Yifan        "WORKSPACE.bzlmod",
44*bcb5dc79SHONG Yifan        "setup.bzl",
45*bcb5dc79SHONG Yifan        "workspace.bzl",
46*bcb5dc79SHONG Yifan    ],
47*bcb5dc79SHONG Yifan    visibility = ["//visibility:public"],
48*bcb5dc79SHONG Yifan)
49