Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 1 | include_defs( |
| 2 | '//bucklets/grpc.bucklet' |
| 3 | ) |
| 4 | |
Andrea Campanella | 8bcd586 | 2017-12-11 11:34:45 +0100 | [diff] [blame] | 5 | PROTOBUF_VER = '3.2.0' |
Carmelo Cascone | b1936bd | 2017-12-12 14:42:27 -0800 | [diff] [blame] | 6 | GRPC_VER = '1.3.1' |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 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, |
Carmelo Cascone | dda88d0 | 2017-07-19 22:42:01 -0400 | [diff] [blame] | 13 | '//lib:protobuf-java-' + PROTOBUF_VER, |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 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 | dda88d0 | 2017-07-19 22:42:01 -0400 | [diff] [blame] | 19 | protoc_version = PROTOBUF_VER, |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 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 | ) |