blob: a00dd64bf0c273ab56839fcc64f382dad56d737c [file] [log] [blame]
Carmelo Cascone6a1ae712018-08-10 12:19:47 -07001load("//tools/build/bazel:osgi_java_library.bzl", "osgi_proto_jar")
Ray Milkey3275ae82018-05-29 15:35:36 -07002
Carmelo Cascone6a1ae712018-08-10 12:19:47 -07003PROTOS = [
Ray Milkey05d609a2018-08-15 10:27:58 -07004 "@com_github_p4lang_p4runtime//:" + p
5 for p in [
Carmelo Cascone6a1ae712018-08-10 12:19:47 -07006 "p4info_proto",
7 "p4types_proto",
8 "p4data_proto",
9 "p4runtime_proto",
Ray Milkey05d609a2018-08-15 10:27:58 -070010 ]
Carmelo Cascone41644362018-08-09 16:56:43 -070011]
12
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070013osgi_proto_jar(
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070014 grpc_proto_lib = "@com_github_p4lang_p4runtime//:p4runtime_proto",
Ray Milkey05d609a2018-08-15 10:27:58 -070015 proto_libs = PROTOS,
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070016 deps = [
17 "@com_google_api_grpc_proto_google_common_protos//jar",
Ray Milkey05d609a2018-08-15 10:27:58 -070018 ],
Ray Milkey3275ae82018-05-29 15:35:36 -070019)