Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | load("@com_google_protobuf//:protobuf.bzl", "internal_copied_filegroup") |
| 4 | load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library") |
| 5 | |
| 6 | proto_library( |
| 7 | name = "p4data_proto", |
| 8 | srcs = ["p4/v1/p4data.proto"], |
| 9 | ) |
| 10 | |
| 11 | proto_library( |
| 12 | name = "p4types_proto", |
| 13 | srcs = ["p4/config/v1/p4types.proto"], |
| 14 | ) |
| 15 | |
| 16 | proto_library( |
| 17 | name = "p4info_proto", |
| 18 | srcs = ["p4/config/v1/p4info.proto"], |
| 19 | deps = [ |
| 20 | ":p4types_proto", |
| 21 | "@com_google_protobuf//:any_proto" |
| 22 | ], |
| 23 | ) |
| 24 | |
| 25 | proto_library( |
| 26 | name = "p4runtime_proto", |
| 27 | srcs = ["p4/v1/p4runtime.proto"], |
| 28 | deps = [ |
| 29 | ":p4info_proto", |
| 30 | ":p4data_proto", |
| 31 | "@com_github_googleapis//:status_proto", |
| 32 | "@com_google_protobuf//:any_proto", |
| 33 | ], |
| 34 | ) |
| 35 | |
| 36 | java_proto_library( |
| 37 | name = "p4data_java_proto_native", |
| 38 | deps = [":p4data_proto"], |
| 39 | ) |
| 40 | |
| 41 | java_proto_library( |
| 42 | name = "p4info_java_proto_native", |
| 43 | deps = [":p4info_proto"], |
| 44 | ) |
| 45 | |
| 46 | java_proto_library( |
| 47 | name = "p4runtime_java_proto_native", |
| 48 | deps = [":p4runtime_proto"], |
| 49 | ) |
| 50 | |
| 51 | java_grpc_library( |
| 52 | name = "p4runtime_java_grpc_native", |
| 53 | srcs = [":p4runtime_proto"], |
| 54 | deps = [":p4runtime_java_proto_native"], |
| 55 | ) |
| 56 | |