Carmelo Cascone | 04d0939 | 2017-07-19 08:49:08 -0400 | [diff] [blame^] | 1 | GRPC_VER = '1.3.0' |
| 2 | PROTOBUF_VER = '3.0.2' |
| 3 | |
Carmelo Cascone | f7aa3f9 | 2017-07-06 23:56:50 -0400 | [diff] [blame] | 4 | GRPC_DEPS = [ |
Carmelo Cascone | 04d0939 | 2017-07-19 08:49:08 -0400 | [diff] [blame^] | 5 | '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
| 6 | '//lib:grpc-protobuf-' + GRPC_VER, |
| 7 | '//lib:grpc-protobuf-lite-' + GRPC_VER, |
| 8 | '//lib:grpc-stub-' + GRPC_VER, |
| 9 | '//lib:grpc-netty-' + GRPC_VER, |
| 10 | '//lib:grpc-auth-' + GRPC_VER, |
Carmelo Cascone | f7aa3f9 | 2017-07-06 23:56:50 -0400 | [diff] [blame] | 11 | '//lib:google-instrumentation-0.3.0', |
Carmelo Cascone | 04d0939 | 2017-07-19 08:49:08 -0400 | [diff] [blame^] | 12 | '//lib:protobuf-java-' + PROTOBUF_VER, |
Carmelo Cascone | f7aa3f9 | 2017-07-06 23:56:50 -0400 | [diff] [blame] | 13 | # Lazily adding all netty-related packages. |
| 14 | # Some of them might not be necessary. |
| 15 | '//lib:netty', |
| 16 | '//lib:netty-buffer', |
| 17 | '//lib:netty-codec', |
| 18 | '//lib:netty-codec-http', |
| 19 | '//lib:netty-codec-http2', |
| 20 | '//lib:netty-common', |
| 21 | '//lib:netty-handler', |
| 22 | '//lib:netty-transport', |
| 23 | '//lib:netty-transport-native-epoll', |
| 24 | '//lib:netty-resolver', |
| 25 | ] |
| 26 | |
| 27 | COMPILE_DEPS = [ |
| 28 | '//lib:CORE_DEPS', |
| 29 | '//protocols/grpc/api:onos-protocols-grpc-api', |
| 30 | '//protocols/p4runtime/api:onos-protocols-p4runtime-api', |
| 31 | '//protocols/p4runtime/proto:onos-protocols-p4runtime-proto' |
| 32 | ] + GRPC_DEPS |
| 33 | |
| 34 | TEST_DEPS = [ |
| 35 | '//lib:TEST', |
| 36 | '//core/api:onos-api-tests', |
Carmelo Cascone | 8d99b17 | 2017-07-18 17:26:31 -0400 | [diff] [blame] | 37 | '//incubator/bmv2/model:onos-incubator-bmv2-model', |
Carmelo Cascone | f7aa3f9 | 2017-07-06 23:56:50 -0400 | [diff] [blame] | 38 | ] |
| 39 | |
Carmelo Cascone | f7aa3f9 | 2017-07-06 23:56:50 -0400 | [diff] [blame] | 40 | osgi_jar_with_tests( |
| 41 | deps = COMPILE_DEPS, |
| 42 | test_deps = TEST_DEPS, |
| 43 | ) |