blob: 4bb2fe58af20ade05105f62836452f7c6ea53686 [file] [log] [blame]
Carmelo Casconedd85ce82017-11-22 15:47:27 -08001include_defs('//bucklets/grpc.bucklet')
2
3PROTOBUF_VER = '3.2.0'
4GRPC_VER = '1.3.0'
5
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)