From f3d95530f462dca30a9bc1ed417fd192a3c09e5e Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 17 Jan 2022 17:54:08 +0100 Subject: [PATCH] make: Generate grpc bindings if we want to test with rust enabled --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 67b6fd3d8..778b53281 100644 --- a/Makefile +++ b/Makefile @@ -359,6 +359,17 @@ endif ifneq ($(RUST),0) include cln-rpc/Makefile include cln-grpc/Makefile + +GRPC_GEN = tests/node_pb2.py \ + tests/node_pb2_grpc.py \ + tests/primitives_pb2.py + +ALL_TEST_GEN += $(GRPC_GEN) + +$(GRPC_GEN): cln-grpc/proto/node.proto cln-grpc/proto/primitives.proto + python -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/node.proto --python_out=tests/ --grpc_python_out=tests/ --experimental_allow_proto3_optional + python -m grpc_tools.protoc -I cln-grpc/proto cln-grpc/proto/primitives.proto --python_out=tests/ --grpc_python_out=tests/ --experimental_allow_proto3_optional + endif # We make pretty much everything depend on these.