Stricter peerdir tags for PROTO_LIBRARY
Restore original behavior of PROTO_LIBRARY: it was prohibited to have peerdirs from it to other libraries.
@@ -3135,11 +3135,13 @@ ANDROID_SDK_ROOT=${ANDROID_SDK_RESOURCE_GLOBAL}/android_sdk
### https://wiki.yandex-team.ru/yatool/proto_library/
multimodule PROTO_LIBRARY {
module CPP_PROTO : LIBRARY {
+ SET(PEERDIR_TAGS CPP_PROTO)
}
module JAVA_PROTO: _JAVA_LIBRARY {
.EXTS=.jsrc
.ALLOWED=GRPC
+ SET(PEERDIR_TAGS JAVA_PROTO)
PEERDIR($JAVA_PROTOBUF)
PEERDIR(contrib/java/javax/annotation/javax.annotation-api/1.3.1)
when ($GRPC_FLAG == "yes") {
@@ -3150,13 +3152,13 @@ multimodule PROTO_LIBRARY {
module PY_PROTO: PY_LIBRARY {
.ALIASES=SRCS=PY_SRCS
- PEERDIR_TAGS=PY2 PY_PROTO
+ SET(PEERDIR_TAGS PY2 PY_PROTO)
NO_LINT()
}
module PY3_PROTO: PY3_LIBRARY {
.ALIASES=SRCS=PY3_SRCS
- PEERDIR_TAGS=PY3 PY3_PROTO
+ SET(PEERDIR_TAGS PY3 PY3_PROTO)
when ($MSVC == "yes" || $CYGWIN == "yes") {
MODULE_PREFIX=py3
}
