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 15load("@rules_proto//proto:defs.bzl", "proto_library") 16 17package(default_visibility = ["//visibility:public"]) 18 19load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") 20load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") 21 22proto_library( 23 name = "resource_proto", 24 srcs = ["resource.proto"], 25) 26 27cc_proto_library( 28 name = "resource_proto_cc", 29 deps = [":resource_proto"], 30) 31 32java_proto_library( 33 name = "resource_proto_java", 34 deps = [":resource_proto"], 35) 36 37go_proto_library( 38 name = "resource_proto_go", 39 importpath = "github.com/census-instrumentation/opencensus-proto/gen-go/resource/v1", 40 proto = ":resource_proto", 41) 42 43py_proto_library( 44 name = "resource_proto_py", 45 srcs = ["resource.proto"], 46) 47