...
1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
2
3go_library(
4 name = "autogazelle_lib",
5 srcs = [
6 "autogazelle.go",
7 "client_unix.go",
8 "server_unix.go",
9 ],
10 importpath = "github.com/bazelbuild/bazel-gazelle/cmd/autogazelle",
11 visibility = ["//visibility:private"],
12 deps = select({
13 "@io_bazel_rules_go//go/platform:android": [
14 "@com_github_fsnotify_fsnotify//:fsnotify",
15 ],
16 "@io_bazel_rules_go//go/platform:darwin": [
17 "@com_github_fsnotify_fsnotify//:fsnotify",
18 ],
19 "@io_bazel_rules_go//go/platform:dragonfly": [
20 "@com_github_fsnotify_fsnotify//:fsnotify",
21 ],
22 "@io_bazel_rules_go//go/platform:freebsd": [
23 "@com_github_fsnotify_fsnotify//:fsnotify",
24 ],
25 "@io_bazel_rules_go//go/platform:ios": [
26 "@com_github_fsnotify_fsnotify//:fsnotify",
27 ],
28 "@io_bazel_rules_go//go/platform:linux": [
29 "@com_github_fsnotify_fsnotify//:fsnotify",
30 ],
31 "@io_bazel_rules_go//go/platform:netbsd": [
32 "@com_github_fsnotify_fsnotify//:fsnotify",
33 ],
34 "@io_bazel_rules_go//go/platform:openbsd": [
35 "@com_github_fsnotify_fsnotify//:fsnotify",
36 ],
37 "@io_bazel_rules_go//go/platform:solaris": [
38 "@com_github_fsnotify_fsnotify//:fsnotify",
39 ],
40 "@io_bazel_rules_go//go/platform:windows": [
41 "@com_github_fsnotify_fsnotify//:fsnotify",
42 ],
43 "//conditions:default": [],
44 }),
45)
46
47go_binary(
48 name = "autogazelle",
49 embed = [":autogazelle_lib"],
50 visibility = ["//visibility:public"],
51)
52
53filegroup(
54 name = "all_files",
55 testonly = True,
56 srcs = [
57 "BUILD.bazel",
58 "README.rst",
59 "autogazelle.bash",
60 "autogazelle.go",
61 "client_unix.go",
62 "server_unix.go",
63 ],
64 visibility = ["//visibility:public"],
65)
View as plain text