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") 20 21proto_library( 22 name = "common_proto", 23 srcs = ["common.proto"], 24 deps = [ 25 "@com_google_protobuf//:timestamp_proto", 26 ], 27) 28 29go_proto_library( 30 name = "common_proto_go", 31 importpath = "github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1", 32 proto = ":common_proto", 33 deps = [ 34 "@com_github_golang_protobuf//ptypes/timestamp:go_default_library", 35 ], 36) 37 38cc_proto_library( 39 name = "common_proto_cc", 40 deps = [":common_proto"], 41) 42