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 = [ |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 4 | "@com_github_p4lang_p4runtime//:" + p |
| 5 | for p in [ |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 6 | "p4info_proto", |
| 7 | "p4types_proto", |
| 8 | "p4data_proto", |
| 9 | "p4runtime_proto", |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 10 | ] |
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( |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 14 | grpc_proto_lib = "@com_github_p4lang_p4runtime//:p4runtime_proto", |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 15 | proto_libs = PROTOS, |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 16 | deps = [ |
| 17 | "@com_google_api_grpc_proto_google_common_protos//jar", |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 18 | ], |
Ray Milkey | 3275ae8 | 2018-05-29 15:35:36 -0700 | [diff] [blame] | 19 | ) |