Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 1 | load("//tools/build/bazel:osgi_java_library.bzl", "wrapped_osgi_jar") |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 2 | load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library") |
Ray Milkey | 3275ae8 | 2018-05-29 15:35:36 -0700 | [diff] [blame] | 3 | |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame^] | 4 | GRPC_DEPS = [ |
| 5 | "@io_grpc_grpc_java//stub", |
| 6 | "@io_grpc_grpc_java//core", |
| 7 | "@io_grpc_grpc_java//protobuf", |
| 8 | ] |
| 9 | |
| 10 | PROTOBUF_DEPS = [ |
| 11 | "@com_google_protobuf//:protobuf_java", |
| 12 | ] |
| 13 | |
Ray Milkey | 32ea35c | 2018-06-06 15:28:07 -0700 | [diff] [blame] | 14 | wrapped_osgi_jar( |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 15 | name = "p4config_java_proto", |
| 16 | jar = "@com_github_p4lang_pi//:p4config_java_proto_native", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame^] | 17 | deps = PROTOBUF_DEPS, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 18 | visibility = ["//visibility:public"], |
| 19 | ) |
| 20 | |
| 21 | wrapped_osgi_jar( |
| 22 | name = "p4data_java_proto", |
| 23 | jar = "@com_github_p4lang_p4runtime//:p4data_java_proto_native", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame^] | 24 | deps = PROTOBUF_DEPS, |
| 25 | visibility = ["//visibility:public"], |
| 26 | ) |
| 27 | |
| 28 | wrapped_osgi_jar( |
| 29 | name = "p4types_java_proto", |
| 30 | jar = "@com_github_p4lang_p4runtime//:p4types_java_proto_native", |
| 31 | deps = PROTOBUF_DEPS, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 32 | visibility = ["//visibility:public"], |
| 33 | ) |
| 34 | |
| 35 | wrapped_osgi_jar( |
| 36 | name = "p4info_java_proto", |
| 37 | jar = "@com_github_p4lang_p4runtime//:p4info_java_proto_native", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame^] | 38 | deps = PROTOBUF_DEPS, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 39 | visibility = ["//visibility:public"], |
| 40 | ) |
| 41 | |
| 42 | wrapped_osgi_jar( |
| 43 | name = "p4runtime_java_proto", |
| 44 | jar = "@com_github_p4lang_p4runtime//:p4runtime_java_proto_native", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame^] | 45 | deps = PROTOBUF_DEPS, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 46 | visibility = ["//visibility:public"], |
| 47 | ) |
| 48 | |
| 49 | wrapped_osgi_jar( |
| 50 | name = "p4runtime_java_grpc", |
| 51 | jar = "@com_github_p4lang_p4runtime//:p4runtime_java_grpc_native", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame^] | 52 | deps = GRPC_DEPS, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 53 | visibility = ["//visibility:public"], |
| 54 | ) |
| 55 | |
| 56 | wrapped_osgi_jar( |
| 57 | name = "status_java_proto", |
| 58 | jar = "@com_github_googleapis//:status_java_proto_native", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame^] | 59 | deps = PROTOBUF_DEPS, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 60 | visibility = ["//visibility:public"], |
Ray Milkey | 3275ae8 | 2018-05-29 15:35:36 -0700 | [diff] [blame] | 61 | ) |