blob: 8a2909092fe0babbcc4c84fd910a7cf616f2cd41 [file] [log] [blame]
Carmelo Casconedd85ce82017-11-22 15:47:27 -08001include_defs('//bucklets/grpc.bucklet')
2
3PROTOBUF_VER = '3.2.0'
Andrea Campanella23e16632017-12-13 12:59:31 +01004GRPC_VER = '1.3.1'
Carmelo Casconedd85ce82017-11-22 15:47:27 -08005
6COMPILE_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
14grpc_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
22project_config(
23 src_target = ':onos-protocols-gnmi-stub'
24)