blob: 4c99b0db960a0e09ed9b14136b6085bddb730a6b [file] [log] [blame]
Ray Milkeya8cf59e2018-06-06 16:39:45 -07001load("//tools/build/bazel:osgi_java_library.bzl", "wrapped_osgi_jar")
Carmelo Cascone72893b72018-08-09 00:59:06 -07002load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")
Ray Milkey3275ae82018-05-29 15:35:36 -07003
Carmelo Cascone41644362018-08-09 16:56:43 -07004GRPC_DEPS = [
5 "@io_grpc_grpc_java//stub",
6 "@io_grpc_grpc_java//core",
7 "@io_grpc_grpc_java//protobuf",
8]
9
10PROTOBUF_DEPS = [
11 "@com_google_protobuf//:protobuf_java",
12]
13
Ray Milkey32ea35c2018-06-06 15:28:07 -070014wrapped_osgi_jar(
Carmelo Cascone72893b72018-08-09 00:59:06 -070015 name = "p4config_java_proto",
16 jar = "@com_github_p4lang_pi//:p4config_java_proto_native",
Carmelo Cascone41644362018-08-09 16:56:43 -070017 deps = PROTOBUF_DEPS,
Carmelo Cascone72893b72018-08-09 00:59:06 -070018 visibility = ["//visibility:public"],
19)
20
21wrapped_osgi_jar(
22 name = "p4data_java_proto",
23 jar = "@com_github_p4lang_p4runtime//:p4data_java_proto_native",
Carmelo Cascone41644362018-08-09 16:56:43 -070024 deps = PROTOBUF_DEPS,
25 visibility = ["//visibility:public"],
26)
27
28wrapped_osgi_jar(
29 name = "p4types_java_proto",
30 jar = "@com_github_p4lang_p4runtime//:p4types_java_proto_native",
31 deps = PROTOBUF_DEPS,
Carmelo Cascone72893b72018-08-09 00:59:06 -070032 visibility = ["//visibility:public"],
33)
34
35wrapped_osgi_jar(
36 name = "p4info_java_proto",
37 jar = "@com_github_p4lang_p4runtime//:p4info_java_proto_native",
Carmelo Cascone41644362018-08-09 16:56:43 -070038 deps = PROTOBUF_DEPS,
Carmelo Cascone72893b72018-08-09 00:59:06 -070039 visibility = ["//visibility:public"],
40)
41
42wrapped_osgi_jar(
43 name = "p4runtime_java_proto",
44 jar = "@com_github_p4lang_p4runtime//:p4runtime_java_proto_native",
Carmelo Cascone41644362018-08-09 16:56:43 -070045 deps = PROTOBUF_DEPS,
Carmelo Cascone72893b72018-08-09 00:59:06 -070046 visibility = ["//visibility:public"],
47)
48
49wrapped_osgi_jar(
50 name = "p4runtime_java_grpc",
51 jar = "@com_github_p4lang_p4runtime//:p4runtime_java_grpc_native",
Carmelo Cascone41644362018-08-09 16:56:43 -070052 deps = GRPC_DEPS,
Carmelo Cascone72893b72018-08-09 00:59:06 -070053 visibility = ["//visibility:public"],
54)
55
56wrapped_osgi_jar(
57 name = "status_java_proto",
58 jar = "@com_github_googleapis//:status_java_proto_native",
Carmelo Cascone41644362018-08-09 16:56:43 -070059 deps = PROTOBUF_DEPS,
Carmelo Cascone72893b72018-08-09 00:59:06 -070060 visibility = ["//visibility:public"],
Ray Milkey3275ae82018-05-29 15:35:36 -070061)