Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame^] | 1 | include_defs( |
| 2 | '//bucklets/grpc.bucklet' |
| 3 | ) |
| 4 | |
| 5 | PROTOC_VER = '3.0.2' |
| 6 | GRPC_VER = '1.3.0' |
| 7 | |
| 8 | |
| 9 | COMPILE_DEPS = [ |
| 10 | '//lib:CORE_DEPS', |
| 11 | '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
| 12 | '//lib:grpc-stub-' + GRPC_VER, |
| 13 | '//lib:grpc-protobuf-' + GRPC_VER, |
| 14 | '//lib:protobuf-java-' + PROTOC_VER, |
| 15 | ] |
| 16 | |
| 17 | |
| 18 | grpc_jar( |
| 19 | proto_match_patterns = ["*.proto"], |
| 20 | proto_paths = ["$ONOS_ROOT/protocols/grpc/proto/"], |
| 21 | protoc_version = PROTOC_VER, |
| 22 | plugin_version = GRPC_VER, |
| 23 | deps = COMPILE_DEPS, |
| 24 | ) |
| 25 | |
| 26 | project_config( |
| 27 | src_target = ':onos-protocols-grpc-proto' |
| 28 | ) |