blob: 8d1b2217482725d0a1177819d85672dc65d90cd3 [file] [log] [blame]
Carmelo Cascone72893b72018-08-09 00:59:06 -07001package(default_visibility = ["//visibility:public"])
2
3load("@com_google_protobuf//:protobuf.bzl", "internal_copied_filegroup")
4load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")
5
6proto_library(
7 name = "p4data_proto",
8 srcs = ["p4/v1/p4data.proto"],
9)
10
11proto_library(
12 name = "p4types_proto",
13 srcs = ["p4/config/v1/p4types.proto"],
14)
15
16proto_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
25proto_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
36java_proto_library(
37 name = "p4data_java_proto_native",
38 deps = [":p4data_proto"],
39)
40
41java_proto_library(
Carmelo Cascone41644362018-08-09 16:56:43 -070042 name = "p4types_java_proto_native",
43 deps = [":p4types_proto"],
44)
45
46java_proto_library(
Carmelo Cascone72893b72018-08-09 00:59:06 -070047 name = "p4info_java_proto_native",
48 deps = [":p4info_proto"],
49)
50
51java_proto_library(
52 name = "p4runtime_java_proto_native",
53 deps = [":p4runtime_proto"],
54)
55
56java_grpc_library(
57 name = "p4runtime_java_grpc_native",
58 srcs = [":p4runtime_proto"],
59 deps = [":p4runtime_java_proto_native"],
60)
61