forked from tcncloud/protoc-gen-state
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
37 lines (33 loc) · 1 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
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/tcncloud/protoc-gen-state
gazelle(name = "gazelle")
go_library(
name = "go_default_library",
srcs = ["main.go"],
importpath = "github.com/tcncloud/protoc-gen-state",
visibility = ["//visibility:private"],
deps = [
"//generator:go_default_library",
"@com_github_golang_protobuf//proto:go_default_library",
"@io_bazel_rules_go//proto/wkt:compiler_plugin_go_proto",
],
)
go_binary(
name = "protoc-gen-state",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)
go_test(
name = "go_default_test",
srcs = [
"main_test.go",
"protoc_gen_state_suite_test.go",
],
embed = [":go_default_library"],
deps = [
"//state:go_default_library",
"@com_github_onsi_ginkgo//:go_default_library",
"@com_github_onsi_gomega//:go_default_library",
],
)