diff options
author | svidyuk <svidyuk@yandex-team.com> | 2024-04-05 07:07:56 +0300 |
---|---|---|
committer | svidyuk <svidyuk@yandex-team.com> | 2024-04-05 07:17:50 +0300 |
commit | 6484550aa9842e870619262b6ff32e2e35820210 (patch) | |
tree | 014cf2c50eb53eb5365a51ee0a0b61cc02ed9afe /contrib/libs/protoc | |
parent | 72c0e2fa8054597e8e76a0c1dd60e5539a4278fe (diff) | |
download | ydb-6484550aa9842e870619262b6ff32e2e35820210.tar.gz |
Do not drop adincls in ya make opensource build because of cmake export replacements
a118aa391374ee757d795d5237e28fb8cf1e74fe
Diffstat (limited to 'contrib/libs/protoc')
-rw-r--r-- | contrib/libs/protoc/ya.make | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/contrib/libs/protoc/ya.make b/contrib/libs/protoc/ya.make index f1134013cb..927ead0dbd 100644 --- a/contrib/libs/protoc/ya.make +++ b/contrib/libs/protoc/ya.make @@ -13,16 +13,28 @@ VERSION(3.19.0) ORIGINAL_SOURCE(https://github.com/protocolbuffers/protobuf/archive/v3.19.0.tar.gz) +IF (OPENSOURCE_REPLACE_PROTOBUF AND EXPORT_CMAKE) + + OPENSOURCE_EXPORT_REPLACEMENT( + CMAKE Protobuf + CMAKE_TARGET protobuf::libprotobuf protobuf::libprotoc + CONAN protobuf/${OPENSOURCE_REPLACE_PROTOBUF} "&& conan_require_tool" protobuf/${OPENSOURCE_REPLACE_PROTOBUF} "&& conan_import \"bin, protoc* -> ./bin\" && vanilla_protobuf" + ) + +ELSE() + + ADDINCL( + GLOBAL contrib/libs/protoc/src + ) + +ENDIF() + LICENSE_TEXTS(.yandex_meta/licenses.list.txt) PEERDIR( contrib/libs/protobuf ) -ADDINCL( - GLOBAL contrib/libs/protoc/src -) - NO_COMPILER_WARNINGS() NO_UTIL() |