forked from istio/old_mixer_repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.api
106 lines (98 loc) · 3.84 KB
/
BUILD.api
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# build protos from istio.io/api repo
package(default_visibility = ["//visibility:public"])
load("@io_bazel_rules_go//go:def.bzl", "go_prefix")
go_prefix("istio.io/api")
load("@org_pubref_rules_protobuf//gogo:rules.bzl", "gogoslick_proto_library")
gogoslick_proto_library(
name = "mixer/v1",
importmap = {
"gogoproto/gogo.proto": "github.com/gogo/protobuf/gogoproto",
"google/rpc/status.proto": "github.com/googleapis/googleapis/google/rpc",
"google/protobuf/timestamp.proto": "github.com/gogo/protobuf/types",
"google/protobuf/duration.proto": "github.com/gogo/protobuf/types",
},
imports = [
"../../external/com_github_gogo_protobuf",
"../../external/com_github_google_protobuf/src",
"../../external/com_github_googleapis_googleapis",
],
inputs = [
"@com_github_google_protobuf//:well_known_protos",
"@com_github_googleapis_googleapis//:status_proto",
"@com_github_gogo_protobuf//gogoproto:go_default_library_protos",
],
protos = [
"mixer/v1/attributes.proto",
"mixer/v1/check.proto",
"mixer/v1/quota.proto",
"mixer/v1/report.proto",
"mixer/v1/service.proto",
],
verbose = 0,
visibility = ["//visibility:public"],
with_grpc = True,
deps = [
"@com_github_gogo_protobuf//gogoproto:go_default_library",
"@com_github_gogo_protobuf//sortkeys:go_default_library",
"@com_github_gogo_protobuf//types:go_default_library",
"@com_github_googleapis_googleapis//:google/rpc",
],
)
DESCRIPTOR_FILE_GROUP = [
"mixer/v1/config/descriptor/log_entry_descriptor.proto",
"mixer/v1/config/descriptor/metric_descriptor.proto",
"mixer/v1/config/descriptor/monitored_resource_descriptor.proto",
"mixer/v1/config/descriptor/principal_descriptor.proto",
"mixer/v1/config/descriptor/quota_descriptor.proto",
"mixer/v1/config/descriptor/value_type.proto",
]
gogoslick_proto_library(
name = "mixer/v1/config",
importmap = {
"google/protobuf/struct.proto": "github.com/gogo/protobuf/types",
"mixer/v1/config/descriptor/log_entry_descriptor.proto": "istio.io/api/mixer/v1/config/descriptor",
"mixer/v1/config/descriptor/metric_descriptor.proto": "istio.io/api/mixer/v1/config/descriptor",
"mixer/v1/config/descriptor/monitored_resource_descriptor.proto": "istio.io/api/mixer/v1/config/descriptor",
"mixer/v1/config/descriptor/principal_descriptor.proto": "istio.io/api/mixer/v1/config/descriptor",
"mixer/v1/config/descriptor/quota_descriptor.proto": "istio.io/api/mixer/v1/config/descriptor",
"mixer/v1/config/descriptor/value_type.proto": "istio.io/api/mixer/v1/config/descriptor",
},
imports = [
"../../external/com_github_google_protobuf/src",
],
inputs = DESCRIPTOR_FILE_GROUP + [
"@com_github_google_protobuf//:well_known_protos",
],
protos = [
"mixer/v1/config/cfg.proto",
],
verbose = 0,
visibility = ["//visibility:public"],
with_grpc = False,
deps = [
":mixer/v1/config/descriptor",
"@com_github_gogo_protobuf//sortkeys:go_default_library",
"@com_github_gogo_protobuf//types:go_default_library",
"@com_github_googleapis_googleapis//:google/rpc",
],
)
gogoslick_proto_library(
name = "mixer/v1/config/descriptor",
importmap = {
"google/protobuf/duration.proto": "github.com/gogo/protobuf/types",
},
imports = [
"../../external/com_github_google_protobuf/src",
],
inputs = [
"@com_github_google_protobuf//:well_known_protos",
],
protos = DESCRIPTOR_FILE_GROUP,
verbose = 0,
visibility = ["//visibility:public"],
with_grpc = False,
deps = [
"@com_github_gogo_protobuf//sortkeys:go_default_library",
"@com_github_gogo_protobuf//types:go_default_library",
],
)