blob: 8f1b56231d1964440d1928cc9fef9d17c90986ee [file] [log] [blame]
Carmelo Cascone59f57de2017-07-11 19:55:09 -04001include_defs(
2 '//bucklets/grpc.bucklet'
3)
4
Andrea Campanella8bcd5862017-12-11 11:34:45 +01005PROTOBUF_VER = '3.2.0'
Carmelo Casconeb1936bd2017-12-12 14:42:27 -08006GRPC_VER = '1.3.1'
Carmelo Cascone59f57de2017-07-11 19:55:09 -04007
Carmelo Cascone59f57de2017-07-11 19:55:09 -04008COMPILE_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 Casconedda88d02017-07-19 22:42:01 -040013 '//lib:protobuf-java-' + PROTOBUF_VER,
Carmelo Cascone59f57de2017-07-11 19:55:09 -040014]
15
Carmelo Cascone59f57de2017-07-11 19:55:09 -040016grpc_jar(
17 proto_match_patterns = ["*.proto"],
Ray Milkey9d81ea52017-07-20 10:36:51 -070018 proto_paths = ["$ONOS_ROOT/protocols/grpc/proto/", "$ONOS_ROOT"], #FIXME should not have to include ONOS_ROOT top level here
Carmelo Casconedda88d02017-07-19 22:42:01 -040019 protoc_version = PROTOBUF_VER,
Carmelo Cascone59f57de2017-07-11 19:55:09 -040020 plugin_version = GRPC_VER,
21 deps = COMPILE_DEPS,
22)
23
24project_config(
25 src_target = ':onos-protocols-grpc-proto'
Ray Milkey9d81ea52017-07-20 10:36:51 -070026)