diff options
author | rmirzakhanian <rmirzakhanian@yandex-team.com> | 2023-09-12 16:50:33 +0300 |
---|---|---|
committer | rmirzakhanian <rmirzakhanian@yandex-team.com> | 2023-09-12 17:14:44 +0300 |
commit | 5d6f57d6be20ae6e9decafc2fd95e914c4dc0442 (patch) | |
tree | c2082a2193b1c0667a7b60c76c4fa5f19a8cff9b /build/conf | |
parent | b41ef20dea019cfba4300ab3a0e5a7bb411459ee (diff) | |
download | ydb-5d6f57d6be20ae6e9decafc2fd95e914c4dc0442.tar.gz |
Add support generate kotlin suspend function using JAVA_PROTO_PLUGIN, add new version for grpc kotlin stub
Diffstat (limited to 'build/conf')
-rw-r--r-- | build/conf/proto.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build/conf/proto.conf b/build/conf/proto.conf index bd22b7cdcf..468ac0a2e9 100644 --- a/build/conf/proto.conf +++ b/build/conf/proto.conf @@ -169,6 +169,16 @@ macro _ADD_SEM_PROP_IF_NON_EMPTY(Prop, Args...) { .SEM=${pre=&& set_target_property $Prop :Args} } +# tag:proto tag:java-specific +macro WITH_KOTLIN_GRPC() { + ENABLE(KOTLIN_PROTO) + PEERDIR(build/platform/java/kotlin_grpc) + SET_APPEND(JAVA_PROTO_ARGS ${env:"JAVA_HOME=${WITH_JDK_RESOURCE_GLOBAL}"} ${env:"KOTLIN_GRPC_JAR=${KOTLIN_GRPC_RESOURCE_GLOBAL}/grpc_kotlin/protoc-gen-grpc-kotlin-1.3.1.jar"} --plugin=protoc-gen-kotlin_grpc=${KOTLIN_GRPC_RESOURCE_GLOBAL}/grpc_kotlin/grpc_kotlin --kotlin_grpc_out=$ARCADIA_BUILD_ROOT/java_out) + SET(JAVA_PROTOBUF_PEERS $JAVA_PROTOBUF_PEERS contrib/java/io/grpc/grpc-kotlin-stub/1.3.1) + SET(JAVA_PROTOBUF_PEERS $JAVA_PROTOBUF_PEERS contrib/java/com/google/protobuf/protobuf-kotlin/3.24.2) +} + + # tag:proto tag:cpp-specific macro _ADD_CPP_PROTO_OUT(Suf) { .SEM=append_target_property PROTOC_EXTRA_OUTS $Suf ${output;hide;suf=.o:Suf} $_ADD_SEM_PROP_IF_NON_EMPTY(PROTO_NAMESPACE $PROTO_NAMESPACE) |