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 | |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 8 | COMPILE_DEPS = [ |
| 9 | '//lib:CORE_DEPS', |
| 10 | '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
| 11 | '//lib:grpc-stub-' + GRPC_VER, |
| 12 | '//lib:grpc-protobuf-' + GRPC_VER, |
| 13 | '//lib:protobuf-java-' + PROTOC_VER, |
| 14 | ] |
| 15 | |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 16 | grpc_jar( |
| 17 | proto_match_patterns = ["*.proto"], |
Ray Milkey | 9d81ea5 | 2017-07-20 10:36:51 -0700 | [diff] [blame^] | 18 | proto_paths = ["$ONOS_ROOT/protocols/grpc/proto/", "$ONOS_ROOT"], #FIXME should not have to include ONOS_ROOT top level here |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 19 | protoc_version = PROTOC_VER, |
| 20 | plugin_version = GRPC_VER, |
| 21 | deps = COMPILE_DEPS, |
| 22 | ) |
| 23 | |
| 24 | project_config( |
| 25 | src_target = ':onos-protocols-grpc-proto' |
Ray Milkey | 9d81ea5 | 2017-07-20 10:36:51 -0700 | [diff] [blame^] | 26 | ) |