Carmelo Cascone | dd85ce8 | 2017-11-22 15:47:27 -0800 | [diff] [blame] | 1 | include_defs('//bucklets/grpc.bucklet') |
| 2 | |
| 3 | PROTOBUF_VER = '3.2.0' |
Andrea Campanella | 23e1663 | 2017-12-13 12:59:31 +0100 | [diff] [blame^] | 4 | GRPC_VER = '1.3.1' |
Carmelo Cascone | dd85ce8 | 2017-11-22 15:47:27 -0800 | [diff] [blame] | 5 | |
| 6 | COMPILE_DEPS = [ |
| 7 | '//lib:CORE_DEPS', |
| 8 | '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
| 9 | '//lib:grpc-stub-' + GRPC_VER, |
| 10 | '//lib:grpc-protobuf-' + GRPC_VER, |
| 11 | '//lib:protobuf-java-' + PROTOBUF_VER, |
| 12 | ] |
| 13 | |
| 14 | grpc_jar( |
| 15 | deps = COMPILE_DEPS, |
| 16 | # FIXME should not be manually building absolute path. |
| 17 | # Come up with glob(..) equivalent in BUCK which can handle directory. |
| 18 | proto_paths = ["$ONOS_ROOT/protocols/gnmi/stub/src/main/proto"], |
| 19 | include_std_lib = True, |
| 20 | ) |
| 21 | |
| 22 | project_config( |
| 23 | src_target = ':onos-protocols-gnmi-stub' |
| 24 | ) |