-
Notifications
You must be signed in to change notification settings - Fork 416
/
BUILD.bazel
39 lines (32 loc) · 1.03 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
load("//build:build_defs.bzl", "go_proto_checkedin_test")
# gazelle:exclude build.gen.pb.go
# build.proto is copied from Bazel 6.0.0
# https://github.com/bazelbuild/bazel/blob/6.0.0/src/main/protobuf/build.proto
go_proto_checkedin_test(
src = "build.gen.pb.go",
)
proto_library(
name = "blaze_query_proto",
srcs = ["build.proto"],
visibility = ["//visibility:public"],
)
go_proto_library(
name = "build_proto_go_proto",
importpath = "github.com/bazelbuild/buildtools/build_proto",
proto = ":blaze_query_proto",
visibility = ["//visibility:public"],
)
go_library(
name = "build_proto",
embed = [":build_proto_go_proto"],
importpath = "github.com/bazelbuild/buildtools/build_proto",
visibility = ["//visibility:public"],
)
alias(
name = "go_default_library",
actual = ":build_proto",
visibility = ["//visibility:public"],
)