Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 1 | load("//tools/build/bazel:osgi_java_library.bzl", "osgi_proto_jar") |
Ray Milkey | 3275ae8 | 2018-05-29 15:35:36 -0700 | [diff] [blame] | 2 | |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 3 | PROTOS = [ |
| 4 | "@com_github_p4lang_p4runtime//:" + p for p in [ |
| 5 | "p4info_proto", |
| 6 | "p4types_proto", |
| 7 | "p4data_proto", |
| 8 | "p4runtime_proto", |
| 9 | ]] + [ |
| 10 | "@com_github_p4lang_pi//:p4config_proto" |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 11 | ] |
| 12 | |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 13 | osgi_proto_jar( |
| 14 | proto_libs = PROTOS, |
| 15 | grpc_proto_lib = "@com_github_p4lang_p4runtime//:p4runtime_proto", |
| 16 | deps = [ |
| 17 | "@com_google_api_grpc_proto_google_common_protos//jar", |
| 18 | ] |
Ray Milkey | 3275ae8 | 2018-05-29 15:35:36 -0700 | [diff] [blame] | 19 | ) |