blob: 4ade3365e4839a1aa2bc4a248134074db93a87a9 [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(
42 name = "p4info_java_proto_native",
43 deps = [":p4info_proto"],
44)
45
46java_proto_library(
47 name = "p4runtime_java_proto_native",
48 deps = [":p4runtime_proto"],
49)
50
51java_grpc_library(
52 name = "p4runtime_java_grpc_native",
53 srcs = [":p4runtime_proto"],
54 deps = [":p4runtime_java_proto_native"],
55)
56