|
| 1 | +# Copyright 2018, OpenCensus Authors |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +package(default_visibility = ["//visibility:public"]) |
| 16 | + |
| 17 | +load("@org_pubref_rules_protobuf//go:rules.bzl", "go_proto_library") |
| 18 | + |
| 19 | +proto_library( |
| 20 | + name = "resource_proto", |
| 21 | + srcs = ["resource.proto"], |
| 22 | +) |
| 23 | + |
| 24 | +cc_proto_library( |
| 25 | + name = "resource_proto_cc", |
| 26 | + deps = [":resource_proto"], |
| 27 | +) |
| 28 | + |
| 29 | +java_proto_library( |
| 30 | + name = "resource_proto_java", |
| 31 | + deps = [":resource_proto"], |
| 32 | +) |
| 33 | + |
| 34 | +go_proto_library( |
| 35 | + name = "resource_proto_go", |
| 36 | + protos = ["resource.proto"], |
| 37 | + pb_options = [ |
| 38 | + # omit the go_package declared in proto files to make bazel works as expect |
| 39 | + "paths=source_relative", |
| 40 | + ], |
| 41 | +) |
0 commit comments