diff options
author | spreis <spreis@yandex-team.ru> | 2022-02-10 16:47:13 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:13 +0300 |
commit | b49848d6e361b76904f094b7d5e10d6edea75afe (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 | |
parent | bcd1126cbd5d445cd0665d295198aa39c6ab8cbe (diff) | |
download | ydb-b49848d6e361b76904f094b7d5e10d6edea75afe.tar.gz |
Restoring authorship annotation for <spreis@yandex-team.ru>. Commit 2 of 2.
264 files changed, 7464 insertions, 7464 deletions
diff --git a/build/conf/java.ymake.conf b/build/conf/java.ymake.conf index a44abb6d40..ed85153c78 100644 --- a/build/conf/java.ymake.conf +++ b/build/conf/java.ymake.conf @@ -20,7 +20,7 @@ macro ACCELEO(XSD{input}[], MTL{input}[], MTL_ROOT="${MODDIR}", LANG{input}[], O ### ### Documentation: https://wiki.yandex-team.ru/yatool/java/ module JAVA_LIBRARY: JAR_LIBRARY { - .ALIASES=REQUIREMENTS=JAVA_REQUIREMENTS + .ALIASES=REQUIREMENTS=JAVA_REQUIREMENTS } ### @usage: JAVA_PROGRAM() @@ -47,7 +47,7 @@ multimodule JAVA_PROGRAM { } module JAR_COMPILATION: JAR_LIBRARY { .IGNORED=JAVA_RUNTIME_PEERDIR JAVA_RUNTIME_EXCLUDE - .ALIASES=JAVA_RUNTIME_PEERDIR=_NOOP_MACRO JAVA_RUNTIME_EXCLUDE=_NOOP_MACRO REQUIREMENTS=JAVA_REQUIREMENTS + .ALIASES=JAVA_RUNTIME_PEERDIR=_NOOP_MACRO JAVA_RUNTIME_EXCLUDE=_NOOP_MACRO REQUIREMENTS=JAVA_REQUIREMENTS .FINAL_TARGET=no SET(MODULE_TYPE JAVA_PROGRAM) } diff --git a/build/conf/license.conf b/build/conf/license.conf index 3bed882ca0..f2fb576b0d 100644 --- a/build/conf/license.conf +++ b/build/conf/license.conf @@ -1,5 +1,5 @@ LICENSE_EXPRESSION_IMPLICIT_OR=yes -LICENSE_EXPRESSION_IMPLICIT_AND=yes +LICENSE_EXPRESSION_IMPLICIT_AND=yes LICENSE_EXPRESSION= LICENSE_NAMES= @@ -252,8 +252,8 @@ LICENSES_PERMISSIVE= \ JSON \ Khronos \ Libpbm \ - LicenseRef-scancode-bitstream \ - LicenseRef-scancode-ams-fonts \ + LicenseRef-scancode-bitstream \ + LicenseRef-scancode-ams-fonts \ Linux-OpenIB \ Libpng \ libpng-2.0 \ diff --git a/build/conf/opensource.conf b/build/conf/opensource.conf index 1eec5cd236..c0ab8489b8 100644 --- a/build/conf/opensource.conf +++ b/build/conf/opensource.conf @@ -1,14 +1,14 @@ -when ($CATBOOST_OPENSOURCE == "yes") { - OPENSOURCE=yes -} - -when ($OPENSOURCE) { - LOCAL_YDB_DOCKER_PUBLIC_BUILD=yes - CATBOOST_OPENSOURCE=yes - USE_DYNAMIC_IDN=yes - USE_DYNAMIC_AIO=yes - USE_DYNAMIC_ICONV=yes - USE_ASMLIB=no - SO_OUTPUTS=yes +when ($CATBOOST_OPENSOURCE == "yes") { + OPENSOURCE=yes +} + +when ($OPENSOURCE) { + LOCAL_YDB_DOCKER_PUBLIC_BUILD=yes + CATBOOST_OPENSOURCE=yes + USE_DYNAMIC_IDN=yes + USE_DYNAMIC_AIO=yes + USE_DYNAMIC_ICONV=yes + USE_ASMLIB=no + SO_OUTPUTS=yes UDF_NO_PROBE=yes -} +} diff --git a/build/conf/project_specific/maps/aar.conf b/build/conf/project_specific/maps/aar.conf index 059ab91d04..780ff38984 100644 --- a/build/conf/project_specific/maps/aar.conf +++ b/build/conf/project_specific/maps/aar.conf @@ -163,7 +163,7 @@ module MOBILE_TEST_APK: DLL { module MOBILE_BOOST_TEST_APK: MOBILE_TEST_APK { PEERDIR(devtools/dummy_arcadia/test/test_apk/template) PEERDIR(build/external_resources/mapsmobi_maven_repo) - ADD_YTEST($MODULE_PREFIX$REALPRJNAME boost.test) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME boost.test) MOBILE_TEST_APK_TEMPLATE(${ARCADIA_ROOT}/devtools/dummy_arcadia/test/test_apk/template Manifest.xml java/com/yandex/test/unittests/RunTestsActivity.java res/values/strings.xml) } diff --git a/build/conf/sysincl.conf b/build/conf/sysincl.conf index 91b5e6b0f9..60e641e2db 100644 --- a/build/conf/sysincl.conf +++ b/build/conf/sysincl.conf @@ -21,7 +21,7 @@ when ($USE_SYSTEM_JDK) { SYSINCL+=build/sysincl/system-jdk.yml } -when ($OPENSOURCE != "yes") { +when ($OPENSOURCE != "yes") { SYSINCL+=build/yandex_specific/sysincl/speechkit.yml SYSINCL+=build/yandex_specific/sysincl/sophos.yml SYSINCL+=build/yandex_specific/sysincl/misc.yml @@ -35,7 +35,7 @@ when ($MUSL == "yes") { when ($OS_WINDOWS == "yes") { SYSINCL+=build/sysincl/misc-win.yml - when ($OPENSOURCE !="yes") { + when ($OPENSOURCE !="yes") { SYSINCL+=build/yandex_specific/sysincl/misc-win.yml } } diff --git a/build/conf/ts.conf b/build/conf/ts.conf index 80c2b7fc7a..8fc221c3ca 100644 --- a/build/conf/ts.conf +++ b/build/conf/ts.conf @@ -43,7 +43,7 @@ macro FROM_NPM_LOCKFILES(LOCKFILES...) { ### @usage: FROM_NPM(NAME VERSION SKY_ID INTEGRITY INTEGRITY_ALGO TARBALL_PATH) macro FROM_NPM(NAME, VERSION, SKY_ID, INTEGRITY, INTEGRITY_ALGO, TARBALL_PATH) { - .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_npm.py"} ${input;hide:"build/scripts/fetch_from.py"} ${input;hide:"build/scripts/sky.py"} --name $NAME --version $VERSION --sky-id $SKY_ID --integrity $INTEGRITY --integrity-algorithm $INTEGRITY_ALGO --copy-to ${output:TARBALL_PATH} ${requirements;hide:"network:full"} ${kv;hide:"p NP"} ${kv;hide:"pc yellow"} + .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_npm.py"} ${input;hide:"build/scripts/fetch_from.py"} ${input;hide:"build/scripts/sky.py"} --name $NAME --version $VERSION --sky-id $SKY_ID --integrity $INTEGRITY --integrity-algorithm $INTEGRITY_ALGO --copy-to ${output:TARBALL_PATH} ${requirements;hide:"network:full"} ${kv;hide:"p NP"} ${kv;hide:"pc yellow"} } ### @usage: NODE_MODULES() @@ -61,7 +61,7 @@ macro _NODE_MODULES(IN{input}[], OUT{output}[]) { PEERDIR($NPM_CONTRIBS_PATH) SET(_NODE_MODULES_INPUTS \${input;hide:node_modules.tar}) - .CMD=${cwd:BINDIR} $NOTS_TOOL create-node-modules $NOTS_TOOL_BASE_ARGS --pnpm-script $PNPM_SCRIPT --contribs $NPM_CONTRIBS_PATH ${input;hide:IN} ${output;global;hide:OUT} ${kv;hide:"p NM"} ${kv;hide:"pc yellow"} + .CMD=${cwd:BINDIR} $NOTS_TOOL create-node-modules $NOTS_TOOL_BASE_ARGS --pnpm-script $PNPM_SCRIPT --contribs $NPM_CONTRIBS_PATH ${input;hide:IN} ${output;global;hide:OUT} ${kv;hide:"p NM"} ${kv;hide:"pc yellow"} } module _TS_BASE_UNIT: _BASE_UNIT { @@ -79,7 +79,7 @@ module _TS_BASE_UNIT: _BASE_UNIT { TS_CONFIG_PATH=tsconfig.json -TS_COMPILE=${cwd:BINDIR} $NOTS_TOOL compile-ts $NOTS_TOOL_BASE_ARGS --tsc-script $TSC_SCRIPT --config ${input:TS_CONFIG_PATH} $_NODE_MODULES_INPUTS ${output;hide:"package.json"} ${kv;hide:"p FE"} ${kv;hide:"pc yellow"} && $TOUCH_UNIT +TS_COMPILE=${cwd:BINDIR} $NOTS_TOOL compile-ts $NOTS_TOOL_BASE_ARGS --tsc-script $TSC_SCRIPT --config ${input:TS_CONFIG_PATH} $_NODE_MODULES_INPUTS ${output;hide:"package.json"} ${kv;hide:"p FE"} ${kv;hide:"pc yellow"} && $TOUCH_UNIT ### @usage: TS_LIBRARY([name]) ### diff --git a/build/docs/all.md b/build/docs/all.md index fac9594281..50051b596c 100644 --- a/build/docs/all.md +++ b/build/docs/all.md @@ -1,14 +1,14 @@ *Do not edit, this file is generated from comments to macros definitions using `ya dump conf-docs -all`.* -# ya.make and core.conf commands - -General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles) - -## Table of contents - - * [Multimodules](#multimodules) +# ya.make and core.conf commands + +General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles) + +## Table of contents + + * [Multimodules](#multimodules) - Multimodule [DLL_JAVA](#multimodule_DLL_JAVA) - - Multimodule [DOCS](#multimodule_DOCS) + - Multimodule [DOCS](#multimodule_DOCS) - Multimodule [DYNAMIC_LIBRARY](#multimodule_DYNAMIC_LIBRARY) - Multimodule [FBS_LIBRARY](#multimodule_FBS_LIBRARY) - Multimodule [JAR_PROGRAM](#multimodule_JAR_PROGRAM) @@ -20,22 +20,22 @@ General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/Ho - Multimodule [JUNIT5](#multimodule_JUNIT5) - Multimodule [JUNIT5_YMAKE](#multimodule_JUNIT5_YMAKE) - Multimodule [MAPS_IDL_LIBRARY](#multimodule_MAPS_IDL_LIBRARY) - - Multimodule [PROTO_LIBRARY](#multimodule_PROTO_LIBRARY) - - Multimodule [PY23_LIBRARY](#multimodule_PY23_LIBRARY) - - Multimodule [PY23_NATIVE_LIBRARY](#multimodule_PY23_NATIVE_LIBRARY) + - Multimodule [PROTO_LIBRARY](#multimodule_PROTO_LIBRARY) + - Multimodule [PY23_LIBRARY](#multimodule_PY23_LIBRARY) + - Multimodule [PY23_NATIVE_LIBRARY](#multimodule_PY23_NATIVE_LIBRARY) - Multimodule [PY23_TEST](#multimodule_PY23_TEST) - Multimodule [PY3TEST](#multimodule_PY3TEST) - Multimodule [PY3_PROGRAM](#multimodule_PY3_PROGRAM) - Multimodule [SANDBOX_PY23_TASK](#multimodule_SANDBOX_PY23_TASK) - Multimodule [SANDBOX_PY3_TASK](#multimodule_SANDBOX_PY3_TASK) - - Multimodule [SANDBOX_TASK](#multimodule_SANDBOX_TASK) + - Multimodule [SANDBOX_TASK](#multimodule_SANDBOX_TASK) - Multimodule [SSQLS_LIBRARY](#multimodule_SSQLS_LIBRARY) - - Multimodule [YQL_UDF](#multimodule_YQL_UDF) - * [Modules](#modules) + - Multimodule [YQL_UDF](#multimodule_YQL_UDF) + * [Modules](#modules) - Module [AAR](#module_AAR) - Module [AAR_PROXY_LIBRARY](#module_AAR_PROXY_LIBRARY) - Module [ASRC_LIBRARY](#module_ASRC_LIBRARY) - - Module [BOOSTTEST](#module_BOOSTTEST) + - Module [BOOSTTEST](#module_BOOSTTEST) - Module [BOOSTTEST_WITH_MAIN](#module_BOOSTTEST_WITH_MAIN) - Module [CI_GROUP](#module_CI_GROUP) - Module [CONTAINER](#module_CONTAINER) @@ -43,41 +43,41 @@ General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/Ho - Module [CPP_STYLE_TEST](#module_CPP_STYLE_TEST) - Module [CUSTOM_BUILD_LIBRARY](#module_CUSTOM_BUILD_LIBRARY) - Module [DEFAULT_IOS_INTERFACE](#module_DEFAULT_IOS_INTERFACE) - - Module [DEV_DLL_PROXY](#module_DEV_DLL_PROXY) - - Module [DLL](#module_DLL) + - Module [DEV_DLL_PROXY](#module_DEV_DLL_PROXY) + - Module [DLL](#module_DLL) - Module [DLL_PROXY](#module_DLL_PROXY) - Module [DLL_PROXY_LIBRARY](#module_DLL_PROXY_LIBRARY) - Module [DLL_TOOL](#module_DLL_TOOL) - - Module [DLL_UNIT](#module_DLL_UNIT) - - Module [EXECTEST](#module_EXECTEST) - - Module [EXTERNAL_JAVA_LIBRARY](#module_EXTERNAL_JAVA_LIBRARY) - - Module [FAT_OBJECT](#module_FAT_OBJECT) - - Module [FUZZ](#module_FUZZ) + - Module [DLL_UNIT](#module_DLL_UNIT) + - Module [EXECTEST](#module_EXECTEST) + - Module [EXTERNAL_JAVA_LIBRARY](#module_EXTERNAL_JAVA_LIBRARY) + - Module [FAT_OBJECT](#module_FAT_OBJECT) + - Module [FUZZ](#module_FUZZ) - Module [GO_DLL](#module_GO_DLL) - - Module [GO_LIBRARY](#module_GO_LIBRARY) - - Module [GO_PROGRAM](#module_GO_PROGRAM) - - Module [GO_TEST](#module_GO_TEST) - - Module [GTEST](#module_GTEST) + - Module [GO_LIBRARY](#module_GO_LIBRARY) + - Module [GO_PROGRAM](#module_GO_PROGRAM) + - Module [GO_TEST](#module_GO_TEST) + - Module [GTEST](#module_GTEST) - Module [GTEST_UGLY](#module_GTEST_UGLY) - Module [G_BENCHMARK](#module_G_BENCHMARK) - Module [IOS_INTERFACE](#module_IOS_INTERFACE) - Module [JAR_LIBRARY](#module_JAR_LIBRARY) - Module [JAVA_CONTRIB](#module_JAVA_CONTRIB) - Module [JAVA_CONTRIB_PROXY](#module_JAVA_CONTRIB_PROXY) - - Module [JAVA_LIBRARY](#module_JAVA_LIBRARY) + - Module [JAVA_LIBRARY](#module_JAVA_LIBRARY) - Module [JSRC_LIBRARY](#module_JSRC_LIBRARY) - Module [JSRC_PROXY_MOBILE_LIBRARY](#module_JSRC_PROXY_MOBILE_LIBRARY) - - Module [LIBRARY](#module_LIBRARY) + - Module [LIBRARY](#module_LIBRARY) - Module [MCU_PROGRAM](#module_MCU_PROGRAM) - - Module [METAQUERY](#module_METAQUERY) + - Module [METAQUERY](#module_METAQUERY) - Module [MOBILE_BOOST_TEST_APK](#module_MOBILE_BOOST_TEST_APK) - Module [MOBILE_DLL](#module_MOBILE_DLL) - Module [MOBILE_LIBRARY](#module_MOBILE_LIBRARY) - Module [MOBILE_TEST_APK](#module_MOBILE_TEST_APK) - Module [NPM_CONTRIBS](#module_NPM_CONTRIBS) - - Module [PACKAGE](#module_PACKAGE) + - Module [PACKAGE](#module_PACKAGE) - Module [PREBUILT_PROGRAM](#module_PREBUILT_PROGRAM) - - Module [PROGRAM](#module_PROGRAM) + - Module [PROGRAM](#module_PROGRAM) - Module [PROTO_DESCRIPTIONS](#module_PROTO_DESCRIPTIONS) - Module [PROTO_REGISTRY](#module_PROTO_REGISTRY) - Module [PY2MODULE](#module_PY2MODULE) @@ -85,61 +85,61 @@ General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/Ho - Module [PY2_LIBRARY](#module_PY2_LIBRARY) - Module [PY2_PROGRAM](#module_PY2_PROGRAM) - Module [PY3MODULE](#module_PY3MODULE) - - Module [PY3TEST_BIN](#module_PY3TEST_BIN) - - Module [PY3_LIBRARY](#module_PY3_LIBRARY) + - Module [PY3TEST_BIN](#module_PY3TEST_BIN) + - Module [PY3_LIBRARY](#module_PY3_LIBRARY) - Module [PY3_PROGRAM_BIN](#module_PY3_PROGRAM_BIN) - Module [PYCR_PROGRAM](#module_PYCR_PROGRAM) - Module [PYTEST_BIN](#module_PYTEST_BIN) - - Module [PY_ANY_MODULE](#module_PY_ANY_MODULE) - - Module [PY_PACKAGE](#module_PY_PACKAGE) + - Module [PY_ANY_MODULE](#module_PY_ANY_MODULE) + - Module [PY_PACKAGE](#module_PY_PACKAGE) - Module [RECURSIVE_LIBRARY](#module_RECURSIVE_LIBRARY) - - Module [RESOURCES_LIBRARY](#module_RESOURCES_LIBRARY) - - Module [R_MODULE](#module_R_MODULE) - - Module [SO_PROGRAM](#module_SO_PROGRAM) + - Module [RESOURCES_LIBRARY](#module_RESOURCES_LIBRARY) + - Module [R_MODULE](#module_R_MODULE) + - Module [SO_PROGRAM](#module_SO_PROGRAM) - Module [TS_LIBRARY](#module_TS_LIBRARY) - - Module [UDF](#module_UDF) - - Module [UDF_BASE](#module_UDF_BASE) - - Module [UDF_LIB](#module_UDF_LIB) - - Module [UNION](#module_UNION) - - Module [UNITTEST](#module_UNITTEST) - - Module [UNITTEST_FOR](#module_UNITTEST_FOR) - - Module [UNITTEST_WITH_CUSTOM_ENTRY_POINT](#module_UNITTEST_WITH_CUSTOM_ENTRY_POINT) - - Module [YCR_PROGRAM](#module_YCR_PROGRAM) - - Module [YQL_PYTHON3_UDF](#module_YQL_PYTHON3_UDF) + - Module [UDF](#module_UDF) + - Module [UDF_BASE](#module_UDF_BASE) + - Module [UDF_LIB](#module_UDF_LIB) + - Module [UNION](#module_UNION) + - Module [UNITTEST](#module_UNITTEST) + - Module [UNITTEST_FOR](#module_UNITTEST_FOR) + - Module [UNITTEST_WITH_CUSTOM_ENTRY_POINT](#module_UNITTEST_WITH_CUSTOM_ENTRY_POINT) + - Module [YCR_PROGRAM](#module_YCR_PROGRAM) + - Module [YQL_PYTHON3_UDF](#module_YQL_PYTHON3_UDF) - Module [YQL_PYTHON3_UDF_TEST](#module_YQL_PYTHON3_UDF_TEST) - - Module [YQL_PYTHON_UDF](#module_YQL_PYTHON_UDF) + - Module [YQL_PYTHON_UDF](#module_YQL_PYTHON_UDF) - Module [YQL_PYTHON_UDF_PROGRAM](#module_YQL_PYTHON_UDF_PROGRAM) - - Module [YQL_PYTHON_UDF_TEST](#module_YQL_PYTHON_UDF_TEST) - - Module [YQL_UDF_MODULE](#module_YQL_UDF_MODULE) - - Module [YQL_UDF_TEST](#module_YQL_UDF_TEST) - - Module [YT_UNITTEST](#module_YT_UNITTEST) + - Module [YQL_PYTHON_UDF_TEST](#module_YQL_PYTHON_UDF_TEST) + - Module [YQL_UDF_MODULE](#module_YQL_UDF_MODULE) + - Module [YQL_UDF_TEST](#module_YQL_UDF_TEST) + - Module [YT_UNITTEST](#module_YT_UNITTEST) - Module [Y_BENCHMARK](#module_Y_BENCHMARK) - Module [_BARE_UNIT](#module__BARE_UNIT) - - Module [_BASE_PROGRAM](#module__BASE_PROGRAM) - - Module [_BASE_PY3_PROGRAM](#module__BASE_PY3_PROGRAM) + - Module [_BASE_PROGRAM](#module__BASE_PROGRAM) + - Module [_BASE_PY3_PROGRAM](#module__BASE_PY3_PROGRAM) - Module [_BASE_PYTEST](#module__BASE_PYTEST) - Module [_BASE_PY_PROGRAM](#module__BASE_PY_PROGRAM) - - Module [_BASE_UNIT](#module__BASE_UNIT) - - Module [_BASE_UNITTEST](#module__BASE_UNITTEST) + - Module [_BASE_UNIT](#module__BASE_UNIT) + - Module [_BASE_UNITTEST](#module__BASE_UNITTEST) - Module [_COMPILABLE_JAR_BASE](#module__COMPILABLE_JAR_BASE) - Module [_DLL_COMPATIBLE_JAVA_LIBRARY](#module__DLL_COMPATIBLE_JAVA_LIBRARY) - - Module [_DLL_COMPATIBLE_LIBRARY](#module__DLL_COMPATIBLE_LIBRARY) + - Module [_DLL_COMPATIBLE_LIBRARY](#module__DLL_COMPATIBLE_LIBRARY) - Module [_DOCS_BASE_UNIT](#module__DOCS_BASE_UNIT) - - Module [_GO_BASE_UNIT](#module__GO_BASE_UNIT) + - Module [_GO_BASE_UNIT](#module__GO_BASE_UNIT) - Module [_GO_DLL_BASE_UNIT](#module__GO_DLL_BASE_UNIT) - Module [_JAR_BASE](#module__JAR_BASE) - Module [_JAR_RUNABLE](#module__JAR_RUNABLE) - Module [_JAR_TEST](#module__JAR_TEST) - - Module [_JAVA_PLACEHOLDER](#module__JAVA_PLACEHOLDER) - - Module [_LIBRARY](#module__LIBRARY) - - Module [_LINK_UNIT](#module__LINK_UNIT) + - Module [_JAVA_PLACEHOLDER](#module__JAVA_PLACEHOLDER) + - Module [_LIBRARY](#module__LIBRARY) + - Module [_LINK_UNIT](#module__LINK_UNIT) - Module [_PROXY_LIBRARY](#module__PROXY_LIBRARY) - Module [_PY2_PROGRAM](#module__PY2_PROGRAM) - Module [_PY3_LIBRARY](#module__PY3_LIBRARY) - Module [_PY_PACKAGE](#module__PY_PACKAGE) - Module [_TS_BASE_UNIT](#module__TS_BASE_UNIT) - Module [_YQL_UDF_PROGRAM_BASE](#module__YQL_UDF_PROGRAM_BASE) - * [Macros](#macros) + * [Macros](#macros) - Macros [AARS](#macro_AARS) .. [AAR_LOCAL_MAVEN_REPO](#macro_AAR_LOCAL_MAVEN_REPO) - Macros [AAR_MANIFEST](#macro_AAR_MANIFEST) .. [ADD_COMPILABLE_TRANSLATE](#macro_ADD_COMPILABLE_TRANSLATE) - Macros [ADD_COMPILABLE_TRANSLIT](#macro_ADD_COMPILABLE_TRANSLIT) .. [ANNOTATION_PROCESSOR](#macro_ANNOTATION_PROCESSOR) @@ -208,8 +208,8 @@ General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/Ho - Macros [_SRC____xs](#macro__SRC____xs) .. [_SRC_lua_21](#macro__SRC_lua_21) - Macros [_SRC_m](#macro__SRC_m) .. [_TS_CONFIGURE](#macro__TS_CONFIGURE) - Macros [_UNITTEST](#macro__UNITTEST) .. [_YTEST](#macro__YTEST) -## Multimodules <a name="multimodules"></a> - +## Multimodules <a name="multimodules"></a> + ###### Multimodule [DLL\_JAVA][]() <a name="multimodule_DLL_JAVA"></a> DLL built using swig for Java. Produces dynamic library and a .jar. Dynamic library is treated the same as in the case of PEERDIR from Java to DLL. @@ -217,16 +217,16 @@ Dynamic library is treated the same as in the case of PEERDIR from Java to DLL. Documentation: https://wiki.yandex-team.ru/yatool/java/#integracijascpp/pythonsborkojj -###### Multimodule [DOCS][]() <a name="multimodule_DOCS"></a> -Documentation project multimodule. - -When built directly, via RECURSE, DEPENDS or BUNDLE the output artifact is docs.tar.gz with statically generated site (using mkdocs as builder). -When PEERDIRed from other DOCS() module behaves like a UNION (supplying own content and dependencies to build target). -Peerdirs from modules other than DOCS are not accepted. +###### Multimodule [DOCS][]() <a name="multimodule_DOCS"></a> +Documentation project multimodule. + +When built directly, via RECURSE, DEPENDS or BUNDLE the output artifact is docs.tar.gz with statically generated site (using mkdocs as builder). +When PEERDIRed from other DOCS() module behaves like a UNION (supplying own content and dependencies to build target). +Peerdirs from modules other than DOCS are not accepted. Most usual macros are not accepted, only used with the macros DOCS\_DIR(), DOCS\_CONFIG(), DOCS\_VARS(), DOCS\_BUILDER(). - + @see: [DOCS\_DIR()](#macro\_DOCS\_DIR), [DOCS\_CONFIG()](#macro\_DOCS\_CONFIG), [DOCS\_VARS()](#macro\_DOCS\_VARS), [DOCS\_BUILDER()](#macro\_DOCS\_BUILDER). - + ###### Multimodule [DYNAMIC\_LIBRARY][]() _# internal_ <a name="multimodule_DYNAMIC_LIBRARY"></a> The use of this module is strictly prohibited except LGPL-related opensourcing This provides linkable DLL module which brings its results to programs and tests @@ -278,44 +278,44 @@ The particular variant is selected based on where PEERDIR to IDL\_LIBRARY comes Now supported 2 variants: C++, Java Java version is not really a library but an archive of generated Java sources -###### Multimodule [PROTO\_LIBRARY][]() <a name="multimodule_PROTO_LIBRARY"></a> -Build some varian of protocol buffers library. - -The particular variant is selected based on where PEERDIR to PROTO\_LIBRARY comes from. - -Now supported 5 variants: C++, Java, Python 2.x, Python 3.x and Go. -When PEERDIR comes from module for particular language appropriate variant is selected. -PROTO\_LIBRARY also supports emission of GRPC code if GRPC() macro is specified. -Notes: -- Python versions emit C++ code in addition to Python as optimization. -- In some PROTO\_LIBRARY-es Java or Python versions are excluded via EXCLUDE\_TAGS macros due to incompatibilities. -- Use from DEPENDS or BUNDLE is not allowed - -Documentation: https://wiki.yandex-team.ru/yatool/proto\_library/ - -See: [GRPC()](#macro\_GRPC), [OPTIMIZE\_PY\_PROTOS()](#macro\_OPTIMIZE\_PY\_PROTOS), [INCLUDE\_TAGS()](#macro\_INCLUDE\_TAGS), [EXCLUDE\_TAGS()](#macro\_EXCLUDE\_TAGS) - -###### Multimodule [PY23\_LIBRARY][]([name]) <a name="multimodule_PY23_LIBRARY"></a> +###### Multimodule [PROTO\_LIBRARY][]() <a name="multimodule_PROTO_LIBRARY"></a> +Build some varian of protocol buffers library. + +The particular variant is selected based on where PEERDIR to PROTO\_LIBRARY comes from. + +Now supported 5 variants: C++, Java, Python 2.x, Python 3.x and Go. +When PEERDIR comes from module for particular language appropriate variant is selected. +PROTO\_LIBRARY also supports emission of GRPC code if GRPC() macro is specified. +Notes: +- Python versions emit C++ code in addition to Python as optimization. +- In some PROTO\_LIBRARY-es Java or Python versions are excluded via EXCLUDE\_TAGS macros due to incompatibilities. +- Use from DEPENDS or BUNDLE is not allowed + +Documentation: https://wiki.yandex-team.ru/yatool/proto\_library/ + +See: [GRPC()](#macro\_GRPC), [OPTIMIZE\_PY\_PROTOS()](#macro\_OPTIMIZE\_PY\_PROTOS), [INCLUDE\_TAGS()](#macro\_INCLUDE\_TAGS), [EXCLUDE\_TAGS()](#macro\_EXCLUDE\_TAGS) + +###### Multimodule [PY23\_LIBRARY][]([name]) <a name="multimodule_PY23_LIBRARY"></a> Build PY2\_LIBRARY or PY3\_LIBRARY depending on incoming PEERDIR. -Direct build or build by RECURSE creates both variants. -This multimodule doesn't define any final targets, so use from DEPENDS or BUNDLE is not allowed. - -Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs - -###### Multimodule [PY23\_NATIVE\_LIBRARY][]([name]) <a name="multimodule_PY23_NATIVE_LIBRARY"></a> +Direct build or build by RECURSE creates both variants. +This multimodule doesn't define any final targets, so use from DEPENDS or BUNDLE is not allowed. + +Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs + +###### Multimodule [PY23\_NATIVE\_LIBRARY][]([name]) <a name="multimodule_PY23_NATIVE_LIBRARY"></a> Build LIBRARY compatible with either Python 2.x or Python 3.x depending on incoming PEERDIR. - + This multimodule doesn't depend on Arcadia Python binary build. It is intended only for C++ code and cannot contain PY\_SRCS and USE\_PYTHON2 macros. Use these multimodule instead of PY23\_LIBRARY if the C++ extension defined in it will be used in PY2MODULE. While it doesn't bring Arcadia Python dependency itself, it is still compatible with Arcadia Python build and can be PEERDIR-ed from PY2\_LIBRARY and alikes. -Proper version will be selected according to Python version of the module PEERDIR comes from. - -This mulrtimodule doesn't define any final targets so cannot be used from DEPENDS or BUNDLE macros. - -For more information read https://wiki.yandex-team.ru/arcadia/python/pysrcs/#pysrcssrcsipy23nativelibrary - +Proper version will be selected according to Python version of the module PEERDIR comes from. + +This mulrtimodule doesn't define any final targets so cannot be used from DEPENDS or BUNDLE macros. + +For more information read https://wiki.yandex-team.ru/arcadia/python/pysrcs/#pysrcssrcsipy23nativelibrary + @see [LIBRARY()](#module\_LIBRARY), [PY2MODULE()](#module\_PY2MODULE) - + ###### Multimodule [PY23\_TEST][] <a name="multimodule_PY23_TEST"></a> Not documented yet. @@ -350,31 +350,31 @@ and will select multimodule variants accordingly. Documentation: https://wiki.yandex-team.ru/sandbox/tasks/binary -###### Multimodule [SANDBOX\_TASK][]([Name]) <a name="multimodule_SANDBOX_TASK"></a> -Multimodule describing Sandbox task (Python code that can be executed by Sandbox system). - +###### Multimodule [SANDBOX\_TASK][]([Name]) <a name="multimodule_SANDBOX_TASK"></a> +Multimodule describing Sandbox task (Python code that can be executed by Sandbox system). + When being a final target, this multimodule builds Sandbox binary task. It may PEERDIR other SANDBOX\_TASKs as libraries. The final artifact is provided when SANDBOX\_TASK is referred to by DEPENDS and BUNDLE macros. As PEERDIR target, it works like regular PY2\_LIBRARY with predefined dependencies on Sandbox SDK to allow code reuse among SANDBOX\_TASKs. - + Currently Sandbox supports only Python 2.x, so both variants will be compatible only with Python 2.x modules and will select multimodule variants accordingly. - -Documentation: https://wiki.yandex-team.ru/sandbox/tasks/binary - + +Documentation: https://wiki.yandex-team.ru/sandbox/tasks/binary + ###### Multimodule [SSQLS\_LIBRARY][] <a name="multimodule_SSQLS_LIBRARY"></a> Not documented yet. -###### Multimodule [YQL\_UDF][](name) <a name="multimodule_YQL_UDF"></a> -User-defined function for YQL - -Multimodule which is YQL\_UDF\_MODULE when built directly or referred by BUNDLE and DEPENDS macros. -If used by PEERDIRs it is usual static LIBRARY with default YQL dependencies, allowing code reuse between UDFs. - -@see: [YQL\_UDF\_MODULE()](#module\_YQL\_UDF\_MODULE) - -## Modules <a name="modules"></a> - +###### Multimodule [YQL\_UDF][](name) <a name="multimodule_YQL_UDF"></a> +User-defined function for YQL + +Multimodule which is YQL\_UDF\_MODULE when built directly or referred by BUNDLE and DEPENDS macros. +If used by PEERDIRs it is usual static LIBRARY with default YQL dependencies, allowing code reuse between UDFs. + +@see: [YQL\_UDF\_MODULE()](#module\_YQL\_UDF\_MODULE) + +## Modules <a name="modules"></a> + ###### Module [AAR][]() _# internal_ <a name="module_AAR"></a> Not documented yet. @@ -384,11 +384,11 @@ The use of this module is strictly prohibited!!! ###### Module [ASRC\_LIBRARY][]() _# internal_ <a name="module_ASRC_LIBRARY"></a> Not documented yet. -###### Module [BOOSTTEST][]([name]) _#deprecated_ <a name="module_BOOSTTEST"></a> -Test module based on boost/test/unit\_test.hpp. -As with entire boost library usage of this technology is deprecated in Arcadia and restricted with configuration error in most of projects. -No new module of this type should be introduced unless it is explicitly approved by C++ committee. - +###### Module [BOOSTTEST][]([name]) _#deprecated_ <a name="module_BOOSTTEST"></a> +Test module based on boost/test/unit\_test.hpp. +As with entire boost library usage of this technology is deprecated in Arcadia and restricted with configuration error in most of projects. +No new module of this type should be introduced unless it is explicitly approved by C++ committee. + ###### Module [BOOSTTEST\_WITH\_MAIN][]([name]) _#deprecated_ <a name="module_BOOSTTEST_WITH_MAIN"></a> Same as BOOSTTEST (see above), but comes with builtin int main(argc, argv) implementation @@ -413,18 +413,18 @@ Not documented yet. ###### Module [DEFAULT\_IOS\_INTERFACE][]: IOS\_INTERFACE <a name="module_DEFAULT_IOS_INTERFACE"></a> Not documented yet. -###### Module [DEV\_DLL\_PROXY][]() _# internal_ <a name="module_DEV_DLL_PROXY"></a> -The use of this module is strictly prohibited!!! -This is a temporary and project-specific solution. - -###### Module [DLL][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_DLL"></a> -Dynamic library module defintion. -1. major\_ver and minor\_ver must be integers. -2. EXPORTS allows you to explicitly specify the list of exported functions. This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files -3. PREFIX allows you to change the prefix of the output file (default DLL has the prefix "lib"). - -DLL cannot participate in linking to programs but can be used from Java or as final artifact (packaged and deployed). - +###### Module [DEV\_DLL\_PROXY][]() _# internal_ <a name="module_DEV_DLL_PROXY"></a> +The use of this module is strictly prohibited!!! +This is a temporary and project-specific solution. + +###### Module [DLL][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_DLL"></a> +Dynamic library module defintion. +1. major\_ver and minor\_ver must be integers. +2. EXPORTS allows you to explicitly specify the list of exported functions. This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files +3. PREFIX allows you to change the prefix of the output file (default DLL has the prefix "lib"). + +DLL cannot participate in linking to programs but can be used from Java or as final artifact (packaged and deployed). + ###### Module [DLL\_PROXY][]() _# internal_ <a name="module_DLL_PROXY"></a> The use of this module is strictly prohibited!!! This is a temporary and project-specific solution. @@ -435,78 +435,78 @@ The use of this module is strictly prohibited!!! ###### Module [DLL\_TOOL][] <a name="module_DLL_TOOL"></a> DLL\_TOOL is a DLL that can be used as a LD\_PRELOAD tool. -###### Module [DLL\_UNIT][] _# internal_ <a name="module_DLL_UNIT"></a> -Base module for all dynamically linked libraries as final artifacts. -Contains all general logic for such kind of modules. Supports versioning and export files. -Cannot participate in linking to programs, intended to be used as final artifact (packaged and deployed). - -###### Module [EXECTEST][]() <a name="module_EXECTEST"></a> -Module definition of generic test that executes a binary. -Use macro RUN to specify binary to run. - -@example: - - EXECTEST() - OWNER(g:yatool) - - RUN( - cat input.txt - ) - DATA( - arcadia/devtools/ya/test/tests/exectest/data - ) - DEPENDS( - devtools/dummy_arcadia/cat - ) - TEST_CWD(devtools/ya/test/tests/exectest/data) - END() - -More examples: https://wiki.yandex-team.ru/yatool/test/#exec-testy - -@see: [RUN()](#macro\_RUN) - -###### Module [EXTERNAL\_JAVA\_LIBRARY][]() _#internal_ <a name="module_EXTERNAL_JAVA_LIBRARY"></a> -EXTERNAL\_JAVA\_LIBRARY() is a module for creating a .jar file using non-Java code (generators etc.) +###### Module [DLL\_UNIT][] _# internal_ <a name="module_DLL_UNIT"></a> +Base module for all dynamically linked libraries as final artifacts. +Contains all general logic for such kind of modules. Supports versioning and export files. +Cannot participate in linking to programs, intended to be used as final artifact (packaged and deployed). + +###### Module [EXECTEST][]() <a name="module_EXECTEST"></a> +Module definition of generic test that executes a binary. +Use macro RUN to specify binary to run. + +@example: + + EXECTEST() + OWNER(g:yatool) + + RUN( + cat input.txt + ) + DATA( + arcadia/devtools/ya/test/tests/exectest/data + ) + DEPENDS( + devtools/dummy_arcadia/cat + ) + TEST_CWD(devtools/ya/test/tests/exectest/data) + END() + +More examples: https://wiki.yandex-team.ru/yatool/test/#exec-testy + +@see: [RUN()](#macro\_RUN) + +###### Module [EXTERNAL\_JAVA\_LIBRARY][]() _#internal_ <a name="module_EXTERNAL_JAVA_LIBRARY"></a> +EXTERNAL\_JAVA\_LIBRARY() is a module for creating a .jar file using non-Java code (generators etc.) Unlike regular JAVA\_LIBRARY this module doesn't produce .pom file, so it cannot be exported to Maven itself. -PEERDIR it from JAVA\_LIBRARY or JAVA\_PROGRAM for export to Maven. - -###### Module [FAT\_OBJECT][]() <a name="module_FAT_OBJECT"></a> -The "fat" object module. It will contain all its transitive dependencies reachable by PEERDIRs: -static libraries, local (from own SRCS) and global (from peers') object files. - -Designed for use in XCode projects for iOS. - -###### Module [FUZZ][]() <a name="module_FUZZ"></a> -In order to start using Fuzzing in Arcadia, you need to create a FUZZ module with the implementation of the function LLVMFuzzerTestOneInput(). -This module should be reachable by RECURSE from /autocheck project in order for the corpus to be regularly updated. -AFL and Libfuzzer are supported in Arcadia via a single interface, but the automatic fuzzing still works only through Libfuzzer. - -Example: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/re2/re2/fuzzing/re2\_fuzzer.cc?rev=2919463#L58 - -Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ - +PEERDIR it from JAVA\_LIBRARY or JAVA\_PROGRAM for export to Maven. + +###### Module [FAT\_OBJECT][]() <a name="module_FAT_OBJECT"></a> +The "fat" object module. It will contain all its transitive dependencies reachable by PEERDIRs: +static libraries, local (from own SRCS) and global (from peers') object files. + +Designed for use in XCode projects for iOS. + +###### Module [FUZZ][]() <a name="module_FUZZ"></a> +In order to start using Fuzzing in Arcadia, you need to create a FUZZ module with the implementation of the function LLVMFuzzerTestOneInput(). +This module should be reachable by RECURSE from /autocheck project in order for the corpus to be regularly updated. +AFL and Libfuzzer are supported in Arcadia via a single interface, but the automatic fuzzing still works only through Libfuzzer. + +Example: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/re2/re2/fuzzing/re2\_fuzzer.cc?rev=2919463#L58 + +Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ + ###### Module [GO\_DLL][](name major\_ver [minor\_ver] [PREFIX prefix]) <a name="module_GO_DLL"></a> Go ishared object module definition. Compile and link Go module to a shared object. Will select Go implementation on PEERDIR to PROTO\_LIBRARY. -###### Module [GO\_LIBRARY][]([name]) <a name="module_GO_LIBRARY"></a> -Go library module definition. -Compile Go module as a library suitable for PEERDIR from other Go modules. -Will select Go implementation on PEERDIR to PROTO\_LIBRARY. - -###### Module [GO\_PROGRAM][]([name]) <a name="module_GO_PROGRAM"></a> -Go program module definition. -Compile and link Go module to an executable program. -Will select Go implementation on PEERDIR to PROTO\_LIBRARY. - -###### Module [GO\_TEST][]([name]) <a name="module_GO_TEST"></a> -Go test module definition. -Compile and link Go module as a test suitable for running with Arcadia testing support. -All usual testing support macros like DATA, DEPENDS, SIZE, REQUIREMENTS etc. are supported. -Will select Go implementation on PEERDIR to PROTO\_LIBRARY. - -###### Module [GTEST][]([name]) <a name="module_GTEST"></a> +###### Module [GO\_LIBRARY][]([name]) <a name="module_GO_LIBRARY"></a> +Go library module definition. +Compile Go module as a library suitable for PEERDIR from other Go modules. +Will select Go implementation on PEERDIR to PROTO\_LIBRARY. + +###### Module [GO\_PROGRAM][]([name]) <a name="module_GO_PROGRAM"></a> +Go program module definition. +Compile and link Go module to an executable program. +Will select Go implementation on PEERDIR to PROTO\_LIBRARY. + +###### Module [GO\_TEST][]([name]) <a name="module_GO_TEST"></a> +Go test module definition. +Compile and link Go module as a test suitable for running with Arcadia testing support. +All usual testing support macros like DATA, DEPENDS, SIZE, REQUIREMENTS etc. are supported. +Will select Go implementation on PEERDIR to PROTO\_LIBRARY. + +###### Module [GTEST][]([name]) <a name="module_GTEST"></a> Unit test module based on library/cpp/testing/gtest. It is recommended not to specify the name. @@ -515,11 +515,11 @@ Documentation: https://docs.yandex-team.ru/arcadia-cpp/cpp\_test ###### Module [GTEST\_UGLY][]([name]) <a name="module_GTEST_UGLY"></a> Deprecated, do not use in new projects. Use GTEST instead. -The test module based on gtest (contrib/libs/gtest contrib/libs/gmock). -Use public documentation on gtest for details. - -Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ - +The test module based on gtest (contrib/libs/gtest contrib/libs/gmock). +Use public documentation on gtest for details. + +Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ + ###### Module [G\_BENCHMARK][]([benchmarkname]) <a name="module_G_BENCHMARK"></a> Benchmark test based on the google benchmark. @@ -527,7 +527,7 @@ For more details see: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/be ###### Module [IOS\_INTERFACE][]() <a name="module_IOS_INTERFACE"></a> iOS GUI module definition - + ###### Module [JAR\_LIBRARY][]() _#internal_ <a name="module_JAR_LIBRARY"></a> Reimplementation of the JAVA\_LIBRARY with ymake.core.conf and ymake based dependency management @@ -537,38 +537,38 @@ Not documented yet. ###### Module [JAVA\_CONTRIB\_PROXY][]: \_JAR\_BASE <a name="module_JAVA_CONTRIB_PROXY"></a> Not documented yet. -###### Module [JAVA\_LIBRARY][]() <a name="module_JAVA_LIBRARY"></a> -The module describing java library build. - -Documentation: https://wiki.yandex-team.ru/yatool/java/ - +###### Module [JAVA\_LIBRARY][]() <a name="module_JAVA_LIBRARY"></a> +The module describing java library build. + +Documentation: https://wiki.yandex-team.ru/yatool/java/ + ###### Module [JSRC\_LIBRARY][]() _# internal_ <a name="module_JSRC_LIBRARY"></a> Not documented yet. ###### Module [JSRC\_PROXY\_MOBILE\_LIBRARY][]() _# internal_ <a name="module_JSRC_PROXY_MOBILE_LIBRARY"></a> Not documented yet. -###### Module [LIBRARY][]() <a name="module_LIBRARY"></a> -The regular static library module. - -The LIBRARY() is intermediate module, so when built directly it won't build its dependencies. -It transitively provides its PEERDIRs to ultimate final target, where all LIBRARY() modules are built and linked together. - -This is C++ library, and it selects peers from multimodules accordingly. - -It makes little sense to mention LIBRARY in DEPENDS or BUNDLE, package and deploy it since it is not a standalone entity. -In order to use library in tests PEERDIR it to link into tests. -If you think you need to distribute static library please contact devtools@ for assistance. - +###### Module [LIBRARY][]() <a name="module_LIBRARY"></a> +The regular static library module. + +The LIBRARY() is intermediate module, so when built directly it won't build its dependencies. +It transitively provides its PEERDIRs to ultimate final target, where all LIBRARY() modules are built and linked together. + +This is C++ library, and it selects peers from multimodules accordingly. + +It makes little sense to mention LIBRARY in DEPENDS or BUNDLE, package and deploy it since it is not a standalone entity. +In order to use library in tests PEERDIR it to link into tests. +If you think you need to distribute static library please contact devtools@ for assistance. + ###### Module [MCU\_PROGRAM][]([progname]) <a name="module_MCU_PROGRAM"></a> Program module for microcontrollers. Converts binary to Intel HEX and Motorola S-record file formats. If name is not specified it will be generated from the name of the containing project directory. -###### Module [METAQUERY][]() _#deprecated_ <a name="module_METAQUERY"></a> -Project Definition - KIWI Meta query. (Objected) - -https://wiki.yandex-team.ru/robot/manual/kiwi/techdoc/design/metaquery/ - +###### Module [METAQUERY][]() _#deprecated_ <a name="module_METAQUERY"></a> +Project Definition - KIWI Meta query. (Objected) + +https://wiki.yandex-team.ru/robot/manual/kiwi/techdoc/design/metaquery/ + ###### Module [MOBILE\_BOOST\_TEST\_APK][]() _# internal_ <a name="module_MOBILE_BOOST_TEST_APK"></a> Not documented yet. @@ -588,24 +588,24 @@ Should be used only with `NODE\_MODULES` macro. @see [FROM\_NPM\_LOCKFILES()](#macro\_FROM\_NPM\_LOCKFILES) @see [NODE\_MODULES()](#macro\_NODE\_MODULES) -###### Module [PACKAGE][](name) <a name="module_PACKAGE"></a> -Module collects what is described directly inside it, builds and collects all its transitively available PEERDIRs. -As a result, build directory of the project gets the structure of the accessible part of Arcadia, where the build result of each PEERDIR is placed to relevant Arcadia subpath. +###### Module [PACKAGE][](name) <a name="module_PACKAGE"></a> +Module collects what is described directly inside it, builds and collects all its transitively available PEERDIRs. +As a result, build directory of the project gets the structure of the accessible part of Arcadia, where the build result of each PEERDIR is placed to relevant Arcadia subpath. The data can be optionally packed if macro PACK() is used. - -Is only used together with the macros FILES(), PEERDIR(), COPY(), FROM\_SANDBOX(), RUN\_PROGRAM or BUNDLE(). Don't use SRCS inside a PACKAGE. - -Documentation: https://wiki.yandex-team.ru/yatool/large-data/ - + +Is only used together with the macros FILES(), PEERDIR(), COPY(), FROM\_SANDBOX(), RUN\_PROGRAM or BUNDLE(). Don't use SRCS inside a PACKAGE. + +Documentation: https://wiki.yandex-team.ru/yatool/large-data/ + @see: [PACK()](#macro\_PACK) ###### Module [PREBUILT\_PROGRAM][]([programname]) _# internal_ <a name="module_PREBUILT_PROGRAM"></a> Program module which uses a prebuilt prgram as its output. -###### Module [PROGRAM][]([progname]) <a name="module_PROGRAM"></a> -Regular program module. -If name is not specified it will be generated from the name of the containing project directory. - +###### Module [PROGRAM][]([progname]) <a name="module_PROGRAM"></a> +Regular program module. +If name is not specified it will be generated from the name of the containing project directory. + ###### Module [PROTO\_DESCRIPTIONS][]: \_BARE\_UNIT <a name="module_PROTO_DESCRIPTIONS"></a> Not documented yet. @@ -662,68 +662,68 @@ Do not PEERDIR PY3\_LIBRARY or PY23\_LIBRARY: this will link Python in and rende Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ -###### Module [PY3TEST\_BIN][]() _#deprecated_ <a name="module_PY3TEST_BIN"></a> -Same as PY3TEST. Don't use this, use PY3TEST instead. - -###### Module [PY3\_LIBRARY][]() <a name="module_PY3_LIBRARY"></a> +###### Module [PY3TEST\_BIN][]() _#deprecated_ <a name="module_PY3TEST_BIN"></a> +Same as PY3TEST. Don't use this, use PY3TEST instead. + +###### Module [PY3\_LIBRARY][]() <a name="module_PY3_LIBRARY"></a> Python 3.x binary library. Builds sources from PY\_SRCS to data suitable for PY2\_PROGRAM -Adds dependencies to Python 2.x runtime library from Arcadia. -This module is only compatible with PYTHON3-tagged modules and selects those from multimodules. -This module is only compatible with Arcadia Python build. - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ - +Adds dependencies to Python 2.x runtime library from Arcadia. +This module is only compatible with PYTHON3-tagged modules and selects those from multimodules. +This module is only compatible with Arcadia Python build. + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ + ###### Module [PY3\_PROGRAM\_BIN][]([progname]) <a name="module_PY3_PROGRAM_BIN"></a> Use instead of PY3\_PROGRAM only if ya.make with PY3\_PROGRAM() included in another ya.make In all other cases use PY3\_PROGRAM - + ###### Module [PYCR\_PROGRAM][]([progname]) <a name="module_PYCR_PROGRAM"></a> pycare-specific program module. Generates pycare configs in addition to producing the program. If name is not specified it will be generated from the name of the containing project directory. ###### Module [PYTEST\_BIN][]() _#deprecated_ <a name="module_PYTEST_BIN"></a> Same as PY2TEST. Don't use this, use PY2TEST instead. - -###### Module [PY\_ANY\_MODULE][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_PY_ANY_MODULE"></a> -The Python external module for any versio of Arcadia or system Python. -1. major\_ver and minor\_ver must be integers. -2. The resulting .so will have the prefix "lib". -3. Processing EXPORTS and PREFIX is the same as for DLL module -This is native DLL, so it will select C++ version from PROTO\_LIBRARY. - -Note: Use PYTHON2\_MODULE()/PYTHON3\_MODULE() in order to PEERDIR proper version of PY23\_NATIVE\_LIBRARY. -Do not PEERDIR any PY\*\_LIBRARY: this will link Python in and render artifact unusable as Python module. - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ - -###### Module [PY\_PACKAGE][](name) _# internal, deprecated_ <a name="module_PY_PACKAGE"></a> -This is module created via PY\_PROTOS\_FOR() macro - + +###### Module [PY\_ANY\_MODULE][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_PY_ANY_MODULE"></a> +The Python external module for any versio of Arcadia or system Python. +1. major\_ver and minor\_ver must be integers. +2. The resulting .so will have the prefix "lib". +3. Processing EXPORTS and PREFIX is the same as for DLL module +This is native DLL, so it will select C++ version from PROTO\_LIBRARY. + +Note: Use PYTHON2\_MODULE()/PYTHON3\_MODULE() in order to PEERDIR proper version of PY23\_NATIVE\_LIBRARY. +Do not PEERDIR any PY\*\_LIBRARY: this will link Python in and render artifact unusable as Python module. + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ + +###### Module [PY\_PACKAGE][](name) _# internal, deprecated_ <a name="module_PY_PACKAGE"></a> +This is module created via PY\_PROTOS\_FOR() macro + ###### Module [RECURSIVE\_LIBRARY][]() <a name="module_RECURSIVE_LIBRARY"></a> The recursive ("fat") library module. It will contain all its transitive dependencies reachable by PEERDIRs: from static libraries, local (from own SRCS) and global (from peers') object files. Designed for use in XCode projects for iOS. -###### Module [RESOURCES\_LIBRARY][]() <a name="module_RESOURCES_LIBRARY"></a> -Definition of a module that brings its content from external source (Sandbox) via DECLARE\_EXTERNAL\_RESOURCE macro. -This can participate in PEERDIRs of others as library but it cannot have own sources and PEERDIRs. - -@see: [DECLARE\_EXTERNAL\_RESOURCE()](#macro\_DECLARE\_EXTERNAL\_RESOURCE) - -###### Module [R\_MODULE][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_R_MODULE"></a> -The external module for R language. -1. major\_ver and minor\_ver must be integers. -2. The resulting .so will have the prefix "lib". -3. Processing EXPORTS and PREFIX is the same as for DLL module -This is native DLL, so it will select C++ version from PROTO\_LIBRARY. - -###### Module [SO\_PROGRAM][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_SO_PROGRAM"></a> -Executable dynamic library module defintion. -1. major\_ver and minor\_ver must be integers. -2. EXPORTS allows you to explicitly specify the list of exported functions. This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files -3. PREFIX allows you to change the prefix of the output file. - +###### Module [RESOURCES\_LIBRARY][]() <a name="module_RESOURCES_LIBRARY"></a> +Definition of a module that brings its content from external source (Sandbox) via DECLARE\_EXTERNAL\_RESOURCE macro. +This can participate in PEERDIRs of others as library but it cannot have own sources and PEERDIRs. + +@see: [DECLARE\_EXTERNAL\_RESOURCE()](#macro\_DECLARE\_EXTERNAL\_RESOURCE) + +###### Module [R\_MODULE][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_R_MODULE"></a> +The external module for R language. +1. major\_ver and minor\_ver must be integers. +2. The resulting .so will have the prefix "lib". +3. Processing EXPORTS and PREFIX is the same as for DLL module +This is native DLL, so it will select C++ version from PROTO\_LIBRARY. + +###### Module [SO\_PROGRAM][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_SO_PROGRAM"></a> +Executable dynamic library module defintion. +1. major\_ver and minor\_ver must be integers. +2. EXPORTS allows you to explicitly specify the list of exported functions. This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files +3. PREFIX allows you to change the prefix of the output file. + ###### Module [TS\_LIBRARY][]([name]) <a name="module_TS_LIBRARY"></a> The TypeScript/JavaScript library module, compiles TypeScript sources to JavaScript. Build results are JavaScript files, typings and source mappings (depending on local tsconfig.json settings). @@ -736,56 +736,56 @@ Build results are JavaScript files, typings and source mappings (depending on lo NODE_MODULES() END() -###### Module [UDF][](name [EXPORTS symlist\_file] [PREFIX prefix]) _# deprecated_ <a name="module_UDF"></a> -The KiWi UDF module. -Processing EXPORTS and PREFIX is the same as for DLL. - -https://wiki.yandex-team.ru/robot/manual/kiwi/userguide/#polzovatelskiefunkciiudftriggerykwcalc - -###### Module [UDF\_BASE][](name [EXPORTS symlist\_file] [PREFIX prefix]) _#internal_ <a name="module_UDF_BASE"></a> +###### Module [UDF][](name [EXPORTS symlist\_file] [PREFIX prefix]) _# deprecated_ <a name="module_UDF"></a> +The KiWi UDF module. +Processing EXPORTS and PREFIX is the same as for DLL. + +https://wiki.yandex-team.ru/robot/manual/kiwi/userguide/#polzovatelskiefunkciiudftriggerykwcalc + +###### Module [UDF\_BASE][](name [EXPORTS symlist\_file] [PREFIX prefix]) _#internal_ <a name="module_UDF_BASE"></a> The base logic of all UDF extension modules (User-Defined Functions). -Processing EXPORTS and PREFIX is the same as for DLL. - -https://wiki.yandex-team.ru/robot/manual/kiwi/userguide/#polzovatelskiefunkciiudftriggerykwcalc - -###### Module [UDF\_LIB][]([name]) _# deprecated_ <a name="module_UDF_LIB"></a> -The LIBRARY module for KiWi UDF, so has default PEERDIR to yweb/robot/kiwi/kwcalc/udflib. - -###### Module [UNION][](name) <a name="module_UNION"></a> -Collection of PEERDIR dependencies, files and artifacts. -UNION doesn't build its peers, just provides those to modules depending on it. -When specied in DEPENDS() macro the UNION is transitively closed, building all its peers and providing those by own paths (without adding this module path like PACKAGE does). - -Is only used together with the macros like FILES(), PEERDIR(), COPY(), FROM\_SANDBOX(), RUN\_PROGRAM or BUNDLE(). Don't use SRCS inside a UNION. - -Documentation: https://wiki.yandex-team.ru/yatool/large-data/ - -###### Module [UNITTEST][]([name]) <a name="module_UNITTEST"></a> +Processing EXPORTS and PREFIX is the same as for DLL. + +https://wiki.yandex-team.ru/robot/manual/kiwi/userguide/#polzovatelskiefunkciiudftriggerykwcalc + +###### Module [UDF\_LIB][]([name]) _# deprecated_ <a name="module_UDF_LIB"></a> +The LIBRARY module for KiWi UDF, so has default PEERDIR to yweb/robot/kiwi/kwcalc/udflib. + +###### Module [UNION][](name) <a name="module_UNION"></a> +Collection of PEERDIR dependencies, files and artifacts. +UNION doesn't build its peers, just provides those to modules depending on it. +When specied in DEPENDS() macro the UNION is transitively closed, building all its peers and providing those by own paths (without adding this module path like PACKAGE does). + +Is only used together with the macros like FILES(), PEERDIR(), COPY(), FROM\_SANDBOX(), RUN\_PROGRAM or BUNDLE(). Don't use SRCS inside a UNION. + +Documentation: https://wiki.yandex-team.ru/yatool/large-data/ + +###### Module [UNITTEST][]([name]) <a name="module_UNITTEST"></a> Unit test module based on library/cpp/testing/unittest. -It is recommended not to specify the name. - -Documentation: https://wiki.yandex-team.ru/yatool/test/#opisanievya.make1 - -###### Module [UNITTEST\_FOR][](path/to/lib) <a name="module_UNITTEST_FOR"></a> -Convenience extension of UNITTEST module. -The UNINTTEST module with additional SRCDIR + ADDINCL + PEERDIR on path/to/lib. -path/to/lib is the path to the directory with the LIBRARY project. - -Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ - -###### Module [UNITTEST\_WITH\_CUSTOM\_ENTRY\_POINT][]([name]) <a name="module_UNITTEST_WITH_CUSTOM_ENTRY_POINT"></a> -Generic unit test module. - -###### Module [YCR\_PROGRAM][]([progname]) <a name="module_YCR_PROGRAM"></a> -yacare-specific program module. Generates yacare configs in addition to producing the program. -If name is not specified it will be generated from the name of the containing project directory. - -###### Module [YQL\_PYTHON3\_UDF][](name) <a name="module_YQL_PYTHON3_UDF"></a> -The extension module for YQL with Python 3.x UDF (User Defined Function for YQL). -Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. - -Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ - +It is recommended not to specify the name. + +Documentation: https://wiki.yandex-team.ru/yatool/test/#opisanievya.make1 + +###### Module [UNITTEST\_FOR][](path/to/lib) <a name="module_UNITTEST_FOR"></a> +Convenience extension of UNITTEST module. +The UNINTTEST module with additional SRCDIR + ADDINCL + PEERDIR on path/to/lib. +path/to/lib is the path to the directory with the LIBRARY project. + +Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ + +###### Module [UNITTEST\_WITH\_CUSTOM\_ENTRY\_POINT][]([name]) <a name="module_UNITTEST_WITH_CUSTOM_ENTRY_POINT"></a> +Generic unit test module. + +###### Module [YCR\_PROGRAM][]([progname]) <a name="module_YCR_PROGRAM"></a> +yacare-specific program module. Generates yacare configs in addition to producing the program. +If name is not specified it will be generated from the name of the containing project directory. + +###### Module [YQL\_PYTHON3\_UDF][](name) <a name="module_YQL_PYTHON3_UDF"></a> +The extension module for YQL with Python 3.x UDF (User Defined Function for YQL). +Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. + +Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ + ###### Module [YQL\_PYTHON3\_UDF\_TEST][](name) <a name="module_YQL_PYTHON3_UDF_TEST"></a> The Python test for Python 3.x YQL UDF (User Defined Function for YQL). The code should be a proper YQL\_PYTHON3\_UDF. @@ -795,43 +795,43 @@ Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ @see: [YQL\_PYTHON3\_UDF()](#module\_YQL\_PYTHON3\_UDF) -###### Module [YQL\_PYTHON\_UDF][](name) <a name="module_YQL_PYTHON_UDF"></a> -Definition of the extension module for YQL with Python 2.x UDF (User Defined Function for YQL). -Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. - -https://yql.yandex-team.ru/docs/yt/udf/python/ - +###### Module [YQL\_PYTHON\_UDF][](name) <a name="module_YQL_PYTHON_UDF"></a> +Definition of the extension module for YQL with Python 2.x UDF (User Defined Function for YQL). +Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. + +https://yql.yandex-team.ru/docs/yt/udf/python/ + ###### Module [YQL\_PYTHON\_UDF\_PROGRAM][](name) <a name="module_YQL_PYTHON_UDF_PROGRAM"></a> Definition of the extension module for YQL with Python 2.x UDF (User Defined Function for YQL). Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. https://yql.yandex-team.ru/docs/yt/udf/python/ -###### Module [YQL\_PYTHON\_UDF\_TEST][](name) <a name="module_YQL_PYTHON_UDF_TEST"></a> -The Python test for Python YQL UDF (Python User Defined Function for YQL). The code should be a proper YQL\_PYTHON\_UDF. - -This module will basically build itself as UDF and run as test using yql/tools/run\_python\_udf/run\_python\_udf tool. - -Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ - -@example: https://a.yandex-team.ru/arc/trunk/arcadia/yql/udfs/test/simple/ya.make - -@see: [YQL\_PYTHON\_UDF()](#module\_YQL\_PYTHON\_UDF) - -###### Module [YQL\_UDF\_MODULE][](name) <a name="module_YQL_UDF_MODULE"></a> -The extension module for YQL with C++ UDF (User Defined Function YQL) - -https://yql.yandex-team.ru/docs/yt/udf/cpp/ - -###### Module [YQL\_UDF\_TEST][]([name]) <a name="module_YQL_UDF_TEST"></a> -The module to test YQL C++ UDF. - -Documentation: https://yql.yandex-team.ru/docs/yt/libraries/testing/ -Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ - -###### Module [YT\_UNITTEST][]([name]) <a name="module_YT_UNITTEST"></a> -YT Unit test module based on mapreduce/yt/library/utlib - +###### Module [YQL\_PYTHON\_UDF\_TEST][](name) <a name="module_YQL_PYTHON_UDF_TEST"></a> +The Python test for Python YQL UDF (Python User Defined Function for YQL). The code should be a proper YQL\_PYTHON\_UDF. + +This module will basically build itself as UDF and run as test using yql/tools/run\_python\_udf/run\_python\_udf tool. + +Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ + +@example: https://a.yandex-team.ru/arc/trunk/arcadia/yql/udfs/test/simple/ya.make + +@see: [YQL\_PYTHON\_UDF()](#module\_YQL\_PYTHON\_UDF) + +###### Module [YQL\_UDF\_MODULE][](name) <a name="module_YQL_UDF_MODULE"></a> +The extension module for YQL with C++ UDF (User Defined Function YQL) + +https://yql.yandex-team.ru/docs/yt/udf/cpp/ + +###### Module [YQL\_UDF\_TEST][]([name]) <a name="module_YQL_UDF_TEST"></a> +The module to test YQL C++ UDF. + +Documentation: https://yql.yandex-team.ru/docs/yt/libraries/testing/ +Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ + +###### Module [YT\_UNITTEST][]([name]) <a name="module_YT_UNITTEST"></a> +YT Unit test module based on mapreduce/yt/library/utlib + ###### Module [Y\_BENCHMARK][]([benchmarkname]) <a name="module_Y_BENCHMARK"></a> Benchmark test based on the library/cpp/testing/benchmark. @@ -841,53 +841,53 @@ For more details see: https://wiki.yandex-team.ru/yatool/test/#zapuskbenchmark The base of all modules describing default bare minimum for all modules. To avoid surprises, all buildable modules are better to be inherited from it or its descendants. -###### Module [\_BASE\_PROGRAM][] _# internal_ <a name="module__BASE_PROGRAM"></a> -The base of all programs. It adds dependencies to make final artefact complete and runnable. - -###### Module \_BASE\_PY\_PROGRAM _#internal_ <a name="module__BASE_PY3_PROGRAM"></a> -The base module for all Python 3.x binary programs. Adds linking logic, relevant module properties and -dependency on Python 3.x interpreter. Also adds import tests on all sources including libraries. -Links all Python 3.x libraries and Python 3.x interpreter into itself to form regular executable. -This only compatible with PYTHON3-tagged modules and selects those from multimodules - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ - +###### Module [\_BASE\_PROGRAM][] _# internal_ <a name="module__BASE_PROGRAM"></a> +The base of all programs. It adds dependencies to make final artefact complete and runnable. + +###### Module \_BASE\_PY\_PROGRAM _#internal_ <a name="module__BASE_PY3_PROGRAM"></a> +The base module for all Python 3.x binary programs. Adds linking logic, relevant module properties and +dependency on Python 3.x interpreter. Also adds import tests on all sources including libraries. +Links all Python 3.x libraries and Python 3.x interpreter into itself to form regular executable. +This only compatible with PYTHON3-tagged modules and selects those from multimodules + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ + ###### Module [\_BASE\_PYTEST][] _# internal_ <a name="module__BASE_PYTEST"></a> -Base logic of Python 2.x py.test modules: common module properties and dependencies. - +Base logic of Python 2.x py.test modules: common module properties and dependencies. + ###### Module [\_BASE\_PY\_PROGRAM][] _#internal_ <a name="module__BASE_PY_PROGRAM"></a> -The base module for all Python 2.x binary programs. Adds linking logic, relevant module properties and -dependency on Python 2.x interpreter. Also adds import tests on all sources including PEERDIR'ed libraries. -Links all Python 2.x libraries and Python 2.x interpreter into itself to form regular executable. -This only compatible with PYTHON2-tagged modules and selects those from multimodules. - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ - -###### Module [\_BASE\_UNIT][] _# internal_ <a name="module__BASE_UNIT"></a> +The base module for all Python 2.x binary programs. Adds linking logic, relevant module properties and +dependency on Python 2.x interpreter. Also adds import tests on all sources including PEERDIR'ed libraries. +Links all Python 2.x libraries and Python 2.x interpreter into itself to form regular executable. +This only compatible with PYTHON2-tagged modules and selects those from multimodules. + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ + +###### Module [\_BASE\_UNIT][] _# internal_ <a name="module__BASE_UNIT"></a> The base of all LIBRARY/PROGRAM modules describing common logic for all modules. -To avoid surprises, all buildable modules are better to be inherited from it or its descendants. - -###### Module [\_BASE\_UNITTEST][] _# internal_ <a name="module__BASE_UNITTEST"></a> -Module with base logic for all unit-test modules: it makes code runnable as unit-test by Arcadia testing machinery. - +To avoid surprises, all buildable modules are better to be inherited from it or its descendants. + +###### Module [\_BASE\_UNITTEST][] _# internal_ <a name="module__BASE_UNITTEST"></a> +Module with base logic for all unit-test modules: it makes code runnable as unit-test by Arcadia testing machinery. + ###### Module [\_COMPILABLE\_JAR\_BASE][] : \_JAR\_BASE _#internal_ <a name="module__COMPILABLE_JAR_BASE"></a> Not documented yet. ###### Module [\_DLL\_COMPATIBLE\_JAVA\_LIBRARY][]: EXTERNAL\_JAVA\_LIBRARY _#internal_ <a name="module__DLL_COMPATIBLE_JAVA_LIBRARY"></a> Not documented yet. -###### Module [\_DLL\_COMPATIBLE\_LIBRARY][] _# internal_ <a name="module__DLL_COMPATIBLE_LIBRARY"></a> -Base module to place DLLs into multimodules back to back with libraries. -In order to function properly all modules in multimodule shall have the -same set of arguments. So this module is just library that accepts but -ignores all DLL arguments. - +###### Module [\_DLL\_COMPATIBLE\_LIBRARY][] _# internal_ <a name="module__DLL_COMPATIBLE_LIBRARY"></a> +Base module to place DLLs into multimodules back to back with libraries. +In order to function properly all modules in multimodule shall have the +same set of arguments. So this module is just library that accepts but +ignores all DLL arguments. + ###### Module [\_DOCS\_BASE\_UNIT][] _#internal_ <a name="module__DOCS_BASE_UNIT"></a> FIXME(snermolaev) -###### Module [\_GO\_BASE\_UNIT][] _# internal_ <a name="module__GO_BASE_UNIT"></a> +###### Module [\_GO\_BASE\_UNIT][] _# internal_ <a name="module__GO_BASE_UNIT"></a> The base module of all golang modules. Defines common properties, dependencies and rules for go build. - + ###### Module [\_GO\_DLL\_BASE\_UNIT][]: GO\_PROGRAM _#internal_ <a name="module__GO_DLL_BASE_UNIT"></a> Not documented yet. @@ -900,17 +900,17 @@ Not documented yet. ###### Module [\_JAR\_TEST][]: \_COMPILABLE\_JAR\_BASE _#internal_ <a name="module__JAR_TEST"></a> Not documented yet. -###### Module [\_JAVA\_PLACEHOLDER][] _#internal_ <a name="module__JAVA_PLACEHOLDER"></a> -The base module for all Java modules. Defines common properties and dependencies. - -###### Module [\_LIBRARY][] _# internal_ <a name="module__LIBRARY"></a> -Base module definition for all libraries. -Contains basic logic like module properties, default variable values etc. -All libraries similar to C++-libraries should be inherited from it. - -###### Module [\_LINK\_UNIT][] _# internal_ <a name="module__LINK_UNIT"></a> -The base of all linkable modules: programs, DLLs etc. Describes common linking logic. - +###### Module [\_JAVA\_PLACEHOLDER][] _#internal_ <a name="module__JAVA_PLACEHOLDER"></a> +The base module for all Java modules. Defines common properties and dependencies. + +###### Module [\_LIBRARY][] _# internal_ <a name="module__LIBRARY"></a> +Base module definition for all libraries. +Contains basic logic like module properties, default variable values etc. +All libraries similar to C++-libraries should be inherited from it. + +###### Module [\_LINK\_UNIT][] _# internal_ <a name="module__LINK_UNIT"></a> +The base of all linkable modules: programs, DLLs etc. Describes common linking logic. + ###### Module [\_PROXY\_LIBRARY][]() _# internal_ <a name="module__PROXY_LIBRARY"></a> The use of this module is strictly prohibited!!! @@ -929,8 +929,8 @@ Not documented yet. ###### Module [\_YQL\_UDF\_PROGRAM\_BASE][]: SO\_PROGRAM _#internal_ <a name="module__YQL_UDF_PROGRAM_BASE"></a> Not documented yet. -## Macros <a name="macros"></a> - +## Macros <a name="macros"></a> + ###### Macro [AARS][](Aars...) <a name="macro_AARS"></a> This macro is strictly prohibited to use outside of mapsmobi project @@ -971,73 +971,73 @@ Not documented yet. Not documented yet. ###### Macro [ACCELEO][](XSD{input}[], MTL{input}[], MTL\_ROOT="${MODDIR}", LANG{input}[], OUT{output}[], OUT\_NOAUTO{output}[], OUTPUT\_INCLUDES[], DEBUG?"stdout2stderr":"stderr2stdout") <a name="macro_ACCELEO"></a> -Not documented yet. - +Not documented yet. + ###### Macro [ADDINCL][]([FOR <lang>][GLOBAL dir]\* dirlist) _# builtin_ <a name="macro_ADDINCL"></a> The macro adds the directories to include/import search path to compilation flags of the current project. By default settings apply to C/C++ compilation namely sets -I<library path> flag, use FOR argument to change target command. -@params: +@params: `FOR <lang>` - adds inclues/import serach path for othe language. E.g. `FOR proto` adds import search path for .proto files processing. `GLOBAL` - extends the search for headers (-I) on the dependent projects. - + ###### Macro [ADDINCLSELF][]() <a name="macro_ADDINCLSELF"></a> The macro adds the -I<project source path> flag to the source compilation flags of the current project. - -###### Macro [ADD\_CHECK][] <a name="macro_ADD_CHECK"></a> -Not documented yet. - -###### Macro [ADD\_CHECK\_PY\_IMPORTS][] <a name="macro_ADD_CHECK_PY_IMPORTS"></a> -Not documented yet. - + +###### Macro [ADD\_CHECK][] <a name="macro_ADD_CHECK"></a> +Not documented yet. + +###### Macro [ADD\_CHECK\_PY\_IMPORTS][] <a name="macro_ADD_CHECK_PY_IMPORTS"></a> +Not documented yet. + ###### Macro [ADD\_CLANG\_TIDY][]() <a name="macro_ADD_CLANG_TIDY"></a> Not documented yet. -###### Macro [ADD\_COMPILABLE\_TRANSLATE][](Dict Name Options...) <a name="macro_ADD_COMPILABLE_TRANSLATE"></a> -Generate translation dictionary code to transdict.LOWER(Name).cpp that will than be compiled into library - -###### Macro [ADD\_COMPILABLE\_TRANSLIT][](TranslitTable NGrams Name Options...) <a name="macro_ADD_COMPILABLE_TRANSLIT"></a> -Generate transliteration dictionary code -This will emit both translit, untranslit and ngrams table codes those will be than further compiled into library - -###### Macro [ADD\_DLLS\_TO\_JAR][]() <a name="macro_ADD_DLLS_TO_JAR"></a> -Not documented yet. - -###### Macro [ADD\_PERL\_MODULE][](Dir ModuleName) <a name="macro_ADD_PERL_MODULE"></a> -Add dependency on specified Perl module to the library - +###### Macro [ADD\_COMPILABLE\_TRANSLATE][](Dict Name Options...) <a name="macro_ADD_COMPILABLE_TRANSLATE"></a> +Generate translation dictionary code to transdict.LOWER(Name).cpp that will than be compiled into library + +###### Macro [ADD\_COMPILABLE\_TRANSLIT][](TranslitTable NGrams Name Options...) <a name="macro_ADD_COMPILABLE_TRANSLIT"></a> +Generate transliteration dictionary code +This will emit both translit, untranslit and ngrams table codes those will be than further compiled into library + +###### Macro [ADD\_DLLS\_TO\_JAR][]() <a name="macro_ADD_DLLS_TO_JAR"></a> +Not documented yet. + +###### Macro [ADD\_PERL\_MODULE][](Dir ModuleName) <a name="macro_ADD_PERL_MODULE"></a> +Add dependency on specified Perl module to the library + ###### Macro [ADD\_PYTEST\_BIN][] <a name="macro_ADD_PYTEST_BIN"></a> -Not documented yet. - +Not documented yet. + ###### Macro [ADD\_PYTEST\_SCRIPT][] <a name="macro_ADD_PYTEST_SCRIPT"></a> -Not documented yet. - -###### Macro [ADD\_YTEST][] <a name="macro_ADD_YTEST"></a> -Not documented yet. - -###### Macro [ALLOCATOR][](Alloc) _# Default: LF_ <a name="macro_ALLOCATOR"></a> -Set memory allocator implementation for the PROGRAM()/DLL() module. -This may only be specified for programs and dlls, use in other modules leads to configuration errors. - +Not documented yet. + +###### Macro [ADD\_YTEST][] <a name="macro_ADD_YTEST"></a> +Not documented yet. + +###### Macro [ALLOCATOR][](Alloc) _# Default: LF_ <a name="macro_ALLOCATOR"></a> +Set memory allocator implementation for the PROGRAM()/DLL() module. +This may only be specified for programs and dlls, use in other modules leads to configuration errors. + Available allocators are: "LF", "LF\_YT", "LF\_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU". - LF - lfalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc) - LF\_YT - Allocator selection for YT (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc/yt/ya.make) - LF\_DBG - Debug allocator selection (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc/dbg/ya.make) - YT - The YTAlloc allocator (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/ytalloc/impl/ya.make) - - J - The JEMalloc allocator (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/jemalloc) - - B - The balloc allocator named Pyotr Popov and Anton Samokhvalov - - Discussion: https://ironpeter.at.yandex-team.ru/replies.xml?item\_no=126 + - J - The JEMalloc allocator (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/jemalloc) + - B - The balloc allocator named Pyotr Popov and Anton Samokhvalov + - Discussion: https://ironpeter.at.yandex-team.ru/replies.xml?item\_no=126 - Code: https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/balloc - BM - The balloc for market (agri@ commits from july 2018 till November 2018 saved) - - C - Like B, but can be disabled for each thread to LF or SYSTEM one (B can be disabled only to SYSTEM) + - C - Like B, but can be disabled for each thread to LF or SYSTEM one (B can be disabled only to SYSTEM) - MIM - Microsoft's mimalloc (actual version) (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/mimalloc) - TCMALLOC - Google TCMalloc (actual version) (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/tcmalloc) - - GOOGLE - Google TCMalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/galloc) - - LOCKLESS - Allocator based upon lockless queues (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/lockless) - - SYSTEM - Use target system allocator - - FAKE - Don't link with any allocator - -More about allocators in Arcadia: https://wiki.yandex-team.ru/arcadia/allocators/ - + - GOOGLE - Google TCMalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/galloc) + - LOCKLESS - Allocator based upon lockless queues (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/lockless) + - SYSTEM - Use target system allocator + - FAKE - Don't link with any allocator + +More about allocators in Arcadia: https://wiki.yandex-team.ru/arcadia/allocators/ + ###### Macro [ALL\_PY\_SRCS][]([RECURSIVE] { | TOP\_LEVEL | NAMESPACE ns} [Dirs...]) <a name="macro_ALL_PY_SRCS"></a> Puts all .py-files from given Dirs (relative to projects') into PY\_SRCS of the current module. If Dirs is ommitted project directory is used @@ -1050,49 +1050,49 @@ Note: Macro is designed to reject any ya.make files in Dirs except current one @see [PY\_SRCS()](#macro\_PY\_SRCS) -###### Macro [ALL\_SRCS][]([GLOBAL] filenames...) <a name="macro_ALL_SRCS"></a> -Make all source files listed as GLOBAL or not depending on the keyword GLOBAL -Call to ALL\_SRCS macro is equivalent to call to GLOBAL\_SRCS macro when GLOBAL keyword is specified -as the first argument and is equivalent to call to SRCS macro otherwise. - -@example: - - LIBRARY() - SET(MAKE_IT_GLOBAL GLOBAL) - ALL_SRCS(${MAKE_IT_GLOBAL} foo.cpp bar.cpp) - END() - -@see: [GLOBAL\_SRCS()](#macro\_GLOBAL\_SRCS), [SRCS()](#macro\_SRCS) - -###### Macro [ANNOTATION\_PROCESSOR][](processors...) <a name="macro_ANNOTATION_PROCESSOR"></a> -The macro is in development. -Used to specify annotation processors to build JAVA\_PROGRAM() and JAVA\_LIBRARY(). - -###### Macro [ARCHIVE][](archive\_name [DONT\_COMPRESS] files...) <a name="macro_ARCHIVE"></a> -Add arbitrary data to a modules. Unlike RESOURCE macro the result should be futher processed by othet macros in the module. - -Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive - -###### Macro [ARCHIVE\_ASM][](NAME archive\_name files...) <a name="macro_ARCHIVE_ASM"></a> -Similar to the macro ARCHIVE, but: -1. works faster and it is better to use for large files. -2. Different syntax (see examples in codesearch or users/pg/tests/archive\_test) - -###### Macro [ARCHIVE\_BY\_KEYS][](archive\_name key [DONT\_COMPRESS] files...) <a name="macro_ARCHIVE_BY_KEYS"></a> -Add arbitrary data to a module be accessible by specified key. -Unlike RESOURCE macro the result should be futher processed by othet macros in the module. - -Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive - -###### Macro [ASM\_PREINCLUDE][](AsmFiles...) <a name="macro_ASM_PREINCLUDE"></a> -Supply additional .asm files to all assembler calls within a module - +###### Macro [ALL\_SRCS][]([GLOBAL] filenames...) <a name="macro_ALL_SRCS"></a> +Make all source files listed as GLOBAL or not depending on the keyword GLOBAL +Call to ALL\_SRCS macro is equivalent to call to GLOBAL\_SRCS macro when GLOBAL keyword is specified +as the first argument and is equivalent to call to SRCS macro otherwise. + +@example: + + LIBRARY() + SET(MAKE_IT_GLOBAL GLOBAL) + ALL_SRCS(${MAKE_IT_GLOBAL} foo.cpp bar.cpp) + END() + +@see: [GLOBAL\_SRCS()](#macro\_GLOBAL\_SRCS), [SRCS()](#macro\_SRCS) + +###### Macro [ANNOTATION\_PROCESSOR][](processors...) <a name="macro_ANNOTATION_PROCESSOR"></a> +The macro is in development. +Used to specify annotation processors to build JAVA\_PROGRAM() and JAVA\_LIBRARY(). + +###### Macro [ARCHIVE][](archive\_name [DONT\_COMPRESS] files...) <a name="macro_ARCHIVE"></a> +Add arbitrary data to a modules. Unlike RESOURCE macro the result should be futher processed by othet macros in the module. + +Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive + +###### Macro [ARCHIVE\_ASM][](NAME archive\_name files...) <a name="macro_ARCHIVE_ASM"></a> +Similar to the macro ARCHIVE, but: +1. works faster and it is better to use for large files. +2. Different syntax (see examples in codesearch or users/pg/tests/archive\_test) + +###### Macro [ARCHIVE\_BY\_KEYS][](archive\_name key [DONT\_COMPRESS] files...) <a name="macro_ARCHIVE_BY_KEYS"></a> +Add arbitrary data to a module be accessible by specified key. +Unlike RESOURCE macro the result should be futher processed by othet macros in the module. + +Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive + +###### Macro [ASM\_PREINCLUDE][](AsmFiles...) <a name="macro_ASM_PREINCLUDE"></a> +Supply additional .asm files to all assembler calls within a module + ###### Macro [ASSERT][] <a name="macro_ASSERT"></a> Not documented yet. -###### Macro [BASE\_CODEGEN][](tool\_path prefix) <a name="macro_BASE_CODEGEN"></a> -Generator ${prefix}.cpp + ${prefix}.h files based on ${prefix}.in. - +###### Macro [BASE\_CODEGEN][](tool\_path prefix) <a name="macro_BASE_CODEGEN"></a> +Generator ${prefix}.cpp + ${prefix}.h files based on ${prefix}.in. + ###### Macro [BPF][](Input Output Opts...) <a name="macro_BPF"></a> Emit eBPF bytecode from .c file. Note: Output name is used as is, no extension added. @@ -1101,36 +1101,36 @@ Note: Output name is used as is, no extension added. Emit eBPF bytecode from .c file. Note: Output name is used as is, no extension added. -###### Macro [BUILDWITH\_CYTHON\_C][](Src Options...) <a name="macro_BUILDWITH_CYTHON_C"></a> -Generates .c file from .pyx. - -###### Macro [BUILDWITH\_CYTHON\_CPP][](Src Options...) <a name="macro_BUILDWITH_CYTHON_CPP"></a> -Generates .cpp file from .pyx. - -###### Macro [BUILDWITH\_RAGEL6][](Src Options...) <a name="macro_BUILDWITH_RAGEL6"></a> -Compile .rl file using Ragel6. - +###### Macro [BUILDWITH\_CYTHON\_C][](Src Options...) <a name="macro_BUILDWITH_CYTHON_C"></a> +Generates .c file from .pyx. + +###### Macro [BUILDWITH\_CYTHON\_CPP][](Src Options...) <a name="macro_BUILDWITH_CYTHON_CPP"></a> +Generates .cpp file from .pyx. + +###### Macro [BUILDWITH\_RAGEL6][](Src Options...) <a name="macro_BUILDWITH_RAGEL6"></a> +Compile .rl file using Ragel6. + ###### Macro [BUILD\_CATBOOST][](cbmodel cbname) <a name="macro_BUILD_CATBOOST"></a> -Generate catboost model and access code. -cbmodel - CatBoost model file name (\*.cmb). -cbname - name for a variable (of NCatboostCalcer::TCatboostCalcer type) to be available in CPP code. -CatBoost specific macro. - -###### Macro [BUILD\_MN][]([CHECK] [PTR] [MULTI] mninfo mnname) _# matrixnet_ <a name="macro_BUILD_MN"></a> -Generate MatrixNet data and access code using single command. -Alternative macro BUILD\_MNS() works faster and better for large files. - -###### Macro [BUILD\_MNS][]([CHECK] NAME listname mninfos...) _# matrixnet_ <a name="macro_BUILD_MNS"></a> -Generate MatrixNet data and access code using separate commands for support code, interface and data. -Faster version of BUILD\_MN() macro for large files. - -###### Macro [BUILD\_ONLY\_IF][](variables) _# builtin_ <a name="macro_BUILD_ONLY_IF"></a> -Print warning if all variables are false. For example, BUILD\_ONLY\_IF(LINUX WIN32) - -###### Macro [BUILD\_PLNS][](Src...) <a name="macro_BUILD_PLNS"></a> -Generate interface header plnmodels.h for Relev model (PLN). -Relev specific macro. - +Generate catboost model and access code. +cbmodel - CatBoost model file name (\*.cmb). +cbname - name for a variable (of NCatboostCalcer::TCatboostCalcer type) to be available in CPP code. +CatBoost specific macro. + +###### Macro [BUILD\_MN][]([CHECK] [PTR] [MULTI] mninfo mnname) _# matrixnet_ <a name="macro_BUILD_MN"></a> +Generate MatrixNet data and access code using single command. +Alternative macro BUILD\_MNS() works faster and better for large files. + +###### Macro [BUILD\_MNS][]([CHECK] NAME listname mninfos...) _# matrixnet_ <a name="macro_BUILD_MNS"></a> +Generate MatrixNet data and access code using separate commands for support code, interface and data. +Faster version of BUILD\_MN() macro for large files. + +###### Macro [BUILD\_ONLY\_IF][](variables) _# builtin_ <a name="macro_BUILD_ONLY_IF"></a> +Print warning if all variables are false. For example, BUILD\_ONLY\_IF(LINUX WIN32) + +###### Macro [BUILD\_PLNS][](Src...) <a name="macro_BUILD_PLNS"></a> +Generate interface header plnmodels.h for Relev model (PLN). +Relev specific macro. + ###### Macro [BUILD\_YDL\_DESC][](Input Symbol Output) <a name="macro_BUILD_YDL_DESC"></a> Generate a descriptor for a Symbol located in a ydl module Input, and put it to the file Output. @@ -1142,12 +1142,12 @@ Generate a descriptor for a Symbol located in a ydl module Input, and put it to This will parse file ../types.ydl, generate a descriptor for a symbol Event defined in the said file, and put the descriptor to the Event.ydld. -###### Macro [BUNDLE][](<Dir [NAME Name]>...) <a name="macro_BUNDLE"></a> -Brings build artefact from module Dir under optional Name to the current module (e.g. UNION) -If NAME is not specified, the name of the Dir's build artefact will be preserved -It makes little sense to specify BUNDLE on non-final targets and so this may stop working without prior notice. -Bundle on multimodule will select final target among multimodule variants and will fail if there are none or more than one. - +###### Macro [BUNDLE][](<Dir [NAME Name]>...) <a name="macro_BUNDLE"></a> +Brings build artefact from module Dir under optional Name to the current module (e.g. UNION) +If NAME is not specified, the name of the Dir's build artefact will be preserved +It makes little sense to specify BUNDLE on non-final targets and so this may stop working without prior notice. +Bundle on multimodule will select final target among multimodule variants and will fail if there are none or more than one. + ###### Macro [BUNDLE\_AIDL\_SRCS][](dirname filenames...) _# internal_ <a name="macro_BUNDLE_AIDL_SRCS"></a> Not documented yet. @@ -1166,35 +1166,35 @@ Not documented yet. ###### Macro [CC\_REQUIREMENTS][]([cpu: <value>] [ram: <value>]) <a name="macro_CC_REQUIREMENTS"></a> Override CPU and RAM requirements for all C/C++ compilation commands in the module -###### Macro $[CFG\_VARS][] _# internal_ <a name="macro_CFG_VARS"></a> -Mark commands that embed Configuration variables into files - -###### Macro [CFLAGS][]([GLOBAL compiler\_flag]\* compiler\_flags) <a name="macro_CFLAGS"></a> -Add the specified flags to the compilation command of C and C++ files. -@params: GLOBAL - Propagates these flags to dependent projects -Note: remember about the incompatibility flags for clang and cl (to set flags specifically for cl.exe use MSVC\_FLAGS). - -###### Macro [CGO\_CFLAGS][](Flags...) <a name="macro_CGO_CFLAGS"></a> -Compiler flags specific to CGO compilation - -###### Macro [CGO\_LDFLAGS][](Files...) <a name="macro_CGO_LDFLAGS"></a> -Linker flags specific to CGO linking - -###### Macro [CGO\_SRCS][](Files...) <a name="macro_CGO_SRCS"></a> -.go sources to be built with CGO - -###### Macro [CHECK\_CONFIG\_H][](<conf\_header>) _# internal_ <a name="macro_CHECK_CONFIG_H"></a> +###### Macro $[CFG\_VARS][] _# internal_ <a name="macro_CFG_VARS"></a> +Mark commands that embed Configuration variables into files + +###### Macro [CFLAGS][]([GLOBAL compiler\_flag]\* compiler\_flags) <a name="macro_CFLAGS"></a> +Add the specified flags to the compilation command of C and C++ files. +@params: GLOBAL - Propagates these flags to dependent projects +Note: remember about the incompatibility flags for clang and cl (to set flags specifically for cl.exe use MSVC\_FLAGS). + +###### Macro [CGO\_CFLAGS][](Flags...) <a name="macro_CGO_CFLAGS"></a> +Compiler flags specific to CGO compilation + +###### Macro [CGO\_LDFLAGS][](Files...) <a name="macro_CGO_LDFLAGS"></a> +Linker flags specific to CGO linking + +###### Macro [CGO\_SRCS][](Files...) <a name="macro_CGO_SRCS"></a> +.go sources to be built with CGO + +###### Macro [CHECK\_CONFIG\_H][](<conf\_header>) _# internal_ <a name="macro_CHECK_CONFIG_H"></a> This internal macro adds checking code for configuration header in external (contrib) library. -The check is needed to avoid conflicts on certain types and functions available in arcadia. - -@see https://a.yandex-team.ru/arc/trunk/arcadia/build/scripts/check\_config\_h.py for exact details - +The check is needed to avoid conflicts on certain types and functions available in arcadia. + +@see https://a.yandex-team.ru/arc/trunk/arcadia/build/scripts/check\_config\_h.py for exact details + ###### Macro [CHECK\_CONTRIB\_CREDITS][] <a name="macro_CHECK_CONTRIB_CREDITS"></a> Not documented yet. ###### Macro [CHECK\_DEPENDENT\_DIRS][](DENY|ALLOW\_ONLY ([ALL|PEERDIRS|GLOB] dir)...) <a name="macro_CHECK_DEPENDENT_DIRS"></a> Specify project transitive dependencies constraints. - + @params: 1. DENY: current module can not depend on module from any specified directory neither directly nor transitively. 2. ALLOW\_ONLY: current module can not depend on module from a dir not specified in the directory list neither directly nor transitively. @@ -1208,15 +1208,15 @@ Direcory constraints added before either ALL or PEERDIRS modifier is used are tr Note: Can be used multiple times on the same module all specified constraints will be checked. All macro invocation for the same module must use same constraints type (DENY or ALLOW\_ONLY) -###### Macro [CHECK\_JAVA\_DEPS][](<yes|no>) <a name="macro_CHECK_JAVA_DEPS"></a> -Check for different classes with duplicate name in classpath. - -Documentation: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [CLANG\_EMIT\_AST\_CXX][](Input Output Opts...) <a name="macro_CLANG_EMIT_AST_CXX"></a> +###### Macro [CHECK\_JAVA\_DEPS][](<yes|no>) <a name="macro_CHECK_JAVA_DEPS"></a> +Check for different classes with duplicate name in classpath. + +Documentation: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [CLANG\_EMIT\_AST\_CXX][](Input Output Opts...) <a name="macro_CLANG_EMIT_AST_CXX"></a> Emit Clang AST from .cpp file. CXXFLAGS and LLVM\_OPTS are passed in, while CFLAGS and C\_FLAGS\_PLATFORM are not. -Note: Output name is used as is, no extension added. - +Note: Output name is used as is, no extension added. + ###### Macro [COLLECT\_FRONTEND\_FILES][](Varname, Dir) <a name="macro_COLLECT_FRONTEND_FILES"></a> Recursively collect files with typical frontend extensions from Dir and save the result into variable Varname @@ -1227,9 +1227,9 @@ stores result in the variable with mane specified by first parameter. ###### Macro [COLLECT\_YDB\_API\_SPECS\_LEGACY][](VarName Paths...) _#deprecated_ <a name="macro_COLLECT_YDB_API_SPECS_LEGACY"></a> This macro is ugly hack for legacy YDB go API codegen, any other uses are prohibited -###### Macro [COMPILE\_C\_AS\_CXX][]() <a name="macro_COMPILE_C_AS_CXX"></a> -Compile .c files as .cpp ones within a module. - +###### Macro [COMPILE\_C\_AS\_CXX][]() <a name="macro_COMPILE_C_AS_CXX"></a> +Compile .c files as .cpp ones within a module. + ###### Macro [COMPILE\_LUA][](Src, [NAME <import\_name>]) <a name="macro_COMPILE_LUA"></a> Compile LUA source file to object code using LUA 2.0 Optionally override import name which is by default reflects Src name @@ -1243,27 +1243,27 @@ Generate and compile .nlg templates (Jinja2-based) and interface for megamind ru Alice-specific macro -###### Macro [COMPILE\_SWIFT\_MODULE][](SRCS{input}[], BRIDGE\_HEADER{input}="", Flags...) <a name="macro_COMPILE_SWIFT_MODULE"></a> -Not documented yet. - -###### Macro [CONFIGURE\_FILE][](from to) <a name="macro_CONFIGURE_FILE"></a> -Copy file with the replacement of configuration variables in form of @ANY\_CONF\_VAR@ with their values. +###### Macro [COMPILE\_SWIFT\_MODULE][](SRCS{input}[], BRIDGE\_HEADER{input}="", Flags...) <a name="macro_COMPILE_SWIFT_MODULE"></a> +Not documented yet. + +###### Macro [CONFIGURE\_FILE][](from to) <a name="macro_CONFIGURE_FILE"></a> +Copy file with the replacement of configuration variables in form of @ANY\_CONF\_VAR@ with their values. The values are collected during configure stage, while replacement itself happens during build stage. -Used implicitly for .in-files processing. - +Used implicitly for .in-files processing. + ###### Macro [CONFTEST\_LOAD\_POLICY\_LOCAL][]() <a name="macro_CONFTEST_LOAD_POLICY_LOCAL"></a> Loads conftest.py files in a way that pytest does it -###### Macro [CONLYFLAGS][]([GLOBAL compiler\_flag]\* compiler\_flags) <a name="macro_CONLYFLAGS"></a> -Add the specified flags to the compilation command of .c (but not .cpp) files. -@params: GLOBAL - Distributes these flags on dependent projects - -###### Macro [COPY][] <a name="macro_COPY"></a> -Not documented yet. - +###### Macro [CONLYFLAGS][]([GLOBAL compiler\_flag]\* compiler\_flags) <a name="macro_CONLYFLAGS"></a> +Add the specified flags to the compilation command of .c (but not .cpp) files. +@params: GLOBAL - Distributes these flags on dependent projects + +###### Macro [COPY][] <a name="macro_COPY"></a> +Not documented yet. + ###### Macro [COPY\_FILE][](File Destination [AUTO] [OUTPUT\_INCLUDES Deps...]) <a name="macro_COPY_FILE"></a> -Copy file to build root. It is possible to change both location and the name. - +Copy file to build root. It is possible to change both location and the name. + Parameters: - File - Source file name. - Destination - Output file name. @@ -1298,141 +1298,141 @@ using Tool. Extra dependencies are passed via DEPS. Define protoc plugin for C++ with given Name that emits code into 2 extra outputs using Tool. Extra dependencies are passed via DEPS. -###### Macro [CREATE\_BUILDINFO\_FOR][](GenHdr) <a name="macro_CREATE_BUILDINFO_FOR"></a> -Creates header file to access some information about build specified via configuration variables. -Unlike CREATE\_SVNVERSION\_FOR() it doesn't take revion information from VCS, it uses revision and SandboxTaskId passed via -D options to ya make - -###### Macro [CREATE\_INIT\_PY\_STRUCTURE][] <a name="macro_CREATE_INIT_PY_STRUCTURE"></a> -Not documented yet. - +###### Macro [CREATE\_BUILDINFO\_FOR][](GenHdr) <a name="macro_CREATE_BUILDINFO_FOR"></a> +Creates header file to access some information about build specified via configuration variables. +Unlike CREATE\_SVNVERSION\_FOR() it doesn't take revion information from VCS, it uses revision and SandboxTaskId passed via -D options to ya make + +###### Macro [CREATE\_INIT\_PY\_STRUCTURE][] <a name="macro_CREATE_INIT_PY_STRUCTURE"></a> +Not documented yet. + ###### Macro [CREDITS\_DISCLAIMER][] <a name="macro_CREDITS_DISCLAIMER"></a> Not documented yet. -###### Macro [CTEMPLATE\_VARNAMES][](File) <a name="macro_CTEMPLATE_VARNAMES"></a> -Generate File.varnames.h using contrib/libs/ctemplate/make\_tpl\_varnames\_h - -Documentation: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/ctemplate/README.md - -###### Macro [CUDA\_NVCC\_FLAGS][](compiler flags) <a name="macro_CUDA_NVCC_FLAGS"></a> -Add the specified flags to the compile line .cu-files. - +###### Macro [CTEMPLATE\_VARNAMES][](File) <a name="macro_CTEMPLATE_VARNAMES"></a> +Generate File.varnames.h using contrib/libs/ctemplate/make\_tpl\_varnames\_h + +Documentation: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/ctemplate/README.md + +###### Macro [CUDA\_NVCC\_FLAGS][](compiler flags) <a name="macro_CUDA_NVCC_FLAGS"></a> +Add the specified flags to the compile line .cu-files. + ###### Macro [CUSTOM\_LINK\_STEP\_SCRIPT][](name) <a name="macro_CUSTOM_LINK_STEP_SCRIPT"></a> Specifies name of a script for custom link step. The scripts should be placed in the build/scripts directory and are subject to review by devtools@. -###### Macro [CXXFLAGS][](compiler\_flags) <a name="macro_CXXFLAGS"></a> -Add the specified flags to the compilation command of .cpp (but not .c) files. - -###### Macro [DARWIN\_SIGNED\_RESOURCE][](Resource, Relpath) <a name="macro_DARWIN_SIGNED_RESOURCE"></a> -Not documented yet. - -###### Macro [DARWIN\_STRINGS\_RESOURCE][](Resource, Relpath) <a name="macro_DARWIN_STRINGS_RESOURCE"></a> -Not documented yet. - -###### Macro [DATA][]([path...]) <a name="macro_DATA"></a> -Specifies the path to the data necessary test. -Valid values are: arcadia/<path> , arcadia\_tests\_data/<path> and sbr://<resource\_id>. -In the latter case resource will be brought to the working directory of the test before it is started - -Used only inside TEST modules. - -Documentation: https://wiki.yandex-team.ru/yatool/test/#dannyeizrepozitorija - -###### Macro [DEB\_VERSION][](File) <a name="macro_DEB_VERSION"></a> -Creates a header file DebianVersion.h define the DEBIAN\_VERSION taken from the File. - -###### Macro [DECIMAL\_MD5\_LOWER\_32\_BITS][](<fileName> [FUNCNAME funcName] [inputs...]) <a name="macro_DECIMAL_MD5_LOWER_32_BITS"></a> -Generates .cpp file <fileName> with one defined function 'const char\* <funcName>() { return "<calculated\_md5\_hash>"; }'. -<calculated\_md5\_hash> will be md5 hash for all inputs passed to this macro. - -###### Macro [DECLARE\_EXTERNAL\_HOST\_RESOURCES\_BUNDLE][](name sbr:id FOR platform1 sbr:id FOR platform2...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE"></a> -Associate name with sbr-id on platform. - -Ask devtools@yandex-team.ru if you need more information - -###### Macro [DECLARE\_EXTERNAL\_HOST\_RESOURCES\_PACK][](RESOURCE\_NAME name sbr:id FOR platform1 sbr:id FOR platform2... RESOURCE\_NAME name1 sbr:id1 FOR platform1...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_HOST_RESOURCES_PACK"></a> -Associate name with sbr-id on platform. - -Ask devtools@yandex-team.ru if you need more information - -###### Macro [DECLARE\_EXTERNAL\_RESOURCE][](name sbr:id name1 sbr:id1...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_RESOURCE"></a> -Associate name with sbr-id. - -Ask devtools@yandex-team.ru if you need more information - -###### Macro [DEFAULT][](varname value) _#builtin_ <a name="macro_DEFAULT"></a> -Sets varname to value if value is not set yet - -###### Macro [DEPENDENCY\_MANAGEMENT][](path/to/lib1 path/to/lib2 ...) <a name="macro_DEPENDENCY_MANAGEMENT"></a> -Lock version of the library from the contrib/java at some point, so that all unversioned PEERDIRs to this library refer to the specified version. - -For example, if the moduse has PEERDIR (contrib/java/junit/junit), and - 1. specifies DEPENDENCY\_MANAGEMENT(contrib/java/junit/junit/4.12), - the PEERDIR is automatically replaced by contrib/java/junit/junit/4.12; - 2. doesn't specify DEPENDENCY\_MANAGEMENT, PEERDIR automatically replaced - with the default from contrib/java/junit/junit/ya.make. - These defaults are always there and are supported by maven-import, which puts - there the maximum version available in contrib/java. - -The property is transitive. That is, if module A PEERDIRs module B, and B has PEERDIR(contrib/java/junit/junit), and this junit was replaced by junit-4.12, then junit-4.12 will come to A through B. - -If some module has both DEPENDENCY\_MANAGEMENT(contrib/java/junit/junit/4.12) and PERDIR(contrib/java/junit/junit/4.11), the PEERDIR wins. - -Documentation: https://wiki.yandex-team.ru/yatool/java/ - -###### Macro [DEPENDS][](path1 [path2...]) _# builtin_ <a name="macro_DEPENDS"></a> +###### Macro [CXXFLAGS][](compiler\_flags) <a name="macro_CXXFLAGS"></a> +Add the specified flags to the compilation command of .cpp (but not .c) files. + +###### Macro [DARWIN\_SIGNED\_RESOURCE][](Resource, Relpath) <a name="macro_DARWIN_SIGNED_RESOURCE"></a> +Not documented yet. + +###### Macro [DARWIN\_STRINGS\_RESOURCE][](Resource, Relpath) <a name="macro_DARWIN_STRINGS_RESOURCE"></a> +Not documented yet. + +###### Macro [DATA][]([path...]) <a name="macro_DATA"></a> +Specifies the path to the data necessary test. +Valid values are: arcadia/<path> , arcadia\_tests\_data/<path> and sbr://<resource\_id>. +In the latter case resource will be brought to the working directory of the test before it is started + +Used only inside TEST modules. + +Documentation: https://wiki.yandex-team.ru/yatool/test/#dannyeizrepozitorija + +###### Macro [DEB\_VERSION][](File) <a name="macro_DEB_VERSION"></a> +Creates a header file DebianVersion.h define the DEBIAN\_VERSION taken from the File. + +###### Macro [DECIMAL\_MD5\_LOWER\_32\_BITS][](<fileName> [FUNCNAME funcName] [inputs...]) <a name="macro_DECIMAL_MD5_LOWER_32_BITS"></a> +Generates .cpp file <fileName> with one defined function 'const char\* <funcName>() { return "<calculated\_md5\_hash>"; }'. +<calculated\_md5\_hash> will be md5 hash for all inputs passed to this macro. + +###### Macro [DECLARE\_EXTERNAL\_HOST\_RESOURCES\_BUNDLE][](name sbr:id FOR platform1 sbr:id FOR platform2...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE"></a> +Associate name with sbr-id on platform. + +Ask devtools@yandex-team.ru if you need more information + +###### Macro [DECLARE\_EXTERNAL\_HOST\_RESOURCES\_PACK][](RESOURCE\_NAME name sbr:id FOR platform1 sbr:id FOR platform2... RESOURCE\_NAME name1 sbr:id1 FOR platform1...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_HOST_RESOURCES_PACK"></a> +Associate name with sbr-id on platform. + +Ask devtools@yandex-team.ru if you need more information + +###### Macro [DECLARE\_EXTERNAL\_RESOURCE][](name sbr:id name1 sbr:id1...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_RESOURCE"></a> +Associate name with sbr-id. + +Ask devtools@yandex-team.ru if you need more information + +###### Macro [DEFAULT][](varname value) _#builtin_ <a name="macro_DEFAULT"></a> +Sets varname to value if value is not set yet + +###### Macro [DEPENDENCY\_MANAGEMENT][](path/to/lib1 path/to/lib2 ...) <a name="macro_DEPENDENCY_MANAGEMENT"></a> +Lock version of the library from the contrib/java at some point, so that all unversioned PEERDIRs to this library refer to the specified version. + +For example, if the moduse has PEERDIR (contrib/java/junit/junit), and + 1. specifies DEPENDENCY\_MANAGEMENT(contrib/java/junit/junit/4.12), + the PEERDIR is automatically replaced by contrib/java/junit/junit/4.12; + 2. doesn't specify DEPENDENCY\_MANAGEMENT, PEERDIR automatically replaced + with the default from contrib/java/junit/junit/ya.make. + These defaults are always there and are supported by maven-import, which puts + there the maximum version available in contrib/java. + +The property is transitive. That is, if module A PEERDIRs module B, and B has PEERDIR(contrib/java/junit/junit), and this junit was replaced by junit-4.12, then junit-4.12 will come to A through B. + +If some module has both DEPENDENCY\_MANAGEMENT(contrib/java/junit/junit/4.12) and PERDIR(contrib/java/junit/junit/4.11), the PEERDIR wins. + +Documentation: https://wiki.yandex-team.ru/yatool/java/ + +###### Macro [DEPENDS][](path1 [path2...]) _# builtin_ <a name="macro_DEPENDS"></a> Buildable targets that should be brought to the test run. This dependency isonly used when tests run is requested. It will build the specified modules andbring them to the working directory of the test (in their Arcadia paths). Itis reasonable to specify only final targets her (like programs, DLLs orpackages). DEPENDS to UNION is the only exception: UNIONs aretransitively closed at DEPENDS bringing all dependencies to the test. - + DEPENDS on multimodule will select and bring single final target. If more noneor more than one final target available in multimodule DEPENDS to it willproduce configuration error. ###### Macro [DIRECT\_DEPS\_ONLY][] <a name="macro_DIRECT_DEPS_ONLY"></a> Add direct PEERDIR's only in java compile classpath -###### Macro [DISABLE][](varname) _#builtin_ <a name="macro_DISABLE"></a> +###### Macro [DISABLE][](varname) _#builtin_ <a name="macro_DISABLE"></a> Sets varname to 'no' - + ###### Macro [DISABLE\_DATA\_VALIDATION][]() <a name="macro_DISABLE_DATA_VALIDATION"></a> Not documented yet. -###### Macro [DLL\_FOR][](path/to/lib [libname] [major\_ver [minor\_ver]] [EXPORTS symlist\_file]) _#builtin_ <a name="macro_DLL_FOR"></a> -DLL module definition based on specified LIBRARY - +###### Macro [DLL\_FOR][](path/to/lib [libname] [major\_ver [minor\_ver]] [EXPORTS symlist\_file]) _#builtin_ <a name="macro_DLL_FOR"></a> +DLL module definition based on specified LIBRARY + ###### Macro [DOCS\_BUILDER][](tool) <a name="macro_DOCS_BUILDER"></a> Specify docs builder tool. Avalialbe tools: mkdocs and yfm (by default). @see: [DOCS](#multimodule\_DOCS) -###### Macro [DOCS\_CONFIG][](path) <a name="macro_DOCS_CONFIG"></a> +###### Macro [DOCS\_CONFIG][](path) <a name="macro_DOCS_CONFIG"></a> Specify path to config file for DOCS multimodule if it differs from default path. If [DOCS\_BUILDER()](#macro\_DOCS\_BUILDER) is set to "mkdocs" the default path is "%%project\_directory%%/mkdocs.yml". If [DOCS\_BUILDER()](#macro\_DOCS\_BUILDER) is not set or set to "yfm" the default path is "%%project\_directory%%/.yfm". Path must be either Arcadia root relative. - -@see: [DOCS](#multimodule\_DOCS) - -###### Macro [DOCS\_DIR][](path) <a name="macro_DOCS_DIR"></a> -Specify directory with source .md files for DOCS multimodule if it differs from project directory. -Path must be Arcadia root relative. - -@see: [DOCS](#multimodule\_DOCS) - + +@see: [DOCS](#multimodule\_DOCS) + +###### Macro [DOCS\_DIR][](path) <a name="macro_DOCS_DIR"></a> +Specify directory with source .md files for DOCS multimodule if it differs from project directory. +Path must be Arcadia root relative. + +@see: [DOCS](#multimodule\_DOCS) + ###### Macro [DOCS\_INCLUDE\_SOURCES][](path...) <a name="macro_DOCS_INCLUDE_SOURCES"></a> Specify a list of paths to source code files which will be used as text includes in a documentation project. Paths must be Arcadia root relative. @see: [DOCS](#multimodule\_DOCS) -###### Macro [DOCS\_VARS][](variable1=value1 variable2=value2 ...) <a name="macro_DOCS_VARS"></a> -Specify a set of default values of template variables for DOCS multimodule. -There must be no spaces around "=". Values will be treated as strings. - -@see: [DOCS](#multimodule\_DOCS) - -###### Macro [DUMPERF\_CODEGEN][](Prefix) <a name="macro_DUMPERF_CODEGEN"></a> -A special case BASE\_CODEGEN, in which the extsearch/images/robot/tools/dumperf/codegen tool is used - +###### Macro [DOCS\_VARS][](variable1=value1 variable2=value2 ...) <a name="macro_DOCS_VARS"></a> +Specify a set of default values of template variables for DOCS multimodule. +There must be no spaces around "=". Values will be treated as strings. + +@see: [DOCS](#multimodule\_DOCS) + +###### Macro [DUMPERF\_CODEGEN][](Prefix) <a name="macro_DUMPERF_CODEGEN"></a> +A special case BASE\_CODEGEN, in which the extsearch/images/robot/tools/dumperf/codegen tool is used + ###### Macro [DYNAMIC\_DEPS][](Path...) _# internal, temporary_ <a name="macro_DYNAMIC_DEPS"></a> Enlist paths to all DYNAMIC\_LIBRARY dependencies of the DYNAMIC\_LIBRARY This it needed to transfer their outputs through the library to PROGRAM @@ -1444,57 +1444,57 @@ Note: this is temporary solution until support of `super-global` variables come ###### Macro [DYNAMIC\_LIBRARY\_FROM][](Paths) <a name="macro_DYNAMIC_LIBRARY_FROM"></a> Use specified libraries as sources of DLL -###### Macro IF(condition) .. [ELSE][]IF(other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_ELSE"></a> -Apply macros if none of previous conditions hold - -###### Macro IF(condition) .. [ELSEIF][](other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_ELSEIF"></a> -Apply macros if other\_condition holds while none of previous conditions hold - +###### Macro IF(condition) .. [ELSE][]IF(other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_ELSE"></a> +Apply macros if none of previous conditions hold + +###### Macro IF(condition) .. [ELSEIF][](other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_ELSEIF"></a> +Apply macros if other\_condition holds while none of previous conditions hold + ###### Macro [EMBED\_JAVA\_VCS\_INFO][]() <a name="macro_EMBED_JAVA_VCS_INFO"></a> Embed manifest with vcs info into `EXTERNAL\_JAVA\_LIBRARY` By default this is disabled. -###### Macro [ENABLE][](varname) _#builtin_ <a name="macro_ENABLE"></a> +###### Macro [ENABLE][](varname) _#builtin_ <a name="macro_ENABLE"></a> Sets varname to 'yes' - + ###### Macro [ENABLE\_PREVIEW][]() <a name="macro_ENABLE_PREVIEW"></a> Enable java preview features. -###### Macro [END][]() _# builtin_ <a name="macro_END"></a> -The end of the module - -###### Macro IF(condition) .. ELSEIF(other\_condition) .. ELSE() .. [ENDIF][]() _#builtin_ <a name="macro_ENDIF"></a> -End of conditional construct - -###### Macro [ENV][](key[=value]) <a name="macro_ENV"></a> -Sets env variable key to value (gets value from system env by default). - -###### Macro [EXCLUDE][] <a name="macro_EXCLUDE"></a> -EXCLUDE(prefixes) - -The macro is in development. -Specifies which libraries should be excluded from the classpath. - -###### Macro [EXCLUDE\_TAGS][](tags...) _# builtin_ <a name="macro_EXCLUDE_TAGS"></a> -Instantiate from multimodule all variants except ones with tags listed - -###### Macro [EXPORTS\_SCRIPT][](exports\_file) <a name="macro_EXPORTS_SCRIPT"></a> +###### Macro [END][]() _# builtin_ <a name="macro_END"></a> +The end of the module + +###### Macro IF(condition) .. ELSEIF(other\_condition) .. ELSE() .. [ENDIF][]() _#builtin_ <a name="macro_ENDIF"></a> +End of conditional construct + +###### Macro [ENV][](key[=value]) <a name="macro_ENV"></a> +Sets env variable key to value (gets value from system env by default). + +###### Macro [EXCLUDE][] <a name="macro_EXCLUDE"></a> +EXCLUDE(prefixes) + +The macro is in development. +Specifies which libraries should be excluded from the classpath. + +###### Macro [EXCLUDE\_TAGS][](tags...) _# builtin_ <a name="macro_EXCLUDE_TAGS"></a> +Instantiate from multimodule all variants except ones with tags listed + +###### Macro [EXPORTS\_SCRIPT][](exports\_file) <a name="macro_EXPORTS_SCRIPT"></a> Specify exports script within PROGRAM, DLL and DLL-derived modules. -This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files. +This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files. The other option use EXPORTS parameter of the DLL module itself. - -@see: [DLL](#module\_DLL) - + +@see: [DLL](#module\_DLL) + ###### Macro [EXPORT\_ALL\_DYNAMIC\_SYMBOLS][]() <a name="macro_EXPORT_ALL_DYNAMIC_SYMBOLS"></a> Export all non-hidden symbols as dynamic when linking a PROGRAM. -###### Macro [EXPORT\_MAPKIT\_PROTO][]() _# internal deprecated_ <a name="macro_EXPORT_MAPKIT_PROTO"></a> -This macro is a temporary one and should be changed to EXPORT\_YMAPS\_PROTO -when transition of mapsmobi to arcadia is finished - -###### Macro [EXPORT\_YMAPS\_PROTO][]() _# maps-specific_ <a name="macro_EXPORT_YMAPS_PROTO"></a> -Maps-specific .proto handling: IMPORT\_YMAPS\_PROTO() + maps protobuf namespace. - +###### Macro [EXPORT\_MAPKIT\_PROTO][]() _# internal deprecated_ <a name="macro_EXPORT_MAPKIT_PROTO"></a> +This macro is a temporary one and should be changed to EXPORT\_YMAPS\_PROTO +when transition of mapsmobi to arcadia is finished + +###### Macro [EXPORT\_YMAPS\_PROTO][]() _# maps-specific_ <a name="macro_EXPORT_YMAPS_PROTO"></a> +Maps-specific .proto handling: IMPORT\_YMAPS\_PROTO() + maps protobuf namespace. + ###### Macro [EXPOSE][](OutputsToExport...) <a name="macro_EXPOSE"></a> Allows to mark outputs of macro command as unused in the current module but intended to be used in modules consuming current via PEERDIR. @@ -1503,22 +1503,22 @@ TODO(DEVTOOLS-9000) proper implementation needed ###### Macro [EXTERNAL\_JAR][] <a name="macro_EXTERNAL_JAR"></a> Not documented yet. - -###### Macro [EXTERNAL\_RESOURCE][](...) _#builtin, deprecated_ <a name="macro_EXTERNAL_RESOURCE"></a> -Don't use this. Use RESOURCE\_LIBRARY or FROM\_SANDBOX instead - + +###### Macro [EXTERNAL\_RESOURCE][](...) _#builtin, deprecated_ <a name="macro_EXTERNAL_RESOURCE"></a> +Don't use this. Use RESOURCE\_LIBRARY or FROM\_SANDBOX instead + ###### Macro [EXTRADIR][](...) _#builtin, deprecated_ <a name="macro_EXTRADIR"></a> -Ignored - -###### Macro [EXTRALIBS][](liblist) _# builtin_ <a name="macro_EXTRALIBS"></a> -Add external dynamic libraries during program linkage stage - -###### Macro [EXTRALIBS\_STATIC][](Libs...) <a name="macro_EXTRALIBS_STATIC"></a> -Add the specified external static libraries to the program link - -###### Macro [FAT\_RESOURCE][] <a name="macro_FAT_RESOURCE"></a> -Not documented yet. - +Ignored + +###### Macro [EXTRALIBS][](liblist) _# builtin_ <a name="macro_EXTRALIBS"></a> +Add external dynamic libraries during program linkage stage + +###### Macro [EXTRALIBS\_STATIC][](Libs...) <a name="macro_EXTRALIBS_STATIC"></a> +Add the specified external static libraries to the program link + +###### Macro [FAT\_RESOURCE][] <a name="macro_FAT_RESOURCE"></a> +Not documented yet. + ###### Macro [FBS\_NAMESPACE][](NAMESPACE, PATH...) <a name="macro_FBS_NAMESPACE"></a> Not documented yet. @@ -1527,46 +1527,46 @@ Create a tar archive of .py files generated by flatc for Python. Output tar archive will have .fbs.pysrc extension. This .fbs.pysrc extension is specially processed when --add-flatbuf-result flag is specified on the command line for 'ya make ...' (tar archive is extracted to output directory). - + ###### Macro [FILES][] <a name="macro_FILES"></a> Not documented yet. ###### Macro [FLATC\_FLAGS][](flags...) <a name="macro_FLATC_FLAGS"></a> Add flags to flatc command line -###### Macro [FLAT\_JOIN\_SRCS\_GLOBAL][](Out Src...) <a name="macro_FLAT_JOIN_SRCS_GLOBAL"></a> -Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). -This macro places all files into single file, so will work with any sources. +###### Macro [FLAT\_JOIN\_SRCS\_GLOBAL][](Out Src...) <a name="macro_FLAT_JOIN_SRCS_GLOBAL"></a> +Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). +This macro places all files into single file, so will work with any sources. You should specify file name with the extension as Out. Further processing will be done according to this extension. - -###### Macro [FORK\_SUBTESTS][]() <a name="macro_FORK_SUBTESTS"></a> -Splits the test run in chunks on subtests. -The number of chunks can be overridden using the macro SPLIT\_FACTOR. - + +###### Macro [FORK\_SUBTESTS][]() <a name="macro_FORK_SUBTESTS"></a> +Splits the test run in chunks on subtests. +The number of chunks can be overridden using the macro SPLIT\_FACTOR. + Allows to run tests in parallel. Supported in UNITTEST, JTEST/JUNIT5 and PY2TEST/PY3TEST modules. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [FORK\_TESTS][]() <a name="macro_FORK_TESTS"></a> -Splits a test run on chunks by test classes. -The number of chunks can be overridden using the macro SPLIT\_FACTOR. - + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [FORK\_TESTS][]() <a name="macro_FORK_TESTS"></a> +Splits a test run on chunks by test classes. +The number of chunks can be overridden using the macro SPLIT\_FACTOR. + Allows to run tests in parallel. Supported in UNITTEST, JTEST/JUNIT5 and PY2TEST/PY3TEST modules. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [FORK\_TEST\_FILES][]() <a name="macro_FORK_TEST_FILES"></a> + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [FORK\_TEST\_FILES][]() <a name="macro_FORK_TEST_FILES"></a> Only for PY2TEST and PY3TEST: splits a file executable with the tests on chunks in the files listed in TEST\_SRCS -Compatible with FORK\_(SUB)TESTS. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - +Compatible with FORK\_(SUB)TESTS. + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + ###### Macro [FROM\_ARCHIVE][](Src [RENAME <resource files>] OUT\_[NOAUTO] <output files> [EXECUTABLE]) <a name="macro_FROM_ARCHIVE"></a> Process file archive as [FROM\_SANDBOX()](#macro\_FROM\_SANDBOX). ###### Macro [FROM\_MDS][]([FILE] key [RENAME <resource files>] OUT\_[NOAUTO] <output files> [EXECUTABLE]) <a name="macro_FROM_MDS"></a> Download resource from MDS with the specified key and process like [FROM\_SANDBOX()](#macro\_FROM\_SANDBOX). - + ###### Macro [FROM\_NPM][](NAME VERSION SKY\_ID INTEGRITY INTEGRITY\_ALGO TARBALL\_PATH) <a name="macro_FROM_NPM"></a> Not documented yet. @@ -1578,10 +1578,10 @@ Defines lockfile list for `NPM\_CONTRIBS` module. ###### Macro [FROM\_SANDBOX][]([FILE] resource\_id [AUTOUPDATED script] [RENAME <resource files>] OUT\_[NOAUTO] <output files> [EXECUTABLE] [OUTPUT\_INCLUDES <include files>]) <a name="macro_FROM_SANDBOX"></a> Download the resource from the Sandbox, unpack (if not explicitly specified word FILE) and add OUT files to the build. EXECUTABLE makes them executable. You may specify extra dependencies that output files bring using OUTPUT\_INCLUDES. The change of these may e.g. lead to recompilation of .cpp files extracted from resource. -If there is no default processing for OUT files or you need process them specially use OUT\_NOAUTO instead of OUT. - -It is disallowed to specify directory as OUT/OUT\_NOAUTO since all outputs of commands shall be known to build system. - +If there is no default processing for OUT files or you need process them specially use OUT\_NOAUTO instead of OUT. + +It is disallowed to specify directory as OUT/OUT\_NOAUTO since all outputs of commands shall be known to build system. + RENAME renames files to the corresponding OUT and OUT\_NOAUTO outputs: FROM\_SANDBOX(resource\_id RENAME in\_file1 in\_file2 OUT out\_file1 out\_file2 out\_file3) FROM\_SANDBOX(resource\_id RENAME in\_file1 OUT out\_file1 RENAME in\_file2 OUT out\_file2) @@ -1589,127 +1589,127 @@ FROM\_SANDBOX(FILE resource\_id RENAME resource\_file OUT out\_name) RENAME RESOURCE allows to rename the resource without specifying its file name. -If AUTOUPDATED is specified than macro will be regularly updated according to autoupdate script. The dedicated Sandbox task scans the arcadia and +If AUTOUPDATED is specified than macro will be regularly updated according to autoupdate script. The dedicated Sandbox task scans the arcadia and changes resource\_ids in such macros if newer resource of specified type is available. Note that the task seeks AUTOUPDATED in specific position, -so you shall place it immediately after resource\_id. - -###### Macro [FUZZ\_DICTS][](path1 [path2...]) <a name="macro_FUZZ_DICTS"></a> -Allows you to specify dictionaries, relative to the root of Arcadia, which will be used in Fuzzing. -Libfuzzer and AFL use a single syntax for dictionary descriptions. -Should only be used in FUZZ modules. - -Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ - -###### Macro [FUZZ\_OPTS][](opt1 [Opt2...]) <a name="macro_FUZZ_OPTS"></a> -Overrides or adds options to the corpus mining and fuzzer run. -Currently supported only Libfuzzer, so you should use the options for it. -Should only be used in FUZZ modules. - -@example: - - FUZZ_OPTS ( - -max_len=1024 - -rss_limit_mb=8192 - ) - -Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ - -###### Macro [GENERATED\_SRCS][](srcs... PARSE\_META\_FROM cpp\_srcs... [OUTPUT\_INCLUDES output\_includes...] [OPTIONS]) <a name="macro_GENERATED_SRCS"></a> -Generate sources using Jinja 2 template engine. - -srcs... - list of text files which will be generated during build time by templates. Each template must be - placed to the place in source tree where corresponding source file should be generated. Name of +so you shall place it immediately after resource\_id. + +###### Macro [FUZZ\_DICTS][](path1 [path2...]) <a name="macro_FUZZ_DICTS"></a> +Allows you to specify dictionaries, relative to the root of Arcadia, which will be used in Fuzzing. +Libfuzzer and AFL use a single syntax for dictionary descriptions. +Should only be used in FUZZ modules. + +Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ + +###### Macro [FUZZ\_OPTS][](opt1 [Opt2...]) <a name="macro_FUZZ_OPTS"></a> +Overrides or adds options to the corpus mining and fuzzer run. +Currently supported only Libfuzzer, so you should use the options for it. +Should only be used in FUZZ modules. + +@example: + + FUZZ_OPTS ( + -max_len=1024 + -rss_limit_mb=8192 + ) + +Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ + +###### Macro [GENERATED\_SRCS][](srcs... PARSE\_META\_FROM cpp\_srcs... [OUTPUT\_INCLUDES output\_includes...] [OPTIONS]) <a name="macro_GENERATED_SRCS"></a> +Generate sources using Jinja 2 template engine. + +srcs... - list of text files which will be generated during build time by templates. Each template must be + placed to the place in source tree where corresponding source file should be generated. Name of template must be "<name\_of\_src\_file>.markettemplate". For example if you want to generate file "example.cpp" then template should be named "example.cpp.markettemplate". -PARSE\_META\_FROM cpp\_srcs... - list of C++ source files (.cpp, .h) which will be parsed using clang library - and metainformation extracted from the files will be made available for templates. Example of - template code fragment using metainformation: {{ meta.objects["@N@std@S@string"].name }} -OUTPUT\_INCLUDES output\_includes... - in cases when build system parser fails to determine all headers - which generated files include, you can specify additional headers here. In a normal situation this should - not be needed and this feature could be removed in the future. -OPTIONS - additional options for code\_generator utility - -Examples of templates can be found in directory market/tools/code\_generator/templates. -Metainformation does not contain entries for every object declared in C++ files specified in PARSE\_META\_FROM -parameter. To include some object into consideration you need to mark it by attribute. Attributes can -automatically add more attributes to dependent objects. This behavior depends on attribute definition. - -More information will be available (eventually:) here: https://wiki.yandex-team.ru/Users/denisk/codegenerator/ - -###### Macro [GENERATE\_ENUM\_SERIALIZATION][](File.h) <a name="macro_GENERATE_ENUM_SERIALIZATION"></a> -Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module. - -Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ - -###### Macro [GENERATE\_ENUM\_SERIALIZATION\_WITH\_HEADER][](File.h) <a name="macro_GENERATE_ENUM_SERIALIZATION_WITH_HEADER"></a> -Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module -Provide access to serialization functions via generated header File\_serialized.h - -Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ - -###### Macro [GENERATE\_PY\_PROTOS][](ProtoFiles...) _# deprecated_ <a name="macro_GENERATE_PY_PROTOS"></a> -Generate python bindings for protobuf files. -Macro is obsolete and not recommended for use! - -###### Macro [GENERATE\_SCRIPT][] <a name="macro_GENERATE_SCRIPT"></a> -heretic@ promised to make tutorial here -Don't forget -Feel free to remind - -###### Macro [GEN\_SCHEEME2][](scheeme\_name from\_file dependent\_files...) <a name="macro_GEN_SCHEEME2"></a> -Generates a C++ description for structure(contains the field RecordSig) in the specified file (and connected). - -1. ${scheeme\_name}.inc - the name of the generated file. -2. Use an environment variable - DATAWORK\_SCHEEME\_EXPORT\_FLAGS that allows to specify flags to tools/structparser - -@example: - - SET(DATAWORK_SCHEEME_EXPORT_FLAGS --final_only -m "::") - -all options are passed to structparser (in this example --final\_only - do not export heirs with public base that contains the required field,,- m "::" only from the root namespace) -sets in extra option - -@example: - - SET(EXTRACT_STRUCT_INFO_FLAGS -f \"const static ui32 RecordSig\" - -u \"RecordSig\" -n${scheeme_name}SchemeInfo ----gcc44_no_typename no_complex_overloaded_func_export - ${DATAWORK_SCHEEME_EXPORT_FLAGS}) - -for compatibility with C++ compiler and the external environment. -See tools/structparser for more details. - -###### Macro [GLOBAL\_SRCS][](filenames...) <a name="macro_GLOBAL_SRCS"></a> -Make all source files listed as GLOBAL. -Call to GLOBAL\_SRCS macro is equivalent to call to SRCS macro when each source file is marked with GLOBAL keyword. -Arcadia root relative or project dir relative paths are supported for filenames arguments. GLOBAL keyword is not -recognized for GLOBAL\_SRCS in contrast to SRCS macro. - -@example: -Consider the file to ya.make: - - LIBRARY() - GLOBAL_SRCS(foo.cpp bar.cpp) - END() - -@see: [SRCS()](#macro\_SRCS) - -###### Macro [GO\_ASM\_FLAGS][](flags) <a name="macro_GO_ASM_FLAGS"></a> +PARSE\_META\_FROM cpp\_srcs... - list of C++ source files (.cpp, .h) which will be parsed using clang library + and metainformation extracted from the files will be made available for templates. Example of + template code fragment using metainformation: {{ meta.objects["@N@std@S@string"].name }} +OUTPUT\_INCLUDES output\_includes... - in cases when build system parser fails to determine all headers + which generated files include, you can specify additional headers here. In a normal situation this should + not be needed and this feature could be removed in the future. +OPTIONS - additional options for code\_generator utility + +Examples of templates can be found in directory market/tools/code\_generator/templates. +Metainformation does not contain entries for every object declared in C++ files specified in PARSE\_META\_FROM +parameter. To include some object into consideration you need to mark it by attribute. Attributes can +automatically add more attributes to dependent objects. This behavior depends on attribute definition. + +More information will be available (eventually:) here: https://wiki.yandex-team.ru/Users/denisk/codegenerator/ + +###### Macro [GENERATE\_ENUM\_SERIALIZATION][](File.h) <a name="macro_GENERATE_ENUM_SERIALIZATION"></a> +Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module. + +Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ + +###### Macro [GENERATE\_ENUM\_SERIALIZATION\_WITH\_HEADER][](File.h) <a name="macro_GENERATE_ENUM_SERIALIZATION_WITH_HEADER"></a> +Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module +Provide access to serialization functions via generated header File\_serialized.h + +Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ + +###### Macro [GENERATE\_PY\_PROTOS][](ProtoFiles...) _# deprecated_ <a name="macro_GENERATE_PY_PROTOS"></a> +Generate python bindings for protobuf files. +Macro is obsolete and not recommended for use! + +###### Macro [GENERATE\_SCRIPT][] <a name="macro_GENERATE_SCRIPT"></a> +heretic@ promised to make tutorial here +Don't forget +Feel free to remind + +###### Macro [GEN\_SCHEEME2][](scheeme\_name from\_file dependent\_files...) <a name="macro_GEN_SCHEEME2"></a> +Generates a C++ description for structure(contains the field RecordSig) in the specified file (and connected). + +1. ${scheeme\_name}.inc - the name of the generated file. +2. Use an environment variable - DATAWORK\_SCHEEME\_EXPORT\_FLAGS that allows to specify flags to tools/structparser + +@example: + + SET(DATAWORK_SCHEEME_EXPORT_FLAGS --final_only -m "::") + +all options are passed to structparser (in this example --final\_only - do not export heirs with public base that contains the required field,,- m "::" only from the root namespace) +sets in extra option + +@example: + + SET(EXTRACT_STRUCT_INFO_FLAGS -f \"const static ui32 RecordSig\" + -u \"RecordSig\" -n${scheeme_name}SchemeInfo ----gcc44_no_typename no_complex_overloaded_func_export + ${DATAWORK_SCHEEME_EXPORT_FLAGS}) + +for compatibility with C++ compiler and the external environment. +See tools/structparser for more details. + +###### Macro [GLOBAL\_SRCS][](filenames...) <a name="macro_GLOBAL_SRCS"></a> +Make all source files listed as GLOBAL. +Call to GLOBAL\_SRCS macro is equivalent to call to SRCS macro when each source file is marked with GLOBAL keyword. +Arcadia root relative or project dir relative paths are supported for filenames arguments. GLOBAL keyword is not +recognized for GLOBAL\_SRCS in contrast to SRCS macro. + +@example: +Consider the file to ya.make: + + LIBRARY() + GLOBAL_SRCS(foo.cpp bar.cpp) + END() + +@see: [SRCS()](#macro\_SRCS) + +###### Macro [GO\_ASM\_FLAGS][](flags) <a name="macro_GO_ASM_FLAGS"></a> Add the specified flags to the go asm compile command line. - + ###### Macro [GO\_BENCH\_TIMEOUT][](x) <a name="macro_GO_BENCH_TIMEOUT"></a> Sets timeout in seconds for 1 Benchmark in go benchmark suite Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ -###### Macro [GO\_CGO1\_FLAGS][](flags) <a name="macro_GO_CGO1_FLAGS"></a> -Add the specified flags to the go cgo compile command line. - -###### Macro [GO\_CGO2\_FLAGS][](flags) <a name="macro_GO_CGO2_FLAGS"></a> -Add the specified flags to the go cgo compile command line. - -###### Macro [GO\_COMPILE\_FLAGS][](flags) <a name="macro_GO_COMPILE_FLAGS"></a> -Add the specified flags to the go compile command line. - +###### Macro [GO\_CGO1\_FLAGS][](flags) <a name="macro_GO_CGO1_FLAGS"></a> +Add the specified flags to the go cgo compile command line. + +###### Macro [GO\_CGO2\_FLAGS][](flags) <a name="macro_GO_CGO2_FLAGS"></a> +Add the specified flags to the go cgo compile command line. + +###### Macro [GO\_COMPILE\_FLAGS][](flags) <a name="macro_GO_COMPILE_FLAGS"></a> +Add the specified flags to the go compile command line. + ###### Macro [GO\_EMBED\_DIR][](DIR) <a name="macro_GO_EMBED_DIR"></a> Define an embed directory DIR. @@ -1722,21 +1722,21 @@ Define an embed directory DIR for internal go tests. ###### Macro GO\_XTEST\_EMBED\_DIR(DIR) <a name="macro_GO_EMBED_XTEST_DIR"></a> Define an embed directory DIR for external go tests. -###### Macro [GO\_FAKE\_OUTPUT][](go-src-files...) <a name="macro_GO_FAKE_OUTPUT"></a> -Not documented yet. - +###### Macro [GO\_FAKE\_OUTPUT][](go-src-files...) <a name="macro_GO_FAKE_OUTPUT"></a> +Not documented yet. + ###### Macro [GO\_GRPC\_GATEWAY\_SRCS][]() <a name="macro_GO_GRPC_GATEWAY_SRCS"></a> Use of grpc-gateway plugin (Supported for Go only). ###### Macro [GO\_GRPC\_GATEWAY\_SWAGGER\_SRCS][]() <a name="macro_GO_GRPC_GATEWAY_SWAGGER_SRCS"></a> Use of grpc-gateway plugin w/ swagger emission (Supported for Go only). -###### Macro [GO\_LDFLAGS][](Flags...) <a name="macro_GO_LDFLAGS"></a> -Link flags for GO\_PROGRAM linking from .go sources - -###### Macro [GO\_LINK\_FLAGS][](flags) <a name="macro_GO_LINK_FLAGS"></a> -Add the specified flags to the go link command line. - +###### Macro [GO\_LDFLAGS][](Flags...) <a name="macro_GO_LDFLAGS"></a> +Link flags for GO\_PROGRAM linking from .go sources + +###### Macro [GO\_LINK\_FLAGS][](flags) <a name="macro_GO_LINK_FLAGS"></a> +Add the specified flags to the go link command line. + ###### Macro [GO\_MOCKGEN\_FROM][](Path) <a name="macro_GO_MOCKGEN_FROM"></a> Not documented yet. @@ -1749,9 +1749,9 @@ Not documented yet. ###### Macro [GO\_MOCKGEN\_TYPES][](First, Rest...) <a name="macro_GO_MOCKGEN_TYPES"></a> Not documented yet. -###### Macro [GO\_PACKAGE\_NAME][](Name) <a name="macro_GO_PACKAGE_NAME"></a> -Override name of a Go package. - +###### Macro [GO\_PACKAGE\_NAME][](Name) <a name="macro_GO_PACKAGE_NAME"></a> +Override name of a Go package. + ###### Macro [GO\_PROTO\_PLUGIN][](Name Ext Tool [DEPS dependencies...]) <a name="macro_GO_PROTO_PLUGIN"></a> Define protoc plugin for GO with given Name that emits extra output with provided extension Ext using Tool. Extra dependencies are passed via DEPS. @@ -1763,29 +1763,29 @@ NB! Subtests are not taken into account! ###### Macro [GO\_TEST\_EMBED\_PATTERN][](PATTERN) <a name="macro_GO_TEST_EMBED_PATTERN"></a> Define an embed pattern for internal go tests. -###### Macro [GO\_TEST\_FOR][](path/to/module) _#builtin_ <a name="macro_GO_TEST_FOR"></a> -Produces go test for specified module - -###### Macro [GO\_TEST\_SRCS][](Files...) <a name="macro_GO_TEST_SRCS"></a> -.go sources for internal tests of a module - +###### Macro [GO\_TEST\_FOR][](path/to/module) _#builtin_ <a name="macro_GO_TEST_FOR"></a> +Produces go test for specified module + +###### Macro [GO\_TEST\_SRCS][](Files...) <a name="macro_GO_TEST_SRCS"></a> +.go sources for internal tests of a module + ###### Macro [GO\_XTEST\_EMBED\_PATTERN][](PATTERN) <a name="macro_GO_XTEST_EMBED_PATTERN"></a> Define an embed pattern for external go tests. -###### Macro [GO\_XTEST\_SRCS][](Files...) <a name="macro_GO_XTEST_SRCS"></a> -.go sources for external tests of a module - +###### Macro [GO\_XTEST\_SRCS][](Files...) <a name="macro_GO_XTEST_SRCS"></a> +.go sources for external tests of a module + ###### Macro [GRADLE\_FLAGS][](flags...) _# internal_ <a name="macro_GRADLE_FLAGS"></a> SEt additional flags for gradle -###### Macro [GRPC][]() <a name="macro_GRPC"></a> -Emit GRPC code for all .proto files in a PROTO\_LIBRARY. -This works for all available PROTO\_LIBRARY versions (C++, Python 2.x, Pyton 3.x, Java and Go). - -###### Macro [IDEA\_EXCLUDE\_DIRS][](<excluded dirs>) <a name="macro_IDEA_EXCLUDE_DIRS"></a> -Exclude specified directories from an idea project generated by ya ide idea -Have no effect on regular build. - +###### Macro [GRPC][]() <a name="macro_GRPC"></a> +Emit GRPC code for all .proto files in a PROTO\_LIBRARY. +This works for all available PROTO\_LIBRARY versions (C++, Python 2.x, Pyton 3.x, Java and Go). + +###### Macro [IDEA\_EXCLUDE\_DIRS][](<excluded dirs>) <a name="macro_IDEA_EXCLUDE_DIRS"></a> +Exclude specified directories from an idea project generated by ya ide idea +Have no effect on regular build. + ###### Macro [IDEA\_JAR\_SRCS][](Args...) <a name="macro_IDEA_JAR_SRCS"></a> Not documented yet. @@ -1793,36 +1793,36 @@ Not documented yet. Set module name in an idea project generated by ya ide idea Have no effect on regular build. -###### Macro [IDEA\_RESOURCE\_DIRS][](<additional dirs>) <a name="macro_IDEA_RESOURCE_DIRS"></a> -Set specified resource directories in an idea project generated by ya ide idea -Have no effect on regular build. - -###### Macro [IF][](condition) .. ELSEIF(other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_IF"></a> -Apply macros if condition holds - -###### Macro [INCLUDE][](filename) _#builtin_ <a name="macro_INCLUDE"></a> -Include file textually and process it as a part of the ya.make - -###### Macro [INCLUDE\_TAGS][](tags...) _# builtin_ <a name="macro_INCLUDE_TAGS"></a> -Additionally instantiate from multimodule all variants with tags listed (overrides default) - -###### Macro [INDUCED\_DEPS][](Extension Path...) _#builtin_ <a name="macro_INDUCED_DEPS"></a> +###### Macro [IDEA\_RESOURCE\_DIRS][](<additional dirs>) <a name="macro_IDEA_RESOURCE_DIRS"></a> +Set specified resource directories in an idea project generated by ya ide idea +Have no effect on regular build. + +###### Macro [IF][](condition) .. ELSEIF(other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_IF"></a> +Apply macros if condition holds + +###### Macro [INCLUDE][](filename) _#builtin_ <a name="macro_INCLUDE"></a> +Include file textually and process it as a part of the ya.make + +###### Macro [INCLUDE\_TAGS][](tags...) _# builtin_ <a name="macro_INCLUDE_TAGS"></a> +Additionally instantiate from multimodule all variants with tags listed (overrides default) + +###### Macro [INDUCED\_DEPS][](Extension Path...) _#builtin_ <a name="macro_INDUCED_DEPS"></a> States that files wih the Extension generated by the PROGRAM will depend on files in Path. This only useful in PROGRAM and similar modules. It will be applied if the PROGRAM is used in RUN\_PROGRAM macro. All Paths specified must be absolute arcadia paths i.e. start with ${ARCADIA\_ROOT} ${ARCADIA\_BUILD\_ROOT}, ${CURDIR} or ${BINDIR}. - -###### Macro [IOS\_APP\_ASSETS\_FLAGS][](Flags...) <a name="macro_IOS_APP_ASSETS_FLAGS"></a> -Not documented yet. - -###### Macro [IOS\_APP\_COMMON\_FLAGS][](Flags...) <a name="macro_IOS_APP_COMMON_FLAGS"></a> -Not documented yet. - -###### Macro [IOS\_APP\_SETTINGS][] <a name="macro_IOS_APP_SETTINGS"></a> -Not documented yet. - -###### Macro [IOS\_ASSETS][] <a name="macro_IOS_ASSETS"></a> -Not documented yet. - + +###### Macro [IOS\_APP\_ASSETS\_FLAGS][](Flags...) <a name="macro_IOS_APP_ASSETS_FLAGS"></a> +Not documented yet. + +###### Macro [IOS\_APP\_COMMON\_FLAGS][](Flags...) <a name="macro_IOS_APP_COMMON_FLAGS"></a> +Not documented yet. + +###### Macro [IOS\_APP\_SETTINGS][] <a name="macro_IOS_APP_SETTINGS"></a> +Not documented yet. + +###### Macro [IOS\_ASSETS][] <a name="macro_IOS_ASSETS"></a> +Not documented yet. + ###### Macro [JAR\_ANNOTATION\_PROCESSOR][](Classes...) <a name="macro_JAR_ANNOTATION_PROCESSOR"></a> Not documented yet. @@ -1837,9 +1837,9 @@ Filter .jar file content: keep only matched files ###### Macro [JAR\_RESOURCE][](Id) <a name="macro_JAR_RESOURCE"></a> Not documented yet. -###### Macro [JAVAC\_FLAGS][](Args...) <a name="macro_JAVAC_FLAGS"></a> -Set additional Java compilation flags. - +###### Macro [JAVAC\_FLAGS][](Args...) <a name="macro_JAVAC_FLAGS"></a> +Set additional Java compilation flags. + ###### Macro [JAVA\_DEPENDENCIES\_CONFIGURATION][](Vetos...) <a name="macro_JAVA_DEPENDENCIES_CONFIGURATION"></a> Validate contrib/java dependencies Valid arguments @@ -1853,12 +1853,12 @@ REQUIRE\_DM - all dependencies must be specified in DEPENDENCY\_MANAGEMENT (tran ###### Macro [JAVA\_EXTERNAL\_DEPENDENCIES][](file1 file2 ...) <a name="macro_JAVA_EXTERNAL_DEPENDENCIES"></a> Add non-source java external build dependency (like lombok config file) -###### Macro [JAVA\_IGNORE\_CLASSPATH\_CLASH\_FOR][]([classes]) <a name="macro_JAVA_IGNORE_CLASSPATH_CLASH_FOR"></a> -Ignore classpath clash test fails for classes - -###### Macro [JAVA\_MODULE][] <a name="macro_JAVA_MODULE"></a> -Not documented yet. - +###### Macro [JAVA\_IGNORE\_CLASSPATH\_CLASH\_FOR][]([classes]) <a name="macro_JAVA_IGNORE_CLASSPATH_CLASH_FOR"></a> +Ignore classpath clash test fails for classes + +###### Macro [JAVA\_MODULE][] <a name="macro_JAVA_MODULE"></a> +Not documented yet. + ###### Macro [JAVA\_PROTO\_PLUGIN][](Name Tool DEPS <Dependencies>) <a name="macro_JAVA_PROTO_PLUGIN"></a> Define protoc plugin for Java with given Name that emits extra outputs using Tool. Extra dependencies are passed via DEPS @@ -1869,57 +1869,57 @@ Override CPU and RAM requirements for all C/C++ compilation commands in the modu ###### Macro [JAVA\_RESOURCE][](JAR, SOURCES="") <a name="macro_JAVA_RESOURCE"></a> Not documented yet. -###### Macro [JAVA\_SRCS][](srcs) <a name="macro_JAVA_SRCS"></a> -Specify java source files and resources. A macro can be contained in any of four java modules. -Keywords: -1. X SRCDIR - specify the directory x is performed relatively to search the source code for these patterns. If there is no SRCDIR, the source will be searched relative to the module directory. -2. PACKAGE\_PREFIX x - use if source paths relative to the SRCDIR does not coincide with the full class names. For example, if all sources of module are in the same package, you can create a directory package/name , and just put the source code in the SRCDIR and specify PACKAGE\_PREFIX package.name. - -@example: - - example/ya.make - - JAVA_PROGRAM() - JAVA_SRCS(SRCDIR src/main/java **/*) - END() - - - example/src/main/java/ru/yandex/example/HelloWorld.java - - package ru.yandex.example; - public class HelloWorld { - public static void main(String[] args) { - System.out.println("Hello, World!"); - } - } - -Documentation: https://wiki.yandex-team.ru/yatool/java/#javasrcs - -###### Macro [JAVA\_TEST][] <a name="macro_JAVA_TEST"></a> -Not documented yet. - -###### Macro [JAVA\_TEST\_DEPS][] <a name="macro_JAVA_TEST_DEPS"></a> -Not documented yet. - +###### Macro [JAVA\_SRCS][](srcs) <a name="macro_JAVA_SRCS"></a> +Specify java source files and resources. A macro can be contained in any of four java modules. +Keywords: +1. X SRCDIR - specify the directory x is performed relatively to search the source code for these patterns. If there is no SRCDIR, the source will be searched relative to the module directory. +2. PACKAGE\_PREFIX x - use if source paths relative to the SRCDIR does not coincide with the full class names. For example, if all sources of module are in the same package, you can create a directory package/name , and just put the source code in the SRCDIR and specify PACKAGE\_PREFIX package.name. + +@example: + - example/ya.make + + JAVA_PROGRAM() + JAVA_SRCS(SRCDIR src/main/java **/*) + END() + + - example/src/main/java/ru/yandex/example/HelloWorld.java + + package ru.yandex.example; + public class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello, World!"); + } + } + +Documentation: https://wiki.yandex-team.ru/yatool/java/#javasrcs + +###### Macro [JAVA\_TEST][] <a name="macro_JAVA_TEST"></a> +Not documented yet. + +###### Macro [JAVA\_TEST\_DEPS][] <a name="macro_JAVA_TEST_DEPS"></a> +Not documented yet. + ###### Macro MODULE\_JDK(Version) <a name="macro_JDK_VERSION"></a> Specify JDK version for module -###### Macro [JOINSRC][]() _# deprecated, does-nothing_ <a name="macro_JOINSRC"></a> -This macro currently does nothing. Use JOIN\_SRCS and similar macros to make one file of set of sources. - -###### Macro [JOIN\_SRCS][](Out Src...) <a name="macro_JOIN_SRCS"></a> -Join set of sources into single file named Out and send it for further processing. -This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. -You should specify file name with the extension as Out. Futher processing will be done according this extension. - -###### Macro [JOIN\_SRCS\_GLOBAL][](Out Src...) <a name="macro_JOIN_SRCS_GLOBAL"></a> -Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). -This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. +###### Macro [JOINSRC][]() _# deprecated, does-nothing_ <a name="macro_JOINSRC"></a> +This macro currently does nothing. Use JOIN\_SRCS and similar macros to make one file of set of sources. + +###### Macro [JOIN\_SRCS][](Out Src...) <a name="macro_JOIN_SRCS"></a> +Join set of sources into single file named Out and send it for further processing. +This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. +You should specify file name with the extension as Out. Futher processing will be done according this extension. + +###### Macro [JOIN\_SRCS\_GLOBAL][](Out Src...) <a name="macro_JOIN_SRCS_GLOBAL"></a> +Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). +This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. You should specify file name with the extension as Out. Further processing will be done according to this extension. - -###### Macro [JVM\_ARGS][](Args...) <a name="macro_JVM_ARGS"></a> -Arguments to run Java programs in tests. - -Documentation: https://wiki.yandex-team.ru/yatool/test/ - + +###### Macro [JVM\_ARGS][](Args...) <a name="macro_JVM_ARGS"></a> +Arguments to run Java programs in tests. + +Documentation: https://wiki.yandex-team.ru/yatool/test/ + ###### Macro [KOTLINC\_FLAGS][](-flags) <a name="macro_KOTLINC_FLAGS"></a> Set additional Kotlin compilation flags. @@ -1928,23 +1928,23 @@ Use large file ether from working copy or from remote storage via placeholder <F If <File> is present locally (and not a symlink!) it will be copied to build directory. Otherwise macro will try to locate <File>.external, parse it retrieve ot during build phase. -###### Macro [LDFLAGS][](LinkerFlags...) <a name="macro_LDFLAGS"></a> -Add flags to the link command line of executable or shared library/dll. -Note: LDFLAGS are always global. When set in the LIBRARY module they will affect all programs/dlls/tests the library is linked into. -Note: remember about the incompatibility of flags for gcc and cl. - +###### Macro [LDFLAGS][](LinkerFlags...) <a name="macro_LDFLAGS"></a> +Add flags to the link command line of executable or shared library/dll. +Note: LDFLAGS are always global. When set in the LIBRARY module they will affect all programs/dlls/tests the library is linked into. +Note: remember about the incompatibility of flags for gcc and cl. + ###### Macro [LD\_REQUIREMENTS][]([cpu: <value>] [ram: <value>]) <a name="macro_LD_REQUIREMENTS"></a> Override CPU and RAM requirements for link command in the module ###### Macro [LIB\_REQUIREMENTS][]([cpu: <value>] [ram: <value>]) <a name="macro_LIB_REQUIREMENTS"></a> Override CPU and RAM requirements for library creation comand of a x\_LIBRARY modules -###### Macro [LICENSE][](licenses...) <a name="macro_LICENSE"></a> +###### Macro [LICENSE][](licenses...) <a name="macro_LICENSE"></a> Specify the licenses of the module, separated by spaces. Specifying multiple licenses interpreted as permission to use this library satisfying all conditions of any of the listed licenses. - -A license must be prescribed for contribs - + +A license must be prescribed for contribs + ###### Macro [LICENSE\_TEXTS][](File) <a name="macro_LICENSE_TEXTS"></a> This macro specifies the filename with all library licenses texts @@ -1957,38 +1957,38 @@ $usage: LINK\_EXEC\_DYN\_LIB\_IMPL(peers...) # internal ###### Macro [LINK\_EXE\_IMPL][] <a name="macro_LINK_EXE_IMPL"></a> $usage: LINK\_EXE\_IMPL(peers...) # internal -###### Macro [LINT][](<none|base|strict>) <a name="macro_LINT"></a> -Set linting levem for sources of the module - -###### Macro [LJ\_21\_ARCHIVE][](NAME Name LuaFiles...) _# deprecated_ <a name="macro_LJ_21_ARCHIVE"></a> -Precompile .lua files using LuaJIT 2.1 and archive both sources and results using sources names as keys - -###### Macro [LJ\_ARCHIVE][](NAME Name LuaFiles...) <a name="macro_LJ_ARCHIVE"></a> -Precompile .lua files using LuaJIT and archive both sources and results using sources names as keys - -###### Macro [LLVM\_BC][] <a name="macro_LLVM_BC"></a> -Not documented yet. - -###### Macro [LLVM\_COMPILE\_C][](Input Output Opts...) <a name="macro_LLVM_COMPILE_C"></a> +###### Macro [LINT][](<none|base|strict>) <a name="macro_LINT"></a> +Set linting levem for sources of the module + +###### Macro [LJ\_21\_ARCHIVE][](NAME Name LuaFiles...) _# deprecated_ <a name="macro_LJ_21_ARCHIVE"></a> +Precompile .lua files using LuaJIT 2.1 and archive both sources and results using sources names as keys + +###### Macro [LJ\_ARCHIVE][](NAME Name LuaFiles...) <a name="macro_LJ_ARCHIVE"></a> +Precompile .lua files using LuaJIT and archive both sources and results using sources names as keys + +###### Macro [LLVM\_BC][] <a name="macro_LLVM_BC"></a> +Not documented yet. + +###### Macro [LLVM\_COMPILE\_C][](Input Output Opts...) <a name="macro_LLVM_COMPILE_C"></a> Emit LLVM bytecode from .c file. BC\_CFLAGS, LLVM\_OPTS and C\_FLAGS\_PLATFORM are passed in, while CFLAGS are not. -Note: Output name is used as is, no extension added. - -###### Macro [LLVM\_COMPILE\_CXX][](Input Output Opts...) <a name="macro_LLVM_COMPILE_CXX"></a> +Note: Output name is used as is, no extension added. + +###### Macro [LLVM\_COMPILE\_CXX][](Input Output Opts...) <a name="macro_LLVM_COMPILE_CXX"></a> Emit LLVM bytecode from .cpp file. BC\_CXXFLAGS, LLVM\_OPTS and C\_FLAGS\_PLATFORM are passed in, while CFLAGS are not. -Note: Output name is used as is, no extension added. - -###### Macro [LLVM\_COMPILE\_LL][](Input Output Opts...) <a name="macro_LLVM_COMPILE_LL"></a> -Compile LLVM bytecode to object representation. -Note: Output name is used as is, no extension added. - -###### Macro [LLVM\_LINK][](Output Inputs...) <a name="macro_LLVM_LINK"></a> -Call llvm-link on set of Inputs to produce Output. -Note: Unlike many other macros output argument goes first. Output name is used as is, no extension added. - -###### Macro [LLVM\_OPT][](Input Output Opts...) <a name="macro_LLVM_OPT"></a> -Call llvm-opt with set of Opts on Input to produce Output. -Note: Output name is used as is, no extension added. - +Note: Output name is used as is, no extension added. + +###### Macro [LLVM\_COMPILE\_LL][](Input Output Opts...) <a name="macro_LLVM_COMPILE_LL"></a> +Compile LLVM bytecode to object representation. +Note: Output name is used as is, no extension added. + +###### Macro [LLVM\_LINK][](Output Inputs...) <a name="macro_LLVM_LINK"></a> +Call llvm-link on set of Inputs to produce Output. +Note: Unlike many other macros output argument goes first. Output name is used as is, no extension added. + +###### Macro [LLVM\_OPT][](Input Output Opts...) <a name="macro_LLVM_OPT"></a> +Call llvm-opt with set of Opts on Input to produce Output. +Note: Output name is used as is, no extension added. + ###### Macro [LOCAL\_JAR][](File) <a name="macro_LOCAL_JAR"></a> Not documented yet. @@ -1996,46 +1996,46 @@ Not documented yet. Not documented yet. ###### Macro [LUA][](script\_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[\_NOAUTO] outputs...] [STDOUT[\_NOAUTO] output] [OUTPUT\_INCLUDES output\_includes...][ REQUIREMENTS reqs]) <a name="macro_LUA"></a> -Run a lua script. +Run a lua script. These macros are similar: RUN\_PROGRAM, LUA, PYTHON. - -Parameters: + +Parameters: - script\_path - Path to the script.3 -- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. -- CWD dir - Absolute path of the working directory. -- ENV key=value... - Environment variables. -- TOOL tools... - Auxiliary tool directories. -- IN inputs... - Input files. -- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. -- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. -- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. +- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. +- CWD dir - Absolute path of the working directory. +- ENV key=value... - Environment variables. +- TOOL tools... - Auxiliary tool directories. +- IN inputs... - Input files. +- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. +- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. +- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. - REQUIREMENTS - Override default requirements for CPU and RAM - -For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or -${CURDIR} and ${BINDIR} which are expanded where the outputs are used. - -###### Macro [MACROS\_WITH\_ERROR][] <a name="macro_MACROS_WITH_ERROR"></a> -Not documented yet. - -###### Macro [MAPKITIDL][](idl-file-name... <a name="macro_MAPKITIDL"></a> -[OUT\_DIR output-dir] -[IDL\_INCLUDES idl-dirs...] -[FILTER filters...]) -[FILTER\_OUT filters...]) -[GLOBAL\_OUTPUTS] -Generate bindings to target platform language. -(Used for mobile MapKit project) -1. idl-file-name... - a list of \*.idl files to process -2. output-dir - a base root of output directory -3. idl-dirs - a list of directories where to search for imported \*.idl files + +For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or +${CURDIR} and ${BINDIR} which are expanded where the outputs are used. + +###### Macro [MACROS\_WITH\_ERROR][] <a name="macro_MACROS_WITH_ERROR"></a> +Not documented yet. + +###### Macro [MAPKITIDL][](idl-file-name... <a name="macro_MAPKITIDL"></a> +[OUT\_DIR output-dir] +[IDL\_INCLUDES idl-dirs...] +[FILTER filters...]) +[FILTER\_OUT filters...]) +[GLOBAL\_OUTPUTS] +Generate bindings to target platform language. +(Used for mobile MapKit project) +1. idl-file-name... - a list of \*.idl files to process +2. output-dir - a base root of output directory +3. idl-dirs - a list of directories where to search for imported \*.idl files 4. filters - a list of extensions used to filter outputs and output includes - -###### Macro [MAPKIT\_ADDINCL][](Dirs...) <a name="macro_MAPKIT_ADDINCL"></a> -Not documented yet. - -###### Macro [MAPKIT\_ENABLE\_WHOLE\_ARCHIVE][]() _# internal deprecated_ <a name="macro_MAPKIT_ENABLE_WHOLE_ARCHIVE"></a> + +###### Macro [MAPKIT\_ADDINCL][](Dirs...) <a name="macro_MAPKIT_ADDINCL"></a> +Not documented yet. + +###### Macro [MAPKIT\_ENABLE\_WHOLE\_ARCHIVE][]() _# internal deprecated_ <a name="macro_MAPKIT_ENABLE_WHOLE_ARCHIVE"></a> This macro is strictly prohibited to use outside of mapsmobi project - + ###### Macro [MAPSMOBI\_COLLECT\_AIDL\_FILES][](varname [dir]) _# internal_ <a name="macro_MAPSMOBI_COLLECT_AIDL_FILES"></a> This macro is strictly prohibited to use outside of mapsmobi project @@ -2054,16 +2054,16 @@ This macro is strictly prohibited to use outside of mapsmobi project ###### Macro [MAPSMOBI\_COLLECT\_TPL\_FILES][](varname [dir]) _# internal_ <a name="macro_MAPSMOBI_COLLECT_TPL_FILES"></a> This macro is strictly prohibited to use outside of mapsmobi project -###### Macro [MAPSMOBI\_SRCS][](filenames...) _# internal_ <a name="macro_MAPSMOBI_SRCS"></a> -Make all source files listed as GLOBAL or not (depending on the value of -MAPSMOBI\_USE\_SRCS\_GLOBAL). Be careful since the value of -MAPSMOBI\_USE\_SRCS\_GLOBAL matters! If the value of this variable is equal to -GLOBAL then call to MAPSMOBI\_SRCS() macro behaves like call to -GLOBAL\_SRCS() macro otherwise the value of MAPSMOBI\_USE\_SRCS\_GLOBAL is -treated as a file name and a call to MAPSMOBI\_SRCS() macro behaves like a +###### Macro [MAPSMOBI\_SRCS][](filenames...) _# internal_ <a name="macro_MAPSMOBI_SRCS"></a> +Make all source files listed as GLOBAL or not (depending on the value of +MAPSMOBI\_USE\_SRCS\_GLOBAL). Be careful since the value of +MAPSMOBI\_USE\_SRCS\_GLOBAL matters! If the value of this variable is equal to +GLOBAL then call to MAPSMOBI\_SRCS() macro behaves like call to +GLOBAL\_SRCS() macro otherwise the value of MAPSMOBI\_USE\_SRCS\_GLOBAL is +treated as a file name and a call to MAPSMOBI\_SRCS() macro behaves like a call to SRCS() macro with additional argument which is the value of -MAPSMOBI\_USE\_SRCS\_GLOBAL variable - +MAPSMOBI\_USE\_SRCS\_GLOBAL variable + ###### Macro [MAPS\_GARDEN\_COLLECT\_MODULE\_TRAITS][](varnamei dir) _# internal_ <a name="macro_MAPS_GARDEN_COLLECT_MODULE_TRAITS"></a> This macro is strictly prohibited to use outside of maps/garden project @@ -2076,19 +2076,19 @@ Warpper for MAPKITIDL macro which is used for mobile mapkit build ###### Macro [MAPS\_IDL\_SRCS][](filenames...) _# internal_ <a name="macro_MAPS_IDL_SRCS"></a> Warpper for MAPKITIDL macro which is used for mobile mapkit build -###### Macro [MASMFLAGS][](compiler flags) <a name="macro_MASMFLAGS"></a> -Add the specified flags to the compilation command of .masm files. - -###### Macro [MAVEN\_GROUP\_ID][](group\_id\_for\_maven\_export) <a name="macro_MAVEN_GROUP_ID"></a> -Set maven export group id for JAVA\_PROGRAM() and JAVA\_LIBRARY(). -Have no effect on regular build. - -###### Macro [MESSAGE][]([severity] message) _# builtin_ <a name="macro_MESSAGE"></a> -Print message with given severity level (STATUS, FATAL\_ERROR) - -###### Macro [METAQUERYFILES][](filenames...) _#deprecated_ <a name="macro_METAQUERYFILES"></a> +###### Macro [MASMFLAGS][](compiler flags) <a name="macro_MASMFLAGS"></a> +Add the specified flags to the compilation command of .masm files. + +###### Macro [MAVEN\_GROUP\_ID][](group\_id\_for\_maven\_export) <a name="macro_MAVEN_GROUP_ID"></a> +Set maven export group id for JAVA\_PROGRAM() and JAVA\_LIBRARY(). +Have no effect on regular build. + +###### Macro [MESSAGE][]([severity] message) _# builtin_ <a name="macro_MESSAGE"></a> +Print message with given severity level (STATUS, FATAL\_ERROR) + +###### Macro [METAQUERYFILES][](filenames...) _#deprecated_ <a name="macro_METAQUERYFILES"></a> This macro does nothing and will be removed - + ###### Macro [MOBILE\_TEST\_APK\_AAR\_AARS][](filenames...) _# internal_ <a name="macro_MOBILE_TEST_APK_AAR_AARS"></a> Not documented yet. @@ -2108,19 +2108,19 @@ Not documented yet. Add the specified flags to the compilation line of C/C++files. Flags apply only if the compiler used is MSVC (cl.exe) -###### Macro [MX\_FORMULAS][](BinFiles...) _# deprecated, matrixnet_ <a name="macro_MX_FORMULAS"></a> -Create MatrixNet formulas archive - -###### Macro [NEED\_CHECK][]() <a name="macro_NEED_CHECK"></a> -Commits to the project marked with this macro will be blocked by pre-commit check and then will be -automatically merged to trunk only if there is no new broken build targets in check results. -The use of this macro is disabled by default. - -###### Macro [NEED\_REVIEW][]() _# deprecated_ <a name="macro_NEED_REVIEW"></a> -Mark the project as needing review. -Reviewers are listed in the macro OWNER. The use of this macro is disabled by default. -Details can be found here: https://clubs.at.yandex-team.ru/arcadia/6104 - +###### Macro [MX\_FORMULAS][](BinFiles...) _# deprecated, matrixnet_ <a name="macro_MX_FORMULAS"></a> +Create MatrixNet formulas archive + +###### Macro [NEED\_CHECK][]() <a name="macro_NEED_CHECK"></a> +Commits to the project marked with this macro will be blocked by pre-commit check and then will be +automatically merged to trunk only if there is no new broken build targets in check results. +The use of this macro is disabled by default. + +###### Macro [NEED\_REVIEW][]() _# deprecated_ <a name="macro_NEED_REVIEW"></a> +Mark the project as needing review. +Reviewers are listed in the macro OWNER. The use of this macro is disabled by default. +Details can be found here: https://clubs.at.yandex-team.ru/arcadia/6104 + ###### Macro [NGINX\_MODULES][](Modules...) <a name="macro_NGINX_MODULES"></a> Not documented yet. @@ -2129,27 +2129,27 @@ Materializes `node\_modules.tar` bundle according to the module's lockfile. @see [NPM\_CONTRIBS()](#module\_NPM\_CONTRIBS) -###### Macro [NO\_BUILD\_IF][](variables) _# builtin_ <a name="macro_NO_BUILD_IF"></a> -Print warning if some variable is true - -###### Macro [NO\_CHECK\_IMPORTS][]([patterns]) <a name="macro_NO_CHECK_IMPORTS"></a> -Do not run checks on imports of Python modules. -Optional parameter mask patterns describes the names of the modules that do not need to check. - -###### Macro [NO\_CLANG\_COVERAGE][]() <a name="macro_NO_CLANG_COVERAGE"></a> -Disable heavyweight clang coverage for the module - +###### Macro [NO\_BUILD\_IF][](variables) _# builtin_ <a name="macro_NO_BUILD_IF"></a> +Print warning if some variable is true + +###### Macro [NO\_CHECK\_IMPORTS][]([patterns]) <a name="macro_NO_CHECK_IMPORTS"></a> +Do not run checks on imports of Python modules. +Optional parameter mask patterns describes the names of the modules that do not need to check. + +###### Macro [NO\_CLANG\_COVERAGE][]() <a name="macro_NO_CLANG_COVERAGE"></a> +Disable heavyweight clang coverage for the module + ###### Macro [NO\_CLANG\_TIDY][]() <a name="macro_NO_CLANG_TIDY"></a> Not documented yet. ###### Macro [NO\_CODENAVIGATION][]() _# internal_ <a name="macro_NO_CODENAVIGATION"></a> -Disable codenaviagtion for a module. Needed to avoid PEERDIR loops in codenavigation support. -Most probably you'll never need this. If you think you need, please contact devtools@ for assistance. - -###### Macro [NO\_COMPILER\_WARNINGS][]() <a name="macro_NO_COMPILER_WARNINGS"></a> +Disable codenaviagtion for a module. Needed to avoid PEERDIR loops in codenavigation support. +Most probably you'll never need this. If you think you need, please contact devtools@ for assistance. + +###### Macro [NO\_COMPILER\_WARNINGS][]() <a name="macro_NO_COMPILER_WARNINGS"></a> Disable all compiler warnings in the module. -Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. - +Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. + ###### Macro [NO\_CPU\_CHECK][]() <a name="macro_NO_CPU_CHECK"></a> Compile module without startup CPU features check @@ -2157,9 +2157,9 @@ Compile module without startup CPU features check Disable cython and cythonized python coverage (CYTHONIZE\_PY) Implies NO\_CLANG\_COVERAGE() - right now, we can't disable instrumentation for .py.cpp files, but enable for .cpp -###### Macro [NO\_DEBUG\_INFO][]() <a name="macro_NO_DEBUG_INFO"></a> -Compile files without debug info collection. - +###### Macro [NO\_DEBUG\_INFO][]() <a name="macro_NO_DEBUG_INFO"></a> +Compile files without debug info collection. + ###### Macro [NO\_DOCTESTS][]() <a name="macro_NO_DOCTESTS"></a> Disable doctests in PY[|3|23\_]TEST @@ -2174,162 +2174,162 @@ Anyway, preferred way is to move such files into separate dir and don't use this Also see: https://docs.yandex-team.ru/ya-make/manual/python/vars#y\_python\_extended\_source\_search for details -###### Macro [NO\_JOIN\_SRC][]() _# deprecated, does-nothing_ <a name="macro_NO_JOIN_SRC"></a> +###### Macro [NO\_JOIN\_SRC][]() _# deprecated, does-nothing_ <a name="macro_NO_JOIN_SRC"></a> This macro currently does nothing. This is default behavior which cannot be overridden at module level. - -###### Macro [NO\_LIBC][]() <a name="macro_NO_LIBC"></a> -Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata). -Note: use this with care. libc most likely will be linked into executable anyway, -so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. - -###### Macro [NO\_LINT][]() <a name="macro_NO_LINT"></a> -Do not check for style files included in PY\_SRCS, TEST\_SRCS, JAVA\_SRCS. - + +###### Macro [NO\_LIBC][]() <a name="macro_NO_LIBC"></a> +Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata). +Note: use this with care. libc most likely will be linked into executable anyway, +so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. + +###### Macro [NO\_LINT][]() <a name="macro_NO_LINT"></a> +Do not check for style files included in PY\_SRCS, TEST\_SRCS, JAVA\_SRCS. + ###### Macro [NO\_MYPY][]() <a name="macro_NO_MYPY"></a> Not documented yet. -###### Macro [NO\_NEED\_CHECK][]() <a name="macro_NO_NEED_CHECK"></a> -Commits to the project marked with this macro will not be affected by higher-level NEED\_CHECK macro. - -###### Macro [NO\_OPTIMIZE][]() <a name="macro_NO_OPTIMIZE"></a> -Build code without any optimizations (-O0 mode). - +###### Macro [NO\_NEED\_CHECK][]() <a name="macro_NO_NEED_CHECK"></a> +Commits to the project marked with this macro will not be affected by higher-level NEED\_CHECK macro. + +###### Macro [NO\_OPTIMIZE][]() <a name="macro_NO_OPTIMIZE"></a> +Build code without any optimizations (-O0 mode). + ###### Macro [NO\_OPTIMIZE\_PY\_PROTOS][]() <a name="macro_NO_OPTIMIZE_PY_PROTOS"></a> -Disable Python proto optimization using embedding corresponding C++ code into binary. -Python protobuf runtime will use C++ implementation instead of Python one if former is available. -This is default mode only for some system libraries. - -###### Macro [NO\_PLATFORM][]() <a name="macro_NO_PLATFORM"></a> -Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata) and set NO\_PLATFORM variable for special processing. -Note: use this with care. libc most likely will be linked into executable anyway, -so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. - +Disable Python proto optimization using embedding corresponding C++ code into binary. +Python protobuf runtime will use C++ implementation instead of Python one if former is available. +This is default mode only for some system libraries. + +###### Macro [NO\_PLATFORM][]() <a name="macro_NO_PLATFORM"></a> +Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata) and set NO\_PLATFORM variable for special processing. +Note: use this with care. libc most likely will be linked into executable anyway, +so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. + ###### Macro [NO\_PLATFORM\_RESOURCES][]() _# internal_ <a name="macro_NO_PLATFORM_RESOURCES"></a> Exclude dependency on platform resources libraries. -Most probably you'll never need this. If you think you need, please contact devtools@ for assistance. - +Most probably you'll never need this. If you think you need, please contact devtools@ for assistance. + ###### Macro [NO\_PYTHON\_COVERAGE][]() <a name="macro_NO_PYTHON_COVERAGE"></a> Disable python coverage for module -###### Macro [NO\_PYTHON\_INCLUDES][]() _# internal_ <a name="macro_NO_PYTHON_INCLUDES"></a> -Disable dependencies on libraries providing Python headers. -This is only used in Python libraries themselves to avoid PEERDIR loops. - -###### Macro [NO\_RUNTIME][]() <a name="macro_NO_RUNTIME"></a> -This macro: -1. Sets the ENABLE(NOUTIL) + DISABLE(USE\_INTERNAL\_STL); -2. If the project that contains the macro NO\_RUNTIME(), peerdir-it project does not contain NO\_RUNTIME() => Warning. -Note: use this with care. Arcadia STL most likely will be linked into executable anyway, so using STL headers/functions/classes -may not be detected at build time and may lead to unpredictable behavors at configure time. - -###### Macro [NO\_SANITIZE][]() <a name="macro_NO_SANITIZE"></a> -Disable all sanitizers for the module. - -###### Macro [NO\_SANITIZE\_COVERAGE][]() <a name="macro_NO_SANITIZE_COVERAGE"></a> -Disable lightweight coverage (-fsanitize-coverage) for the module. - -###### Macro [NO\_SSE4][]() <a name="macro_NO_SSE4"></a> -Compile module without SSE4 - -###### Macro [NO\_UTIL][]() <a name="macro_NO_UTIL"></a> -Build module without dependency on util. -Note: use this with care. Util most likely will be linked into executable anyway, -so using util headers/functions/classes may not be detected at build time and may lead to unpredictable behavors at configure time. - -###### Macro [NO\_WERROR][]() <a name="macro_NO_WERROR"></a> -Override WERROR() behavior -Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. - -###### Macro [NO\_WSHADOW][]() <a name="macro_NO_WSHADOW"></a> -Disable C++ shadowing warnings. - +###### Macro [NO\_PYTHON\_INCLUDES][]() _# internal_ <a name="macro_NO_PYTHON_INCLUDES"></a> +Disable dependencies on libraries providing Python headers. +This is only used in Python libraries themselves to avoid PEERDIR loops. + +###### Macro [NO\_RUNTIME][]() <a name="macro_NO_RUNTIME"></a> +This macro: +1. Sets the ENABLE(NOUTIL) + DISABLE(USE\_INTERNAL\_STL); +2. If the project that contains the macro NO\_RUNTIME(), peerdir-it project does not contain NO\_RUNTIME() => Warning. +Note: use this with care. Arcadia STL most likely will be linked into executable anyway, so using STL headers/functions/classes +may not be detected at build time and may lead to unpredictable behavors at configure time. + +###### Macro [NO\_SANITIZE][]() <a name="macro_NO_SANITIZE"></a> +Disable all sanitizers for the module. + +###### Macro [NO\_SANITIZE\_COVERAGE][]() <a name="macro_NO_SANITIZE_COVERAGE"></a> +Disable lightweight coverage (-fsanitize-coverage) for the module. + +###### Macro [NO\_SSE4][]() <a name="macro_NO_SSE4"></a> +Compile module without SSE4 + +###### Macro [NO\_UTIL][]() <a name="macro_NO_UTIL"></a> +Build module without dependency on util. +Note: use this with care. Util most likely will be linked into executable anyway, +so using util headers/functions/classes may not be detected at build time and may lead to unpredictable behavors at configure time. + +###### Macro [NO\_WERROR][]() <a name="macro_NO_WERROR"></a> +Override WERROR() behavior +Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. + +###### Macro [NO\_WSHADOW][]() <a name="macro_NO_WSHADOW"></a> +Disable C++ shadowing warnings. + ###### Macro [NVCC\_DEVICE\_LINK][](file.cu...) <a name="macro_NVCC_DEVICE_LINK"></a> Run nvcc --device-link on objects compiled from srcs with --device-c. This generates a stub object devlink.o that supplies missing pieces for the host linker to link relocatable device objects into the final executable. -###### Macro [ONLY\_TAGS][](tags...) _# builtin_ <a name="macro_ONLY_TAGS"></a> -Instantiate from multimodule only variants with tags listed - +###### Macro [ONLY\_TAGS][](tags...) _# builtin_ <a name="macro_ONLY_TAGS"></a> +Instantiate from multimodule only variants with tags listed + ###### Macro [OPENSOURCE\_EXPORT\_REPLACEMENT][](CMAKE PkgName CMAKE\_TARGET PkgName::PkgTarget CONAN ConanRef CMAKE\_COMPONENT OptCmakePkgComponent) <a name="macro_OPENSOURCE_EXPORT_REPLACEMENT"></a> Use specified conan/system pacakcge when exporting cmake build scripts for arcadia C++ project for opensource publication. -###### Macro [OPTIMIZE\_PY\_PROTOS][]() _# internal_ <a name="macro_OPTIMIZE_PY_PROTOS"></a> -Enable Python proto optimization by embedding corresponding C++ code into binary. -Python protobuf runtime will use C++ implementation instead of Python one if former is available. +###### Macro [OPTIMIZE\_PY\_PROTOS][]() _# internal_ <a name="macro_OPTIMIZE_PY_PROTOS"></a> +Enable Python proto optimization by embedding corresponding C++ code into binary. +Python protobuf runtime will use C++ implementation instead of Python one if former is available. This is default mode for most PROTO\_LIBRARY's and PY2\_LIBRARY's, some system ones being exceptions. - + ###### Macro [ORIGINAL\_SOURCE][](Source) <a name="macro_ORIGINAL_SOURCE"></a> This macro specifies the source repository for contrib Does nothing now (just a placeholder for future functionality) See https://st.yandex-team.ru/DTCC-316 -###### Macro [OWNER][](owners...) _# builtin_ <a name="macro_OWNER"></a> -Add reviewers/responsibles of the code. -In the OWNER macro you can use: -1. login-s from staff.yandex-team.ru -2. Review group (to specify the Code-review group need to use the prefix g:) - -Ask devtools@yandex-team.ru if you need more information - -###### Macro [PACK][](archive\_type) <a name="macro_PACK"></a> +###### Macro [OWNER][](owners...) _# builtin_ <a name="macro_OWNER"></a> +Add reviewers/responsibles of the code. +In the OWNER macro you can use: +1. login-s from staff.yandex-team.ru +2. Review group (to specify the Code-review group need to use the prefix g:) + +Ask devtools@yandex-team.ru if you need more information + +###### Macro [PACK][](archive\_type) <a name="macro_PACK"></a> When placed inside the PACKAGE module, packs the build results tree to the archive with specified extension. Currently supported extensions are `tar` and `tar.gz` - + Is not allowed other module types than PACKAGE(). @see: [PACKAGE()](#module\_PACKAGE) -###### Macro [PACKAGE\_STRICT][]() <a name="macro_PACKAGE_STRICT"></a> -Not documented yet. - +###### Macro [PACKAGE\_STRICT][]() <a name="macro_PACKAGE_STRICT"></a> +Not documented yet. + ###### Macro [PACK\_GLOBALS\_IN\_LIBRARY][]() <a name="macro_PACK_GLOBALS_IN_LIBRARY"></a> Not documented yet. -###### Macro [PARTITIONED\_RECURSE][]([BALANCING\_CONFIG config] [LOCAL] dirs...) _# builtin_ <a name="macro_PARTITIONED_RECURSE"></a> -Add directories to the build -All projects must be reachable from the root chain RECURSE() for monorepo continuous integration functionality. -Arguments are processed in chunks - -###### Macro [PARTITIONED\_RECURSE\_FOR\_TESTS][]([BALANCING\_CONFIG config] [LOCAL] dirs...) _# builtin_ <a name="macro_PARTITIONED_RECURSE_FOR_TESTS"></a> -Add directories to the build if tests are demanded. -Arguments are processed in chunks - -###### Macro [PARTITIONED\_RECURSE\_ROOT\_RELATIVE][]([BALANCING\_CONFIG config] dirlist) _# builtin_ <a name="macro_PARTITIONED_RECURSE_ROOT_RELATIVE"></a> -In comparison with RECURSE(), in dirlist there must be a directory relative to the root (${ARCADIA\_ROOT}). -Arguments are processed in chunks - -###### Macro [PEERDIR][](dirs...) _# builtin_ <a name="macro_PEERDIR"></a> -Specify project dependencies -Indicates that the project depends on all of the projects from the list of dirs. -Libraries from these directories will be collected and linked to the current target if the target is executable or sharedlib/dll. -If the current target is a static library, the specified directories will not be built, but they will be linked to any executable target that will link the current library. -@params: +###### Macro [PARTITIONED\_RECURSE][]([BALANCING\_CONFIG config] [LOCAL] dirs...) _# builtin_ <a name="macro_PARTITIONED_RECURSE"></a> +Add directories to the build +All projects must be reachable from the root chain RECURSE() for monorepo continuous integration functionality. +Arguments are processed in chunks + +###### Macro [PARTITIONED\_RECURSE\_FOR\_TESTS][]([BALANCING\_CONFIG config] [LOCAL] dirs...) _# builtin_ <a name="macro_PARTITIONED_RECURSE_FOR_TESTS"></a> +Add directories to the build if tests are demanded. +Arguments are processed in chunks + +###### Macro [PARTITIONED\_RECURSE\_ROOT\_RELATIVE][]([BALANCING\_CONFIG config] dirlist) _# builtin_ <a name="macro_PARTITIONED_RECURSE_ROOT_RELATIVE"></a> +In comparison with RECURSE(), in dirlist there must be a directory relative to the root (${ARCADIA\_ROOT}). +Arguments are processed in chunks + +###### Macro [PEERDIR][](dirs...) _# builtin_ <a name="macro_PEERDIR"></a> +Specify project dependencies +Indicates that the project depends on all of the projects from the list of dirs. +Libraries from these directories will be collected and linked to the current target if the target is executable or sharedlib/dll. +If the current target is a static library, the specified directories will not be built, but they will be linked to any executable target that will link the current library. +@params: 1. As arguments PEERDIR you can only use the LIBRARY directory (the directory with the PROGRAM/DLL and derived from them are prohibited to use as arguments PEERDIR). -2. ADDINCL Keyword ADDINCL (written before the specified directory), adds the flag -I<path to library> the flags to compile the source code of the current project. -Perhaps it may be removed in the future (in favor of a dedicated ADDINCL) - +2. ADDINCL Keyword ADDINCL (written before the specified directory), adds the flag -I<path to library> the flags to compile the source code of the current project. +Perhaps it may be removed in the future (in favor of a dedicated ADDINCL) + ###### Macro [PIRE\_INLINE][](FILES...) <a name="macro_PIRE_INLINE"></a> Not documented yet. - + ###### Macro [PIRE\_INLINE\_CMD][](SRC) <a name="macro_PIRE_INLINE_CMD"></a> Not documented yet. - + ###### Macro [PRIMARY\_OUTPUT][]\_VALUE(Output) _# internal_ <a name="macro_PRIMARY_OUTPUT"></a> The use of this module is strictly prohibited!!! -###### Macro [PRINT\_MODULE\_TYPE][] <a name="macro_PRINT_MODULE_TYPE"></a> -Not documented yet. - -###### Macro [PROCESS\_DOCS][] <a name="macro_PROCESS_DOCS"></a> -Not documented yet. - +###### Macro [PRINT\_MODULE\_TYPE][] <a name="macro_PRINT_MODULE_TYPE"></a> +Not documented yet. + +###### Macro [PROCESS\_DOCS][] <a name="macro_PROCESS_DOCS"></a> +Not documented yet. + ###### Macro PROGURAD\_RULES(ProguardRuleFiles...) <a name="macro_PROGUARD_RULES"></a> This macro is strictly prohibited to use outside of mapsmobi project -###### Macro [PROTO2FBS][](InputProto) <a name="macro_PROTO2FBS"></a> +###### Macro [PROTO2FBS][](InputProto) <a name="macro_PROTO2FBS"></a> Produce flatbuf schema out of protobuf description. - + ###### Macro [PROTO\_ADDINCL][]([GLOBAL] [WITH\_GEN] Path) <a name="macro_PROTO_ADDINCL"></a> This macro introduces proper ADDINCLs for .proto-files found in sources and .cpp/.h generated files, supplying them to appropriate commands and allowing @@ -2349,29 +2349,29 @@ PROTO\_LIBRARY with PROTO\_NAMESPACE(GLOBAL ) is enough at user side to correctl If generated .proto files are going to be used for building a module than use of WITH\_GEN parameter will add appropriate dir from the build root for .proto files search. -###### Macro [PROVIDES][](Name...) <a name="macro_PROVIDES"></a> -Specifies provided features. The names must be correct C identifiers. -This prevents different libraries providing the same features to be linked into one program. - +###### Macro [PROVIDES][](Name...) <a name="macro_PROVIDES"></a> +Specifies provided features. The names must be correct C identifiers. +This prevents different libraries providing the same features to be linked into one program. + ###### Macro [PYTHON][](script\_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[\_NOAUTO] outputs...] [STDOUT[\_NOAUTO] output] [OUTPUT\_INCLUDES output\_includes...] [REQUIREMENTS reqs]) <a name="macro_PYTHON"></a> Run a python script with $(PYTHON)/python built from devtools/huge\_python. These macros are similar: RUN\_PROGRAM, LUA, PYTHON. - -Parameters: -- script\_path - Path to the script. -- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. -- CWD dir - Absolute path of the working directory. -- ENV key=value... - Environment variables. -- TOOL tools... - Auxiliary tool directories. -- IN inputs... - Input files. -- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. -- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. -- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. + +Parameters: +- script\_path - Path to the script. +- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. +- CWD dir - Absolute path of the working directory. +- ENV key=value... - Environment variables. +- TOOL tools... - Auxiliary tool directories. +- IN inputs... - Input files. +- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. +- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. +- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. - REQUIREMENTS - Override default requirements for CPU and RAM - -For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or -${CURDIR} and ${BINDIR} which are expanded where the outputs are used. - + +For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or +${CURDIR} and ${BINDIR} which are expanded where the outputs are used. + ###### Macro [PYTHON2\_ADDINCL][]() <a name="macro_PYTHON2_ADDINCL"></a> This macro adds include path for Python headers (Python 2.x variant) without PEERDIR. This should be used in 2 cases only: @@ -2383,35 +2383,35 @@ Never use this macro in PY2\_PROGRAM, PY2\_LIBRARY and PY23\_LIBRARY: they have Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs -###### Macro [PYTHON2\_MODULE][]() <a name="macro_PYTHON2_MODULE"></a> -Use in PY\_ANY\_MODULE to set it up for Python 2.x. - -###### Macro [PYTHON3\_ADDINCL][]() <a name="macro_PYTHON3_ADDINCL"></a> -This macro adds include path for Python headers (Python 3.x variant). -This should be used in 2 cases only: +###### Macro [PYTHON2\_MODULE][]() <a name="macro_PYTHON2_MODULE"></a> +Use in PY\_ANY\_MODULE to set it up for Python 2.x. + +###### Macro [PYTHON3\_ADDINCL][]() <a name="macro_PYTHON3_ADDINCL"></a> +This macro adds include path for Python headers (Python 3.x variant). +This should be used in 2 cases only: - In PY2MODULE since it compiles into .so and uses external Python runtime; -- In system Python libraries themselves since peerdir there may create a loop; -In all other cases use USE\_PYTHON3() macro instead. - -Never use this macro in PY3\_PROGRAM and PY3\_LIBRARY and PY23\_LIBRARY: they have everything by default. - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs - -###### Macro [PYTHON3\_MODULE][]() <a name="macro_PYTHON3_MODULE"></a> -Use in PY\_ANY\_MODULE to set it up for Python 3.x. - -###### Macro [PYTHON\_PATH][](Path) <a name="macro_PYTHON_PATH"></a> -Set path to Python that will be used to runs scripts in tests - +- In system Python libraries themselves since peerdir there may create a loop; +In all other cases use USE\_PYTHON3() macro instead. + +Never use this macro in PY3\_PROGRAM and PY3\_LIBRARY and PY23\_LIBRARY: they have everything by default. + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs + +###### Macro [PYTHON3\_MODULE][]() <a name="macro_PYTHON3_MODULE"></a> +Use in PY\_ANY\_MODULE to set it up for Python 3.x. + +###### Macro [PYTHON\_PATH][](Path) <a name="macro_PYTHON_PATH"></a> +Set path to Python that will be used to runs scripts in tests + ###### Macro [PY\_CONSTRUCTOR][](package.module[:func]) <a name="macro_PY_CONSTRUCTOR"></a> Specifies the module or function which will be started before python's main() init() is expected in the target module if no function is specified Can be considered as \_\_attribute\_\_((constructor)) for python -###### Macro PY\_DOCTEST(Packages...) <a name="macro_PY_DOCTESTS"></a> -Add to the test doctests for specified Python packages -The packages should be part of a test (listed as sources of the test or its PEERDIRs). - +###### Macro PY\_DOCTEST(Packages...) <a name="macro_PY_DOCTESTS"></a> +Add to the test doctests for specified Python packages +The packages should be part of a test (listed as sources of the test or its PEERDIRs). + ###### Macro [PY\_ENUMS\_SERIALIZATION][] <a name="macro_PY_ENUMS_SERIALIZATION"></a> Not documented yet. @@ -2419,19 +2419,19 @@ Not documented yet. Add extra Python files for linting. This macro allows adding Python files which has no .py extension. -###### Macro [PY\_MAIN][](package.module[:func]) <a name="macro_PY_MAIN"></a> -Specifies the module or function from which to start executing a python program - -Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipyprogrampy3programimakrospymain - -###### Macro [PY\_NAMESPACE][](prefix) <a name="macro_PY_NAMESPACE"></a> -Sets default Python namespace for all python sources in the module. -Especially suitable in PROTO\_LIBRARY where Python sources are generated and there is no PY\_SRCS to place NAMESPACE parameter. - -###### Macro [PY\_PROTOS\_FOR][](path/to/module) _#builtin, deprecated_ <a name="macro_PY_PROTOS_FOR"></a> -Use PROTO\_LIBRARY() in order to have .proto compiled into Python. -Generates pb2.py files out of .proto files and saves those into PACKAGE module - +###### Macro [PY\_MAIN][](package.module[:func]) <a name="macro_PY_MAIN"></a> +Specifies the module or function from which to start executing a python program + +Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipyprogrampy3programimakrospymain + +###### Macro [PY\_NAMESPACE][](prefix) <a name="macro_PY_NAMESPACE"></a> +Sets default Python namespace for all python sources in the module. +Especially suitable in PROTO\_LIBRARY where Python sources are generated and there is no PY\_SRCS to place NAMESPACE parameter. + +###### Macro [PY\_PROTOS\_FOR][](path/to/module) _#builtin, deprecated_ <a name="macro_PY_PROTOS_FOR"></a> +Use PROTO\_LIBRARY() in order to have .proto compiled into Python. +Generates pb2.py files out of .proto files and saves those into PACKAGE module + ###### Macro [PY\_PROTO\_PLUGIN][](Name Ext Tool DEPS <Dependencies>) <a name="macro_PY_PROTO_PLUGIN"></a> Define protoc plugin for python with given Name that emits extra output with provided Extension using Tool. Extra dependencies are passed via DEPS @@ -2441,45 +2441,45 @@ Define protoc plugin for python with given Name that emits 2 extra outputs with using Tool. Extra dependencies are passed via DEPS ###### Macro [PY\_REGISTER][]([package.]module\_name) <a name="macro_PY_REGISTER"></a> -Python knows about which built-ins can be imported, due to their registration in the Assembly or at the start of the interpreter. -All modules from the sources listed in PY\_SRCS() are registered automatically. -To register the modules from the sources in the SRCS(), you need to use PY\_REGISTER(). - -PY\_REGISTER(module\_name) initializes module globally via call to initmodule\_name() +Python knows about which built-ins can be imported, due to their registration in the Assembly or at the start of the interpreter. +All modules from the sources listed in PY\_SRCS() are registered automatically. +To register the modules from the sources in the SRCS(), you need to use PY\_REGISTER(). + +PY\_REGISTER(module\_name) initializes module globally via call to initmodule\_name() PY\_REGISTER(package.module\_name) initializes module in the specified package It renames its init function with CFLAGS(-Dinitmodule\_name=init7package11module\_name) or CFLAGS(-DPyInit\_module\_name=PyInit\_7package11module\_name) - -Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#makrospyregister - + +Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#makrospyregister + ###### Macro [PY\_REQUIREMENTS][]([cpu: <value>] [ram: <value>]) <a name="macro_PY_REQUIREMENTS"></a> Override CPU and RAM requirements for all Python build commands -###### Macro [PY\_SRCS][]({| CYTHON\_C} { | TOP\_LEVEL | NAMESPACE ns} Files...) <a name="macro_PY_SRCS"></a> +###### Macro [PY\_SRCS][]({| CYTHON\_C} { | TOP\_LEVEL | NAMESPACE ns} Files...) <a name="macro_PY_SRCS"></a> Build specified Python sources according to Arcadia binary Python build. Basically creates precompiled and source resources keyed with module paths. -The resources eventually are linked into final program and can be accessed as regular Python modules. -This custom loader linked into the program will add them to sys.meta\_path. - -PY\_SRCS also support .proto, .ev, .pyx and .swg files. The .proto and .ev are compiled to .py-code by protoc and than handled as usual .py files. -.pyx and .swg lead to C/C++ Python extensions generation, that are automatically registered in Python as built-in modules. - -By default .pyx files are built as C++-extensions. Use CYTHON\_C to build them as C (similar to BUILDWITH\_CYTHON\_C, but with the ability to specify namespace). - -\_\_init\_\_.py never required, but if present (and specified in PY\_SRCS), it will be imported when you import package modules with \_\_init\_\_.py Oh. - -@example - +The resources eventually are linked into final program and can be accessed as regular Python modules. +This custom loader linked into the program will add them to sys.meta\_path. + +PY\_SRCS also support .proto, .ev, .pyx and .swg files. The .proto and .ev are compiled to .py-code by protoc and than handled as usual .py files. +.pyx and .swg lead to C/C++ Python extensions generation, that are automatically registered in Python as built-in modules. + +By default .pyx files are built as C++-extensions. Use CYTHON\_C to build them as C (similar to BUILDWITH\_CYTHON\_C, but with the ability to specify namespace). + +\_\_init\_\_.py never required, but if present (and specified in PY\_SRCS), it will be imported when you import package modules with \_\_init\_\_.py Oh. + +@example + PY2_LIBRARY(mymodule) - PY_SRCS(a.py sub/dir/b.py e.proto sub/dir/f.proto c.pyx sub/dir/d.pyx g.swg sub/dir/h.swg) - END() - -PY\_SRCS honors Python2 and Python3 differences and adjusts itself to Python version of a current module. -PY\_SRCS can be used in any Arcadia Python build modules like PY\*\_LIBRARY, PY\*\_PROGRAM, PY\*TEST. + PY_SRCS(a.py sub/dir/b.py e.proto sub/dir/f.proto c.pyx sub/dir/d.pyx g.swg sub/dir/h.swg) + END() + +PY\_SRCS honors Python2 and Python3 differences and adjusts itself to Python version of a current module. +PY\_SRCS can be used in any Arcadia Python build modules like PY\*\_LIBRARY, PY\*\_PROGRAM, PY\*TEST. PY\_SRCS in LIBRARY or PROGRAM effectively converts these into PY2\_LIBRARY and PY2\_PROGRAM respectively. -It is strongly advised to make this conversion explicit. Never use PY\_SRCS in a LIBRARY if you plan to use it from external Python extension module. - -Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipylibrarypy3libraryimakrospysrcs - +It is strongly advised to make this conversion explicit. Never use PY\_SRCS in a LIBRARY if you plan to use it from external Python extension module. + +Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipylibrarypy3libraryimakrospysrcs + ###### Macro [PY\_SSQLS\_SRCS][](Srcs...) <a name="macro_PY_SSQLS_SRCS"></a> Not documented yet. @@ -2492,28 +2492,28 @@ $usage: REAL\_LINK\_EXEC\_DYN\_LIB\_IMPL(peers...) # internal ###### Macro [REAL\_LINK\_EXE\_IMPL][] <a name="macro_REAL_LINK_EXE_IMPL"></a> $usage: REAL\_LINK\_EXE\_IMPL(peers...) # internal -###### Macro [RECURSE][]([LOCAL] dirs...) _# builtin_ <a name="macro_RECURSE"></a> -Add directories to the build -All projects must be reachable from the root chain RECURSE() for monorepo continuous integration functionality - -###### Macro [RECURSE\_FOR\_TESTS][]([LOCAL] dirs...) _# builtin_ <a name="macro_RECURSE_FOR_TESTS"></a> +###### Macro [RECURSE][]([LOCAL] dirs...) _# builtin_ <a name="macro_RECURSE"></a> +Add directories to the build +All projects must be reachable from the root chain RECURSE() for monorepo continuous integration functionality + +###### Macro [RECURSE\_FOR\_TESTS][]([LOCAL] dirs...) _# builtin_ <a name="macro_RECURSE_FOR_TESTS"></a> Add directories to the build if tests are demanded. Use --force-build-depends flag if you want to build testing modules without tests running - -###### Macro [RECURSE\_ROOT\_RELATIVE][](dirlist) _# builtin_ <a name="macro_RECURSE_ROOT_RELATIVE"></a> -In comparison with RECURSE(), in dirlist there must be a directory relative to the root (${ARCADIA\_ROOT}) - + +###### Macro [RECURSE\_ROOT\_RELATIVE][](dirlist) _# builtin_ <a name="macro_RECURSE_ROOT_RELATIVE"></a> +In comparison with RECURSE(), in dirlist there must be a directory relative to the root (${ARCADIA\_ROOT}) + ###### Macro [REGISTER\_SANDBOX\_IMPORT][] <a name="macro_REGISTER_SANDBOX_IMPORT"></a> Not documented yet. -###### Macro [REGISTER\_YQL\_PYTHON\_UDF][] <a name="macro_REGISTER_YQL_PYTHON_UDF"></a> -Not documented yet. - -###### Macro [REQUIREMENTS][]([cpu:<count>] [disk\_usage:<size>] [ram:<size>] [ram\_disk:<size>] [container:<id>] [network:<restricted|full>] [dns:dns64]) <a name="macro_REQUIREMENTS"></a> -Allows you to specify the requirements of the test. - -Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ - +###### Macro [REGISTER\_YQL\_PYTHON\_UDF][] <a name="macro_REGISTER_YQL_PYTHON_UDF"></a> +Not documented yet. + +###### Macro [REQUIREMENTS][]([cpu:<count>] [disk\_usage:<size>] [ram:<size>] [ram\_disk:<size>] [container:<id>] [network:<restricted|full>] [dns:dns64]) <a name="macro_REQUIREMENTS"></a> +Allows you to specify the requirements of the test. + +Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ + ###### Macro [REQUIRES][](dirs...) <a name="macro_REQUIRES"></a> Specify list of dirs which this module must depend on indirectly. @@ -2532,43 +2532,43 @@ to be addressed by either ADDINCLs or marking them as TEXT. Please contact devto Add data (resources, random files, strings) to the program) The common usage is to place Src file into binary. The Key is used to access it using library/cpp/resource or library/python/resource. Alternative syntax with '- Key=Value' allows placing Value string as resource data into binary and make it accessible by Key. - -This is a simpler but less flexible option than ARCHIVE(), because in the case of ARCHIVE(), you have to use the data explicitly, + +This is a simpler but less flexible option than ARCHIVE(), because in the case of ARCHIVE(), you have to use the data explicitly, and in the case of RESOURCE(), the data will fall through SRCS() or SRCS(GLOBAL) to binary linking. - + Use the FORCE\_TEXT parameter to explicitly mark all Src files as text files: they will not be parsed unless used elsewhere. -@example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a2ispolzujjtekomanduresource - -@example: - - LIBRARY() +@example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a2ispolzujjtekomanduresource + +@example: + + LIBRARY() OWNER(user1) - + RESOURCE( path/to/file1 /key/in/program/1 path/to/file2 /key2 ) - END() - + END() + ###### Macro [RESOURCE\_FILES][]([DONT\_PARSE] [PREFIX {prefix}] [STRIP prefix\_to\_strip] {path}) <a name="macro_RESOURCE_FILES"></a> This macro expands into RESOURCE([DONT\_PARSE] {path} resfs/file/{prefix}{path} - resfs/src/resfs/file/{prefix}{remove\_prefix(path, prefix\_to\_strip)}={rootrel\_arc\_src(path)} -) - -resfs/src/{key} stores a source root (or build root) relative path of the -source of the value of the {key} resource. - -resfs/file/{key} stores any value whose source was a file on a filesystem. -resfs/src/resfs/file/{key} must store its path. - +) + +resfs/src/{key} stores a source root (or build root) relative path of the +source of the value of the {key} resource. + +resfs/file/{key} stores any value whose source was a file on a filesystem. +resfs/src/resfs/file/{key} must store its path. + DONT\_PARSE disables parsing for source code files (determined by extension) Please don't abuse: use separate DONT\_PARSE macro call only for files subject to parsing -This form is for use from other plugins: -RESOURCE\_FILES([DEST {dest}] {path}) expands into RESOURCE({path} resfs/file/{dest}) - +This form is for use from other plugins: +RESOURCE\_FILES([DEST {dest}] {path}) expands into RESOURCE({path} resfs/file/{dest}) + @see: https://wiki.yandex-team.ru/devtools/commandsandvars/resourcefiles/ ###### Macro [RESTRICT\_LICENSES][](ALLOW\_ONLY|DENY LicenseProperty...) <a name="macro_RESTRICT_LICENSES"></a> @@ -2585,18 +2585,18 @@ All macro invocation for the same module must use same constraints type (DENY or ###### Macro [RESTRICT\_PATH][] <a name="macro_RESTRICT_PATH"></a> Not documented yet. -###### Macro [RUN][] <a name="macro_RUN"></a> -Not documented yet. - +###### Macro [RUN][] <a name="macro_RUN"></a> +Not documented yet. + ###### Macro [RUN\_ANTLR][](Args...) <a name="macro_RUN_ANTLR"></a> Macro to invoke ANTLR3 generator (general case) - + ###### Macro [RUN\_ANTLR4][](Args...) <a name="macro_RUN_ANTLR4"></a> Macro to invoke ANTLR4 generator (general case) - + ###### Macro [RUN\_ANTLR4\_CPP][](GRAMMAR, OUTPUT\_INCLUDES, LISTENER, VISITOR, Args...) <a name="macro_RUN_ANTLR4_CPP"></a> Macro to invoke ANTLR4 generator (Cpp) - + ###### Macro [RUN\_ANTLR4\_GO][](GRAMMAR, OUTPUT\_INCLUDES, LISTENER, VISITOR, Args...) <a name="macro_RUN_ANTLR4_GO"></a> Macro to invoke ANTLR4 generator (Go) @@ -2604,29 +2604,29 @@ Macro to invoke ANTLR4 generator (Go) Not documented yet. ###### Macro [RUN\_PROGRAM][](tool\_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[\_NOAUTO] outputs...] [STDOUT[\_NOAUTO] output] [OUTPUT\_INCLUDES output\_includes...] [REQUIREMENTS reqs]) <a name="macro_RUN_PROGRAM"></a> -Run a program from arcadia. +Run a program from arcadia. These macros are similar: RUN\_PROGRAM, LUA, PYTHON. - -Parameters: -- tool\_path - Path to the directory of the tool. -- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. -- CWD dir - Absolute path of the working directory. -- ENV key=value... - Environment variables. -- TOOL tools... - Auxiliary tool directories. + +Parameters: +- tool\_path - Path to the directory of the tool. +- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. +- CWD dir - Absolute path of the working directory. +- ENV key=value... - Environment variables. +- TOOL tools... - Auxiliary tool directories. - IN inputs... - Input files -- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. -- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. -- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. +- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. +- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. +- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. - REQUIREMENTS - Override default requirements for CPU and RAM - -For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or -${CURDIR} and ${BINDIR} which are expanded where the outputs are used. + +For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or +${CURDIR} and ${BINDIR} which are expanded where the outputs are used. Note that Tool is always built for the host platform, so be careful to provide that tool can be built for all Arcadia major host platforms (Linux, MacOS and Windows). - -###### Macro [RUN\_PYTHON][](Args...) <a name="macro_RUN_PYTHON"></a> -Version of RUN() macro to invoke Python scripts -@see: [RUN()](#macro\_RUN) - + +###### Macro [RUN\_PYTHON][](Args...) <a name="macro_RUN_PYTHON"></a> +Version of RUN() macro to invoke Python scripts +@see: [RUN()](#macro\_RUN) + ###### Macro [SDBUS\_CPP\_ADAPTOR][](File) <a name="macro_SDBUS_CPP_ADAPTOR"></a> Not documented yet. @@ -2636,137 +2636,137 @@ Not documented yet. ###### Macro [SECONDARY\_OUTPUT][](filename) _# internal_ <a name="macro_SECONDARY_OUTPUT"></a> The use of this macro is strictly prohibited!!! -###### Macro [SET][](varname value) _#builtin_ <a name="macro_SET"></a> -Sets varname to value - -###### Macro [SETUP\_EXECTEST][] <a name="macro_SETUP_EXECTEST"></a> -Not documented yet. - +###### Macro [SET][](varname value) _#builtin_ <a name="macro_SET"></a> +Sets varname to value + +###### Macro [SETUP\_EXECTEST][] <a name="macro_SETUP_EXECTEST"></a> +Not documented yet. + ###### Macro [SETUP\_PYTEST\_BIN][] <a name="macro_SETUP_PYTEST_BIN"></a> -Not documented yet. - -###### Macro [SETUP\_RUN\_PYTHON][] <a name="macro_SETUP_RUN_PYTHON"></a> -Not documented yet. - -###### Macro [SET\_APPEND][](varname appendvalue) _#builtin_ <a name="macro_SET_APPEND"></a> -Appends appendvalue to varname's value using space as a separator - -###### Macro [SET\_APPEND\_WITH\_GLOBAL][](varname appendvalue) _#builtin_ <a name="macro_SET_APPEND_WITH_GLOBAL"></a> -Appends appendvalue to varname's value using space as a separator. -New value is propagated to dependants - +Not documented yet. + +###### Macro [SETUP\_RUN\_PYTHON][] <a name="macro_SETUP_RUN_PYTHON"></a> +Not documented yet. + +###### Macro [SET\_APPEND][](varname appendvalue) _#builtin_ <a name="macro_SET_APPEND"></a> +Appends appendvalue to varname's value using space as a separator + +###### Macro [SET\_APPEND\_WITH\_GLOBAL][](varname appendvalue) _#builtin_ <a name="macro_SET_APPEND_WITH_GLOBAL"></a> +Appends appendvalue to varname's value using space as a separator. +New value is propagated to dependants + ###### Macro [SET\_COMPILE\_OUTPUTS\_MODIFIERS][](NOREL?";norel":"") <a name="macro_SET_COMPILE_OUTPUTS_MODIFIERS"></a> Not documented yet. -###### Macro [SIZE][](SMALL/MEDIUM/LARGE) <a name="macro_SIZE"></a> -Set the 'size' for the test. Each 'size' has own set of resrtictions, SMALL bein the most restricted and LARGE being the list. -See documentation on test system for more details. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [SKIP\_TEST][](Reason) <a name="macro_SKIP_TEST"></a> -Skip the suite defined by test module. Provide a reason to be output in test execution report. - +###### Macro [SIZE][](SMALL/MEDIUM/LARGE) <a name="macro_SIZE"></a> +Set the 'size' for the test. Each 'size' has own set of resrtictions, SMALL bein the most restricted and LARGE being the list. +See documentation on test system for more details. + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [SKIP\_TEST][](Reason) <a name="macro_SKIP_TEST"></a> +Skip the suite defined by test module. Provide a reason to be output in test execution report. + ###### Macro [SOURCE\_GROUP][](...) _#builtin, deprecated_ <a name="macro_SOURCE_GROUP"></a> -Ignored - -###### Macro [SPLIT\_CODEGEN][](tool prefix opts... [OUT\_NUM num] [OUTPUT\_INCLUDES output\_includes...]) <a name="macro_SPLIT_CODEGEN"></a> -Generator of a certain number of parts of the .cpp file + one header .h file from .in - -Supports keywords: -1. OUT\_NUM <the number of generated Prefix.N.cpp default 25 (N varies from 0 to 24)> -2. OUTPUT\_INCLUDES <path to files that will be included in generalnyj of macro files> - -###### Macro [SPLIT\_DWARF][]() <a name="macro_SPLIT_DWARF"></a> -Emit debug info for the PROGRAM/DLL as a separate file <module\_name>.debug. +Ignored + +###### Macro [SPLIT\_CODEGEN][](tool prefix opts... [OUT\_NUM num] [OUTPUT\_INCLUDES output\_includes...]) <a name="macro_SPLIT_CODEGEN"></a> +Generator of a certain number of parts of the .cpp file + one header .h file from .in + +Supports keywords: +1. OUT\_NUM <the number of generated Prefix.N.cpp default 25 (N varies from 0 to 24)> +2. OUTPUT\_INCLUDES <path to files that will be included in generalnyj of macro files> + +###### Macro [SPLIT\_DWARF][]() <a name="macro_SPLIT_DWARF"></a> +Emit debug info for the PROGRAM/DLL as a separate file <module\_name>.debug. NB: It does not help you to save process RSS but can add problems (see e.g. BEGEMOT-2147). - -###### Macro [SPLIT\_FACTOR][](x) <a name="macro_SPLIT_FACTOR"></a> -Sets the number of chunks for parallel run tests when used in test module with FORK\_TESTS() or FORK\_SUBTESTS(). -If none of those is specified this macro implies FORK\_TESTS(). - -Supports C++ ut and PyTest. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [SRC][](File Flags...) <a name="macro_SRC"></a> -Compile single file with extra Flags. -Compilation is driven by the last extension of the File and Flags are specific to corresponding compilation command - -###### Macro [SRCDIR][](dirlist) _# builtin_ <a name="macro_SRCDIR"></a> -Add the specified directories to the list of those in which the source files will be searched -Available only for arcadia/contrib - -###### Macro [SRCS][](<[GLOBAL] File> ...) <a name="macro_SRCS"></a> -Source files of the project. Files are built according to their extension and put int module output or fed to ultimate PROGRAM/DLL depending on GLOBAL presence. -Arcadia Paths from the root and is relative to the project's LIST are supported - -GLOBAL marks next file as direct input to link phase of the program/shared library project built into. This prevents symbols of the file to be excluded by linker as unused. + +###### Macro [SPLIT\_FACTOR][](x) <a name="macro_SPLIT_FACTOR"></a> +Sets the number of chunks for parallel run tests when used in test module with FORK\_TESTS() or FORK\_SUBTESTS(). +If none of those is specified this macro implies FORK\_TESTS(). + +Supports C++ ut and PyTest. + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [SRC][](File Flags...) <a name="macro_SRC"></a> +Compile single file with extra Flags. +Compilation is driven by the last extension of the File and Flags are specific to corresponding compilation command + +###### Macro [SRCDIR][](dirlist) _# builtin_ <a name="macro_SRCDIR"></a> +Add the specified directories to the list of those in which the source files will be searched +Available only for arcadia/contrib + +###### Macro [SRCS][](<[GLOBAL] File> ...) <a name="macro_SRCS"></a> +Source files of the project. Files are built according to their extension and put int module output or fed to ultimate PROGRAM/DLL depending on GLOBAL presence. +Arcadia Paths from the root and is relative to the project's LIST are supported + +GLOBAL marks next file as direct input to link phase of the program/shared library project built into. This prevents symbols of the file to be excluded by linker as unused. The scope of the GLOBAL keyword is the following file (that is, in the case of SRCS(GLOBAL foo.cpp bar.cpp) global will be only foo.cpp) - -@example: - - LIBRARY(test_global) - SRCS(GLOBAL foo.cpp) - END() - -This will produce foo.o and feed it to any PROGRAM/DLL module transitively depending on test\_global library. The library itself will be empty and won't produce .a file. - -###### Macro [SRC\_CPP\_AVX][](File Flags...) <a name="macro_SRC_CPP_AVX"></a> -Compile single .cpp-file with AVX and extra Flags. - -###### Macro [SRC\_CPP\_AVX2][](File Flags...) <a name="macro_SRC_CPP_AVX2"></a> -Compile single .cpp-file with AVX2 and extra Flags. - + +@example: + + LIBRARY(test_global) + SRCS(GLOBAL foo.cpp) + END() + +This will produce foo.o and feed it to any PROGRAM/DLL module transitively depending on test\_global library. The library itself will be empty and won't produce .a file. + +###### Macro [SRC\_CPP\_AVX][](File Flags...) <a name="macro_SRC_CPP_AVX"></a> +Compile single .cpp-file with AVX and extra Flags. + +###### Macro [SRC\_CPP\_AVX2][](File Flags...) <a name="macro_SRC_CPP_AVX2"></a> +Compile single .cpp-file with AVX2 and extra Flags. + ###### Macro [SRC\_CPP\_PIC][](File Flags...) <a name="macro_SRC_CPP_PIC"></a> Compile single .c-file with -fPIC and extra Flags. -###### Macro [SRC\_CPP\_SSE2][](File Flags...) <a name="macro_SRC_CPP_SSE2"></a> -Compile single .cpp-file with SSE2 and extra Flags. - -###### Macro [SRC\_CPP\_SSE3][](File Flags...) <a name="macro_SRC_CPP_SSE3"></a> -Compile single .cpp-file with SSE3 and extra Flags. - -###### Macro [SRC\_CPP\_SSE4][](File Flags...) <a name="macro_SRC_CPP_SSE4"></a> -Compile single .cpp-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. - -###### Macro [SRC\_CPP\_SSE41][](File Flags...) <a name="macro_SRC_CPP_SSE41"></a> -Compile single .cpp-file with SSE4.1 and extra Flags. - -###### Macro [SRC\_CPP\_SSSE3][](File Flags...) <a name="macro_SRC_CPP_SSSE3"></a> -Compile single .cpp-file with SSSE3 and extra Flags. - -###### Macro [SRC\_C\_AVX][](File Flags...) <a name="macro_SRC_C_AVX"></a> -Compile single .c-file with AVX and extra Flags. - -###### Macro [SRC\_C\_AVX2][](File Flags...) <a name="macro_SRC_C_AVX2"></a> -Compile single .c-file with AVX2 and extra Flags. - -###### Macro [SRC\_C\_SSE2][](File Flags...) <a name="macro_SRC_C_SSE2"></a> -Compile single .c-file with SSE2 and extra Flags. - -###### Macro [SRC\_C\_SSE3][](File Flags...) <a name="macro_SRC_C_SSE3"></a> -Compile single .c-file with SSE3 and extra Flags. - -###### Macro [SRC\_C\_SSE4][](File Flags...) <a name="macro_SRC_C_SSE4"></a> -Compile single .c-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. - -###### Macro [SRC\_C\_SSE41][](File Flags...) <a name="macro_SRC_C_SSE41"></a> -Compile single .c-file with SSE4.1 and extra Flags. - -###### Macro [SRC\_C\_SSSE3][](File Flags...) <a name="macro_SRC_C_SSSE3"></a> -Compile single .c-file with SSSE3 and extra Flags. - +###### Macro [SRC\_CPP\_SSE2][](File Flags...) <a name="macro_SRC_CPP_SSE2"></a> +Compile single .cpp-file with SSE2 and extra Flags. + +###### Macro [SRC\_CPP\_SSE3][](File Flags...) <a name="macro_SRC_CPP_SSE3"></a> +Compile single .cpp-file with SSE3 and extra Flags. + +###### Macro [SRC\_CPP\_SSE4][](File Flags...) <a name="macro_SRC_CPP_SSE4"></a> +Compile single .cpp-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. + +###### Macro [SRC\_CPP\_SSE41][](File Flags...) <a name="macro_SRC_CPP_SSE41"></a> +Compile single .cpp-file with SSE4.1 and extra Flags. + +###### Macro [SRC\_CPP\_SSSE3][](File Flags...) <a name="macro_SRC_CPP_SSSE3"></a> +Compile single .cpp-file with SSSE3 and extra Flags. + +###### Macro [SRC\_C\_AVX][](File Flags...) <a name="macro_SRC_C_AVX"></a> +Compile single .c-file with AVX and extra Flags. + +###### Macro [SRC\_C\_AVX2][](File Flags...) <a name="macro_SRC_C_AVX2"></a> +Compile single .c-file with AVX2 and extra Flags. + +###### Macro [SRC\_C\_SSE2][](File Flags...) <a name="macro_SRC_C_SSE2"></a> +Compile single .c-file with SSE2 and extra Flags. + +###### Macro [SRC\_C\_SSE3][](File Flags...) <a name="macro_SRC_C_SSE3"></a> +Compile single .c-file with SSE3 and extra Flags. + +###### Macro [SRC\_C\_SSE4][](File Flags...) <a name="macro_SRC_C_SSE4"></a> +Compile single .c-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. + +###### Macro [SRC\_C\_SSE41][](File Flags...) <a name="macro_SRC_C_SSE41"></a> +Compile single .c-file with SSE4.1 and extra Flags. + +###### Macro [SRC\_C\_SSSE3][](File Flags...) <a name="macro_SRC_C_SSSE3"></a> +Compile single .c-file with SSSE3 and extra Flags. + ###### Macro [SRC\_RESOURCE][](Id) <a name="macro_SRC_RESOURCE"></a> Not documented yet. -###### Macro [STRIP][]() <a name="macro_STRIP"></a> -Strip debug info from a PROGRAM, DLL or TEST. -This macro doesn't work in LIBRARY's, UNION's and PACKAGE's. - -###### Macro [STRUCT\_CODEGEN][](Prefix) <a name="macro_STRUCT_CODEGEN"></a> -A special case BASE\_CODEGEN, in which the kernel/struct\_codegen/codegen\_tool tool is used. - +###### Macro [STRIP][]() <a name="macro_STRIP"></a> +Strip debug info from a PROGRAM, DLL or TEST. +This macro doesn't work in LIBRARY's, UNION's and PACKAGE's. + +###### Macro [STRUCT\_CODEGEN][](Prefix) <a name="macro_STRUCT_CODEGEN"></a> +A special case BASE\_CODEGEN, in which the kernel/struct\_codegen/codegen\_tool tool is used. + ###### Macro [STYLE][](Globs...) <a name="macro_STYLE"></a> Not documented yet. @@ -2788,39 +2788,39 @@ and tsan.supp for thread sanitizer suppressions respectively. See https://clang.llvm.org/docs/AddressSanitizer.html#suppressing-memory-leaks for details. -###### Macro [SYMLINK][](from to) <a name="macro_SYMLINK"></a> -Add symlink - -###### Macro [SYSTEM\_PROPERTIES][]([<Key Value>...] [<File Path>...]) <a name="macro_SYSTEM_PROPERTIES"></a> -List of Key,Value pairs that will be available to test via System.getProperty(). -FILE means that parst should be read from file specifies as Path. - -Documentation: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [TAG][] ([tag...]) <a name="macro_TAG"></a> -Each test can have one or more tags used to filter tests list for running. -There are also special tags affecting test behaviour, for example ya:external, sb:ssd. - -Documentation: https://wiki.yandex-team.ru/yatool/test/#obshhieponjatija - -###### Macro [TASKLET][]() <a name="macro_TASKLET"></a> -Not documented yet. - -###### Macro [TASKLET\_REG][](Name, Lang, Impl, Includes...) <a name="macro_TASKLET_REG"></a> -Not documented yet. - +###### Macro [SYMLINK][](from to) <a name="macro_SYMLINK"></a> +Add symlink + +###### Macro [SYSTEM\_PROPERTIES][]([<Key Value>...] [<File Path>...]) <a name="macro_SYSTEM_PROPERTIES"></a> +List of Key,Value pairs that will be available to test via System.getProperty(). +FILE means that parst should be read from file specifies as Path. + +Documentation: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [TAG][] ([tag...]) <a name="macro_TAG"></a> +Each test can have one or more tags used to filter tests list for running. +There are also special tags affecting test behaviour, for example ya:external, sb:ssd. + +Documentation: https://wiki.yandex-team.ru/yatool/test/#obshhieponjatija + +###### Macro [TASKLET][]() <a name="macro_TASKLET"></a> +Not documented yet. + +###### Macro [TASKLET\_REG][](Name, Lang, Impl, Includes...) <a name="macro_TASKLET_REG"></a> +Not documented yet. + ###### Macro [TASKLET\_REG\_EXT][](Name, Lang, Impl, Wrapper, Includes...) <a name="macro_TASKLET_REG_EXT"></a> Not documented yet. -###### Macro [TEST\_CWD][](path) <a name="macro_TEST_CWD"></a> -Defines working directory for test runs. Othen used in conjunction with DATA() macro. -Is only used inside of the TEST modules. - -Documentation: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [TEST\_DATA][] <a name="macro_TEST_DATA"></a> -Not documented yet. - +###### Macro [TEST\_CWD][](path) <a name="macro_TEST_CWD"></a> +Defines working directory for test runs. Othen used in conjunction with DATA() macro. +Is only used inside of the TEST modules. + +Documentation: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [TEST\_DATA][] <a name="macro_TEST_DATA"></a> +Not documented yet. + ###### Macro [TEST\_JAVA\_CLASSPATH\_CMD\_TYPE][](Type) <a name="macro_TEST_JAVA_CLASSPATH_CMD_TYPE"></a> Availible types: MANIFEST(default), COMMAND\_FILE, LIST Method for passing a classpath value to a java command line @@ -2828,37 +2828,37 @@ MANIFEST via empty jar file with manifest that cantains Class-Path attribute COMMAND\_FILE via @command\_file LIST via flat args -###### Macro [TEST\_SRCS][](Files...) <a name="macro_TEST_SRCS"></a> +###### Macro [TEST\_SRCS][](Files...) <a name="macro_TEST_SRCS"></a> In PY2TEST, PY3TEST and PY\*\_LIBRARY modules used as PY\_SRCS macro and additionally used to mine test cases to be executed by testing framework. - -Documentation: https://wiki.yandex-team.ru/yatool/test/#testynapytest - -###### Macro [TIMEOUT][](TIMEOUT) <a name="macro_TIMEOUT"></a> -Sets a timeout on test execution - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [TOUCH][](Outputs...) _# internal_ <a name="macro_TOUCH"></a> -Just introduce outputs - -###### Macro [UBERJAR][]() <a name="macro_UBERJAR"></a> + +Documentation: https://wiki.yandex-team.ru/yatool/test/#testynapytest + +###### Macro [TIMEOUT][](TIMEOUT) <a name="macro_TIMEOUT"></a> +Sets a timeout on test execution + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [TOUCH][](Outputs...) _# internal_ <a name="macro_TOUCH"></a> +Just introduce outputs + +###### Macro [UBERJAR][]() <a name="macro_UBERJAR"></a> UBERJAR is a single all-in-one jar-archive that includes all its Java dependencies (reachable PEERDIR). -It also supports shading classes inside the archive by moving them to a different package (similar to the maven-shade-plugin). -Use UBERJAR inside JAVA\_PROGRAM module. - -You can use the following macros to configure the archive: -1. UBERJAR\_HIDING\_PREFIX prefix for classes to shade (classes remain in their packages by default) +It also supports shading classes inside the archive by moving them to a different package (similar to the maven-shade-plugin). +Use UBERJAR inside JAVA\_PROGRAM module. + +You can use the following macros to configure the archive: +1. UBERJAR\_HIDING\_PREFIX prefix for classes to shade (classes remain in their packages by default) 2. UBERJAR\_HIDE\_EXCLUDE\_PATTERN exclude classes matching this patterns from shading (if enabled). -3. UBERJAR\_PATH\_EXCLUDE\_PREFIX the prefix for classes that should not get into the jar archive (all classes are placed into the archive by default) +3. UBERJAR\_PATH\_EXCLUDE\_PREFIX the prefix for classes that should not get into the jar archive (all classes are placed into the archive by default) 4. UBERJAR\_MANIFEST\_TRANSFORMER\_MAIN add ManifestResourceTransformer class to uberjar processing and specify main-class 5. UBERJAR\_MANIFEST\_TRANSFORMER\_ATTRIBUTE add ManifestResourceTransformer class to uberjar processing and specify some attribute 6. UBERJAR\_APPENDING\_TRANSFORMER add AppendingTransformer class to uberjar processing 7. UBERJAR\_SERVICES\_RESOURCE\_TRANSFORMER add ServicesResourceTransformer class to uberjar processing - -Documentation: https://wiki.yandex-team.ru/yatool/java/ - -@see: [JAVA\_PROGRAM](#module\_JAVA\_PROGRAM), [UBERJAR\_HIDING\_PREFIX](#macro\_UBERJAR\_HIDING\_PREFIX), [UBERJAR\_HIDE\_EXCLUDE\_PATTERN](#macro\_UBERJAR\_HIDE\_EXCLUDE\_PATTERN), [UBERJAR\_PATH\_EXCLUDE\_PREFIX](#macro\_UBERJAR\_PATH\_EXCLUDE\_PREFIX) - + +Documentation: https://wiki.yandex-team.ru/yatool/java/ + +@see: [JAVA\_PROGRAM](#module\_JAVA\_PROGRAM), [UBERJAR\_HIDING\_PREFIX](#macro\_UBERJAR\_HIDING\_PREFIX), [UBERJAR\_HIDE\_EXCLUDE\_PATTERN](#macro\_UBERJAR\_HIDE\_EXCLUDE\_PATTERN), [UBERJAR\_PATH\_EXCLUDE\_PREFIX](#macro\_UBERJAR\_PATH\_EXCLUDE\_PREFIX) + ###### Macro [UBERJAR\_APPENDING\_TRANSFORMER][](Resource) <a name="macro_UBERJAR_APPENDING_TRANSFORMER"></a> Add AppendingTransformer for UBERJAR() java programs @@ -2867,19 +2867,19 @@ Parameters: @see: [UBERJAR](#macro\_UBERJAR) -###### Macro [UBERJAR\_HIDE\_EXCLUDE\_PATTERN][](Args...) <a name="macro_UBERJAR_HIDE_EXCLUDE_PATTERN"></a> -Exculude classes matching this patterns from shading (if enabled). -Pattern may contain '\*' and '\*\*' globs. -Shading is enabled for UBERJAR program using UBERJAR\_HIDING\_PREFIX macro. If this macro is not specified all classes are shaded. - -@see: [UBERJAR](#macro\_UBERJAR), [UBERJAR\_HIDING\_PREFIX](#macro\_UBERJAR\_HIDING\_PREFIX) - -###### Macro [UBERJAR\_HIDING\_PREFIX][](Arg) <a name="macro_UBERJAR_HIDING_PREFIX"></a> -Set prefix for classes to shade. All classes in UBERJAR will be moved into package prefixed with Arg. -Classes remain in their packages by default. - -@see: [UBERJAR](#macro\_UBERJAR) - +###### Macro [UBERJAR\_HIDE\_EXCLUDE\_PATTERN][](Args...) <a name="macro_UBERJAR_HIDE_EXCLUDE_PATTERN"></a> +Exculude classes matching this patterns from shading (if enabled). +Pattern may contain '\*' and '\*\*' globs. +Shading is enabled for UBERJAR program using UBERJAR\_HIDING\_PREFIX macro. If this macro is not specified all classes are shaded. + +@see: [UBERJAR](#macro\_UBERJAR), [UBERJAR\_HIDING\_PREFIX](#macro\_UBERJAR\_HIDING\_PREFIX) + +###### Macro [UBERJAR\_HIDING\_PREFIX][](Arg) <a name="macro_UBERJAR_HIDING_PREFIX"></a> +Set prefix for classes to shade. All classes in UBERJAR will be moved into package prefixed with Arg. +Classes remain in their packages by default. + +@see: [UBERJAR](#macro\_UBERJAR) + ###### Macro [UBERJAR\_MANIFEST\_TRANSFORMER\_ATTRIBUTE][](Key, Value) <a name="macro_UBERJAR_MANIFEST_TRANSFORMER_ATTRIBUTE"></a> Transform manifest.mf for UBERJAR() java programs, set attribute @@ -2890,12 +2890,12 @@ Transform manifest.mf for UBERJAR() java programs, set main-class attribute @see: [UBERJAR](#macro\_UBERJAR) -###### Macro [UBERJAR\_PATH\_EXCLUDE\_PREFIX][](Args...) <a name="macro_UBERJAR_PATH_EXCLUDE_PREFIX"></a> -Exculude classes matching this patterns from UBERJAR. -By default all dependencies of UBERJAR program will lend in a .jar archive. - -@see: [UBERJAR](#macro\_UBERJAR) - +###### Macro [UBERJAR\_PATH\_EXCLUDE\_PREFIX][](Args...) <a name="macro_UBERJAR_PATH_EXCLUDE_PREFIX"></a> +Exculude classes matching this patterns from UBERJAR. +By default all dependencies of UBERJAR program will lend in a .jar archive. + +@see: [UBERJAR](#macro\_UBERJAR) + ###### Macro [UBERJAR\_SERVICES\_RESOURCE\_TRANSFORMER][]() <a name="macro_UBERJAR_SERVICES_RESOURCE_TRANSFORMER"></a> Add ServicesResourceTransformer for UBERJAR() java programs @@ -2914,9 +2914,9 @@ Not documented yet. Add dependency on C++ runtime Note: This macro is inteneded for use in \_GO\_BASE\_UNIT like module when the module is built without C++ runtime by default -###### Macro [USE\_ERROR\_PRONE][]() <a name="macro_USE_ERROR_PRONE"></a> -Use errorprone instead of javac for .java compilation. - +###### Macro [USE\_ERROR\_PRONE][]() <a name="macro_USE_ERROR_PRONE"></a> +Use errorprone instead of javac for .java compilation. + ###### Macro [USE\_EXT\_PROTO][](peerdir\_tag...) <a name="macro_USE_EXT_PROTO"></a> Configure module to use proto files from existing PROTO\_LIBRARY module. Additional PEERDIR tags required to build a module can be passed through @@ -2937,37 +2937,37 @@ Use lld linker for a program. This doesn't work in libraries ###### Macro [USE\_PERL\_514\_LIB][]() <a name="macro_USE_PERL_514_LIB"></a> Add dependency on Perl 5.14 to your LIBRARY -###### Macro [USE\_PERL\_LIB][]() <a name="macro_USE_PERL_LIB"></a> -Add dependency on Perl to your LIBRARY - +###### Macro [USE\_PERL\_LIB][]() <a name="macro_USE_PERL_LIB"></a> +Add dependency on Perl to your LIBRARY + ###### Macro [USE\_PLANTUML][]() <a name="macro_USE_PLANTUML"></a> Use PlantUML plug-in for yfm builder to render UML diagrams into documentation ###### Macro [USE\_PYTHON2][]() <a name="macro_USE_PYTHON2"></a> -This adds Python 2.x runtime library to your LIBRARY and makes it Python2-compatible. -Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. - +This adds Python 2.x runtime library to your LIBRARY and makes it Python2-compatible. +Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. + If you'd like to use #include <Python.h> with Python2 specify USE\_PYTHON2 or better make it PY2\_LIBRARY. -If you'd like to use #include <Python.h> with Python3 specify USE\_PYTHON3 or better make it PY3\_LIBRARY. -If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23\_LIBRARY. - +If you'd like to use #include <Python.h> with Python3 specify USE\_PYTHON3 or better make it PY3\_LIBRARY. +If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23\_LIBRARY. + @see: [PY2\_LIBRARY](#module\_PY2\_LIBRARY), [PY3\_LIBRARY](#module\_PY3\_LIBRARY), [PY23\_LIBRARY](#multimodule\_PY23\_LIBRARY) - + ###### Macro [USE\_PYTHON3][]() <a name="macro_USE_PYTHON3"></a> -This adds Python3 library to your LIBRARY and makes it Python3-compatible. -Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. - -If you'd like to use #include <Python.h> with Python3 specify USE\_PYTHON3 or better make it PY3\_LIBRARY. +This adds Python3 library to your LIBRARY and makes it Python3-compatible. +Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. + +If you'd like to use #include <Python.h> with Python3 specify USE\_PYTHON3 or better make it PY3\_LIBRARY. If you'd like to use #include <Python.h> with Python2 specify USE\_PYTHON2 or better make it PY2\_LIBRARY. -If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23\_LIBRARY. - +If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23\_LIBRARY. + @see: [PY2\_LIBRARY](#module\_PY2\_LIBRARY), [PY3\_LIBRARY](#module\_PY3\_LIBRARY), [PY23\_LIBRARY](#multimodule\_PY23\_LIBRARY) - -###### Macro [USE\_RECIPE][](path [arg1 arg2...]) <a name="macro_USE_RECIPE"></a> -Provides prepared environment via recipe for test. - -Documentation: https://wiki.yandex-team.ru/yatool/test/recipes - + +###### Macro [USE\_RECIPE][](path [arg1 arg2...]) <a name="macro_USE_RECIPE"></a> +Provides prepared environment via recipe for test. + +Documentation: https://wiki.yandex-team.ru/yatool/test/recipes + ###### Macro [USE\_SKIFF][]() _#wip, do not use_ <a name="macro_USE_SKIFF"></a> Use mapreduce/yt/skiff\_proto/plugin for C++ @@ -2979,18 +2979,18 @@ Note: This macro is intended for use in \_GO\_BASE\_UNIT like module when the mo Change uid for resource validation tests. May be useful when sandbox resource ttl is changed, but test status is cached in CI. You can change ext to change test's uid. For example VALIDATE\_DATA\_RESTART(X), where is X is current revision. -###### Macro [VERSION][](Args...) <a name="macro_VERSION"></a> -Specify version of a module. Currently unused by build system, only informative. - +###### Macro [VERSION][](Args...) <a name="macro_VERSION"></a> +Specify version of a module. Currently unused by build system, only informative. + ###### Macro [VISIBILITY][](level) <a name="macro_VISIBILITY"></a> This macro sets visibility level for symbols compiled for the current module. 'level' may take only one of the following values: DEFAULT, HIDDEN. -###### Macro [WERROR][]() <a name="macro_WERROR"></a> -Consider warnings as errors in the current module. -In the bright future will be removed, since WERROR is the default. -Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. - +###### Macro [WERROR][]() <a name="macro_WERROR"></a> +Consider warnings as errors in the current module. +In the bright future will be removed, since WERROR is the default. +Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. + ###### Macro [WHOLE\_ARCHIVE][](dirnames...) _# internal_ <a name="macro_WHOLE_ARCHIVE"></a> Not documented yet. @@ -3008,9 +3008,9 @@ Include dynamic libraries as extra PROGRAM/DLL outputs ###### Macro [WITH\_GROOVY][]() <a name="macro_WITH_GROOVY"></a> Compile groovy source code in this java module -###### Macro [WITH\_JDK][]() <a name="macro_WITH_JDK"></a> +###### Macro [WITH\_JDK][]() <a name="macro_WITH_JDK"></a> Add directory with JDK to JAVA\_PROGRAM output - + ###### Macro [WITH\_KOTLIN][]() <a name="macro_WITH_KOTLIN"></a> Compile kotlin source code in this java module @@ -3020,19 +3020,19 @@ Enable allopen kotlin compiler plugin https://kotlinlang.org/docs/all-open-plugi ###### Macro [WITH\_KOTLINC\_NOARG][](-flags) <a name="macro_WITH_KOTLINC_NOARG"></a> Enable noarg kotlin compiler plugin https://kotlinlang.org/docs/no-arg-plugin.html -###### Macro [XS\_PROTO][](InputProto Dir Outputs...) _# deprecated_ <a name="macro_XS_PROTO"></a> -Generate Perl code from protobuf. -In order to use this macro one should predict all outputs protoc will emit from input\_proto file and enlist those as outputs. - -###### Macro [YABS\_GENERATE\_CONF][] <a name="macro_YABS_GENERATE_CONF"></a> -Not documented yet. - -###### Macro [YABS\_GENERATE\_PHANTOM\_CONF\_PATCH][] <a name="macro_YABS_GENERATE_PHANTOM_CONF_PATCH"></a> -Not documented yet. - -###### Macro [YABS\_GENERATE\_PHANTOM\_CONF\_TEST\_CHECK][] <a name="macro_YABS_GENERATE_PHANTOM_CONF_TEST_CHECK"></a> -Not documented yet. - +###### Macro [XS\_PROTO][](InputProto Dir Outputs...) _# deprecated_ <a name="macro_XS_PROTO"></a> +Generate Perl code from protobuf. +In order to use this macro one should predict all outputs protoc will emit from input\_proto file and enlist those as outputs. + +###### Macro [YABS\_GENERATE\_CONF][] <a name="macro_YABS_GENERATE_CONF"></a> +Not documented yet. + +###### Macro [YABS\_GENERATE\_PHANTOM\_CONF\_PATCH][] <a name="macro_YABS_GENERATE_PHANTOM_CONF_PATCH"></a> +Not documented yet. + +###### Macro [YABS\_GENERATE\_PHANTOM\_CONF\_TEST\_CHECK][] <a name="macro_YABS_GENERATE_PHANTOM_CONF_TEST_CHECK"></a> +Not documented yet. + ###### Macro [YDL\_DESC\_USE\_BINARY][]() <a name="macro_YDL_DESC_USE_BINARY"></a> Used in conjunction with BUILD\_YDL\_DESC. When enabled, all generated descriptors are binary. @@ -3045,17 +3045,17 @@ Used in conjunction with BUILD\_YDL\_DESC. When enabled, all generated descripto This will generate descriptor Event.ydld in a binary format. -###### Macro [YMAPS\_SPROTO][](ProtoFiles...) _# maps-specific_ <a name="macro_YMAPS_SPROTO"></a> -Maps-specific .proto handling: generate .sproto.h files using maps/libs/sproto/sprotoc. - +###### Macro [YMAPS\_SPROTO][](ProtoFiles...) _# maps-specific_ <a name="macro_YMAPS_SPROTO"></a> +Maps-specific .proto handling: generate .sproto.h files using maps/libs/sproto/sprotoc. + ###### Macro [YP\_PROTO\_YSON][](Files... OUT\_OPTS Opts...) <a name="macro_YP_PROTO_YSON"></a> Genereate .yson.go from .proto using yp/go/yson/internal/proto-yson-gen/cmd/proto-yson-gen -###### Macro [YQL\_ABI\_VERSION][](major minor release)) <a name="macro_YQL_ABI_VERSION"></a> -Specifying the supported ABI for YQL\_UDF. - -@see: [YQL\_UDF()](#multimodule\_YQL\_UDF) - +###### Macro [YQL\_ABI\_VERSION][](major minor release)) <a name="macro_YQL_ABI_VERSION"></a> +Specifying the supported ABI for YQL\_UDF. + +@see: [YQL\_UDF()](#multimodule\_YQL\_UDF) + ###### Macro [YQL\_LAST\_ABI\_VERSION][]() <a name="macro_YQL_LAST_ABI_VERSION"></a> Use the last ABI for YQL\_UDF @@ -3085,9 +3085,9 @@ Not documented yet. ###### Macro [\_ADD\_JAVA\_STYLE\_CHECKS][] _#internal_ <a name="macro__ADD_JAVA_STYLE_CHECKS"></a> Not documented yet. -###### Macro [\_ADD\_PY\_PROTO\_OUT][](Suf) _#internal_ <a name="macro__ADD_PY_PROTO_OUT"></a> -Not documented yet. - +###### Macro [\_ADD\_PY\_PROTO\_OUT][](Suf) _#internal_ <a name="macro__ADD_PY_PROTO_OUT"></a> +Not documented yet. + ###### Macro [\_ADD\_YQL\_UDF\_DEPS][]() _#internal_ <a name="macro__ADD_YQL_UDF_DEPS"></a> Add all needed PEERDIRs to a YQL\_UDF. @@ -3096,44 +3096,44 @@ https://yql.yandex-team.ru/docs/yt/udf/cpp/ ###### Macro [\_ALL\_PY\_SRCS2][](TOP\_LEVEL?"TOP\_LEVEL":"", RECURSIVE?"/\*\*":"", NAMESPACE[], REST[]) _#internal_ <a name="macro__ALL_PY_SRCS2"></a> Not documented yet. -###### Macro [\_ARCADIA\_PYTHON3\_ADDINCL][]() _# internal_ <a name="macro__ARCADIA_PYTHON3_ADDINCL"></a> -This macro sets up Python3 headers for modules with Arcadia python (e.g. PY3\_LIBRARY) and configures module as Python 3.x. - +###### Macro [\_ARCADIA\_PYTHON3\_ADDINCL][]() _# internal_ <a name="macro__ARCADIA_PYTHON3_ADDINCL"></a> +This macro sets up Python3 headers for modules with Arcadia python (e.g. PY3\_LIBRARY) and configures module as Python 3.x. + ###### Macro [\_ARCADIA\_PYTHON\_ADDINCL][]() _# internal_ <a name="macro__ARCADIA_PYTHON_ADDINCL"></a> This macro sets up Python headers for modules with Arcadia python (e.g. PY2\_LIBRARY) and configures module as Python 2.x. - + ###### Macro [\_BARE\_LINK\_MODULE][]() _# internal_ <a name="macro__BARE_LINK_MODULE"></a> Remove unwanted dependencies for "empty" link module ###### Macro [\_BARE\_MODULE][]() _# internal_ <a name="macro__BARE_MODULE"></a> Remove unwanted dependencies for "empty" library module -###### Macro [\_BUILDWITH\_CYTHON\_CPP\_DEP][](Src Dep Options...) _# internal_ <a name="macro__BUILDWITH_CYTHON_CPP_DEP"></a> -Generates .cpp file from .pyx and attach extra input Dep. -If Dep changes the .cpp file will be re-generated. - -###### Macro [\_BUILDWITH\_CYTHON\_C\_API\_H][](Src Dep Options...) _# internal_ <a name="macro__BUILDWITH_CYTHON_C_API_H"></a> -BUILDWITH\_CYTHON\_C\_H with cdef api \_api.h file. - -###### Macro [\_BUILDWITH\_CYTHON\_C\_DEP][](Src Dep Options...) _# internal_ <a name="macro__BUILDWITH_CYTHON_C_DEP"></a> -Generates .c file from .pyx and attach extra input Dep. -If Dep changes the .c file will be re-generated. - -###### Macro [\_BUILDWITH\_CYTHON\_C\_H][](Src Dep Options...) _# internal_ <a name="macro__BUILDWITH_CYTHON_C_H"></a> -BUILDWITH\_CYTHON\_C without .pyx infix and with cdef public .h file. - -###### Macro [\_BUILD\_MNS\_CPP][](NAME="", CHECK?, RANKING\_SUFFIX="", Files...) _#internal_ <a name="macro__BUILD_MNS_CPP"></a> -Not documented yet. - -###### Macro [\_BUILD\_MNS\_FILE][](Input, Name, Output, Suffix, Check, Fml\_tool, AsmDataName) _#internal_ <a name="macro__BUILD_MNS_FILE"></a> -Not documented yet. - -###### Macro [\_BUILD\_MNS\_FILES][] _#internal_ <a name="macro__BUILD_MNS_FILES"></a> -Not documented yet. - -###### Macro [\_BUILD\_MNS\_HEADER][](NAME="", CHECK?, RANKING\_SUFFIX="", Files...) _#internal_ <a name="macro__BUILD_MNS_HEADER"></a> -Not documented yet. - +###### Macro [\_BUILDWITH\_CYTHON\_CPP\_DEP][](Src Dep Options...) _# internal_ <a name="macro__BUILDWITH_CYTHON_CPP_DEP"></a> +Generates .cpp file from .pyx and attach extra input Dep. +If Dep changes the .cpp file will be re-generated. + +###### Macro [\_BUILDWITH\_CYTHON\_C\_API\_H][](Src Dep Options...) _# internal_ <a name="macro__BUILDWITH_CYTHON_C_API_H"></a> +BUILDWITH\_CYTHON\_C\_H with cdef api \_api.h file. + +###### Macro [\_BUILDWITH\_CYTHON\_C\_DEP][](Src Dep Options...) _# internal_ <a name="macro__BUILDWITH_CYTHON_C_DEP"></a> +Generates .c file from .pyx and attach extra input Dep. +If Dep changes the .c file will be re-generated. + +###### Macro [\_BUILDWITH\_CYTHON\_C\_H][](Src Dep Options...) _# internal_ <a name="macro__BUILDWITH_CYTHON_C_H"></a> +BUILDWITH\_CYTHON\_C without .pyx infix and with cdef public .h file. + +###### Macro [\_BUILD\_MNS\_CPP][](NAME="", CHECK?, RANKING\_SUFFIX="", Files...) _#internal_ <a name="macro__BUILD_MNS_CPP"></a> +Not documented yet. + +###### Macro [\_BUILD\_MNS\_FILE][](Input, Name, Output, Suffix, Check, Fml\_tool, AsmDataName) _#internal_ <a name="macro__BUILD_MNS_FILE"></a> +Not documented yet. + +###### Macro [\_BUILD\_MNS\_FILES][] _#internal_ <a name="macro__BUILD_MNS_FILES"></a> +Not documented yet. + +###### Macro [\_BUILD\_MNS\_HEADER][](NAME="", CHECK?, RANKING\_SUFFIX="", Files...) _#internal_ <a name="macro__BUILD_MNS_HEADER"></a> +Not documented yet. + ###### Macro [\_BUNDLE\_TARGET][](Target, Destination) _#internal_ <a name="macro__BUNDLE_TARGET"></a> Not documented yet. @@ -3156,21 +3156,21 @@ Not documented yet. ###### Macro [\_CPP\_CFGPROTO\_CMD][](File) _#internal_ <a name="macro__CPP_CFGPROTO_CMD"></a> Not documented yet. -###### Macro [\_CPP\_EVLOG\_CMD][](File) _#internal_ <a name="macro__CPP_EVLOG_CMD"></a> -Not documented yet. - +###### Macro [\_CPP\_EVLOG\_CMD][](File) _#internal_ <a name="macro__CPP_EVLOG_CMD"></a> +Not documented yet. + ###### Macro [\_CPP\_FLATC64\_CMD][](SRC, SRCFLAGS...) _#internal_ <a name="macro__CPP_FLATC64_CMD"></a> Not documented yet. ###### Macro [\_CPP\_FLATC\_CMD][](SRC, SRCFLAGS...) _#internal_ <a name="macro__CPP_FLATC_CMD"></a> Not documented yet. -###### Macro [\_CPP\_PROTO\_CMD][](File) _#internal_ <a name="macro__CPP_PROTO_CMD"></a> -Not documented yet. - -###### Macro [\_CPP\_PROTO\_EVLOG\_CMD][](File) _#internal_ <a name="macro__CPP_PROTO_EVLOG_CMD"></a> -Not documented yet. - +###### Macro [\_CPP\_PROTO\_CMD][](File) _#internal_ <a name="macro__CPP_PROTO_CMD"></a> +Not documented yet. + +###### Macro [\_CPP\_PROTO\_EVLOG\_CMD][](File) _#internal_ <a name="macro__CPP_PROTO_EVLOG_CMD"></a> +Not documented yet. + ###### Macro [\_CPP\_VANILLA\_PROTO\_CMD][](File) _#internal_ <a name="macro__CPP_VANILLA_PROTO_CMD"></a> Not documented yet. @@ -3228,12 +3228,12 @@ requirements;hide ###### Macro [\_FROM\_NPM\_LOCKFILES][] _#internal_ <a name="macro__FROM_NPM_LOCKFILES"></a> Not documented yet. -###### Macro [\_GENERATE\_PY\_EVS\_INTERNAL][](FILES...) _#internal_ <a name="macro__GENERATE_PY_EVS_INTERNAL"></a> -Not documented yet. - -###### Macro [\_GENERATE\_PY\_PROTOS\_INTERNAL][](FILES...) _#internal_ <a name="macro__GENERATE_PY_PROTOS_INTERNAL"></a> -Not documented yet. - +###### Macro [\_GENERATE\_PY\_EVS\_INTERNAL][](FILES...) _#internal_ <a name="macro__GENERATE_PY_EVS_INTERNAL"></a> +Not documented yet. + +###### Macro [\_GENERATE\_PY\_PROTOS\_INTERNAL][](FILES...) _#internal_ <a name="macro__GENERATE_PY_PROTOS_INTERNAL"></a> +Not documented yet. + ###### Macro [\_GENTAR\_HELPER][](OUT\_DIR[], Args...) _#internal_ <a name="macro__GENTAR_HELPER"></a> Not documented yet. @@ -3249,15 +3249,15 @@ In globs are supported: Note: globs may slow down builds and may match to garbage if extra files present in working copy. Use with care and only if ultimately needed. -###### Macro [\_GO\_COMPILE\_CGO1][](NAME, FLAGS[], FILES...) _#internal_ <a name="macro__GO_COMPILE_CGO1"></a> -Not documented yet. - +###### Macro [\_GO\_COMPILE\_CGO1][](NAME, FLAGS[], FILES...) _#internal_ <a name="macro__GO_COMPILE_CGO1"></a> +Not documented yet. + ###### Macro [\_GO\_COMPILE\_CGO2][](NAME, C\_FILES[], S\_FILES[], OBJ\_FILES[], FILES...) _#internal_ <a name="macro__GO_COMPILE_CGO2"></a> -Not documented yet. - +Not documented yet. + ###### Macro [\_GO\_COMPILE\_SYMABIS][](FLAGS[], ASM\_FILES...) _#internal_ <a name="macro__GO_COMPILE_SYMABIS"></a> -Not documented yet. - +Not documented yet. + ###### Macro [\_GO\_EMBED\_DIR][](PATTERN) _# internal_ <a name="macro__GO_EMBED_DIR"></a> Define an embed directory DIR. @@ -3273,9 +3273,9 @@ wiil have .fbs.gosrc extension. This .fbs.gosrc is specially processed when ###### Macro [\_GO\_GEN\_COVER\_GO][](GO\_FILE, VAR\_ID) _#internal_ <a name="macro__GO_GEN_COVER_GO"></a> Not documented yet. -###### Macro [\_GO\_GRPC][]() _#internal_ <a name="macro__GO_GRPC"></a> -Not documented yet. - +###### Macro [\_GO\_GRPC][]() _#internal_ <a name="macro__GO_GRPC"></a> +Not documented yet. + ###### Macro [\_GO\_GRPC\_GATEWAY\_SRCS][](Files...) _#internal_ <a name="macro__GO_GRPC_GATEWAY_SRCS"></a> Not documented yet. @@ -3286,31 +3286,31 @@ Not documented yet. Not documented yet. ###### Macro [\_GO\_LINK\_EXE\_IMPL][](CGO\_FILES[], EXTRA\_INPUTS[], GO\_FILES...) _#internal_ <a name="macro__GO_LINK_EXE_IMPL"></a> -Not documented yet. - +Not documented yet. + ###### Macro [\_GO\_LINK\_LIB\_IMPL][](CGO\_FILES[], EXTRA\_INPUTS[], GO\_FILES...) _#internal_ <a name="macro__GO_LINK_LIB_IMPL"></a> -Not documented yet. - +Not documented yet. + ###### Macro [\_GO\_LINK\_TEST\_IMPL][](CGO\_FILES[], EXTRA\_INPUTS[], GO\_TEST\_FILES[], GO\_XTEST\_FILES[], GO\_FILES...) _#internal_ <a name="macro__GO_LINK_TEST_IMPL"></a> -Not documented yet. - -###### Macro [\_GO\_PROCESS\_SRCS][] _#internal_ <a name="macro__GO_PROCESS_SRCS"></a> -\_GO\_PROCESS\_SRCS() macro processes only 'CGO' files. All remaining \*.go files -and other input files are currently processed by a link command of the -GO module (GO\_LIBRARY, GO\_PROGRAM) - +Not documented yet. + +###### Macro [\_GO\_PROCESS\_SRCS][] _#internal_ <a name="macro__GO_PROCESS_SRCS"></a> +\_GO\_PROCESS\_SRCS() macro processes only 'CGO' files. All remaining \*.go files +and other input files are currently processed by a link command of the +GO module (GO\_LIBRARY, GO\_PROGRAM) + ###### Macro [\_GO\_PROTOC\_PLUGIN\_ARGS\_BASE][](Name, Tool, MAP[], PLUGINS[]) _#internal_ <a name="macro__GO_PROTOC_PLUGIN_ARGS_BASE"></a> -Not documented yet. - +Not documented yet. + ###### Macro [\_GO\_PROTOC\_PLUGIN\_ARGS\_BASE\_IMPL][](Name, Tool, PLUGINS...) _#internal_ <a name="macro__GO_PROTOC_PLUGIN_ARGS_BASE_IMPL"></a> Not documented yet. ###### Macro [\_GO\_PROTOC\_PLUGIN\_ARGS\_BASE\_PROXY][](Name, Tool, MAP[], PLUGINS[]) _#internal_ <a name="macro__GO_PROTOC_PLUGIN_ARGS_BASE_PROXY"></a> Not documented yet. -###### Macro [\_GO\_PROTO\_CMD][](File) _#internal_ <a name="macro__GO_PROTO_CMD"></a> -Not documented yet. - +###### Macro [\_GO\_PROTO\_CMD][](File) _#internal_ <a name="macro__GO_PROTO_CMD"></a> +Not documented yet. + ###### Macro [\_GO\_PROTO\_CMD\_IMPL][](File, OPTS[], OUTS[]) _#internal_ <a name="macro__GO_PROTO_CMD_IMPL"></a> Not documented yet. @@ -3321,9 +3321,9 @@ Not documented yet. This macro shouldn't be used in ya.make files, use SRCS() instead. This is internal macro collecting .go sources for processing within Go modules (GO\_PROGRAM and GO\_LIBRARY) -###### Macro [\_GO\_UNUSED\_SRCS][](FLAGS...) _#internal_ <a name="macro__GO_UNUSED_SRCS"></a> -Not documented yet. - +###### Macro [\_GO\_UNUSED\_SRCS][](FLAGS...) _#internal_ <a name="macro__GO_UNUSED_SRCS"></a> +Not documented yet. + ###### Macro [\_HASH\_HELPER][](Args...) _#internal_ <a name="macro__HASH_HELPER"></a> Not documented yet. @@ -3333,9 +3333,9 @@ Not documented yet. ###### Macro [\_INPUT\_WITH\_FLAG\_IMPL][](IN{input}[], Args...) _#internal_ <a name="macro__INPUT_WITH_FLAG_IMPL"></a> Not documented yet. -###### Macro [\_IOS\_ASSETS][](AssetsDir, Content...) _#internal_ <a name="macro__IOS_ASSETS"></a> -Not documented yet. - +###### Macro [\_IOS\_ASSETS][](AssetsDir, Content...) _#internal_ <a name="macro__IOS_ASSETS"></a> +Not documented yet. + ###### Macro [\_JAR\_ANN\_PROC\_OPTS][](Classes...) _#internal_ <a name="macro__JAR_ANN_PROC_OPTS"></a> Not documented yet. @@ -3345,18 +3345,18 @@ Not documented yet. ###### Macro [\_JAVAC\_RUN\_HELPER][](JAVAC\_CMD\_WITH\_ARGS...) _#internal_ <a name="macro__JAVAC_RUN_HELPER"></a> Not documented yet. -###### Macro [\_JAVA\_EVLOG\_CMD][](File) _#internal_ <a name="macro__JAVA_EVLOG_CMD"></a> -Not documented yet. - +###### Macro [\_JAVA\_EVLOG\_CMD][](File) _#internal_ <a name="macro__JAVA_EVLOG_CMD"></a> +Not documented yet. + ###### Macro [\_JAVA\_FLATC\_CMD][](fbs\_file) _# internal_ <a name="macro__JAVA_FLATC_CMD"></a> Create a tar archive of .java files generated by flatc for Java. Output tar acrchive will have .fbs.jsrc extension. Files with .fbs.jsrc extension will be added to results when --add-flatbuf-result flag is specified on the command line for 'ya make ...' -###### Macro [\_JAVA\_PROTO\_CMD][](File) _#internal_ <a name="macro__JAVA_PROTO_CMD"></a> -Not documented yet. - +###### Macro [\_JAVA\_PROTO\_CMD][](File) _#internal_ <a name="macro__JAVA_PROTO_CMD"></a> +Not documented yet. + ###### Macro [\_JAVA\_PROTO\_PLUGIN\_ARGS\_BASE][](Name, Tool, OutParm...) _#internal_ <a name="macro__JAVA_PROTO_PLUGIN_ARGS_BASE"></a> Not documented yet. @@ -3369,12 +3369,12 @@ Not documented yet. ###### Macro [\_LANG\_CFLAGS][](SRC) _#internal_ <a name="macro__LANG_CFLAGS"></a> Not documented yet. -###### Macro [\_LUAJIT\_21\_OBJDUMP][](Src, OUT="") _#internal_ <a name="macro__LUAJIT_21_OBJDUMP"></a> -Not documented yet. - -###### Macro [\_LUAJIT\_OBJDUMP][](Src, OUT="") _#internal_ <a name="macro__LUAJIT_OBJDUMP"></a> -Not documented yet. - +###### Macro [\_LUAJIT\_21\_OBJDUMP][](Src, OUT="") _#internal_ <a name="macro__LUAJIT_21_OBJDUMP"></a> +Not documented yet. + +###### Macro [\_LUAJIT\_OBJDUMP][](Src, OUT="") _#internal_ <a name="macro__LUAJIT_OBJDUMP"></a> +Not documented yet. + ###### Macro [\_MAKE\_YQL\_PYTHON\_UDF\_TEST][]() _#internal_ <a name="macro__MAKE_YQL_PYTHON_UDF_TEST"></a> Not documented yet. @@ -3407,12 +3407,12 @@ Not documented yet. ###### Macro [\_MSVC\_FLAGS\_WINDOWS\_IMPL][](target\_platform compiler\_flags) _# internal_ <a name="macro__MSVC_FLAGS_WINDOWS_IMPL"></a> Add CFLAGS when the firts argument is WINDOWS -###### Macro [\_MX\_BIN\_TO\_INFO][](Src) _#internal_ <a name="macro__MX_BIN_TO_INFO"></a> -Not documented yet. - -###### Macro [\_MX\_GEN\_TABLE][](Srcs...) _#internal_ <a name="macro__MX_GEN_TABLE"></a> -Not documented yet. - +###### Macro [\_MX\_BIN\_TO\_INFO][](Src) _#internal_ <a name="macro__MX_BIN_TO_INFO"></a> +Not documented yet. + +###### Macro [\_MX\_GEN\_TABLE][](Srcs...) _#internal_ <a name="macro__MX_GEN_TABLE"></a> +Not documented yet. + ###### Macro [\_NODE\_MODULES][](IN{input}[], OUT{output}[]) _#internal_ <a name="macro__NODE_MODULES"></a> Not documented yet. @@ -3429,67 +3429,67 @@ Not documented yet. Not documented yet. ###### Macro [\_PROTO\_PLUGIN\_ARGS\_BASE][](Name, Tool, OutParm...) _#internal_ <a name="macro__PROTO_PLUGIN_ARGS_BASE"></a> -Not documented yet. - -###### Macro [\_PY3\_COMPILE\_BYTECODE][](SrcX Src) _# internal_ <a name="macro__PY3_COMPILE_BYTECODE"></a> -Compile Python 3.x .py source file into Arcadia binary form suitable for PY3\_PROGRAM - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister - -###### Macro [\_PY3\_REGISTER][]() _# internal_ <a name="macro__PY3_REGISTER"></a> -Register Python 3.x module in internal resource file system. Arcadia Python 3.x importer will be retrieve these on import directive - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister - +Not documented yet. + +###### Macro [\_PY3\_COMPILE\_BYTECODE][](SrcX Src) _# internal_ <a name="macro__PY3_COMPILE_BYTECODE"></a> +Compile Python 3.x .py source file into Arcadia binary form suitable for PY3\_PROGRAM + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister + +###### Macro [\_PY3\_REGISTER][]() _# internal_ <a name="macro__PY3_REGISTER"></a> +Register Python 3.x module in internal resource file system. Arcadia Python 3.x importer will be retrieve these on import directive + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister + ###### Macro [\_PYCR\_GENERATE\_CONFIGS][](Package, App) _#internal_ <a name="macro__PYCR_GENERATE_CONFIGS"></a> Not documented yet. ###### Macro [\_PYCR\_GENERATE\_CONFIGS\_INTL][](Package, App, Configs...) _#internal_ <a name="macro__PYCR_GENERATE_CONFIGS_INTL"></a> Not documented yet. -###### Macro \_PYTHON\_ADDINCL() _# internal_ <a name="macro__PYTHON3_ADDINCL"></a> -This macro sets up Python 3.x headers for both Arcadia and non-Arcadia python. - +###### Macro \_PYTHON\_ADDINCL() _# internal_ <a name="macro__PYTHON3_ADDINCL"></a> +This macro sets up Python 3.x headers for both Arcadia and non-Arcadia python. + ###### Macro [\_PYTHON\_ADDINCL][]() _# internal_ <a name="macro__PYTHON_ADDINCL"></a> -This macro sets up Python 2.x headers for both Arcadia and non-Arcadia python. - -###### Macro [\_PY\_COMPILE\_BYTECODE][](SrcX Src) _# internal_ <a name="macro__PY_COMPILE_BYTECODE"></a> +This macro sets up Python 2.x headers for both Arcadia and non-Arcadia python. + +###### Macro [\_PY\_COMPILE\_BYTECODE][](SrcX Src) _# internal_ <a name="macro__PY_COMPILE_BYTECODE"></a> Compile Python 2.x .py source file into Arcadia binary form suitable for PY2\_PROGRAM - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister - + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister + ###### Macro [\_PY\_ENUM\_SERIALIZATION\_TO\_JSON][](File) _#internal_ <a name="macro__PY_ENUM_SERIALIZATION_TO_JSON"></a> Not documented yet. ###### Macro [\_PY\_ENUM\_SERIALIZATION\_TO\_PY][](File) _#internal_ <a name="macro__PY_ENUM_SERIALIZATION_TO_PY"></a> Not documented yet. -###### Macro [\_PY\_EVLOG\_CMD][](File) _#internal_ <a name="macro__PY_EVLOG_CMD"></a> -Not documented yet. - -###### Macro [\_PY\_EVLOG\_CMD\_BASE][](File, Suf, Args...) _#internal_ <a name="macro__PY_EVLOG_CMD_BASE"></a> -Not documented yet. - -###### Macro [\_PY\_EVLOG\_CMD\_INTERNAL][](File) _#internal_ <a name="macro__PY_EVLOG_CMD_INTERNAL"></a> -Not documented yet. - +###### Macro [\_PY\_EVLOG\_CMD][](File) _#internal_ <a name="macro__PY_EVLOG_CMD"></a> +Not documented yet. + +###### Macro [\_PY\_EVLOG\_CMD\_BASE][](File, Suf, Args...) _#internal_ <a name="macro__PY_EVLOG_CMD_BASE"></a> +Not documented yet. + +###### Macro [\_PY\_EVLOG\_CMD\_INTERNAL][](File) _#internal_ <a name="macro__PY_EVLOG_CMD_INTERNAL"></a> +Not documented yet. + ###### Macro [\_PY\_PROGRAM][] _#internal_ <a name="macro__PY_PROGRAM"></a> Not documented yet. -###### Macro [\_PY\_PROTO\_CMD][](File) _#internal_ <a name="macro__PY_PROTO_CMD"></a> -Not documented yet. - -###### Macro [\_PY\_PROTO\_CMD\_BASE][](File, Suf, Args...) _#internal_ <a name="macro__PY_PROTO_CMD_BASE"></a> -Not documented yet. - -###### Macro [\_PY\_PROTO\_CMD\_INTERNAL][](File) _#internal_ <a name="macro__PY_PROTO_CMD_INTERNAL"></a> -Not documented yet. - -###### Macro [\_PY\_REGISTER][]() _# internal_ <a name="macro__PY_REGISTER"></a> -Register Python 2.x module in internal resource file system. Arcadia Python 2.x importer will be retrieve these on import directive. - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister - +###### Macro [\_PY\_PROTO\_CMD][](File) _#internal_ <a name="macro__PY_PROTO_CMD"></a> +Not documented yet. + +###### Macro [\_PY\_PROTO\_CMD\_BASE][](File, Suf, Args...) _#internal_ <a name="macro__PY_PROTO_CMD_BASE"></a> +Not documented yet. + +###### Macro [\_PY\_PROTO\_CMD\_INTERNAL][](File) _#internal_ <a name="macro__PY_PROTO_CMD_INTERNAL"></a> +Not documented yet. + +###### Macro [\_PY\_REGISTER][]() _# internal_ <a name="macro__PY_REGISTER"></a> +Register Python 2.x module in internal resource file system. Arcadia Python 2.x importer will be retrieve these on import directive. + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister + ###### Macro [\_PY\_SSQLS\_SRC][](EXT, SRC, SRCFLAGS...) _#internal_ <a name="macro__PY_SSQLS_SRC"></a> Not documented yet. @@ -3499,9 +3499,9 @@ Not documented yet. ###### Macro \_PY\_SSQLS\_SRC("ssqls", SRC, SRCFLAGS...) _#internal_ <a name="macro__PY_SSQLS_SRC____ssqls"></a> Not documented yet. -###### Macro [\_PY\_TEST][] _#internal_ <a name="macro__PY_TEST"></a> -Not documented yet. - +###### Macro [\_PY\_TEST][] _#internal_ <a name="macro__PY_TEST"></a> +Not documented yet. + ###### Macro [\_RAW\_PROTO\_SRCS][](files...) _# internal_ <a name="macro__RAW_PROTO_SRCS"></a> \_RAW\_PROTO\_SRCS is a proxy macro to FILES macro which filters out GLOBAL keyword from the list of files (NOTE! The order of files listed @@ -3516,8 +3516,8 @@ Not documented yet. Not documented yet. ###### Macro [\_RUN\_JAVA][](IN{input}[], OUT{output}[], OUT\_NOAUTO{output}[], OUTPUT\_INCLUDES[], TOOL[], STDOUT="", STDOUT\_NOAUTO="", CWD="", ENV[], HIDE\_OUTPUT?"stderr2stdout":"stdout2stderr", REQUIREMENTS[], Args...) _#internal_ <a name="macro__RUN_JAVA"></a> -Not documented yet. - +Not documented yet. + ###### Macro [\_RUN\_JBUILD\_PROGRAM][] _#internal_ <a name="macro__RUN_JBUILD_PROGRAM"></a> Not documented yet. @@ -3527,165 +3527,165 @@ Not documented yet. ###### Macro [\_SET\_FIRST\_VALUE][](name args...) _# interanl internal_ <a name="macro__SET_FIRST_VALUE"></a> This macro sets the value of `name` vraiable to the value of next argument -###### Macro [\_SPLIT\_CODEGEN\_BASE][](tool prefix OUTS[] OUTPUT\_INCLUDES[]) _# internal_ <a name="macro__SPLIT_CODEGEN_BASE"></a> -Generator of a certain number .the. cpp file + one header .h file from .in. -This is the call of the generator. Python macro SPLIT\_CODEGEN() is defined in order to properly fill command outputs from OUT\_NUM argument. - -###### Macro [\_SRC][](Ext Src Flags) _# internal_ <a name="macro__SRC"></a> -Basic building block of extension-based command dispatching -To enable specific extension processing define \_SRC() macro with fixed first argument (Ext). -Internal logic will apply this macro to all files with this Ext listed in SRC/SRCS macros or outputs -of other commands (except ones marked as noauto) - +###### Macro [\_SPLIT\_CODEGEN\_BASE][](tool prefix OUTS[] OUTPUT\_INCLUDES[]) _# internal_ <a name="macro__SPLIT_CODEGEN_BASE"></a> +Generator of a certain number .the. cpp file + one header .h file from .in. +This is the call of the generator. Python macro SPLIT\_CODEGEN() is defined in order to properly fill command outputs from OUT\_NUM argument. + +###### Macro [\_SRC][](Ext Src Flags) _# internal_ <a name="macro__SRC"></a> +Basic building block of extension-based command dispatching +To enable specific extension processing define \_SRC() macro with fixed first argument (Ext). +Internal logic will apply this macro to all files with this Ext listed in SRC/SRCS macros or outputs +of other commands (except ones marked as noauto) + ###### Macro [\_SRCS\_NO\_GLOBAL][](files...) _# internal_ <a name="macro__SRCS_NO_GLOBAL"></a> Proxy macro to SRCS macro which filters out GLOBAL keyword from the list of source files. Useful for modules like EXTERNAL\_JAVA\_LIBRARY, where GLOBAL keyword cannot be applied properly. Note: this macro changes order of source files. -###### Macro \_SRC("C", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____C"></a> -Not documented yet. - -###### Macro \_SRC("S", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____S"></a> -Not documented yet. - -###### Macro \_SRC("asm", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____asm"></a> -Not documented yet. - -###### Macro \_SRC("asp", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____asp"></a> -Not documented yet. - -###### Macro \_SRC("c", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____c"></a> -Not documented yet. - -###### Macro \_SRC("cc", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____cc"></a> -Not documented yet. - +###### Macro \_SRC("C", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____C"></a> +Not documented yet. + +###### Macro \_SRC("S", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____S"></a> +Not documented yet. + +###### Macro \_SRC("asm", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____asm"></a> +Not documented yet. + +###### Macro \_SRC("asp", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____asp"></a> +Not documented yet. + +###### Macro \_SRC("c", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____c"></a> +Not documented yet. + +###### Macro \_SRC("cc", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____cc"></a> +Not documented yet. + ###### Macro \_SRC("cfgproto", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____cfgproto"></a> Not documented yet. -###### Macro \_SRC("cpp", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____cpp"></a> -Not documented yet. - +###### Macro \_SRC("cpp", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____cpp"></a> +Not documented yet. + ###### Macro \_SRC("cu", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____cu"></a> Not documented yet. -###### Macro \_SRC("cxx", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____cxx"></a> -Not documented yet. - -###### Macro \_SRC("ev", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____ev"></a> -Not documented yet. - -###### Macro \_SRC("f", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____f"></a> -Not documented yet. - +###### Macro \_SRC("cxx", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____cxx"></a> +Not documented yet. + +###### Macro \_SRC("ev", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____ev"></a> +Not documented yet. + +###### Macro \_SRC("f", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____f"></a> +Not documented yet. + ###### Macro \_SRC("fbs", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____fbs"></a> Not documented yet. ###### Macro \_SRC("fbs64", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____fbs64"></a> Not documented yet. -###### Macro \_SRC("fml", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____fml"></a> -Not documented yet. - -###### Macro \_SRC("fml2", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____fml2"></a> -Not documented yet. - -###### Macro \_SRC("fml3", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____fml3"></a> -Not documented yet. - -###### Macro \_SRC("gperf", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____gperf"></a> -Not documented yet. - -###### Macro \_SRC("gztproto", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____gztproto"></a> -Not documented yet. - -###### Macro \_SRC("in", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____in"></a> -Not documented yet. - -###### Macro \_SRC("l", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____l"></a> -Not documented yet. - -###### Macro \_SRC("lex", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____lex"></a> -Not documented yet. - -###### Macro \_SRC("lpp", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____lpp"></a> -Not documented yet. - +###### Macro \_SRC("fml", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____fml"></a> +Not documented yet. + +###### Macro \_SRC("fml2", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____fml2"></a> +Not documented yet. + +###### Macro \_SRC("fml3", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____fml3"></a> +Not documented yet. + +###### Macro \_SRC("gperf", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____gperf"></a> +Not documented yet. + +###### Macro \_SRC("gztproto", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____gztproto"></a> +Not documented yet. + +###### Macro \_SRC("in", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____in"></a> +Not documented yet. + +###### Macro \_SRC("l", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____l"></a> +Not documented yet. + +###### Macro \_SRC("lex", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____lex"></a> +Not documented yet. + +###### Macro \_SRC("lpp", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____lpp"></a> +Not documented yet. + ###### Macro \_SRC("lua", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____lua"></a> Not documented yet. -###### Macro \_SRC("m", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____m"></a> -Not documented yet. - -###### Macro \_SRC("masm", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____masm"></a> -Not documented yet. - -###### Macro \_SRC("mm", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____mm"></a> -Not documented yet. - -###### Macro \_SRC("pln", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____pln"></a> -Not documented yet. - -###### Macro \_SRC("po", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____po"></a> -Not documented yet. - -###### Macro \_SRC("proto", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____proto"></a> -Not documented yet. - +###### Macro \_SRC("m", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____m"></a> +Not documented yet. + +###### Macro \_SRC("masm", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____masm"></a> +Not documented yet. + +###### Macro \_SRC("mm", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____mm"></a> +Not documented yet. + +###### Macro \_SRC("pln", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____pln"></a> +Not documented yet. + +###### Macro \_SRC("po", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____po"></a> +Not documented yet. + +###### Macro \_SRC("proto", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____proto"></a> +Not documented yet. + ###### Macro \_SRC("pysrc", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____pysrc"></a> Not documented yet. -###### Macro \_SRC("pyx", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____pyx"></a> -Not documented yet. - -###### Macro \_SRC("rl", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____rl"></a> -Not documented yet. - -###### Macro \_SRC("rl5", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____rl5"></a> -Not documented yet. - -###### Macro \_SRC("rl6", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____rl6"></a> -Not documented yet. - -###### Macro \_SRC("s", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____s"></a> -Not documented yet. - +###### Macro \_SRC("pyx", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____pyx"></a> +Not documented yet. + +###### Macro \_SRC("rl", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____rl"></a> +Not documented yet. + +###### Macro \_SRC("rl5", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____rl5"></a> +Not documented yet. + +###### Macro \_SRC("rl6", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____rl6"></a> +Not documented yet. + +###### Macro \_SRC("s", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____s"></a> +Not documented yet. + ###### Macro \_SRC("s79", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____s79"></a> Not documented yet. -###### Macro \_SRC("sc", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____sc"></a> -Not documented yet. - -###### Macro \_SRC("sfdl", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____sfdl"></a> -Not documented yet. - +###### Macro \_SRC("sc", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____sc"></a> +Not documented yet. + +###### Macro \_SRC("sfdl", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____sfdl"></a> +Not documented yet. + ###### Macro \_SRC("ssqls", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____ssqls"></a> Not documented yet. -###### Macro \_SRC("storyboard", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____storyboard"></a> -Not documented yet. - -###### Macro \_SRC("xib", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____xib"></a> -Not documented yet. - -###### Macro \_SRC("xs", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____xs"></a> -Not documented yet. - -###### Macro \_SRC("xsyn", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____xsyn"></a> -Not documented yet. - -###### Macro \_SRC("y", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____y"></a> -Not documented yet. - -###### Macro \_SRC("yasm", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____yasm"></a> -Not documented yet. - -###### Macro \_SRC("ydl", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____ydl"></a> -Not documented yet. - -###### Macro \_SRC("ypp", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____ypp"></a> -Not documented yet. - +###### Macro \_SRC("storyboard", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____storyboard"></a> +Not documented yet. + +###### Macro \_SRC("xib", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____xib"></a> +Not documented yet. + +###### Macro \_SRC("xs", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____xs"></a> +Not documented yet. + +###### Macro \_SRC("xsyn", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____xsyn"></a> +Not documented yet. + +###### Macro \_SRC("y", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____y"></a> +Not documented yet. + +###### Macro \_SRC("yasm", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____yasm"></a> +Not documented yet. + +###### Macro \_SRC("ydl", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____ydl"></a> +Not documented yet. + +###### Macro \_SRC("ypp", SRC, SRCFLAGS...) _#internal_ <a name="macro__SRC____ypp"></a> +Not documented yet. + ###### Macro [\_SRC\_c][](SRC, COMPILE\_OUT\_SUFFIX="", SRCFLAGS...) _#internal_ <a name="macro__SRC_c"></a> Not documented yet. @@ -3711,14 +3711,14 @@ Not documented yet. Not documented yet. ###### Macro [\_SRC\_yasm][](SRC, PREINCLUDES[], SRCFLAGS...) _#internal_ <a name="macro__SRC_yasm"></a> -Not documented yet. - +Not documented yet. + ###### Macro [\_STYLE][] _#internal_ <a name="macro__STYLE"></a> Not documented yet. ###### Macro [\_SWIG\_LANG\_FILTERED\_SRCS][] _#internal_ <a name="macro__SWIG_LANG_FILTERED_SRCS"></a> -Not documented yet. - +Not documented yet. + ###### Macro [\_SWIG\_PYTHON\_C][](Src, DstSubPrefix) _# internal_ <a name="macro__SWIG_PYTHON_C"></a> Like \_SWIG\_PYTHON\_CPP but generate DstSubPrefix\_swg.c. @@ -3729,30 +3729,30 @@ provides DstSubPrefix\_swg python module. ###### Macro [\_TS\_CONFIGURE][] _#internal_ <a name="macro__TS_CONFIGURE"></a> Not documented yet. -###### Macro [\_UNITTEST][] _#internal_ <a name="macro__UNITTEST"></a> -Not documented yet. - +###### Macro [\_UNITTEST][] _#internal_ <a name="macro__UNITTEST"></a> +Not documented yet. + ###### Macro [\_USE\_LINKER][]() _#internal_ <a name="macro__USE_LINKER"></a> Not documented yet. ###### Macro [\_USE\_LINKER\_IMPL][](LINKER\_ID...) _#internal_ <a name="macro__USE_LINKER_IMPL"></a> Not documented yet. -###### Macro [\_YCR\_GENERATE\_CONFIGS][](Package, App) _#internal_ <a name="macro__YCR_GENERATE_CONFIGS"></a> -Not documented yet. - -###### Macro [\_YCR\_GENERATE\_CONFIGS\_INTL][](Package, App, Configs...) _#internal_ <a name="macro__YCR_GENERATE_CONFIGS_INTL"></a> -Not documented yet. - +###### Macro [\_YCR\_GENERATE\_CONFIGS][](Package, App) _#internal_ <a name="macro__YCR_GENERATE_CONFIGS"></a> +Not documented yet. + +###### Macro [\_YCR\_GENERATE\_CONFIGS\_INTL][](Package, App, Configs...) _#internal_ <a name="macro__YCR_GENERATE_CONFIGS_INTL"></a> +Not documented yet. + ###### Macro [\_YMAKE\_GENERATE\_SCRIPT][] _#internal_ <a name="macro__YMAKE_GENERATE_SCRIPT"></a> Not documented yet. -###### Macro [\_YMAPS\_GENERATE\_SPROTO\_HEADER][](File) _#internal_ <a name="macro__YMAPS_GENERATE_SPROTO_HEADER"></a> -Not documented yet. - -###### Macro [\_YTEST][] _#internal_ <a name="macro__YTEST"></a> -Not documented yet. - +###### Macro [\_YMAPS\_GENERATE\_SPROTO\_HEADER][](File) _#internal_ <a name="macro__YMAPS_GENERATE_SPROTO_HEADER"></a> +Not documented yet. + +###### Macro [\_YTEST][] _#internal_ <a name="macro__YTEST"></a> +Not documented yet. + [DLL\_JAVA]: https://a.yandex-team.ru/arc/trunk/arcadia/build/conf/java.ymake.conf?rev=9127402#L165 [DOCS]: https://a.yandex-team.ru/arc/trunk/arcadia/build/ymake.core.conf?rev=9127402#L3247 [DYNAMIC\_LIBRARY]: https://a.yandex-team.ru/arc/trunk/arcadia/build/ymake.core.conf?rev=9127402#L2904 diff --git a/build/docs/readme.md b/build/docs/readme.md index 02000d9d65..3db0a653c7 100644 --- a/build/docs/readme.md +++ b/build/docs/readme.md @@ -1,14 +1,14 @@ *Do not edit, this file is generated from comments to macros definitions using `ya dump conf-docs`.* -# ya.make commands - -General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles) - -## Table of contents - - * [Multimodules](#multimodules) +# ya.make commands + +General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles) + +## Table of contents + + * [Multimodules](#multimodules) - Multimodule [DLL_JAVA](#multimodule_DLL_JAVA) - - Multimodule [DOCS](#multimodule_DOCS) + - Multimodule [DOCS](#multimodule_DOCS) - Multimodule [FBS_LIBRARY](#multimodule_FBS_LIBRARY) - Multimodule [JAR_PROGRAM](#multimodule_JAR_PROGRAM) - Multimodule [JAVA_CONTRIB_PROGRAM](#multimodule_JAVA_CONTRIB_PROGRAM) @@ -19,19 +19,19 @@ General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/Ho - Multimodule [JUNIT5](#multimodule_JUNIT5) - Multimodule [JUNIT5_YMAKE](#multimodule_JUNIT5_YMAKE) - Multimodule [MAPS_IDL_LIBRARY](#multimodule_MAPS_IDL_LIBRARY) - - Multimodule [PROTO_LIBRARY](#multimodule_PROTO_LIBRARY) - - Multimodule [PY23_LIBRARY](#multimodule_PY23_LIBRARY) - - Multimodule [PY23_NATIVE_LIBRARY](#multimodule_PY23_NATIVE_LIBRARY) + - Multimodule [PROTO_LIBRARY](#multimodule_PROTO_LIBRARY) + - Multimodule [PY23_LIBRARY](#multimodule_PY23_LIBRARY) + - Multimodule [PY23_NATIVE_LIBRARY](#multimodule_PY23_NATIVE_LIBRARY) - Multimodule [PY23_TEST](#multimodule_PY23_TEST) - Multimodule [PY3TEST](#multimodule_PY3TEST) - Multimodule [PY3_PROGRAM](#multimodule_PY3_PROGRAM) - Multimodule [SANDBOX_PY23_TASK](#multimodule_SANDBOX_PY23_TASK) - Multimodule [SANDBOX_PY3_TASK](#multimodule_SANDBOX_PY3_TASK) - - Multimodule [SANDBOX_TASK](#multimodule_SANDBOX_TASK) + - Multimodule [SANDBOX_TASK](#multimodule_SANDBOX_TASK) - Multimodule [SSQLS_LIBRARY](#multimodule_SSQLS_LIBRARY) - - Multimodule [YQL_UDF](#multimodule_YQL_UDF) - * [Modules](#modules) - - Module [BOOSTTEST](#module_BOOSTTEST) + - Multimodule [YQL_UDF](#multimodule_YQL_UDF) + * [Modules](#modules) + - Module [BOOSTTEST](#module_BOOSTTEST) - Module [BOOSTTEST_WITH_MAIN](#module_BOOSTTEST_WITH_MAIN) - Module [CI_GROUP](#module_CI_GROUP) - Module [CONTAINER](#module_CONTAINER) @@ -39,27 +39,27 @@ General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/Ho - Module [CPP_STYLE_TEST](#module_CPP_STYLE_TEST) - Module [CUSTOM_BUILD_LIBRARY](#module_CUSTOM_BUILD_LIBRARY) - Module [DEFAULT_IOS_INTERFACE](#module_DEFAULT_IOS_INTERFACE) - - Module [DLL](#module_DLL) + - Module [DLL](#module_DLL) - Module [DLL_TOOL](#module_DLL_TOOL) - - Module [EXECTEST](#module_EXECTEST) - - Module [FAT_OBJECT](#module_FAT_OBJECT) - - Module [FUZZ](#module_FUZZ) + - Module [EXECTEST](#module_EXECTEST) + - Module [FAT_OBJECT](#module_FAT_OBJECT) + - Module [FUZZ](#module_FUZZ) - Module [GO_DLL](#module_GO_DLL) - - Module [GO_LIBRARY](#module_GO_LIBRARY) - - Module [GO_PROGRAM](#module_GO_PROGRAM) - - Module [GO_TEST](#module_GO_TEST) - - Module [GTEST](#module_GTEST) + - Module [GO_LIBRARY](#module_GO_LIBRARY) + - Module [GO_PROGRAM](#module_GO_PROGRAM) + - Module [GO_TEST](#module_GO_TEST) + - Module [GTEST](#module_GTEST) - Module [GTEST_UGLY](#module_GTEST_UGLY) - Module [G_BENCHMARK](#module_G_BENCHMARK) - Module [IOS_INTERFACE](#module_IOS_INTERFACE) - Module [JAVA_CONTRIB](#module_JAVA_CONTRIB) - Module [JAVA_CONTRIB_PROXY](#module_JAVA_CONTRIB_PROXY) - - Module [JAVA_LIBRARY](#module_JAVA_LIBRARY) - - Module [LIBRARY](#module_LIBRARY) + - Module [JAVA_LIBRARY](#module_JAVA_LIBRARY) + - Module [LIBRARY](#module_LIBRARY) - Module [MCU_PROGRAM](#module_MCU_PROGRAM) - - Module [METAQUERY](#module_METAQUERY) - - Module [PACKAGE](#module_PACKAGE) - - Module [PROGRAM](#module_PROGRAM) + - Module [METAQUERY](#module_METAQUERY) + - Module [PACKAGE](#module_PACKAGE) + - Module [PROGRAM](#module_PROGRAM) - Module [PROTO_DESCRIPTIONS](#module_PROTO_DESCRIPTIONS) - Module [PROTO_REGISTRY](#module_PROTO_REGISTRY) - Module [PY2MODULE](#module_PY2MODULE) @@ -67,34 +67,34 @@ General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/Ho - Module [PY2_LIBRARY](#module_PY2_LIBRARY) - Module [PY2_PROGRAM](#module_PY2_PROGRAM) - Module [PY3MODULE](#module_PY3MODULE) - - Module [PY3TEST_BIN](#module_PY3TEST_BIN) - - Module [PY3_LIBRARY](#module_PY3_LIBRARY) + - Module [PY3TEST_BIN](#module_PY3TEST_BIN) + - Module [PY3_LIBRARY](#module_PY3_LIBRARY) - Module [PY3_PROGRAM_BIN](#module_PY3_PROGRAM_BIN) - Module [PYCR_PROGRAM](#module_PYCR_PROGRAM) - Module [PYTEST_BIN](#module_PYTEST_BIN) - - Module [PY_ANY_MODULE](#module_PY_ANY_MODULE) + - Module [PY_ANY_MODULE](#module_PY_ANY_MODULE) - Module [RECURSIVE_LIBRARY](#module_RECURSIVE_LIBRARY) - - Module [RESOURCES_LIBRARY](#module_RESOURCES_LIBRARY) - - Module [R_MODULE](#module_R_MODULE) - - Module [SO_PROGRAM](#module_SO_PROGRAM) + - Module [RESOURCES_LIBRARY](#module_RESOURCES_LIBRARY) + - Module [R_MODULE](#module_R_MODULE) + - Module [SO_PROGRAM](#module_SO_PROGRAM) - Module [TS_LIBRARY](#module_TS_LIBRARY) - - Module [UDF](#module_UDF) - - Module [UDF_LIB](#module_UDF_LIB) - - Module [UNION](#module_UNION) - - Module [UNITTEST](#module_UNITTEST) - - Module [UNITTEST_FOR](#module_UNITTEST_FOR) - - Module [UNITTEST_WITH_CUSTOM_ENTRY_POINT](#module_UNITTEST_WITH_CUSTOM_ENTRY_POINT) - - Module [YCR_PROGRAM](#module_YCR_PROGRAM) - - Module [YQL_PYTHON3_UDF](#module_YQL_PYTHON3_UDF) + - Module [UDF](#module_UDF) + - Module [UDF_LIB](#module_UDF_LIB) + - Module [UNION](#module_UNION) + - Module [UNITTEST](#module_UNITTEST) + - Module [UNITTEST_FOR](#module_UNITTEST_FOR) + - Module [UNITTEST_WITH_CUSTOM_ENTRY_POINT](#module_UNITTEST_WITH_CUSTOM_ENTRY_POINT) + - Module [YCR_PROGRAM](#module_YCR_PROGRAM) + - Module [YQL_PYTHON3_UDF](#module_YQL_PYTHON3_UDF) - Module [YQL_PYTHON3_UDF_TEST](#module_YQL_PYTHON3_UDF_TEST) - - Module [YQL_PYTHON_UDF](#module_YQL_PYTHON_UDF) + - Module [YQL_PYTHON_UDF](#module_YQL_PYTHON_UDF) - Module [YQL_PYTHON_UDF_PROGRAM](#module_YQL_PYTHON_UDF_PROGRAM) - - Module [YQL_PYTHON_UDF_TEST](#module_YQL_PYTHON_UDF_TEST) - - Module [YQL_UDF_MODULE](#module_YQL_UDF_MODULE) - - Module [YQL_UDF_TEST](#module_YQL_UDF_TEST) - - Module [YT_UNITTEST](#module_YT_UNITTEST) + - Module [YQL_PYTHON_UDF_TEST](#module_YQL_PYTHON_UDF_TEST) + - Module [YQL_UDF_MODULE](#module_YQL_UDF_MODULE) + - Module [YQL_UDF_TEST](#module_YQL_UDF_TEST) + - Module [YT_UNITTEST](#module_YT_UNITTEST) - Module [Y_BENCHMARK](#module_Y_BENCHMARK) - * [Macros](#macros) + * [Macros](#macros) - Macros [AARS](#macro_AARS) .. [ADD_COMPILABLE_TRANSLATE](#macro_ADD_COMPILABLE_TRANSLATE) - Macros [ADD_COMPILABLE_TRANSLIT](#macro_ADD_COMPILABLE_TRANSLIT) .. [ANNOTATION_PROCESSOR](#macro_ANNOTATION_PROCESSOR) - Macros [ARCHIVE](#macro_ARCHIVE) .. [BUILDWITH_CYTHON_CPP](#macro_BUILDWITH_CYTHON_CPP) @@ -137,8 +137,8 @@ General info: [How to write ya.make files](https://wiki.yandex-team.ru/yatool/Ho - Macros [USE_PLANTUML](#macro_USE_PLANTUML) .. [WERROR](#macro_WERROR) - Macros [WINDOWS_MANIFEST](#macro_WINDOWS_MANIFEST) .. [YABS_GENERATE_CONF](#macro_YABS_GENERATE_CONF) - Macros [YABS_GENERATE_PHANTOM_CONF_PATCH](#macro_YABS_GENERATE_PHANTOM_CONF_PATCH) .. [YT_SPEC](#macro_YT_SPEC) -## Multimodules <a name="multimodules"></a> - +## Multimodules <a name="multimodules"></a> + ###### Multimodule [DLL\_JAVA][]() <a name="multimodule_DLL_JAVA"></a> DLL built using swig for Java. Produces dynamic library and a .jar. Dynamic library is treated the same as in the case of PEERDIR from Java to DLL. @@ -146,16 +146,16 @@ Dynamic library is treated the same as in the case of PEERDIR from Java to DLL. Documentation: https://wiki.yandex-team.ru/yatool/java/#integracijascpp/pythonsborkojj -###### Multimodule [DOCS][]() <a name="multimodule_DOCS"></a> -Documentation project multimodule. - -When built directly, via RECURSE, DEPENDS or BUNDLE the output artifact is docs.tar.gz with statically generated site (using mkdocs as builder). -When PEERDIRed from other DOCS() module behaves like a UNION (supplying own content and dependencies to build target). -Peerdirs from modules other than DOCS are not accepted. +###### Multimodule [DOCS][]() <a name="multimodule_DOCS"></a> +Documentation project multimodule. + +When built directly, via RECURSE, DEPENDS or BUNDLE the output artifact is docs.tar.gz with statically generated site (using mkdocs as builder). +When PEERDIRed from other DOCS() module behaves like a UNION (supplying own content and dependencies to build target). +Peerdirs from modules other than DOCS are not accepted. Most usual macros are not accepted, only used with the macros DOCS\_DIR(), DOCS\_CONFIG(), DOCS\_VARS(), DOCS\_BUILDER(). - + @see: [DOCS\_DIR()](#macro\_DOCS\_DIR), [DOCS\_CONFIG()](#macro\_DOCS\_CONFIG), [DOCS\_VARS()](#macro\_DOCS\_VARS), [DOCS\_BUILDER()](#macro\_DOCS\_BUILDER). - + ###### Multimodule [FBS\_LIBRARY][]() <a name="multimodule_FBS_LIBRARY"></a> Build some variant of Flatbuffers library. @@ -202,44 +202,44 @@ The particular variant is selected based on where PEERDIR to IDL\_LIBRARY comes Now supported 2 variants: C++, Java Java version is not really a library but an archive of generated Java sources -###### Multimodule [PROTO\_LIBRARY][]() <a name="multimodule_PROTO_LIBRARY"></a> -Build some varian of protocol buffers library. - -The particular variant is selected based on where PEERDIR to PROTO\_LIBRARY comes from. - -Now supported 5 variants: C++, Java, Python 2.x, Python 3.x and Go. -When PEERDIR comes from module for particular language appropriate variant is selected. -PROTO\_LIBRARY also supports emission of GRPC code if GRPC() macro is specified. -Notes: -- Python versions emit C++ code in addition to Python as optimization. -- In some PROTO\_LIBRARY-es Java or Python versions are excluded via EXCLUDE\_TAGS macros due to incompatibilities. -- Use from DEPENDS or BUNDLE is not allowed - -Documentation: https://wiki.yandex-team.ru/yatool/proto\_library/ - -See: [GRPC()](#macro\_GRPC), [OPTIMIZE\_PY\_PROTOS()](#macro\_OPTIMIZE\_PY\_PROTOS), [INCLUDE\_TAGS()](#macro\_INCLUDE\_TAGS), [EXCLUDE\_TAGS()](#macro\_EXCLUDE\_TAGS) - -###### Multimodule [PY23\_LIBRARY][]([name]) <a name="multimodule_PY23_LIBRARY"></a> +###### Multimodule [PROTO\_LIBRARY][]() <a name="multimodule_PROTO_LIBRARY"></a> +Build some varian of protocol buffers library. + +The particular variant is selected based on where PEERDIR to PROTO\_LIBRARY comes from. + +Now supported 5 variants: C++, Java, Python 2.x, Python 3.x and Go. +When PEERDIR comes from module for particular language appropriate variant is selected. +PROTO\_LIBRARY also supports emission of GRPC code if GRPC() macro is specified. +Notes: +- Python versions emit C++ code in addition to Python as optimization. +- In some PROTO\_LIBRARY-es Java or Python versions are excluded via EXCLUDE\_TAGS macros due to incompatibilities. +- Use from DEPENDS or BUNDLE is not allowed + +Documentation: https://wiki.yandex-team.ru/yatool/proto\_library/ + +See: [GRPC()](#macro\_GRPC), [OPTIMIZE\_PY\_PROTOS()](#macro\_OPTIMIZE\_PY\_PROTOS), [INCLUDE\_TAGS()](#macro\_INCLUDE\_TAGS), [EXCLUDE\_TAGS()](#macro\_EXCLUDE\_TAGS) + +###### Multimodule [PY23\_LIBRARY][]([name]) <a name="multimodule_PY23_LIBRARY"></a> Build PY2\_LIBRARY or PY3\_LIBRARY depending on incoming PEERDIR. -Direct build or build by RECURSE creates both variants. -This multimodule doesn't define any final targets, so use from DEPENDS or BUNDLE is not allowed. - -Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs - -###### Multimodule [PY23\_NATIVE\_LIBRARY][]([name]) <a name="multimodule_PY23_NATIVE_LIBRARY"></a> +Direct build or build by RECURSE creates both variants. +This multimodule doesn't define any final targets, so use from DEPENDS or BUNDLE is not allowed. + +Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs + +###### Multimodule [PY23\_NATIVE\_LIBRARY][]([name]) <a name="multimodule_PY23_NATIVE_LIBRARY"></a> Build LIBRARY compatible with either Python 2.x or Python 3.x depending on incoming PEERDIR. - + This multimodule doesn't depend on Arcadia Python binary build. It is intended only for C++ code and cannot contain PY\_SRCS and USE\_PYTHON2 macros. Use these multimodule instead of PY23\_LIBRARY if the C++ extension defined in it will be used in PY2MODULE. While it doesn't bring Arcadia Python dependency itself, it is still compatible with Arcadia Python build and can be PEERDIR-ed from PY2\_LIBRARY and alikes. -Proper version will be selected according to Python version of the module PEERDIR comes from. - -This mulrtimodule doesn't define any final targets so cannot be used from DEPENDS or BUNDLE macros. - -For more information read https://wiki.yandex-team.ru/arcadia/python/pysrcs/#pysrcssrcsipy23nativelibrary - +Proper version will be selected according to Python version of the module PEERDIR comes from. + +This mulrtimodule doesn't define any final targets so cannot be used from DEPENDS or BUNDLE macros. + +For more information read https://wiki.yandex-team.ru/arcadia/python/pysrcs/#pysrcssrcsipy23nativelibrary + @see [LIBRARY()](#module\_LIBRARY), [PY2MODULE()](#module\_PY2MODULE) - + ###### Multimodule [PY23\_TEST][] <a name="multimodule_PY23_TEST"></a> Not documented yet. @@ -274,36 +274,36 @@ and will select multimodule variants accordingly. Documentation: https://wiki.yandex-team.ru/sandbox/tasks/binary -###### Multimodule [SANDBOX\_TASK][]([Name]) <a name="multimodule_SANDBOX_TASK"></a> -Multimodule describing Sandbox task (Python code that can be executed by Sandbox system). - +###### Multimodule [SANDBOX\_TASK][]([Name]) <a name="multimodule_SANDBOX_TASK"></a> +Multimodule describing Sandbox task (Python code that can be executed by Sandbox system). + When being a final target, this multimodule builds Sandbox binary task. It may PEERDIR other SANDBOX\_TASKs as libraries. The final artifact is provided when SANDBOX\_TASK is referred to by DEPENDS and BUNDLE macros. As PEERDIR target, it works like regular PY2\_LIBRARY with predefined dependencies on Sandbox SDK to allow code reuse among SANDBOX\_TASKs. - + Currently Sandbox supports only Python 2.x, so both variants will be compatible only with Python 2.x modules and will select multimodule variants accordingly. - -Documentation: https://wiki.yandex-team.ru/sandbox/tasks/binary - + +Documentation: https://wiki.yandex-team.ru/sandbox/tasks/binary + ###### Multimodule [SSQLS\_LIBRARY][] <a name="multimodule_SSQLS_LIBRARY"></a> Not documented yet. -###### Multimodule [YQL\_UDF][](name) <a name="multimodule_YQL_UDF"></a> -User-defined function for YQL - -Multimodule which is YQL\_UDF\_MODULE when built directly or referred by BUNDLE and DEPENDS macros. -If used by PEERDIRs it is usual static LIBRARY with default YQL dependencies, allowing code reuse between UDFs. - -@see: [YQL\_UDF\_MODULE()](#module\_YQL\_UDF\_MODULE) - -## Modules <a name="modules"></a> - -###### Module [BOOSTTEST][]([name]) _#deprecated_ <a name="module_BOOSTTEST"></a> -Test module based on boost/test/unit\_test.hpp. -As with entire boost library usage of this technology is deprecated in Arcadia and restricted with configuration error in most of projects. -No new module of this type should be introduced unless it is explicitly approved by C++ committee. - +###### Multimodule [YQL\_UDF][](name) <a name="multimodule_YQL_UDF"></a> +User-defined function for YQL + +Multimodule which is YQL\_UDF\_MODULE when built directly or referred by BUNDLE and DEPENDS macros. +If used by PEERDIRs it is usual static LIBRARY with default YQL dependencies, allowing code reuse between UDFs. + +@see: [YQL\_UDF\_MODULE()](#module\_YQL\_UDF\_MODULE) + +## Modules <a name="modules"></a> + +###### Module [BOOSTTEST][]([name]) _#deprecated_ <a name="module_BOOSTTEST"></a> +Test module based on boost/test/unit\_test.hpp. +As with entire boost library usage of this technology is deprecated in Arcadia and restricted with configuration error in most of projects. +No new module of this type should be introduced unless it is explicitly approved by C++ committee. + ###### Module [BOOSTTEST\_WITH\_MAIN][]([name]) _#deprecated_ <a name="module_BOOSTTEST_WITH_MAIN"></a> Same as BOOSTTEST (see above), but comes with builtin int main(argc, argv) implementation @@ -328,79 +328,79 @@ Not documented yet. ###### Module [DEFAULT\_IOS\_INTERFACE][]: IOS\_INTERFACE <a name="module_DEFAULT_IOS_INTERFACE"></a> Not documented yet. -###### Module [DLL][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_DLL"></a> -Dynamic library module defintion. -1. major\_ver and minor\_ver must be integers. -2. EXPORTS allows you to explicitly specify the list of exported functions. This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files -3. PREFIX allows you to change the prefix of the output file (default DLL has the prefix "lib"). - -DLL cannot participate in linking to programs but can be used from Java or as final artifact (packaged and deployed). - +###### Module [DLL][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_DLL"></a> +Dynamic library module defintion. +1. major\_ver and minor\_ver must be integers. +2. EXPORTS allows you to explicitly specify the list of exported functions. This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files +3. PREFIX allows you to change the prefix of the output file (default DLL has the prefix "lib"). + +DLL cannot participate in linking to programs but can be used from Java or as final artifact (packaged and deployed). + ###### Module [DLL\_TOOL][] <a name="module_DLL_TOOL"></a> DLL\_TOOL is a DLL that can be used as a LD\_PRELOAD tool. -###### Module [EXECTEST][]() <a name="module_EXECTEST"></a> -Module definition of generic test that executes a binary. -Use macro RUN to specify binary to run. - -@example: - - EXECTEST() - OWNER(g:yatool) - - RUN( - cat input.txt - ) - DATA( - arcadia/devtools/ya/test/tests/exectest/data - ) - DEPENDS( - devtools/dummy_arcadia/cat - ) - TEST_CWD(devtools/ya/test/tests/exectest/data) - END() - -More examples: https://wiki.yandex-team.ru/yatool/test/#exec-testy - -@see: [RUN()](#macro\_RUN) - -###### Module [FAT\_OBJECT][]() <a name="module_FAT_OBJECT"></a> -The "fat" object module. It will contain all its transitive dependencies reachable by PEERDIRs: -static libraries, local (from own SRCS) and global (from peers') object files. - -Designed for use in XCode projects for iOS. - -###### Module [FUZZ][]() <a name="module_FUZZ"></a> -In order to start using Fuzzing in Arcadia, you need to create a FUZZ module with the implementation of the function LLVMFuzzerTestOneInput(). -This module should be reachable by RECURSE from /autocheck project in order for the corpus to be regularly updated. -AFL and Libfuzzer are supported in Arcadia via a single interface, but the automatic fuzzing still works only through Libfuzzer. - -Example: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/re2/re2/fuzzing/re2\_fuzzer.cc?rev=2919463#L58 - -Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ - +###### Module [EXECTEST][]() <a name="module_EXECTEST"></a> +Module definition of generic test that executes a binary. +Use macro RUN to specify binary to run. + +@example: + + EXECTEST() + OWNER(g:yatool) + + RUN( + cat input.txt + ) + DATA( + arcadia/devtools/ya/test/tests/exectest/data + ) + DEPENDS( + devtools/dummy_arcadia/cat + ) + TEST_CWD(devtools/ya/test/tests/exectest/data) + END() + +More examples: https://wiki.yandex-team.ru/yatool/test/#exec-testy + +@see: [RUN()](#macro\_RUN) + +###### Module [FAT\_OBJECT][]() <a name="module_FAT_OBJECT"></a> +The "fat" object module. It will contain all its transitive dependencies reachable by PEERDIRs: +static libraries, local (from own SRCS) and global (from peers') object files. + +Designed for use in XCode projects for iOS. + +###### Module [FUZZ][]() <a name="module_FUZZ"></a> +In order to start using Fuzzing in Arcadia, you need to create a FUZZ module with the implementation of the function LLVMFuzzerTestOneInput(). +This module should be reachable by RECURSE from /autocheck project in order for the corpus to be regularly updated. +AFL and Libfuzzer are supported in Arcadia via a single interface, but the automatic fuzzing still works only through Libfuzzer. + +Example: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/re2/re2/fuzzing/re2\_fuzzer.cc?rev=2919463#L58 + +Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ + ###### Module [GO\_DLL][](name major\_ver [minor\_ver] [PREFIX prefix]) <a name="module_GO_DLL"></a> Go ishared object module definition. Compile and link Go module to a shared object. Will select Go implementation on PEERDIR to PROTO\_LIBRARY. -###### Module [GO\_LIBRARY][]([name]) <a name="module_GO_LIBRARY"></a> -Go library module definition. -Compile Go module as a library suitable for PEERDIR from other Go modules. -Will select Go implementation on PEERDIR to PROTO\_LIBRARY. - -###### Module [GO\_PROGRAM][]([name]) <a name="module_GO_PROGRAM"></a> -Go program module definition. -Compile and link Go module to an executable program. -Will select Go implementation on PEERDIR to PROTO\_LIBRARY. - -###### Module [GO\_TEST][]([name]) <a name="module_GO_TEST"></a> -Go test module definition. -Compile and link Go module as a test suitable for running with Arcadia testing support. -All usual testing support macros like DATA, DEPENDS, SIZE, REQUIREMENTS etc. are supported. -Will select Go implementation on PEERDIR to PROTO\_LIBRARY. - -###### Module [GTEST][]([name]) <a name="module_GTEST"></a> +###### Module [GO\_LIBRARY][]([name]) <a name="module_GO_LIBRARY"></a> +Go library module definition. +Compile Go module as a library suitable for PEERDIR from other Go modules. +Will select Go implementation on PEERDIR to PROTO\_LIBRARY. + +###### Module [GO\_PROGRAM][]([name]) <a name="module_GO_PROGRAM"></a> +Go program module definition. +Compile and link Go module to an executable program. +Will select Go implementation on PEERDIR to PROTO\_LIBRARY. + +###### Module [GO\_TEST][]([name]) <a name="module_GO_TEST"></a> +Go test module definition. +Compile and link Go module as a test suitable for running with Arcadia testing support. +All usual testing support macros like DATA, DEPENDS, SIZE, REQUIREMENTS etc. are supported. +Will select Go implementation on PEERDIR to PROTO\_LIBRARY. + +###### Module [GTEST][]([name]) <a name="module_GTEST"></a> Unit test module based on library/cpp/testing/gtest. It is recommended not to specify the name. @@ -409,11 +409,11 @@ Documentation: https://docs.yandex-team.ru/arcadia-cpp/cpp\_test ###### Module [GTEST\_UGLY][]([name]) <a name="module_GTEST_UGLY"></a> Deprecated, do not use in new projects. Use GTEST instead. -The test module based on gtest (contrib/libs/gtest contrib/libs/gmock). -Use public documentation on gtest for details. - -Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ - +The test module based on gtest (contrib/libs/gtest contrib/libs/gmock). +Use public documentation on gtest for details. + +Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ + ###### Module [G\_BENCHMARK][]([benchmarkname]) <a name="module_G_BENCHMARK"></a> Benchmark test based on the google benchmark. @@ -421,54 +421,54 @@ For more details see: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/be ###### Module [IOS\_INTERFACE][]() <a name="module_IOS_INTERFACE"></a> iOS GUI module definition - + ###### Module [JAVA\_CONTRIB][]: \_JAR\_BASE <a name="module_JAVA_CONTRIB"></a> Not documented yet. ###### Module [JAVA\_CONTRIB\_PROXY][]: \_JAR\_BASE <a name="module_JAVA_CONTRIB_PROXY"></a> Not documented yet. -###### Module [JAVA\_LIBRARY][]() <a name="module_JAVA_LIBRARY"></a> -The module describing java library build. - -Documentation: https://wiki.yandex-team.ru/yatool/java/ - -###### Module [LIBRARY][]() <a name="module_LIBRARY"></a> -The regular static library module. - -The LIBRARY() is intermediate module, so when built directly it won't build its dependencies. -It transitively provides its PEERDIRs to ultimate final target, where all LIBRARY() modules are built and linked together. - -This is C++ library, and it selects peers from multimodules accordingly. - -It makes little sense to mention LIBRARY in DEPENDS or BUNDLE, package and deploy it since it is not a standalone entity. -In order to use library in tests PEERDIR it to link into tests. -If you think you need to distribute static library please contact devtools@ for assistance. - +###### Module [JAVA\_LIBRARY][]() <a name="module_JAVA_LIBRARY"></a> +The module describing java library build. + +Documentation: https://wiki.yandex-team.ru/yatool/java/ + +###### Module [LIBRARY][]() <a name="module_LIBRARY"></a> +The regular static library module. + +The LIBRARY() is intermediate module, so when built directly it won't build its dependencies. +It transitively provides its PEERDIRs to ultimate final target, where all LIBRARY() modules are built and linked together. + +This is C++ library, and it selects peers from multimodules accordingly. + +It makes little sense to mention LIBRARY in DEPENDS or BUNDLE, package and deploy it since it is not a standalone entity. +In order to use library in tests PEERDIR it to link into tests. +If you think you need to distribute static library please contact devtools@ for assistance. + ###### Module [MCU\_PROGRAM][]([progname]) <a name="module_MCU_PROGRAM"></a> Program module for microcontrollers. Converts binary to Intel HEX and Motorola S-record file formats. If name is not specified it will be generated from the name of the containing project directory. -###### Module [METAQUERY][]() _#deprecated_ <a name="module_METAQUERY"></a> -Project Definition - KIWI Meta query. (Objected) - -https://wiki.yandex-team.ru/robot/manual/kiwi/techdoc/design/metaquery/ - -###### Module [PACKAGE][](name) <a name="module_PACKAGE"></a> -Module collects what is described directly inside it, builds and collects all its transitively available PEERDIRs. -As a result, build directory of the project gets the structure of the accessible part of Arcadia, where the build result of each PEERDIR is placed to relevant Arcadia subpath. +###### Module [METAQUERY][]() _#deprecated_ <a name="module_METAQUERY"></a> +Project Definition - KIWI Meta query. (Objected) + +https://wiki.yandex-team.ru/robot/manual/kiwi/techdoc/design/metaquery/ + +###### Module [PACKAGE][](name) <a name="module_PACKAGE"></a> +Module collects what is described directly inside it, builds and collects all its transitively available PEERDIRs. +As a result, build directory of the project gets the structure of the accessible part of Arcadia, where the build result of each PEERDIR is placed to relevant Arcadia subpath. The data can be optionally packed if macro PACK() is used. - -Is only used together with the macros FILES(), PEERDIR(), COPY(), FROM\_SANDBOX(), RUN\_PROGRAM or BUNDLE(). Don't use SRCS inside a PACKAGE. - -Documentation: https://wiki.yandex-team.ru/yatool/large-data/ - + +Is only used together with the macros FILES(), PEERDIR(), COPY(), FROM\_SANDBOX(), RUN\_PROGRAM or BUNDLE(). Don't use SRCS inside a PACKAGE. + +Documentation: https://wiki.yandex-team.ru/yatool/large-data/ + @see: [PACK()](#macro\_PACK) -###### Module [PROGRAM][]([progname]) <a name="module_PROGRAM"></a> -Regular program module. -If name is not specified it will be generated from the name of the containing project directory. - +###### Module [PROGRAM][]([progname]) <a name="module_PROGRAM"></a> +Regular program module. +If name is not specified it will be generated from the name of the containing project directory. + ###### Module [PROTO\_DESCRIPTIONS][]: \_BARE\_UNIT <a name="module_PROTO_DESCRIPTIONS"></a> Not documented yet. @@ -525,65 +525,65 @@ Do not PEERDIR PY3\_LIBRARY or PY23\_LIBRARY: this will link Python in and rende Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ -###### Module [PY3TEST\_BIN][]() _#deprecated_ <a name="module_PY3TEST_BIN"></a> -Same as PY3TEST. Don't use this, use PY3TEST instead. - -###### Module [PY3\_LIBRARY][]() <a name="module_PY3_LIBRARY"></a> +###### Module [PY3TEST\_BIN][]() _#deprecated_ <a name="module_PY3TEST_BIN"></a> +Same as PY3TEST. Don't use this, use PY3TEST instead. + +###### Module [PY3\_LIBRARY][]() <a name="module_PY3_LIBRARY"></a> Python 3.x binary library. Builds sources from PY\_SRCS to data suitable for PY2\_PROGRAM -Adds dependencies to Python 2.x runtime library from Arcadia. -This module is only compatible with PYTHON3-tagged modules and selects those from multimodules. -This module is only compatible with Arcadia Python build. - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ - +Adds dependencies to Python 2.x runtime library from Arcadia. +This module is only compatible with PYTHON3-tagged modules and selects those from multimodules. +This module is only compatible with Arcadia Python build. + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ + ###### Module [PY3\_PROGRAM\_BIN][]([progname]) <a name="module_PY3_PROGRAM_BIN"></a> Use instead of PY3\_PROGRAM only if ya.make with PY3\_PROGRAM() included in another ya.make In all other cases use PY3\_PROGRAM - + ###### Module [PYCR\_PROGRAM][]([progname]) <a name="module_PYCR_PROGRAM"></a> pycare-specific program module. Generates pycare configs in addition to producing the program. If name is not specified it will be generated from the name of the containing project directory. ###### Module [PYTEST\_BIN][]() _#deprecated_ <a name="module_PYTEST_BIN"></a> Same as PY2TEST. Don't use this, use PY2TEST instead. - -###### Module [PY\_ANY\_MODULE][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_PY_ANY_MODULE"></a> -The Python external module for any versio of Arcadia or system Python. -1. major\_ver and minor\_ver must be integers. -2. The resulting .so will have the prefix "lib". -3. Processing EXPORTS and PREFIX is the same as for DLL module -This is native DLL, so it will select C++ version from PROTO\_LIBRARY. - -Note: Use PYTHON2\_MODULE()/PYTHON3\_MODULE() in order to PEERDIR proper version of PY23\_NATIVE\_LIBRARY. -Do not PEERDIR any PY\*\_LIBRARY: this will link Python in and render artifact unusable as Python module. - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ - + +###### Module [PY\_ANY\_MODULE][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_PY_ANY_MODULE"></a> +The Python external module for any versio of Arcadia or system Python. +1. major\_ver and minor\_ver must be integers. +2. The resulting .so will have the prefix "lib". +3. Processing EXPORTS and PREFIX is the same as for DLL module +This is native DLL, so it will select C++ version from PROTO\_LIBRARY. + +Note: Use PYTHON2\_MODULE()/PYTHON3\_MODULE() in order to PEERDIR proper version of PY23\_NATIVE\_LIBRARY. +Do not PEERDIR any PY\*\_LIBRARY: this will link Python in and render artifact unusable as Python module. + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs/ + ###### Module [RECURSIVE\_LIBRARY][]() <a name="module_RECURSIVE_LIBRARY"></a> The recursive ("fat") library module. It will contain all its transitive dependencies reachable by PEERDIRs: from static libraries, local (from own SRCS) and global (from peers') object files. Designed for use in XCode projects for iOS. -###### Module [RESOURCES\_LIBRARY][]() <a name="module_RESOURCES_LIBRARY"></a> -Definition of a module that brings its content from external source (Sandbox) via DECLARE\_EXTERNAL\_RESOURCE macro. -This can participate in PEERDIRs of others as library but it cannot have own sources and PEERDIRs. - -@see: [DECLARE\_EXTERNAL\_RESOURCE()](#macro\_DECLARE\_EXTERNAL\_RESOURCE) - -###### Module [R\_MODULE][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_R_MODULE"></a> -The external module for R language. -1. major\_ver and minor\_ver must be integers. -2. The resulting .so will have the prefix "lib". -3. Processing EXPORTS and PREFIX is the same as for DLL module -This is native DLL, so it will select C++ version from PROTO\_LIBRARY. - -###### Module [SO\_PROGRAM][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_SO_PROGRAM"></a> -Executable dynamic library module defintion. -1. major\_ver and minor\_ver must be integers. -2. EXPORTS allows you to explicitly specify the list of exported functions. This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files -3. PREFIX allows you to change the prefix of the output file. - +###### Module [RESOURCES\_LIBRARY][]() <a name="module_RESOURCES_LIBRARY"></a> +Definition of a module that brings its content from external source (Sandbox) via DECLARE\_EXTERNAL\_RESOURCE macro. +This can participate in PEERDIRs of others as library but it cannot have own sources and PEERDIRs. + +@see: [DECLARE\_EXTERNAL\_RESOURCE()](#macro\_DECLARE\_EXTERNAL\_RESOURCE) + +###### Module [R\_MODULE][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_R_MODULE"></a> +The external module for R language. +1. major\_ver and minor\_ver must be integers. +2. The resulting .so will have the prefix "lib". +3. Processing EXPORTS and PREFIX is the same as for DLL module +This is native DLL, so it will select C++ version from PROTO\_LIBRARY. + +###### Module [SO\_PROGRAM][](name major\_ver [minor\_ver] [EXPORTS symlist\_file] [PREFIX prefix]) <a name="module_SO_PROGRAM"></a> +Executable dynamic library module defintion. +1. major\_ver and minor\_ver must be integers. +2. EXPORTS allows you to explicitly specify the list of exported functions. This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files +3. PREFIX allows you to change the prefix of the output file. + ###### Module [TS\_LIBRARY][]([name]) <a name="module_TS_LIBRARY"></a> The TypeScript/JavaScript library module, compiles TypeScript sources to JavaScript. Build results are JavaScript files, typings and source mappings (depending on local tsconfig.json settings). @@ -596,50 +596,50 @@ Build results are JavaScript files, typings and source mappings (depending on lo NODE_MODULES() END() -###### Module [UDF][](name [EXPORTS symlist\_file] [PREFIX prefix]) _# deprecated_ <a name="module_UDF"></a> -The KiWi UDF module. -Processing EXPORTS and PREFIX is the same as for DLL. - -https://wiki.yandex-team.ru/robot/manual/kiwi/userguide/#polzovatelskiefunkciiudftriggerykwcalc - -###### Module [UDF\_LIB][]([name]) _# deprecated_ <a name="module_UDF_LIB"></a> -The LIBRARY module for KiWi UDF, so has default PEERDIR to yweb/robot/kiwi/kwcalc/udflib. - -###### Module [UNION][](name) <a name="module_UNION"></a> -Collection of PEERDIR dependencies, files and artifacts. -UNION doesn't build its peers, just provides those to modules depending on it. -When specied in DEPENDS() macro the UNION is transitively closed, building all its peers and providing those by own paths (without adding this module path like PACKAGE does). - -Is only used together with the macros like FILES(), PEERDIR(), COPY(), FROM\_SANDBOX(), RUN\_PROGRAM or BUNDLE(). Don't use SRCS inside a UNION. - -Documentation: https://wiki.yandex-team.ru/yatool/large-data/ - -###### Module [UNITTEST][]([name]) <a name="module_UNITTEST"></a> +###### Module [UDF][](name [EXPORTS symlist\_file] [PREFIX prefix]) _# deprecated_ <a name="module_UDF"></a> +The KiWi UDF module. +Processing EXPORTS and PREFIX is the same as for DLL. + +https://wiki.yandex-team.ru/robot/manual/kiwi/userguide/#polzovatelskiefunkciiudftriggerykwcalc + +###### Module [UDF\_LIB][]([name]) _# deprecated_ <a name="module_UDF_LIB"></a> +The LIBRARY module for KiWi UDF, so has default PEERDIR to yweb/robot/kiwi/kwcalc/udflib. + +###### Module [UNION][](name) <a name="module_UNION"></a> +Collection of PEERDIR dependencies, files and artifacts. +UNION doesn't build its peers, just provides those to modules depending on it. +When specied in DEPENDS() macro the UNION is transitively closed, building all its peers and providing those by own paths (without adding this module path like PACKAGE does). + +Is only used together with the macros like FILES(), PEERDIR(), COPY(), FROM\_SANDBOX(), RUN\_PROGRAM or BUNDLE(). Don't use SRCS inside a UNION. + +Documentation: https://wiki.yandex-team.ru/yatool/large-data/ + +###### Module [UNITTEST][]([name]) <a name="module_UNITTEST"></a> Unit test module based on library/cpp/testing/unittest. -It is recommended not to specify the name. - -Documentation: https://wiki.yandex-team.ru/yatool/test/#opisanievya.make1 - -###### Module [UNITTEST\_FOR][](path/to/lib) <a name="module_UNITTEST_FOR"></a> -Convenience extension of UNITTEST module. -The UNINTTEST module with additional SRCDIR + ADDINCL + PEERDIR on path/to/lib. -path/to/lib is the path to the directory with the LIBRARY project. - -Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ - -###### Module [UNITTEST\_WITH\_CUSTOM\_ENTRY\_POINT][]([name]) <a name="module_UNITTEST_WITH_CUSTOM_ENTRY_POINT"></a> -Generic unit test module. - -###### Module [YCR\_PROGRAM][]([progname]) <a name="module_YCR_PROGRAM"></a> -yacare-specific program module. Generates yacare configs in addition to producing the program. -If name is not specified it will be generated from the name of the containing project directory. - -###### Module [YQL\_PYTHON3\_UDF][](name) <a name="module_YQL_PYTHON3_UDF"></a> -The extension module for YQL with Python 3.x UDF (User Defined Function for YQL). -Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. - -Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ - +It is recommended not to specify the name. + +Documentation: https://wiki.yandex-team.ru/yatool/test/#opisanievya.make1 + +###### Module [UNITTEST\_FOR][](path/to/lib) <a name="module_UNITTEST_FOR"></a> +Convenience extension of UNITTEST module. +The UNINTTEST module with additional SRCDIR + ADDINCL + PEERDIR on path/to/lib. +path/to/lib is the path to the directory with the LIBRARY project. + +Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ + +###### Module [UNITTEST\_WITH\_CUSTOM\_ENTRY\_POINT][]([name]) <a name="module_UNITTEST_WITH_CUSTOM_ENTRY_POINT"></a> +Generic unit test module. + +###### Module [YCR\_PROGRAM][]([progname]) <a name="module_YCR_PROGRAM"></a> +yacare-specific program module. Generates yacare configs in addition to producing the program. +If name is not specified it will be generated from the name of the containing project directory. + +###### Module [YQL\_PYTHON3\_UDF][](name) <a name="module_YQL_PYTHON3_UDF"></a> +The extension module for YQL with Python 3.x UDF (User Defined Function for YQL). +Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. + +Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ + ###### Module [YQL\_PYTHON3\_UDF\_TEST][](name) <a name="module_YQL_PYTHON3_UDF_TEST"></a> The Python test for Python 3.x YQL UDF (User Defined Function for YQL). The code should be a proper YQL\_PYTHON3\_UDF. @@ -649,50 +649,50 @@ Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ @see: [YQL\_PYTHON3\_UDF()](#module\_YQL\_PYTHON3\_UDF) -###### Module [YQL\_PYTHON\_UDF][](name) <a name="module_YQL_PYTHON_UDF"></a> -Definition of the extension module for YQL with Python 2.x UDF (User Defined Function for YQL). -Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. - -https://yql.yandex-team.ru/docs/yt/udf/python/ - +###### Module [YQL\_PYTHON\_UDF][](name) <a name="module_YQL_PYTHON_UDF"></a> +Definition of the extension module for YQL with Python 2.x UDF (User Defined Function for YQL). +Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. + +https://yql.yandex-team.ru/docs/yt/udf/python/ + ###### Module [YQL\_PYTHON\_UDF\_PROGRAM][](name) <a name="module_YQL_PYTHON_UDF_PROGRAM"></a> Definition of the extension module for YQL with Python 2.x UDF (User Defined Function for YQL). Unlike YQL\_UDF this is plain DLL module, so PEERDIRs to it are not allowed. https://yql.yandex-team.ru/docs/yt/udf/python/ -###### Module [YQL\_PYTHON\_UDF\_TEST][](name) <a name="module_YQL_PYTHON_UDF_TEST"></a> -The Python test for Python YQL UDF (Python User Defined Function for YQL). The code should be a proper YQL\_PYTHON\_UDF. - -This module will basically build itself as UDF and run as test using yql/tools/run\_python\_udf/run\_python\_udf tool. - -Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ - -@example: https://a.yandex-team.ru/arc/trunk/arcadia/yql/udfs/test/simple/ya.make - -@see: [YQL\_PYTHON\_UDF()](#module\_YQL\_PYTHON\_UDF) - -###### Module [YQL\_UDF\_MODULE][](name) <a name="module_YQL_UDF_MODULE"></a> -The extension module for YQL with C++ UDF (User Defined Function YQL) - -https://yql.yandex-team.ru/docs/yt/udf/cpp/ - -###### Module [YQL\_UDF\_TEST][]([name]) <a name="module_YQL_UDF_TEST"></a> -The module to test YQL C++ UDF. - -Documentation: https://yql.yandex-team.ru/docs/yt/libraries/testing/ -Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ - -###### Module [YT\_UNITTEST][]([name]) <a name="module_YT_UNITTEST"></a> -YT Unit test module based on mapreduce/yt/library/utlib - +###### Module [YQL\_PYTHON\_UDF\_TEST][](name) <a name="module_YQL_PYTHON_UDF_TEST"></a> +The Python test for Python YQL UDF (Python User Defined Function for YQL). The code should be a proper YQL\_PYTHON\_UDF. + +This module will basically build itself as UDF and run as test using yql/tools/run\_python\_udf/run\_python\_udf tool. + +Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/ + +@example: https://a.yandex-team.ru/arc/trunk/arcadia/yql/udfs/test/simple/ya.make + +@see: [YQL\_PYTHON\_UDF()](#module\_YQL\_PYTHON\_UDF) + +###### Module [YQL\_UDF\_MODULE][](name) <a name="module_YQL_UDF_MODULE"></a> +The extension module for YQL with C++ UDF (User Defined Function YQL) + +https://yql.yandex-team.ru/docs/yt/udf/cpp/ + +###### Module [YQL\_UDF\_TEST][]([name]) <a name="module_YQL_UDF_TEST"></a> +The module to test YQL C++ UDF. + +Documentation: https://yql.yandex-team.ru/docs/yt/libraries/testing/ +Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ + +###### Module [YT\_UNITTEST][]([name]) <a name="module_YT_UNITTEST"></a> +YT Unit test module based on mapreduce/yt/library/utlib + ###### Module [Y\_BENCHMARK][]([benchmarkname]) <a name="module_Y_BENCHMARK"></a> Benchmark test based on the library/cpp/testing/benchmark. For more details see: https://wiki.yandex-team.ru/yatool/test/#zapuskbenchmark -## Macros <a name="macros"></a> - +## Macros <a name="macros"></a> + ###### Macro [AARS][](Aars...) <a name="macro_AARS"></a> This macro is strictly prohibited to use outside of mapsmobi project @@ -703,73 +703,73 @@ Not documented yet. Not documented yet. ###### Macro [ACCELEO][](XSD{input}[], MTL{input}[], MTL\_ROOT="${MODDIR}", LANG{input}[], OUT{output}[], OUT\_NOAUTO{output}[], OUTPUT\_INCLUDES[], DEBUG?"stdout2stderr":"stderr2stdout") <a name="macro_ACCELEO"></a> -Not documented yet. - +Not documented yet. + ###### Macro [ADDINCL][]([FOR <lang>][GLOBAL dir]\* dirlist) _# builtin_ <a name="macro_ADDINCL"></a> The macro adds the directories to include/import search path to compilation flags of the current project. By default settings apply to C/C++ compilation namely sets -I<library path> flag, use FOR argument to change target command. -@params: +@params: `FOR <lang>` - adds inclues/import serach path for othe language. E.g. `FOR proto` adds import search path for .proto files processing. `GLOBAL` - extends the search for headers (-I) on the dependent projects. - + ###### Macro [ADDINCLSELF][]() <a name="macro_ADDINCLSELF"></a> The macro adds the -I<project source path> flag to the source compilation flags of the current project. - -###### Macro [ADD\_CHECK][] <a name="macro_ADD_CHECK"></a> -Not documented yet. - -###### Macro [ADD\_CHECK\_PY\_IMPORTS][] <a name="macro_ADD_CHECK_PY_IMPORTS"></a> -Not documented yet. - + +###### Macro [ADD\_CHECK][] <a name="macro_ADD_CHECK"></a> +Not documented yet. + +###### Macro [ADD\_CHECK\_PY\_IMPORTS][] <a name="macro_ADD_CHECK_PY_IMPORTS"></a> +Not documented yet. + ###### Macro [ADD\_CLANG\_TIDY][]() <a name="macro_ADD_CLANG_TIDY"></a> Not documented yet. -###### Macro [ADD\_COMPILABLE\_TRANSLATE][](Dict Name Options...) <a name="macro_ADD_COMPILABLE_TRANSLATE"></a> -Generate translation dictionary code to transdict.LOWER(Name).cpp that will than be compiled into library - -###### Macro [ADD\_COMPILABLE\_TRANSLIT][](TranslitTable NGrams Name Options...) <a name="macro_ADD_COMPILABLE_TRANSLIT"></a> -Generate transliteration dictionary code -This will emit both translit, untranslit and ngrams table codes those will be than further compiled into library - -###### Macro [ADD\_DLLS\_TO\_JAR][]() <a name="macro_ADD_DLLS_TO_JAR"></a> -Not documented yet. - -###### Macro [ADD\_PERL\_MODULE][](Dir ModuleName) <a name="macro_ADD_PERL_MODULE"></a> -Add dependency on specified Perl module to the library - +###### Macro [ADD\_COMPILABLE\_TRANSLATE][](Dict Name Options...) <a name="macro_ADD_COMPILABLE_TRANSLATE"></a> +Generate translation dictionary code to transdict.LOWER(Name).cpp that will than be compiled into library + +###### Macro [ADD\_COMPILABLE\_TRANSLIT][](TranslitTable NGrams Name Options...) <a name="macro_ADD_COMPILABLE_TRANSLIT"></a> +Generate transliteration dictionary code +This will emit both translit, untranslit and ngrams table codes those will be than further compiled into library + +###### Macro [ADD\_DLLS\_TO\_JAR][]() <a name="macro_ADD_DLLS_TO_JAR"></a> +Not documented yet. + +###### Macro [ADD\_PERL\_MODULE][](Dir ModuleName) <a name="macro_ADD_PERL_MODULE"></a> +Add dependency on specified Perl module to the library + ###### Macro [ADD\_PYTEST\_BIN][] <a name="macro_ADD_PYTEST_BIN"></a> -Not documented yet. - +Not documented yet. + ###### Macro [ADD\_PYTEST\_SCRIPT][] <a name="macro_ADD_PYTEST_SCRIPT"></a> -Not documented yet. - -###### Macro [ADD\_YTEST][] <a name="macro_ADD_YTEST"></a> -Not documented yet. - -###### Macro [ALLOCATOR][](Alloc) _# Default: LF_ <a name="macro_ALLOCATOR"></a> -Set memory allocator implementation for the PROGRAM()/DLL() module. -This may only be specified for programs and dlls, use in other modules leads to configuration errors. - +Not documented yet. + +###### Macro [ADD\_YTEST][] <a name="macro_ADD_YTEST"></a> +Not documented yet. + +###### Macro [ALLOCATOR][](Alloc) _# Default: LF_ <a name="macro_ALLOCATOR"></a> +Set memory allocator implementation for the PROGRAM()/DLL() module. +This may only be specified for programs and dlls, use in other modules leads to configuration errors. + Available allocators are: "LF", "LF\_YT", "LF\_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU". - LF - lfalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc) - LF\_YT - Allocator selection for YT (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc/yt/ya.make) - LF\_DBG - Debug allocator selection (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc/dbg/ya.make) - YT - The YTAlloc allocator (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/ytalloc/impl/ya.make) - - J - The JEMalloc allocator (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/jemalloc) - - B - The balloc allocator named Pyotr Popov and Anton Samokhvalov - - Discussion: https://ironpeter.at.yandex-team.ru/replies.xml?item\_no=126 + - J - The JEMalloc allocator (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/jemalloc) + - B - The balloc allocator named Pyotr Popov and Anton Samokhvalov + - Discussion: https://ironpeter.at.yandex-team.ru/replies.xml?item\_no=126 - Code: https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/balloc - BM - The balloc for market (agri@ commits from july 2018 till November 2018 saved) - - C - Like B, but can be disabled for each thread to LF or SYSTEM one (B can be disabled only to SYSTEM) + - C - Like B, but can be disabled for each thread to LF or SYSTEM one (B can be disabled only to SYSTEM) - MIM - Microsoft's mimalloc (actual version) (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/mimalloc) - TCMALLOC - Google TCMalloc (actual version) (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/tcmalloc) - - GOOGLE - Google TCMalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/galloc) - - LOCKLESS - Allocator based upon lockless queues (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/lockless) - - SYSTEM - Use target system allocator - - FAKE - Don't link with any allocator - -More about allocators in Arcadia: https://wiki.yandex-team.ru/arcadia/allocators/ - + - GOOGLE - Google TCMalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/galloc) + - LOCKLESS - Allocator based upon lockless queues (https://a.yandex-team.ru/arc/trunk/arcadia/library/malloc/lockless) + - SYSTEM - Use target system allocator + - FAKE - Don't link with any allocator + +More about allocators in Arcadia: https://wiki.yandex-team.ru/arcadia/allocators/ + ###### Macro [ALL\_PY\_SRCS][]([RECURSIVE] { | TOP\_LEVEL | NAMESPACE ns} [Dirs...]) <a name="macro_ALL_PY_SRCS"></a> Puts all .py-files from given Dirs (relative to projects') into PY\_SRCS of the current module. If Dirs is ommitted project directory is used @@ -782,49 +782,49 @@ Note: Macro is designed to reject any ya.make files in Dirs except current one @see [PY\_SRCS()](#macro\_PY\_SRCS) -###### Macro [ALL\_SRCS][]([GLOBAL] filenames...) <a name="macro_ALL_SRCS"></a> -Make all source files listed as GLOBAL or not depending on the keyword GLOBAL -Call to ALL\_SRCS macro is equivalent to call to GLOBAL\_SRCS macro when GLOBAL keyword is specified -as the first argument and is equivalent to call to SRCS macro otherwise. - -@example: - - LIBRARY() - SET(MAKE_IT_GLOBAL GLOBAL) - ALL_SRCS(${MAKE_IT_GLOBAL} foo.cpp bar.cpp) - END() - -@see: [GLOBAL\_SRCS()](#macro\_GLOBAL\_SRCS), [SRCS()](#macro\_SRCS) - -###### Macro [ANNOTATION\_PROCESSOR][](processors...) <a name="macro_ANNOTATION_PROCESSOR"></a> -The macro is in development. -Used to specify annotation processors to build JAVA\_PROGRAM() and JAVA\_LIBRARY(). - -###### Macro [ARCHIVE][](archive\_name [DONT\_COMPRESS] files...) <a name="macro_ARCHIVE"></a> -Add arbitrary data to a modules. Unlike RESOURCE macro the result should be futher processed by othet macros in the module. - -Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive - -###### Macro [ARCHIVE\_ASM][](NAME archive\_name files...) <a name="macro_ARCHIVE_ASM"></a> -Similar to the macro ARCHIVE, but: -1. works faster and it is better to use for large files. -2. Different syntax (see examples in codesearch or users/pg/tests/archive\_test) - -###### Macro [ARCHIVE\_BY\_KEYS][](archive\_name key [DONT\_COMPRESS] files...) <a name="macro_ARCHIVE_BY_KEYS"></a> -Add arbitrary data to a module be accessible by specified key. -Unlike RESOURCE macro the result should be futher processed by othet macros in the module. - -Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive - -###### Macro [ASM\_PREINCLUDE][](AsmFiles...) <a name="macro_ASM_PREINCLUDE"></a> -Supply additional .asm files to all assembler calls within a module - +###### Macro [ALL\_SRCS][]([GLOBAL] filenames...) <a name="macro_ALL_SRCS"></a> +Make all source files listed as GLOBAL or not depending on the keyword GLOBAL +Call to ALL\_SRCS macro is equivalent to call to GLOBAL\_SRCS macro when GLOBAL keyword is specified +as the first argument and is equivalent to call to SRCS macro otherwise. + +@example: + + LIBRARY() + SET(MAKE_IT_GLOBAL GLOBAL) + ALL_SRCS(${MAKE_IT_GLOBAL} foo.cpp bar.cpp) + END() + +@see: [GLOBAL\_SRCS()](#macro\_GLOBAL\_SRCS), [SRCS()](#macro\_SRCS) + +###### Macro [ANNOTATION\_PROCESSOR][](processors...) <a name="macro_ANNOTATION_PROCESSOR"></a> +The macro is in development. +Used to specify annotation processors to build JAVA\_PROGRAM() and JAVA\_LIBRARY(). + +###### Macro [ARCHIVE][](archive\_name [DONT\_COMPRESS] files...) <a name="macro_ARCHIVE"></a> +Add arbitrary data to a modules. Unlike RESOURCE macro the result should be futher processed by othet macros in the module. + +Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive + +###### Macro [ARCHIVE\_ASM][](NAME archive\_name files...) <a name="macro_ARCHIVE_ASM"></a> +Similar to the macro ARCHIVE, but: +1. works faster and it is better to use for large files. +2. Different syntax (see examples in codesearch or users/pg/tests/archive\_test) + +###### Macro [ARCHIVE\_BY\_KEYS][](archive\_name key [DONT\_COMPRESS] files...) <a name="macro_ARCHIVE_BY_KEYS"></a> +Add arbitrary data to a module be accessible by specified key. +Unlike RESOURCE macro the result should be futher processed by othet macros in the module. + +Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive + +###### Macro [ASM\_PREINCLUDE][](AsmFiles...) <a name="macro_ASM_PREINCLUDE"></a> +Supply additional .asm files to all assembler calls within a module + ###### Macro [ASSERT][] <a name="macro_ASSERT"></a> Not documented yet. -###### Macro [BASE\_CODEGEN][](tool\_path prefix) <a name="macro_BASE_CODEGEN"></a> -Generator ${prefix}.cpp + ${prefix}.h files based on ${prefix}.in. - +###### Macro [BASE\_CODEGEN][](tool\_path prefix) <a name="macro_BASE_CODEGEN"></a> +Generator ${prefix}.cpp + ${prefix}.h files based on ${prefix}.in. + ###### Macro [BPF][](Input Output Opts...) <a name="macro_BPF"></a> Emit eBPF bytecode from .c file. Note: Output name is used as is, no extension added. @@ -833,36 +833,36 @@ Note: Output name is used as is, no extension added. Emit eBPF bytecode from .c file. Note: Output name is used as is, no extension added. -###### Macro [BUILDWITH\_CYTHON\_C][](Src Options...) <a name="macro_BUILDWITH_CYTHON_C"></a> -Generates .c file from .pyx. - -###### Macro [BUILDWITH\_CYTHON\_CPP][](Src Options...) <a name="macro_BUILDWITH_CYTHON_CPP"></a> -Generates .cpp file from .pyx. - -###### Macro [BUILDWITH\_RAGEL6][](Src Options...) <a name="macro_BUILDWITH_RAGEL6"></a> -Compile .rl file using Ragel6. - +###### Macro [BUILDWITH\_CYTHON\_C][](Src Options...) <a name="macro_BUILDWITH_CYTHON_C"></a> +Generates .c file from .pyx. + +###### Macro [BUILDWITH\_CYTHON\_CPP][](Src Options...) <a name="macro_BUILDWITH_CYTHON_CPP"></a> +Generates .cpp file from .pyx. + +###### Macro [BUILDWITH\_RAGEL6][](Src Options...) <a name="macro_BUILDWITH_RAGEL6"></a> +Compile .rl file using Ragel6. + ###### Macro [BUILD\_CATBOOST][](cbmodel cbname) <a name="macro_BUILD_CATBOOST"></a> -Generate catboost model and access code. -cbmodel - CatBoost model file name (\*.cmb). -cbname - name for a variable (of NCatboostCalcer::TCatboostCalcer type) to be available in CPP code. -CatBoost specific macro. - -###### Macro [BUILD\_MN][]([CHECK] [PTR] [MULTI] mninfo mnname) _# matrixnet_ <a name="macro_BUILD_MN"></a> -Generate MatrixNet data and access code using single command. -Alternative macro BUILD\_MNS() works faster and better for large files. - -###### Macro [BUILD\_MNS][]([CHECK] NAME listname mninfos...) _# matrixnet_ <a name="macro_BUILD_MNS"></a> -Generate MatrixNet data and access code using separate commands for support code, interface and data. -Faster version of BUILD\_MN() macro for large files. - -###### Macro [BUILD\_ONLY\_IF][](variables) _# builtin_ <a name="macro_BUILD_ONLY_IF"></a> -Print warning if all variables are false. For example, BUILD\_ONLY\_IF(LINUX WIN32) - -###### Macro [BUILD\_PLNS][](Src...) <a name="macro_BUILD_PLNS"></a> -Generate interface header plnmodels.h for Relev model (PLN). -Relev specific macro. - +Generate catboost model and access code. +cbmodel - CatBoost model file name (\*.cmb). +cbname - name for a variable (of NCatboostCalcer::TCatboostCalcer type) to be available in CPP code. +CatBoost specific macro. + +###### Macro [BUILD\_MN][]([CHECK] [PTR] [MULTI] mninfo mnname) _# matrixnet_ <a name="macro_BUILD_MN"></a> +Generate MatrixNet data and access code using single command. +Alternative macro BUILD\_MNS() works faster and better for large files. + +###### Macro [BUILD\_MNS][]([CHECK] NAME listname mninfos...) _# matrixnet_ <a name="macro_BUILD_MNS"></a> +Generate MatrixNet data and access code using separate commands for support code, interface and data. +Faster version of BUILD\_MN() macro for large files. + +###### Macro [BUILD\_ONLY\_IF][](variables) _# builtin_ <a name="macro_BUILD_ONLY_IF"></a> +Print warning if all variables are false. For example, BUILD\_ONLY\_IF(LINUX WIN32) + +###### Macro [BUILD\_PLNS][](Src...) <a name="macro_BUILD_PLNS"></a> +Generate interface header plnmodels.h for Relev model (PLN). +Relev specific macro. + ###### Macro [BUILD\_YDL\_DESC][](Input Symbol Output) <a name="macro_BUILD_YDL_DESC"></a> Generate a descriptor for a Symbol located in a ydl module Input, and put it to the file Output. @@ -874,35 +874,35 @@ Generate a descriptor for a Symbol located in a ydl module Input, and put it to This will parse file ../types.ydl, generate a descriptor for a symbol Event defined in the said file, and put the descriptor to the Event.ydld. -###### Macro [BUNDLE][](<Dir [NAME Name]>...) <a name="macro_BUNDLE"></a> -Brings build artefact from module Dir under optional Name to the current module (e.g. UNION) -If NAME is not specified, the name of the Dir's build artefact will be preserved -It makes little sense to specify BUNDLE on non-final targets and so this may stop working without prior notice. -Bundle on multimodule will select final target among multimodule variants and will fail if there are none or more than one. - +###### Macro [BUNDLE][](<Dir [NAME Name]>...) <a name="macro_BUNDLE"></a> +Brings build artefact from module Dir under optional Name to the current module (e.g. UNION) +If NAME is not specified, the name of the Dir's build artefact will be preserved +It makes little sense to specify BUNDLE on non-final targets and so this may stop working without prior notice. +Bundle on multimodule will select final target among multimodule variants and will fail if there are none or more than one. + ###### Macro [CC\_REQUIREMENTS][]([cpu: <value>] [ram: <value>]) <a name="macro_CC_REQUIREMENTS"></a> Override CPU and RAM requirements for all C/C++ compilation commands in the module -###### Macro [CFLAGS][]([GLOBAL compiler\_flag]\* compiler\_flags) <a name="macro_CFLAGS"></a> -Add the specified flags to the compilation command of C and C++ files. -@params: GLOBAL - Propagates these flags to dependent projects -Note: remember about the incompatibility flags for clang and cl (to set flags specifically for cl.exe use MSVC\_FLAGS). - -###### Macro [CGO\_CFLAGS][](Flags...) <a name="macro_CGO_CFLAGS"></a> -Compiler flags specific to CGO compilation - -###### Macro [CGO\_LDFLAGS][](Files...) <a name="macro_CGO_LDFLAGS"></a> -Linker flags specific to CGO linking - -###### Macro [CGO\_SRCS][](Files...) <a name="macro_CGO_SRCS"></a> -.go sources to be built with CGO - +###### Macro [CFLAGS][]([GLOBAL compiler\_flag]\* compiler\_flags) <a name="macro_CFLAGS"></a> +Add the specified flags to the compilation command of C and C++ files. +@params: GLOBAL - Propagates these flags to dependent projects +Note: remember about the incompatibility flags for clang and cl (to set flags specifically for cl.exe use MSVC\_FLAGS). + +###### Macro [CGO\_CFLAGS][](Flags...) <a name="macro_CGO_CFLAGS"></a> +Compiler flags specific to CGO compilation + +###### Macro [CGO\_LDFLAGS][](Files...) <a name="macro_CGO_LDFLAGS"></a> +Linker flags specific to CGO linking + +###### Macro [CGO\_SRCS][](Files...) <a name="macro_CGO_SRCS"></a> +.go sources to be built with CGO + ###### Macro [CHECK\_CONTRIB\_CREDITS][] <a name="macro_CHECK_CONTRIB_CREDITS"></a> Not documented yet. ###### Macro [CHECK\_DEPENDENT\_DIRS][](DENY|ALLOW\_ONLY ([ALL|PEERDIRS|GLOB] dir)...) <a name="macro_CHECK_DEPENDENT_DIRS"></a> Specify project transitive dependencies constraints. - + @params: 1. DENY: current module can not depend on module from any specified directory neither directly nor transitively. 2. ALLOW\_ONLY: current module can not depend on module from a dir not specified in the directory list neither directly nor transitively. @@ -916,15 +916,15 @@ Direcory constraints added before either ALL or PEERDIRS modifier is used are tr Note: Can be used multiple times on the same module all specified constraints will be checked. All macro invocation for the same module must use same constraints type (DENY or ALLOW\_ONLY) -###### Macro [CHECK\_JAVA\_DEPS][](<yes|no>) <a name="macro_CHECK_JAVA_DEPS"></a> -Check for different classes with duplicate name in classpath. - -Documentation: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [CLANG\_EMIT\_AST\_CXX][](Input Output Opts...) <a name="macro_CLANG_EMIT_AST_CXX"></a> +###### Macro [CHECK\_JAVA\_DEPS][](<yes|no>) <a name="macro_CHECK_JAVA_DEPS"></a> +Check for different classes with duplicate name in classpath. + +Documentation: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [CLANG\_EMIT\_AST\_CXX][](Input Output Opts...) <a name="macro_CLANG_EMIT_AST_CXX"></a> Emit Clang AST from .cpp file. CXXFLAGS and LLVM\_OPTS are passed in, while CFLAGS and C\_FLAGS\_PLATFORM are not. -Note: Output name is used as is, no extension added. - +Note: Output name is used as is, no extension added. + ###### Macro [COLLECT\_FRONTEND\_FILES][](Varname, Dir) <a name="macro_COLLECT_FRONTEND_FILES"></a> Recursively collect files with typical frontend extensions from Dir and save the result into variable Varname @@ -935,9 +935,9 @@ stores result in the variable with mane specified by first parameter. ###### Macro [COLLECT\_YDB\_API\_SPECS\_LEGACY][](VarName Paths...) _#deprecated_ <a name="macro_COLLECT_YDB_API_SPECS_LEGACY"></a> This macro is ugly hack for legacy YDB go API codegen, any other uses are prohibited -###### Macro [COMPILE\_C\_AS\_CXX][]() <a name="macro_COMPILE_C_AS_CXX"></a> -Compile .c files as .cpp ones within a module. - +###### Macro [COMPILE\_C\_AS\_CXX][]() <a name="macro_COMPILE_C_AS_CXX"></a> +Compile .c files as .cpp ones within a module. + ###### Macro [COMPILE\_LUA][](Src, [NAME <import\_name>]) <a name="macro_COMPILE_LUA"></a> Compile LUA source file to object code using LUA 2.0 Optionally override import name which is by default reflects Src name @@ -951,27 +951,27 @@ Generate and compile .nlg templates (Jinja2-based) and interface for megamind ru Alice-specific macro -###### Macro [COMPILE\_SWIFT\_MODULE][](SRCS{input}[], BRIDGE\_HEADER{input}="", Flags...) <a name="macro_COMPILE_SWIFT_MODULE"></a> -Not documented yet. - -###### Macro [CONFIGURE\_FILE][](from to) <a name="macro_CONFIGURE_FILE"></a> -Copy file with the replacement of configuration variables in form of @ANY\_CONF\_VAR@ with their values. +###### Macro [COMPILE\_SWIFT\_MODULE][](SRCS{input}[], BRIDGE\_HEADER{input}="", Flags...) <a name="macro_COMPILE_SWIFT_MODULE"></a> +Not documented yet. + +###### Macro [CONFIGURE\_FILE][](from to) <a name="macro_CONFIGURE_FILE"></a> +Copy file with the replacement of configuration variables in form of @ANY\_CONF\_VAR@ with their values. The values are collected during configure stage, while replacement itself happens during build stage. -Used implicitly for .in-files processing. - +Used implicitly for .in-files processing. + ###### Macro [CONFTEST\_LOAD\_POLICY\_LOCAL][]() <a name="macro_CONFTEST_LOAD_POLICY_LOCAL"></a> Loads conftest.py files in a way that pytest does it -###### Macro [CONLYFLAGS][]([GLOBAL compiler\_flag]\* compiler\_flags) <a name="macro_CONLYFLAGS"></a> -Add the specified flags to the compilation command of .c (but not .cpp) files. -@params: GLOBAL - Distributes these flags on dependent projects - -###### Macro [COPY][] <a name="macro_COPY"></a> -Not documented yet. - +###### Macro [CONLYFLAGS][]([GLOBAL compiler\_flag]\* compiler\_flags) <a name="macro_CONLYFLAGS"></a> +Add the specified flags to the compilation command of .c (but not .cpp) files. +@params: GLOBAL - Distributes these flags on dependent projects + +###### Macro [COPY][] <a name="macro_COPY"></a> +Not documented yet. + ###### Macro [COPY\_FILE][](File Destination [AUTO] [OUTPUT\_INCLUDES Deps...]) <a name="macro_COPY_FILE"></a> -Copy file to build root. It is possible to change both location and the name. - +Copy file to build root. It is possible to change both location and the name. + Parameters: - File - Source file name. - Destination - Output file name. @@ -1006,191 +1006,191 @@ using Tool. Extra dependencies are passed via DEPS. Define protoc plugin for C++ with given Name that emits code into 2 extra outputs using Tool. Extra dependencies are passed via DEPS. -###### Macro [CREATE\_BUILDINFO\_FOR][](GenHdr) <a name="macro_CREATE_BUILDINFO_FOR"></a> -Creates header file to access some information about build specified via configuration variables. -Unlike CREATE\_SVNVERSION\_FOR() it doesn't take revion information from VCS, it uses revision and SandboxTaskId passed via -D options to ya make - -###### Macro [CREATE\_INIT\_PY\_STRUCTURE][] <a name="macro_CREATE_INIT_PY_STRUCTURE"></a> -Not documented yet. - +###### Macro [CREATE\_BUILDINFO\_FOR][](GenHdr) <a name="macro_CREATE_BUILDINFO_FOR"></a> +Creates header file to access some information about build specified via configuration variables. +Unlike CREATE\_SVNVERSION\_FOR() it doesn't take revion information from VCS, it uses revision and SandboxTaskId passed via -D options to ya make + +###### Macro [CREATE\_INIT\_PY\_STRUCTURE][] <a name="macro_CREATE_INIT_PY_STRUCTURE"></a> +Not documented yet. + ###### Macro [CREDITS\_DISCLAIMER][] <a name="macro_CREDITS_DISCLAIMER"></a> Not documented yet. -###### Macro [CTEMPLATE\_VARNAMES][](File) <a name="macro_CTEMPLATE_VARNAMES"></a> -Generate File.varnames.h using contrib/libs/ctemplate/make\_tpl\_varnames\_h - -Documentation: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/ctemplate/README.md - -###### Macro [CUDA\_NVCC\_FLAGS][](compiler flags) <a name="macro_CUDA_NVCC_FLAGS"></a> -Add the specified flags to the compile line .cu-files. - +###### Macro [CTEMPLATE\_VARNAMES][](File) <a name="macro_CTEMPLATE_VARNAMES"></a> +Generate File.varnames.h using contrib/libs/ctemplate/make\_tpl\_varnames\_h + +Documentation: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/ctemplate/README.md + +###### Macro [CUDA\_NVCC\_FLAGS][](compiler flags) <a name="macro_CUDA_NVCC_FLAGS"></a> +Add the specified flags to the compile line .cu-files. + ###### Macro [CUSTOM\_LINK\_STEP\_SCRIPT][](name) <a name="macro_CUSTOM_LINK_STEP_SCRIPT"></a> Specifies name of a script for custom link step. The scripts should be placed in the build/scripts directory and are subject to review by devtools@. -###### Macro [CXXFLAGS][](compiler\_flags) <a name="macro_CXXFLAGS"></a> -Add the specified flags to the compilation command of .cpp (but not .c) files. - -###### Macro [DARWIN\_SIGNED\_RESOURCE][](Resource, Relpath) <a name="macro_DARWIN_SIGNED_RESOURCE"></a> -Not documented yet. - -###### Macro [DARWIN\_STRINGS\_RESOURCE][](Resource, Relpath) <a name="macro_DARWIN_STRINGS_RESOURCE"></a> -Not documented yet. - -###### Macro [DATA][]([path...]) <a name="macro_DATA"></a> -Specifies the path to the data necessary test. -Valid values are: arcadia/<path> , arcadia\_tests\_data/<path> and sbr://<resource\_id>. -In the latter case resource will be brought to the working directory of the test before it is started - -Used only inside TEST modules. - -Documentation: https://wiki.yandex-team.ru/yatool/test/#dannyeizrepozitorija - -###### Macro [DEB\_VERSION][](File) <a name="macro_DEB_VERSION"></a> -Creates a header file DebianVersion.h define the DEBIAN\_VERSION taken from the File. - -###### Macro [DECIMAL\_MD5\_LOWER\_32\_BITS][](<fileName> [FUNCNAME funcName] [inputs...]) <a name="macro_DECIMAL_MD5_LOWER_32_BITS"></a> -Generates .cpp file <fileName> with one defined function 'const char\* <funcName>() { return "<calculated\_md5\_hash>"; }'. -<calculated\_md5\_hash> will be md5 hash for all inputs passed to this macro. - -###### Macro [DECLARE\_EXTERNAL\_HOST\_RESOURCES\_BUNDLE][](name sbr:id FOR platform1 sbr:id FOR platform2...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE"></a> -Associate name with sbr-id on platform. - -Ask devtools@yandex-team.ru if you need more information - -###### Macro [DECLARE\_EXTERNAL\_HOST\_RESOURCES\_PACK][](RESOURCE\_NAME name sbr:id FOR platform1 sbr:id FOR platform2... RESOURCE\_NAME name1 sbr:id1 FOR platform1...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_HOST_RESOURCES_PACK"></a> -Associate name with sbr-id on platform. - -Ask devtools@yandex-team.ru if you need more information - -###### Macro [DECLARE\_EXTERNAL\_RESOURCE][](name sbr:id name1 sbr:id1...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_RESOURCE"></a> -Associate name with sbr-id. - -Ask devtools@yandex-team.ru if you need more information - -###### Macro [DEFAULT][](varname value) _#builtin_ <a name="macro_DEFAULT"></a> -Sets varname to value if value is not set yet - -###### Macro [DEPENDENCY\_MANAGEMENT][](path/to/lib1 path/to/lib2 ...) <a name="macro_DEPENDENCY_MANAGEMENT"></a> -Lock version of the library from the contrib/java at some point, so that all unversioned PEERDIRs to this library refer to the specified version. - -For example, if the moduse has PEERDIR (contrib/java/junit/junit), and - 1. specifies DEPENDENCY\_MANAGEMENT(contrib/java/junit/junit/4.12), - the PEERDIR is automatically replaced by contrib/java/junit/junit/4.12; - 2. doesn't specify DEPENDENCY\_MANAGEMENT, PEERDIR automatically replaced - with the default from contrib/java/junit/junit/ya.make. - These defaults are always there and are supported by maven-import, which puts - there the maximum version available in contrib/java. - -The property is transitive. That is, if module A PEERDIRs module B, and B has PEERDIR(contrib/java/junit/junit), and this junit was replaced by junit-4.12, then junit-4.12 will come to A through B. - -If some module has both DEPENDENCY\_MANAGEMENT(contrib/java/junit/junit/4.12) and PERDIR(contrib/java/junit/junit/4.11), the PEERDIR wins. - -Documentation: https://wiki.yandex-team.ru/yatool/java/ - -###### Macro [DEPENDS][](path1 [path2...]) _# builtin_ <a name="macro_DEPENDS"></a> +###### Macro [CXXFLAGS][](compiler\_flags) <a name="macro_CXXFLAGS"></a> +Add the specified flags to the compilation command of .cpp (but not .c) files. + +###### Macro [DARWIN\_SIGNED\_RESOURCE][](Resource, Relpath) <a name="macro_DARWIN_SIGNED_RESOURCE"></a> +Not documented yet. + +###### Macro [DARWIN\_STRINGS\_RESOURCE][](Resource, Relpath) <a name="macro_DARWIN_STRINGS_RESOURCE"></a> +Not documented yet. + +###### Macro [DATA][]([path...]) <a name="macro_DATA"></a> +Specifies the path to the data necessary test. +Valid values are: arcadia/<path> , arcadia\_tests\_data/<path> and sbr://<resource\_id>. +In the latter case resource will be brought to the working directory of the test before it is started + +Used only inside TEST modules. + +Documentation: https://wiki.yandex-team.ru/yatool/test/#dannyeizrepozitorija + +###### Macro [DEB\_VERSION][](File) <a name="macro_DEB_VERSION"></a> +Creates a header file DebianVersion.h define the DEBIAN\_VERSION taken from the File. + +###### Macro [DECIMAL\_MD5\_LOWER\_32\_BITS][](<fileName> [FUNCNAME funcName] [inputs...]) <a name="macro_DECIMAL_MD5_LOWER_32_BITS"></a> +Generates .cpp file <fileName> with one defined function 'const char\* <funcName>() { return "<calculated\_md5\_hash>"; }'. +<calculated\_md5\_hash> will be md5 hash for all inputs passed to this macro. + +###### Macro [DECLARE\_EXTERNAL\_HOST\_RESOURCES\_BUNDLE][](name sbr:id FOR platform1 sbr:id FOR platform2...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_HOST_RESOURCES_BUNDLE"></a> +Associate name with sbr-id on platform. + +Ask devtools@yandex-team.ru if you need more information + +###### Macro [DECLARE\_EXTERNAL\_HOST\_RESOURCES\_PACK][](RESOURCE\_NAME name sbr:id FOR platform1 sbr:id FOR platform2... RESOURCE\_NAME name1 sbr:id1 FOR platform1...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_HOST_RESOURCES_PACK"></a> +Associate name with sbr-id on platform. + +Ask devtools@yandex-team.ru if you need more information + +###### Macro [DECLARE\_EXTERNAL\_RESOURCE][](name sbr:id name1 sbr:id1...) _#builtin_ <a name="macro_DECLARE_EXTERNAL_RESOURCE"></a> +Associate name with sbr-id. + +Ask devtools@yandex-team.ru if you need more information + +###### Macro [DEFAULT][](varname value) _#builtin_ <a name="macro_DEFAULT"></a> +Sets varname to value if value is not set yet + +###### Macro [DEPENDENCY\_MANAGEMENT][](path/to/lib1 path/to/lib2 ...) <a name="macro_DEPENDENCY_MANAGEMENT"></a> +Lock version of the library from the contrib/java at some point, so that all unversioned PEERDIRs to this library refer to the specified version. + +For example, if the moduse has PEERDIR (contrib/java/junit/junit), and + 1. specifies DEPENDENCY\_MANAGEMENT(contrib/java/junit/junit/4.12), + the PEERDIR is automatically replaced by contrib/java/junit/junit/4.12; + 2. doesn't specify DEPENDENCY\_MANAGEMENT, PEERDIR automatically replaced + with the default from contrib/java/junit/junit/ya.make. + These defaults are always there and are supported by maven-import, which puts + there the maximum version available in contrib/java. + +The property is transitive. That is, if module A PEERDIRs module B, and B has PEERDIR(contrib/java/junit/junit), and this junit was replaced by junit-4.12, then junit-4.12 will come to A through B. + +If some module has both DEPENDENCY\_MANAGEMENT(contrib/java/junit/junit/4.12) and PERDIR(contrib/java/junit/junit/4.11), the PEERDIR wins. + +Documentation: https://wiki.yandex-team.ru/yatool/java/ + +###### Macro [DEPENDS][](path1 [path2...]) _# builtin_ <a name="macro_DEPENDS"></a> Buildable targets that should be brought to the test run. This dependency isonly used when tests run is requested. It will build the specified modules andbring them to the working directory of the test (in their Arcadia paths). Itis reasonable to specify only final targets her (like programs, DLLs orpackages). DEPENDS to UNION is the only exception: UNIONs aretransitively closed at DEPENDS bringing all dependencies to the test. - + DEPENDS on multimodule will select and bring single final target. If more noneor more than one final target available in multimodule DEPENDS to it willproduce configuration error. ###### Macro [DIRECT\_DEPS\_ONLY][] <a name="macro_DIRECT_DEPS_ONLY"></a> Add direct PEERDIR's only in java compile classpath -###### Macro [DISABLE][](varname) _#builtin_ <a name="macro_DISABLE"></a> +###### Macro [DISABLE][](varname) _#builtin_ <a name="macro_DISABLE"></a> Sets varname to 'no' - + ###### Macro [DISABLE\_DATA\_VALIDATION][]() <a name="macro_DISABLE_DATA_VALIDATION"></a> Not documented yet. -###### Macro [DLL\_FOR][](path/to/lib [libname] [major\_ver [minor\_ver]] [EXPORTS symlist\_file]) _#builtin_ <a name="macro_DLL_FOR"></a> -DLL module definition based on specified LIBRARY - +###### Macro [DLL\_FOR][](path/to/lib [libname] [major\_ver [minor\_ver]] [EXPORTS symlist\_file]) _#builtin_ <a name="macro_DLL_FOR"></a> +DLL module definition based on specified LIBRARY + ###### Macro [DOCS\_BUILDER][](tool) <a name="macro_DOCS_BUILDER"></a> Specify docs builder tool. Avalialbe tools: mkdocs and yfm (by default). @see: [DOCS](#multimodule\_DOCS) -###### Macro [DOCS\_CONFIG][](path) <a name="macro_DOCS_CONFIG"></a> +###### Macro [DOCS\_CONFIG][](path) <a name="macro_DOCS_CONFIG"></a> Specify path to config file for DOCS multimodule if it differs from default path. If [DOCS\_BUILDER()](#macro\_DOCS\_BUILDER) is set to "mkdocs" the default path is "%%project\_directory%%/mkdocs.yml". If [DOCS\_BUILDER()](#macro\_DOCS\_BUILDER) is not set or set to "yfm" the default path is "%%project\_directory%%/.yfm". Path must be either Arcadia root relative. - -@see: [DOCS](#multimodule\_DOCS) - -###### Macro [DOCS\_DIR][](path) <a name="macro_DOCS_DIR"></a> -Specify directory with source .md files for DOCS multimodule if it differs from project directory. -Path must be Arcadia root relative. - -@see: [DOCS](#multimodule\_DOCS) - + +@see: [DOCS](#multimodule\_DOCS) + +###### Macro [DOCS\_DIR][](path) <a name="macro_DOCS_DIR"></a> +Specify directory with source .md files for DOCS multimodule if it differs from project directory. +Path must be Arcadia root relative. + +@see: [DOCS](#multimodule\_DOCS) + ###### Macro [DOCS\_INCLUDE\_SOURCES][](path...) <a name="macro_DOCS_INCLUDE_SOURCES"></a> Specify a list of paths to source code files which will be used as text includes in a documentation project. Paths must be Arcadia root relative. @see: [DOCS](#multimodule\_DOCS) -###### Macro [DOCS\_VARS][](variable1=value1 variable2=value2 ...) <a name="macro_DOCS_VARS"></a> -Specify a set of default values of template variables for DOCS multimodule. -There must be no spaces around "=". Values will be treated as strings. - -@see: [DOCS](#multimodule\_DOCS) - -###### Macro [DUMPERF\_CODEGEN][](Prefix) <a name="macro_DUMPERF_CODEGEN"></a> -A special case BASE\_CODEGEN, in which the extsearch/images/robot/tools/dumperf/codegen tool is used - +###### Macro [DOCS\_VARS][](variable1=value1 variable2=value2 ...) <a name="macro_DOCS_VARS"></a> +Specify a set of default values of template variables for DOCS multimodule. +There must be no spaces around "=". Values will be treated as strings. + +@see: [DOCS](#multimodule\_DOCS) + +###### Macro [DUMPERF\_CODEGEN][](Prefix) <a name="macro_DUMPERF_CODEGEN"></a> +A special case BASE\_CODEGEN, in which the extsearch/images/robot/tools/dumperf/codegen tool is used + ###### Macro [DYNAMIC\_LIBRARY\_FROM][](Paths) <a name="macro_DYNAMIC_LIBRARY_FROM"></a> Use specified libraries as sources of DLL -###### Macro IF(condition) .. [ELSE][]IF(other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_ELSE"></a> -Apply macros if none of previous conditions hold - -###### Macro IF(condition) .. [ELSEIF][](other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_ELSEIF"></a> -Apply macros if other\_condition holds while none of previous conditions hold - +###### Macro IF(condition) .. [ELSE][]IF(other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_ELSE"></a> +Apply macros if none of previous conditions hold + +###### Macro IF(condition) .. [ELSEIF][](other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_ELSEIF"></a> +Apply macros if other\_condition holds while none of previous conditions hold + ###### Macro [EMBED\_JAVA\_VCS\_INFO][]() <a name="macro_EMBED_JAVA_VCS_INFO"></a> Embed manifest with vcs info into `EXTERNAL\_JAVA\_LIBRARY` By default this is disabled. -###### Macro [ENABLE][](varname) _#builtin_ <a name="macro_ENABLE"></a> +###### Macro [ENABLE][](varname) _#builtin_ <a name="macro_ENABLE"></a> Sets varname to 'yes' - + ###### Macro [ENABLE\_PREVIEW][]() <a name="macro_ENABLE_PREVIEW"></a> Enable java preview features. -###### Macro [END][]() _# builtin_ <a name="macro_END"></a> -The end of the module - -###### Macro IF(condition) .. ELSEIF(other\_condition) .. ELSE() .. [ENDIF][]() _#builtin_ <a name="macro_ENDIF"></a> -End of conditional construct - -###### Macro [ENV][](key[=value]) <a name="macro_ENV"></a> -Sets env variable key to value (gets value from system env by default). - -###### Macro [EXCLUDE][] <a name="macro_EXCLUDE"></a> -EXCLUDE(prefixes) - -The macro is in development. -Specifies which libraries should be excluded from the classpath. - -###### Macro [EXCLUDE\_TAGS][](tags...) _# builtin_ <a name="macro_EXCLUDE_TAGS"></a> -Instantiate from multimodule all variants except ones with tags listed - -###### Macro [EXPORTS\_SCRIPT][](exports\_file) <a name="macro_EXPORTS_SCRIPT"></a> +###### Macro [END][]() _# builtin_ <a name="macro_END"></a> +The end of the module + +###### Macro IF(condition) .. ELSEIF(other\_condition) .. ELSE() .. [ENDIF][]() _#builtin_ <a name="macro_ENDIF"></a> +End of conditional construct + +###### Macro [ENV][](key[=value]) <a name="macro_ENV"></a> +Sets env variable key to value (gets value from system env by default). + +###### Macro [EXCLUDE][] <a name="macro_EXCLUDE"></a> +EXCLUDE(prefixes) + +The macro is in development. +Specifies which libraries should be excluded from the classpath. + +###### Macro [EXCLUDE\_TAGS][](tags...) _# builtin_ <a name="macro_EXCLUDE_TAGS"></a> +Instantiate from multimodule all variants except ones with tags listed + +###### Macro [EXPORTS\_SCRIPT][](exports\_file) <a name="macro_EXPORTS_SCRIPT"></a> Specify exports script within PROGRAM, DLL and DLL-derived modules. -This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files. +This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files. The other option use EXPORTS parameter of the DLL module itself. - -@see: [DLL](#module\_DLL) - + +@see: [DLL](#module\_DLL) + ###### Macro [EXPORT\_ALL\_DYNAMIC\_SYMBOLS][]() <a name="macro_EXPORT_ALL_DYNAMIC_SYMBOLS"></a> Export all non-hidden symbols as dynamic when linking a PROGRAM. -###### Macro [EXPORT\_YMAPS\_PROTO][]() _# maps-specific_ <a name="macro_EXPORT_YMAPS_PROTO"></a> -Maps-specific .proto handling: IMPORT\_YMAPS\_PROTO() + maps protobuf namespace. - +###### Macro [EXPORT\_YMAPS\_PROTO][]() _# maps-specific_ <a name="macro_EXPORT_YMAPS_PROTO"></a> +Maps-specific .proto handling: IMPORT\_YMAPS\_PROTO() + maps protobuf namespace. + ###### Macro [EXPOSE][](OutputsToExport...) <a name="macro_EXPOSE"></a> Allows to mark outputs of macro command as unused in the current module but intended to be used in modules consuming current via PEERDIR. @@ -1199,22 +1199,22 @@ TODO(DEVTOOLS-9000) proper implementation needed ###### Macro [EXTERNAL\_JAR][] <a name="macro_EXTERNAL_JAR"></a> Not documented yet. - -###### Macro [EXTERNAL\_RESOURCE][](...) _#builtin, deprecated_ <a name="macro_EXTERNAL_RESOURCE"></a> -Don't use this. Use RESOURCE\_LIBRARY or FROM\_SANDBOX instead - + +###### Macro [EXTERNAL\_RESOURCE][](...) _#builtin, deprecated_ <a name="macro_EXTERNAL_RESOURCE"></a> +Don't use this. Use RESOURCE\_LIBRARY or FROM\_SANDBOX instead + ###### Macro [EXTRADIR][](...) _#builtin, deprecated_ <a name="macro_EXTRADIR"></a> -Ignored - -###### Macro [EXTRALIBS][](liblist) _# builtin_ <a name="macro_EXTRALIBS"></a> -Add external dynamic libraries during program linkage stage - -###### Macro [EXTRALIBS\_STATIC][](Libs...) <a name="macro_EXTRALIBS_STATIC"></a> -Add the specified external static libraries to the program link - -###### Macro [FAT\_RESOURCE][] <a name="macro_FAT_RESOURCE"></a> -Not documented yet. - +Ignored + +###### Macro [EXTRALIBS][](liblist) _# builtin_ <a name="macro_EXTRALIBS"></a> +Add external dynamic libraries during program linkage stage + +###### Macro [EXTRALIBS\_STATIC][](Libs...) <a name="macro_EXTRALIBS_STATIC"></a> +Add the specified external static libraries to the program link + +###### Macro [FAT\_RESOURCE][] <a name="macro_FAT_RESOURCE"></a> +Not documented yet. + ###### Macro [FBS\_NAMESPACE][](NAMESPACE, PATH...) <a name="macro_FBS_NAMESPACE"></a> Not documented yet. @@ -1224,49 +1224,49 @@ Not documented yet. ###### Macro [FLATC\_FLAGS][](flags...) <a name="macro_FLATC_FLAGS"></a> Add flags to flatc command line -###### Macro [FLAT\_JOIN\_SRCS\_GLOBAL][](Out Src...) <a name="macro_FLAT_JOIN_SRCS_GLOBAL"></a> -Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). -This macro places all files into single file, so will work with any sources. +###### Macro [FLAT\_JOIN\_SRCS\_GLOBAL][](Out Src...) <a name="macro_FLAT_JOIN_SRCS_GLOBAL"></a> +Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). +This macro places all files into single file, so will work with any sources. You should specify file name with the extension as Out. Further processing will be done according to this extension. - -###### Macro [FORK\_SUBTESTS][]() <a name="macro_FORK_SUBTESTS"></a> -Splits the test run in chunks on subtests. -The number of chunks can be overridden using the macro SPLIT\_FACTOR. - + +###### Macro [FORK\_SUBTESTS][]() <a name="macro_FORK_SUBTESTS"></a> +Splits the test run in chunks on subtests. +The number of chunks can be overridden using the macro SPLIT\_FACTOR. + Allows to run tests in parallel. Supported in UNITTEST, JTEST/JUNIT5 and PY2TEST/PY3TEST modules. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [FORK\_TESTS][]() <a name="macro_FORK_TESTS"></a> -Splits a test run on chunks by test classes. -The number of chunks can be overridden using the macro SPLIT\_FACTOR. - + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [FORK\_TESTS][]() <a name="macro_FORK_TESTS"></a> +Splits a test run on chunks by test classes. +The number of chunks can be overridden using the macro SPLIT\_FACTOR. + Allows to run tests in parallel. Supported in UNITTEST, JTEST/JUNIT5 and PY2TEST/PY3TEST modules. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [FORK\_TEST\_FILES][]() <a name="macro_FORK_TEST_FILES"></a> + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [FORK\_TEST\_FILES][]() <a name="macro_FORK_TEST_FILES"></a> Only for PY2TEST and PY3TEST: splits a file executable with the tests on chunks in the files listed in TEST\_SRCS -Compatible with FORK\_(SUB)TESTS. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - +Compatible with FORK\_(SUB)TESTS. + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + ###### Macro [FROM\_ARCHIVE][](Src [RENAME <resource files>] OUT\_[NOAUTO] <output files> [EXECUTABLE]) <a name="macro_FROM_ARCHIVE"></a> Process file archive as [FROM\_SANDBOX()](#macro\_FROM\_SANDBOX). ###### Macro [FROM\_MDS][]([FILE] key [RENAME <resource files>] OUT\_[NOAUTO] <output files> [EXECUTABLE]) <a name="macro_FROM_MDS"></a> Download resource from MDS with the specified key and process like [FROM\_SANDBOX()](#macro\_FROM\_SANDBOX). - + ###### Macro [FROM\_NPM][](NAME VERSION SKY\_ID INTEGRITY INTEGRITY\_ALGO TARBALL\_PATH) <a name="macro_FROM_NPM"></a> Not documented yet. ###### Macro [FROM\_SANDBOX][]([FILE] resource\_id [AUTOUPDATED script] [RENAME <resource files>] OUT\_[NOAUTO] <output files> [EXECUTABLE] [OUTPUT\_INCLUDES <include files>]) <a name="macro_FROM_SANDBOX"></a> Download the resource from the Sandbox, unpack (if not explicitly specified word FILE) and add OUT files to the build. EXECUTABLE makes them executable. You may specify extra dependencies that output files bring using OUTPUT\_INCLUDES. The change of these may e.g. lead to recompilation of .cpp files extracted from resource. -If there is no default processing for OUT files or you need process them specially use OUT\_NOAUTO instead of OUT. - -It is disallowed to specify directory as OUT/OUT\_NOAUTO since all outputs of commands shall be known to build system. - +If there is no default processing for OUT files or you need process them specially use OUT\_NOAUTO instead of OUT. + +It is disallowed to specify directory as OUT/OUT\_NOAUTO since all outputs of commands shall be known to build system. + RENAME renames files to the corresponding OUT and OUT\_NOAUTO outputs: FROM\_SANDBOX(resource\_id RENAME in\_file1 in\_file2 OUT out\_file1 out\_file2 out\_file3) FROM\_SANDBOX(resource\_id RENAME in\_file1 OUT out\_file1 RENAME in\_file2 OUT out\_file2) @@ -1274,127 +1274,127 @@ FROM\_SANDBOX(FILE resource\_id RENAME resource\_file OUT out\_name) RENAME RESOURCE allows to rename the resource without specifying its file name. -If AUTOUPDATED is specified than macro will be regularly updated according to autoupdate script. The dedicated Sandbox task scans the arcadia and +If AUTOUPDATED is specified than macro will be regularly updated according to autoupdate script. The dedicated Sandbox task scans the arcadia and changes resource\_ids in such macros if newer resource of specified type is available. Note that the task seeks AUTOUPDATED in specific position, -so you shall place it immediately after resource\_id. - -###### Macro [FUZZ\_DICTS][](path1 [path2...]) <a name="macro_FUZZ_DICTS"></a> -Allows you to specify dictionaries, relative to the root of Arcadia, which will be used in Fuzzing. -Libfuzzer and AFL use a single syntax for dictionary descriptions. -Should only be used in FUZZ modules. - -Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ - -###### Macro [FUZZ\_OPTS][](opt1 [Opt2...]) <a name="macro_FUZZ_OPTS"></a> -Overrides or adds options to the corpus mining and fuzzer run. -Currently supported only Libfuzzer, so you should use the options for it. -Should only be used in FUZZ modules. - -@example: - - FUZZ_OPTS ( - -max_len=1024 - -rss_limit_mb=8192 - ) - -Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ - -###### Macro [GENERATED\_SRCS][](srcs... PARSE\_META\_FROM cpp\_srcs... [OUTPUT\_INCLUDES output\_includes...] [OPTIONS]) <a name="macro_GENERATED_SRCS"></a> -Generate sources using Jinja 2 template engine. - -srcs... - list of text files which will be generated during build time by templates. Each template must be - placed to the place in source tree where corresponding source file should be generated. Name of +so you shall place it immediately after resource\_id. + +###### Macro [FUZZ\_DICTS][](path1 [path2...]) <a name="macro_FUZZ_DICTS"></a> +Allows you to specify dictionaries, relative to the root of Arcadia, which will be used in Fuzzing. +Libfuzzer and AFL use a single syntax for dictionary descriptions. +Should only be used in FUZZ modules. + +Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ + +###### Macro [FUZZ\_OPTS][](opt1 [Opt2...]) <a name="macro_FUZZ_OPTS"></a> +Overrides or adds options to the corpus mining and fuzzer run. +Currently supported only Libfuzzer, so you should use the options for it. +Should only be used in FUZZ modules. + +@example: + + FUZZ_OPTS ( + -max_len=1024 + -rss_limit_mb=8192 + ) + +Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ + +###### Macro [GENERATED\_SRCS][](srcs... PARSE\_META\_FROM cpp\_srcs... [OUTPUT\_INCLUDES output\_includes...] [OPTIONS]) <a name="macro_GENERATED_SRCS"></a> +Generate sources using Jinja 2 template engine. + +srcs... - list of text files which will be generated during build time by templates. Each template must be + placed to the place in source tree where corresponding source file should be generated. Name of template must be "<name\_of\_src\_file>.markettemplate". For example if you want to generate file "example.cpp" then template should be named "example.cpp.markettemplate". -PARSE\_META\_FROM cpp\_srcs... - list of C++ source files (.cpp, .h) which will be parsed using clang library - and metainformation extracted from the files will be made available for templates. Example of - template code fragment using metainformation: {{ meta.objects["@N@std@S@string"].name }} -OUTPUT\_INCLUDES output\_includes... - in cases when build system parser fails to determine all headers - which generated files include, you can specify additional headers here. In a normal situation this should - not be needed and this feature could be removed in the future. -OPTIONS - additional options for code\_generator utility - -Examples of templates can be found in directory market/tools/code\_generator/templates. -Metainformation does not contain entries for every object declared in C++ files specified in PARSE\_META\_FROM -parameter. To include some object into consideration you need to mark it by attribute. Attributes can -automatically add more attributes to dependent objects. This behavior depends on attribute definition. - -More information will be available (eventually:) here: https://wiki.yandex-team.ru/Users/denisk/codegenerator/ - -###### Macro [GENERATE\_ENUM\_SERIALIZATION][](File.h) <a name="macro_GENERATE_ENUM_SERIALIZATION"></a> -Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module. - -Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ - -###### Macro [GENERATE\_ENUM\_SERIALIZATION\_WITH\_HEADER][](File.h) <a name="macro_GENERATE_ENUM_SERIALIZATION_WITH_HEADER"></a> -Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module -Provide access to serialization functions via generated header File\_serialized.h - -Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ - -###### Macro [GENERATE\_PY\_PROTOS][](ProtoFiles...) _# deprecated_ <a name="macro_GENERATE_PY_PROTOS"></a> -Generate python bindings for protobuf files. -Macro is obsolete and not recommended for use! - -###### Macro [GENERATE\_SCRIPT][] <a name="macro_GENERATE_SCRIPT"></a> -heretic@ promised to make tutorial here -Don't forget -Feel free to remind - -###### Macro [GEN\_SCHEEME2][](scheeme\_name from\_file dependent\_files...) <a name="macro_GEN_SCHEEME2"></a> -Generates a C++ description for structure(contains the field RecordSig) in the specified file (and connected). - -1. ${scheeme\_name}.inc - the name of the generated file. -2. Use an environment variable - DATAWORK\_SCHEEME\_EXPORT\_FLAGS that allows to specify flags to tools/structparser - -@example: - - SET(DATAWORK_SCHEEME_EXPORT_FLAGS --final_only -m "::") - -all options are passed to structparser (in this example --final\_only - do not export heirs with public base that contains the required field,,- m "::" only from the root namespace) -sets in extra option - -@example: - - SET(EXTRACT_STRUCT_INFO_FLAGS -f \"const static ui32 RecordSig\" - -u \"RecordSig\" -n${scheeme_name}SchemeInfo ----gcc44_no_typename no_complex_overloaded_func_export - ${DATAWORK_SCHEEME_EXPORT_FLAGS}) - -for compatibility with C++ compiler and the external environment. -See tools/structparser for more details. - -###### Macro [GLOBAL\_SRCS][](filenames...) <a name="macro_GLOBAL_SRCS"></a> -Make all source files listed as GLOBAL. -Call to GLOBAL\_SRCS macro is equivalent to call to SRCS macro when each source file is marked with GLOBAL keyword. -Arcadia root relative or project dir relative paths are supported for filenames arguments. GLOBAL keyword is not -recognized for GLOBAL\_SRCS in contrast to SRCS macro. - -@example: -Consider the file to ya.make: - - LIBRARY() - GLOBAL_SRCS(foo.cpp bar.cpp) - END() - -@see: [SRCS()](#macro\_SRCS) - -###### Macro [GO\_ASM\_FLAGS][](flags) <a name="macro_GO_ASM_FLAGS"></a> +PARSE\_META\_FROM cpp\_srcs... - list of C++ source files (.cpp, .h) which will be parsed using clang library + and metainformation extracted from the files will be made available for templates. Example of + template code fragment using metainformation: {{ meta.objects["@N@std@S@string"].name }} +OUTPUT\_INCLUDES output\_includes... - in cases when build system parser fails to determine all headers + which generated files include, you can specify additional headers here. In a normal situation this should + not be needed and this feature could be removed in the future. +OPTIONS - additional options for code\_generator utility + +Examples of templates can be found in directory market/tools/code\_generator/templates. +Metainformation does not contain entries for every object declared in C++ files specified in PARSE\_META\_FROM +parameter. To include some object into consideration you need to mark it by attribute. Attributes can +automatically add more attributes to dependent objects. This behavior depends on attribute definition. + +More information will be available (eventually:) here: https://wiki.yandex-team.ru/Users/denisk/codegenerator/ + +###### Macro [GENERATE\_ENUM\_SERIALIZATION][](File.h) <a name="macro_GENERATE_ENUM_SERIALIZATION"></a> +Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module. + +Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ + +###### Macro [GENERATE\_ENUM\_SERIALIZATION\_WITH\_HEADER][](File.h) <a name="macro_GENERATE_ENUM_SERIALIZATION_WITH_HEADER"></a> +Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module +Provide access to serialization functions via generated header File\_serialized.h + +Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ + +###### Macro [GENERATE\_PY\_PROTOS][](ProtoFiles...) _# deprecated_ <a name="macro_GENERATE_PY_PROTOS"></a> +Generate python bindings for protobuf files. +Macro is obsolete and not recommended for use! + +###### Macro [GENERATE\_SCRIPT][] <a name="macro_GENERATE_SCRIPT"></a> +heretic@ promised to make tutorial here +Don't forget +Feel free to remind + +###### Macro [GEN\_SCHEEME2][](scheeme\_name from\_file dependent\_files...) <a name="macro_GEN_SCHEEME2"></a> +Generates a C++ description for structure(contains the field RecordSig) in the specified file (and connected). + +1. ${scheeme\_name}.inc - the name of the generated file. +2. Use an environment variable - DATAWORK\_SCHEEME\_EXPORT\_FLAGS that allows to specify flags to tools/structparser + +@example: + + SET(DATAWORK_SCHEEME_EXPORT_FLAGS --final_only -m "::") + +all options are passed to structparser (in this example --final\_only - do not export heirs with public base that contains the required field,,- m "::" only from the root namespace) +sets in extra option + +@example: + + SET(EXTRACT_STRUCT_INFO_FLAGS -f \"const static ui32 RecordSig\" + -u \"RecordSig\" -n${scheeme_name}SchemeInfo ----gcc44_no_typename no_complex_overloaded_func_export + ${DATAWORK_SCHEEME_EXPORT_FLAGS}) + +for compatibility with C++ compiler and the external environment. +See tools/structparser for more details. + +###### Macro [GLOBAL\_SRCS][](filenames...) <a name="macro_GLOBAL_SRCS"></a> +Make all source files listed as GLOBAL. +Call to GLOBAL\_SRCS macro is equivalent to call to SRCS macro when each source file is marked with GLOBAL keyword. +Arcadia root relative or project dir relative paths are supported for filenames arguments. GLOBAL keyword is not +recognized for GLOBAL\_SRCS in contrast to SRCS macro. + +@example: +Consider the file to ya.make: + + LIBRARY() + GLOBAL_SRCS(foo.cpp bar.cpp) + END() + +@see: [SRCS()](#macro\_SRCS) + +###### Macro [GO\_ASM\_FLAGS][](flags) <a name="macro_GO_ASM_FLAGS"></a> Add the specified flags to the go asm compile command line. - + ###### Macro [GO\_BENCH\_TIMEOUT][](x) <a name="macro_GO_BENCH_TIMEOUT"></a> Sets timeout in seconds for 1 Benchmark in go benchmark suite Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ -###### Macro [GO\_CGO1\_FLAGS][](flags) <a name="macro_GO_CGO1_FLAGS"></a> -Add the specified flags to the go cgo compile command line. - -###### Macro [GO\_CGO2\_FLAGS][](flags) <a name="macro_GO_CGO2_FLAGS"></a> -Add the specified flags to the go cgo compile command line. - -###### Macro [GO\_COMPILE\_FLAGS][](flags) <a name="macro_GO_COMPILE_FLAGS"></a> -Add the specified flags to the go compile command line. - +###### Macro [GO\_CGO1\_FLAGS][](flags) <a name="macro_GO_CGO1_FLAGS"></a> +Add the specified flags to the go cgo compile command line. + +###### Macro [GO\_CGO2\_FLAGS][](flags) <a name="macro_GO_CGO2_FLAGS"></a> +Add the specified flags to the go cgo compile command line. + +###### Macro [GO\_COMPILE\_FLAGS][](flags) <a name="macro_GO_COMPILE_FLAGS"></a> +Add the specified flags to the go compile command line. + ###### Macro [GO\_EMBED\_DIR][](DIR) <a name="macro_GO_EMBED_DIR"></a> Define an embed directory DIR. @@ -1407,21 +1407,21 @@ Define an embed directory DIR for internal go tests. ###### Macro GO\_XTEST\_EMBED\_DIR(DIR) <a name="macro_GO_EMBED_XTEST_DIR"></a> Define an embed directory DIR for external go tests. -###### Macro [GO\_FAKE\_OUTPUT][](go-src-files...) <a name="macro_GO_FAKE_OUTPUT"></a> -Not documented yet. - +###### Macro [GO\_FAKE\_OUTPUT][](go-src-files...) <a name="macro_GO_FAKE_OUTPUT"></a> +Not documented yet. + ###### Macro [GO\_GRPC\_GATEWAY\_SRCS][]() <a name="macro_GO_GRPC_GATEWAY_SRCS"></a> Use of grpc-gateway plugin (Supported for Go only). ###### Macro [GO\_GRPC\_GATEWAY\_SWAGGER\_SRCS][]() <a name="macro_GO_GRPC_GATEWAY_SWAGGER_SRCS"></a> Use of grpc-gateway plugin w/ swagger emission (Supported for Go only). -###### Macro [GO\_LDFLAGS][](Flags...) <a name="macro_GO_LDFLAGS"></a> -Link flags for GO\_PROGRAM linking from .go sources - -###### Macro [GO\_LINK\_FLAGS][](flags) <a name="macro_GO_LINK_FLAGS"></a> -Add the specified flags to the go link command line. - +###### Macro [GO\_LDFLAGS][](Flags...) <a name="macro_GO_LDFLAGS"></a> +Link flags for GO\_PROGRAM linking from .go sources + +###### Macro [GO\_LINK\_FLAGS][](flags) <a name="macro_GO_LINK_FLAGS"></a> +Add the specified flags to the go link command line. + ###### Macro [GO\_MOCKGEN\_FROM][](Path) <a name="macro_GO_MOCKGEN_FROM"></a> Not documented yet. @@ -1434,9 +1434,9 @@ Not documented yet. ###### Macro [GO\_MOCKGEN\_TYPES][](First, Rest...) <a name="macro_GO_MOCKGEN_TYPES"></a> Not documented yet. -###### Macro [GO\_PACKAGE\_NAME][](Name) <a name="macro_GO_PACKAGE_NAME"></a> -Override name of a Go package. - +###### Macro [GO\_PACKAGE\_NAME][](Name) <a name="macro_GO_PACKAGE_NAME"></a> +Override name of a Go package. + ###### Macro [GO\_PROTO\_PLUGIN][](Name Ext Tool [DEPS dependencies...]) <a name="macro_GO_PROTO_PLUGIN"></a> Define protoc plugin for GO with given Name that emits extra output with provided extension Ext using Tool. Extra dependencies are passed via DEPS. @@ -1448,26 +1448,26 @@ NB! Subtests are not taken into account! ###### Macro [GO\_TEST\_EMBED\_PATTERN][](PATTERN) <a name="macro_GO_TEST_EMBED_PATTERN"></a> Define an embed pattern for internal go tests. -###### Macro [GO\_TEST\_FOR][](path/to/module) _#builtin_ <a name="macro_GO_TEST_FOR"></a> -Produces go test for specified module - -###### Macro [GO\_TEST\_SRCS][](Files...) <a name="macro_GO_TEST_SRCS"></a> -.go sources for internal tests of a module - +###### Macro [GO\_TEST\_FOR][](path/to/module) _#builtin_ <a name="macro_GO_TEST_FOR"></a> +Produces go test for specified module + +###### Macro [GO\_TEST\_SRCS][](Files...) <a name="macro_GO_TEST_SRCS"></a> +.go sources for internal tests of a module + ###### Macro [GO\_XTEST\_EMBED\_PATTERN][](PATTERN) <a name="macro_GO_XTEST_EMBED_PATTERN"></a> Define an embed pattern for external go tests. -###### Macro [GO\_XTEST\_SRCS][](Files...) <a name="macro_GO_XTEST_SRCS"></a> -.go sources for external tests of a module - -###### Macro [GRPC][]() <a name="macro_GRPC"></a> -Emit GRPC code for all .proto files in a PROTO\_LIBRARY. -This works for all available PROTO\_LIBRARY versions (C++, Python 2.x, Pyton 3.x, Java and Go). - -###### Macro [IDEA\_EXCLUDE\_DIRS][](<excluded dirs>) <a name="macro_IDEA_EXCLUDE_DIRS"></a> -Exclude specified directories from an idea project generated by ya ide idea -Have no effect on regular build. - +###### Macro [GO\_XTEST\_SRCS][](Files...) <a name="macro_GO_XTEST_SRCS"></a> +.go sources for external tests of a module + +###### Macro [GRPC][]() <a name="macro_GRPC"></a> +Emit GRPC code for all .proto files in a PROTO\_LIBRARY. +This works for all available PROTO\_LIBRARY versions (C++, Python 2.x, Pyton 3.x, Java and Go). + +###### Macro [IDEA\_EXCLUDE\_DIRS][](<excluded dirs>) <a name="macro_IDEA_EXCLUDE_DIRS"></a> +Exclude specified directories from an idea project generated by ya ide idea +Have no effect on regular build. + ###### Macro [IDEA\_JAR\_SRCS][](Args...) <a name="macro_IDEA_JAR_SRCS"></a> Not documented yet. @@ -1475,36 +1475,36 @@ Not documented yet. Set module name in an idea project generated by ya ide idea Have no effect on regular build. -###### Macro [IDEA\_RESOURCE\_DIRS][](<additional dirs>) <a name="macro_IDEA_RESOURCE_DIRS"></a> -Set specified resource directories in an idea project generated by ya ide idea -Have no effect on regular build. - -###### Macro [IF][](condition) .. ELSEIF(other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_IF"></a> -Apply macros if condition holds - -###### Macro [INCLUDE][](filename) _#builtin_ <a name="macro_INCLUDE"></a> -Include file textually and process it as a part of the ya.make - -###### Macro [INCLUDE\_TAGS][](tags...) _# builtin_ <a name="macro_INCLUDE_TAGS"></a> -Additionally instantiate from multimodule all variants with tags listed (overrides default) - -###### Macro [INDUCED\_DEPS][](Extension Path...) _#builtin_ <a name="macro_INDUCED_DEPS"></a> +###### Macro [IDEA\_RESOURCE\_DIRS][](<additional dirs>) <a name="macro_IDEA_RESOURCE_DIRS"></a> +Set specified resource directories in an idea project generated by ya ide idea +Have no effect on regular build. + +###### Macro [IF][](condition) .. ELSEIF(other\_condition) .. ELSE() .. ENDIF() _#builtin_ <a name="macro_IF"></a> +Apply macros if condition holds + +###### Macro [INCLUDE][](filename) _#builtin_ <a name="macro_INCLUDE"></a> +Include file textually and process it as a part of the ya.make + +###### Macro [INCLUDE\_TAGS][](tags...) _# builtin_ <a name="macro_INCLUDE_TAGS"></a> +Additionally instantiate from multimodule all variants with tags listed (overrides default) + +###### Macro [INDUCED\_DEPS][](Extension Path...) _#builtin_ <a name="macro_INDUCED_DEPS"></a> States that files wih the Extension generated by the PROGRAM will depend on files in Path. This only useful in PROGRAM and similar modules. It will be applied if the PROGRAM is used in RUN\_PROGRAM macro. All Paths specified must be absolute arcadia paths i.e. start with ${ARCADIA\_ROOT} ${ARCADIA\_BUILD\_ROOT}, ${CURDIR} or ${BINDIR}. - -###### Macro [IOS\_APP\_ASSETS\_FLAGS][](Flags...) <a name="macro_IOS_APP_ASSETS_FLAGS"></a> -Not documented yet. - -###### Macro [IOS\_APP\_COMMON\_FLAGS][](Flags...) <a name="macro_IOS_APP_COMMON_FLAGS"></a> -Not documented yet. - -###### Macro [IOS\_APP\_SETTINGS][] <a name="macro_IOS_APP_SETTINGS"></a> -Not documented yet. - -###### Macro [IOS\_ASSETS][] <a name="macro_IOS_ASSETS"></a> -Not documented yet. - + +###### Macro [IOS\_APP\_ASSETS\_FLAGS][](Flags...) <a name="macro_IOS_APP_ASSETS_FLAGS"></a> +Not documented yet. + +###### Macro [IOS\_APP\_COMMON\_FLAGS][](Flags...) <a name="macro_IOS_APP_COMMON_FLAGS"></a> +Not documented yet. + +###### Macro [IOS\_APP\_SETTINGS][] <a name="macro_IOS_APP_SETTINGS"></a> +Not documented yet. + +###### Macro [IOS\_ASSETS][] <a name="macro_IOS_ASSETS"></a> +Not documented yet. + ###### Macro [JAR\_ANNOTATION\_PROCESSOR][](Classes...) <a name="macro_JAR_ANNOTATION_PROCESSOR"></a> Not documented yet. @@ -1519,9 +1519,9 @@ Filter .jar file content: keep only matched files ###### Macro [JAR\_RESOURCE][](Id) <a name="macro_JAR_RESOURCE"></a> Not documented yet. -###### Macro [JAVAC\_FLAGS][](Args...) <a name="macro_JAVAC_FLAGS"></a> -Set additional Java compilation flags. - +###### Macro [JAVAC\_FLAGS][](Args...) <a name="macro_JAVAC_FLAGS"></a> +Set additional Java compilation flags. + ###### Macro [JAVA\_DEPENDENCIES\_CONFIGURATION][](Vetos...) <a name="macro_JAVA_DEPENDENCIES_CONFIGURATION"></a> Validate contrib/java dependencies Valid arguments @@ -1535,12 +1535,12 @@ REQUIRE\_DM - all dependencies must be specified in DEPENDENCY\_MANAGEMENT (tran ###### Macro [JAVA\_EXTERNAL\_DEPENDENCIES][](file1 file2 ...) <a name="macro_JAVA_EXTERNAL_DEPENDENCIES"></a> Add non-source java external build dependency (like lombok config file) -###### Macro [JAVA\_IGNORE\_CLASSPATH\_CLASH\_FOR][]([classes]) <a name="macro_JAVA_IGNORE_CLASSPATH_CLASH_FOR"></a> -Ignore classpath clash test fails for classes - -###### Macro [JAVA\_MODULE][] <a name="macro_JAVA_MODULE"></a> -Not documented yet. - +###### Macro [JAVA\_IGNORE\_CLASSPATH\_CLASH\_FOR][]([classes]) <a name="macro_JAVA_IGNORE_CLASSPATH_CLASH_FOR"></a> +Ignore classpath clash test fails for classes + +###### Macro [JAVA\_MODULE][] <a name="macro_JAVA_MODULE"></a> +Not documented yet. + ###### Macro [JAVA\_PROTO\_PLUGIN][](Name Tool DEPS <Dependencies>) <a name="macro_JAVA_PROTO_PLUGIN"></a> Define protoc plugin for Java with given Name that emits extra outputs using Tool. Extra dependencies are passed via DEPS @@ -1551,57 +1551,57 @@ Override CPU and RAM requirements for all C/C++ compilation commands in the modu ###### Macro [JAVA\_RESOURCE][](JAR, SOURCES="") <a name="macro_JAVA_RESOURCE"></a> Not documented yet. -###### Macro [JAVA\_SRCS][](srcs) <a name="macro_JAVA_SRCS"></a> -Specify java source files and resources. A macro can be contained in any of four java modules. -Keywords: -1. X SRCDIR - specify the directory x is performed relatively to search the source code for these patterns. If there is no SRCDIR, the source will be searched relative to the module directory. -2. PACKAGE\_PREFIX x - use if source paths relative to the SRCDIR does not coincide with the full class names. For example, if all sources of module are in the same package, you can create a directory package/name , and just put the source code in the SRCDIR and specify PACKAGE\_PREFIX package.name. - -@example: - - example/ya.make - - JAVA_PROGRAM() - JAVA_SRCS(SRCDIR src/main/java **/*) - END() - - - example/src/main/java/ru/yandex/example/HelloWorld.java - - package ru.yandex.example; - public class HelloWorld { - public static void main(String[] args) { - System.out.println("Hello, World!"); - } - } - -Documentation: https://wiki.yandex-team.ru/yatool/java/#javasrcs - -###### Macro [JAVA\_TEST][] <a name="macro_JAVA_TEST"></a> -Not documented yet. - -###### Macro [JAVA\_TEST\_DEPS][] <a name="macro_JAVA_TEST_DEPS"></a> -Not documented yet. - +###### Macro [JAVA\_SRCS][](srcs) <a name="macro_JAVA_SRCS"></a> +Specify java source files and resources. A macro can be contained in any of four java modules. +Keywords: +1. X SRCDIR - specify the directory x is performed relatively to search the source code for these patterns. If there is no SRCDIR, the source will be searched relative to the module directory. +2. PACKAGE\_PREFIX x - use if source paths relative to the SRCDIR does not coincide with the full class names. For example, if all sources of module are in the same package, you can create a directory package/name , and just put the source code in the SRCDIR and specify PACKAGE\_PREFIX package.name. + +@example: + - example/ya.make + + JAVA_PROGRAM() + JAVA_SRCS(SRCDIR src/main/java **/*) + END() + + - example/src/main/java/ru/yandex/example/HelloWorld.java + + package ru.yandex.example; + public class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello, World!"); + } + } + +Documentation: https://wiki.yandex-team.ru/yatool/java/#javasrcs + +###### Macro [JAVA\_TEST][] <a name="macro_JAVA_TEST"></a> +Not documented yet. + +###### Macro [JAVA\_TEST\_DEPS][] <a name="macro_JAVA_TEST_DEPS"></a> +Not documented yet. + ###### Macro MODULE\_JDK(Version) <a name="macro_JDK_VERSION"></a> Specify JDK version for module -###### Macro [JOINSRC][]() _# deprecated, does-nothing_ <a name="macro_JOINSRC"></a> -This macro currently does nothing. Use JOIN\_SRCS and similar macros to make one file of set of sources. - -###### Macro [JOIN\_SRCS][](Out Src...) <a name="macro_JOIN_SRCS"></a> -Join set of sources into single file named Out and send it for further processing. -This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. -You should specify file name with the extension as Out. Futher processing will be done according this extension. - -###### Macro [JOIN\_SRCS\_GLOBAL][](Out Src...) <a name="macro_JOIN_SRCS_GLOBAL"></a> -Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). -This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. +###### Macro [JOINSRC][]() _# deprecated, does-nothing_ <a name="macro_JOINSRC"></a> +This macro currently does nothing. Use JOIN\_SRCS and similar macros to make one file of set of sources. + +###### Macro [JOIN\_SRCS][](Out Src...) <a name="macro_JOIN_SRCS"></a> +Join set of sources into single file named Out and send it for further processing. +This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. +You should specify file name with the extension as Out. Futher processing will be done according this extension. + +###### Macro [JOIN\_SRCS\_GLOBAL][](Out Src...) <a name="macro_JOIN_SRCS_GLOBAL"></a> +Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). +This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. You should specify file name with the extension as Out. Further processing will be done according to this extension. - -###### Macro [JVM\_ARGS][](Args...) <a name="macro_JVM_ARGS"></a> -Arguments to run Java programs in tests. - -Documentation: https://wiki.yandex-team.ru/yatool/test/ - + +###### Macro [JVM\_ARGS][](Args...) <a name="macro_JVM_ARGS"></a> +Arguments to run Java programs in tests. + +Documentation: https://wiki.yandex-team.ru/yatool/test/ + ###### Macro [KOTLINC\_FLAGS][](-flags) <a name="macro_KOTLINC_FLAGS"></a> Set additional Kotlin compilation flags. @@ -1610,23 +1610,23 @@ Use large file ether from working copy or from remote storage via placeholder <F If <File> is present locally (and not a symlink!) it will be copied to build directory. Otherwise macro will try to locate <File>.external, parse it retrieve ot during build phase. -###### Macro [LDFLAGS][](LinkerFlags...) <a name="macro_LDFLAGS"></a> -Add flags to the link command line of executable or shared library/dll. -Note: LDFLAGS are always global. When set in the LIBRARY module they will affect all programs/dlls/tests the library is linked into. -Note: remember about the incompatibility of flags for gcc and cl. - +###### Macro [LDFLAGS][](LinkerFlags...) <a name="macro_LDFLAGS"></a> +Add flags to the link command line of executable or shared library/dll. +Note: LDFLAGS are always global. When set in the LIBRARY module they will affect all programs/dlls/tests the library is linked into. +Note: remember about the incompatibility of flags for gcc and cl. + ###### Macro [LD\_REQUIREMENTS][]([cpu: <value>] [ram: <value>]) <a name="macro_LD_REQUIREMENTS"></a> Override CPU and RAM requirements for link command in the module ###### Macro [LIB\_REQUIREMENTS][]([cpu: <value>] [ram: <value>]) <a name="macro_LIB_REQUIREMENTS"></a> Override CPU and RAM requirements for library creation comand of a x\_LIBRARY modules -###### Macro [LICENSE][](licenses...) <a name="macro_LICENSE"></a> +###### Macro [LICENSE][](licenses...) <a name="macro_LICENSE"></a> Specify the licenses of the module, separated by spaces. Specifying multiple licenses interpreted as permission to use this library satisfying all conditions of any of the listed licenses. - -A license must be prescribed for contribs - + +A license must be prescribed for contribs + ###### Macro [LICENSE\_TEXTS][](File) <a name="macro_LICENSE_TEXTS"></a> This macro specifies the filename with all library licenses texts @@ -1639,38 +1639,38 @@ $usage: LINK\_EXEC\_DYN\_LIB\_IMPL(peers...) # internal ###### Macro [LINK\_EXE\_IMPL][] <a name="macro_LINK_EXE_IMPL"></a> $usage: LINK\_EXE\_IMPL(peers...) # internal -###### Macro [LINT][](<none|base|strict>) <a name="macro_LINT"></a> -Set linting levem for sources of the module - -###### Macro [LJ\_21\_ARCHIVE][](NAME Name LuaFiles...) _# deprecated_ <a name="macro_LJ_21_ARCHIVE"></a> -Precompile .lua files using LuaJIT 2.1 and archive both sources and results using sources names as keys - -###### Macro [LJ\_ARCHIVE][](NAME Name LuaFiles...) <a name="macro_LJ_ARCHIVE"></a> -Precompile .lua files using LuaJIT and archive both sources and results using sources names as keys - -###### Macro [LLVM\_BC][] <a name="macro_LLVM_BC"></a> -Not documented yet. - -###### Macro [LLVM\_COMPILE\_C][](Input Output Opts...) <a name="macro_LLVM_COMPILE_C"></a> +###### Macro [LINT][](<none|base|strict>) <a name="macro_LINT"></a> +Set linting levem for sources of the module + +###### Macro [LJ\_21\_ARCHIVE][](NAME Name LuaFiles...) _# deprecated_ <a name="macro_LJ_21_ARCHIVE"></a> +Precompile .lua files using LuaJIT 2.1 and archive both sources and results using sources names as keys + +###### Macro [LJ\_ARCHIVE][](NAME Name LuaFiles...) <a name="macro_LJ_ARCHIVE"></a> +Precompile .lua files using LuaJIT and archive both sources and results using sources names as keys + +###### Macro [LLVM\_BC][] <a name="macro_LLVM_BC"></a> +Not documented yet. + +###### Macro [LLVM\_COMPILE\_C][](Input Output Opts...) <a name="macro_LLVM_COMPILE_C"></a> Emit LLVM bytecode from .c file. BC\_CFLAGS, LLVM\_OPTS and C\_FLAGS\_PLATFORM are passed in, while CFLAGS are not. -Note: Output name is used as is, no extension added. - -###### Macro [LLVM\_COMPILE\_CXX][](Input Output Opts...) <a name="macro_LLVM_COMPILE_CXX"></a> +Note: Output name is used as is, no extension added. + +###### Macro [LLVM\_COMPILE\_CXX][](Input Output Opts...) <a name="macro_LLVM_COMPILE_CXX"></a> Emit LLVM bytecode from .cpp file. BC\_CXXFLAGS, LLVM\_OPTS and C\_FLAGS\_PLATFORM are passed in, while CFLAGS are not. -Note: Output name is used as is, no extension added. - -###### Macro [LLVM\_COMPILE\_LL][](Input Output Opts...) <a name="macro_LLVM_COMPILE_LL"></a> -Compile LLVM bytecode to object representation. -Note: Output name is used as is, no extension added. - -###### Macro [LLVM\_LINK][](Output Inputs...) <a name="macro_LLVM_LINK"></a> -Call llvm-link on set of Inputs to produce Output. -Note: Unlike many other macros output argument goes first. Output name is used as is, no extension added. - -###### Macro [LLVM\_OPT][](Input Output Opts...) <a name="macro_LLVM_OPT"></a> -Call llvm-opt with set of Opts on Input to produce Output. -Note: Output name is used as is, no extension added. - +Note: Output name is used as is, no extension added. + +###### Macro [LLVM\_COMPILE\_LL][](Input Output Opts...) <a name="macro_LLVM_COMPILE_LL"></a> +Compile LLVM bytecode to object representation. +Note: Output name is used as is, no extension added. + +###### Macro [LLVM\_LINK][](Output Inputs...) <a name="macro_LLVM_LINK"></a> +Call llvm-link on set of Inputs to produce Output. +Note: Unlike many other macros output argument goes first. Output name is used as is, no extension added. + +###### Macro [LLVM\_OPT][](Input Output Opts...) <a name="macro_LLVM_OPT"></a> +Call llvm-opt with set of Opts on Input to produce Output. +Note: Output name is used as is, no extension added. + ###### Macro [LOCAL\_JAR][](File) <a name="macro_LOCAL_JAR"></a> Not documented yet. @@ -1678,73 +1678,73 @@ Not documented yet. Not documented yet. ###### Macro [LUA][](script\_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[\_NOAUTO] outputs...] [STDOUT[\_NOAUTO] output] [OUTPUT\_INCLUDES output\_includes...][ REQUIREMENTS reqs]) <a name="macro_LUA"></a> -Run a lua script. +Run a lua script. These macros are similar: RUN\_PROGRAM, LUA, PYTHON. - -Parameters: + +Parameters: - script\_path - Path to the script.3 -- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. -- CWD dir - Absolute path of the working directory. -- ENV key=value... - Environment variables. -- TOOL tools... - Auxiliary tool directories. -- IN inputs... - Input files. -- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. -- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. -- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. +- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. +- CWD dir - Absolute path of the working directory. +- ENV key=value... - Environment variables. +- TOOL tools... - Auxiliary tool directories. +- IN inputs... - Input files. +- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. +- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. +- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. - REQUIREMENTS - Override default requirements for CPU and RAM - -For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or -${CURDIR} and ${BINDIR} which are expanded where the outputs are used. - -###### Macro [MACROS\_WITH\_ERROR][] <a name="macro_MACROS_WITH_ERROR"></a> -Not documented yet. - -###### Macro [MAPKITIDL][](idl-file-name... <a name="macro_MAPKITIDL"></a> -[OUT\_DIR output-dir] -[IDL\_INCLUDES idl-dirs...] -[FILTER filters...]) -[FILTER\_OUT filters...]) -[GLOBAL\_OUTPUTS] -Generate bindings to target platform language. -(Used for mobile MapKit project) -1. idl-file-name... - a list of \*.idl files to process -2. output-dir - a base root of output directory -3. idl-dirs - a list of directories where to search for imported \*.idl files + +For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or +${CURDIR} and ${BINDIR} which are expanded where the outputs are used. + +###### Macro [MACROS\_WITH\_ERROR][] <a name="macro_MACROS_WITH_ERROR"></a> +Not documented yet. + +###### Macro [MAPKITIDL][](idl-file-name... <a name="macro_MAPKITIDL"></a> +[OUT\_DIR output-dir] +[IDL\_INCLUDES idl-dirs...] +[FILTER filters...]) +[FILTER\_OUT filters...]) +[GLOBAL\_OUTPUTS] +Generate bindings to target platform language. +(Used for mobile MapKit project) +1. idl-file-name... - a list of \*.idl files to process +2. output-dir - a base root of output directory +3. idl-dirs - a list of directories where to search for imported \*.idl files 4. filters - a list of extensions used to filter outputs and output includes - -###### Macro [MAPKIT\_ADDINCL][](Dirs...) <a name="macro_MAPKIT_ADDINCL"></a> -Not documented yet. - -###### Macro [MASMFLAGS][](compiler flags) <a name="macro_MASMFLAGS"></a> -Add the specified flags to the compilation command of .masm files. - -###### Macro [MAVEN\_GROUP\_ID][](group\_id\_for\_maven\_export) <a name="macro_MAVEN_GROUP_ID"></a> -Set maven export group id for JAVA\_PROGRAM() and JAVA\_LIBRARY(). -Have no effect on regular build. - -###### Macro [MESSAGE][]([severity] message) _# builtin_ <a name="macro_MESSAGE"></a> -Print message with given severity level (STATUS, FATAL\_ERROR) - -###### Macro [METAQUERYFILES][](filenames...) _#deprecated_ <a name="macro_METAQUERYFILES"></a> + +###### Macro [MAPKIT\_ADDINCL][](Dirs...) <a name="macro_MAPKIT_ADDINCL"></a> +Not documented yet. + +###### Macro [MASMFLAGS][](compiler flags) <a name="macro_MASMFLAGS"></a> +Add the specified flags to the compilation command of .masm files. + +###### Macro [MAVEN\_GROUP\_ID][](group\_id\_for\_maven\_export) <a name="macro_MAVEN_GROUP_ID"></a> +Set maven export group id for JAVA\_PROGRAM() and JAVA\_LIBRARY(). +Have no effect on regular build. + +###### Macro [MESSAGE][]([severity] message) _# builtin_ <a name="macro_MESSAGE"></a> +Print message with given severity level (STATUS, FATAL\_ERROR) + +###### Macro [METAQUERYFILES][](filenames...) _#deprecated_ <a name="macro_METAQUERYFILES"></a> This macro does nothing and will be removed - + ###### Macro [MSVC\_FLAGS][]([GLOBAL compiler\_flag]\* compiler\_flags) <a name="macro_MSVC_FLAGS"></a> Add the specified flags to the compilation line of C/C++files. Flags apply only if the compiler used is MSVC (cl.exe) -###### Macro [MX\_FORMULAS][](BinFiles...) _# deprecated, matrixnet_ <a name="macro_MX_FORMULAS"></a> -Create MatrixNet formulas archive - -###### Macro [NEED\_CHECK][]() <a name="macro_NEED_CHECK"></a> -Commits to the project marked with this macro will be blocked by pre-commit check and then will be -automatically merged to trunk only if there is no new broken build targets in check results. -The use of this macro is disabled by default. - -###### Macro [NEED\_REVIEW][]() _# deprecated_ <a name="macro_NEED_REVIEW"></a> -Mark the project as needing review. -Reviewers are listed in the macro OWNER. The use of this macro is disabled by default. -Details can be found here: https://clubs.at.yandex-team.ru/arcadia/6104 - +###### Macro [MX\_FORMULAS][](BinFiles...) _# deprecated, matrixnet_ <a name="macro_MX_FORMULAS"></a> +Create MatrixNet formulas archive + +###### Macro [NEED\_CHECK][]() <a name="macro_NEED_CHECK"></a> +Commits to the project marked with this macro will be blocked by pre-commit check and then will be +automatically merged to trunk only if there is no new broken build targets in check results. +The use of this macro is disabled by default. + +###### Macro [NEED\_REVIEW][]() _# deprecated_ <a name="macro_NEED_REVIEW"></a> +Mark the project as needing review. +Reviewers are listed in the macro OWNER. The use of this macro is disabled by default. +Details can be found here: https://clubs.at.yandex-team.ru/arcadia/6104 + ###### Macro [NGINX\_MODULES][](Modules...) <a name="macro_NGINX_MODULES"></a> Not documented yet. @@ -1753,23 +1753,23 @@ Materializes `node\_modules.tar` bundle according to the module's lockfile. @see [NPM\_CONTRIBS()](#module\_NPM\_CONTRIBS) -###### Macro [NO\_BUILD\_IF][](variables) _# builtin_ <a name="macro_NO_BUILD_IF"></a> -Print warning if some variable is true - -###### Macro [NO\_CHECK\_IMPORTS][]([patterns]) <a name="macro_NO_CHECK_IMPORTS"></a> -Do not run checks on imports of Python modules. -Optional parameter mask patterns describes the names of the modules that do not need to check. - -###### Macro [NO\_CLANG\_COVERAGE][]() <a name="macro_NO_CLANG_COVERAGE"></a> -Disable heavyweight clang coverage for the module - +###### Macro [NO\_BUILD\_IF][](variables) _# builtin_ <a name="macro_NO_BUILD_IF"></a> +Print warning if some variable is true + +###### Macro [NO\_CHECK\_IMPORTS][]([patterns]) <a name="macro_NO_CHECK_IMPORTS"></a> +Do not run checks on imports of Python modules. +Optional parameter mask patterns describes the names of the modules that do not need to check. + +###### Macro [NO\_CLANG\_COVERAGE][]() <a name="macro_NO_CLANG_COVERAGE"></a> +Disable heavyweight clang coverage for the module + ###### Macro [NO\_CLANG\_TIDY][]() <a name="macro_NO_CLANG_TIDY"></a> Not documented yet. -###### Macro [NO\_COMPILER\_WARNINGS][]() <a name="macro_NO_COMPILER_WARNINGS"></a> +###### Macro [NO\_COMPILER\_WARNINGS][]() <a name="macro_NO_COMPILER_WARNINGS"></a> Disable all compiler warnings in the module. -Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. - +Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. + ###### Macro [NO\_CPU\_CHECK][]() <a name="macro_NO_CPU_CHECK"></a> Compile module without startup CPU features check @@ -1777,9 +1777,9 @@ Compile module without startup CPU features check Disable cython and cythonized python coverage (CYTHONIZE\_PY) Implies NO\_CLANG\_COVERAGE() - right now, we can't disable instrumentation for .py.cpp files, but enable for .cpp -###### Macro [NO\_DEBUG\_INFO][]() <a name="macro_NO_DEBUG_INFO"></a> -Compile files without debug info collection. - +###### Macro [NO\_DEBUG\_INFO][]() <a name="macro_NO_DEBUG_INFO"></a> +Compile files without debug info collection. + ###### Macro [NO\_DOCTESTS][]() <a name="macro_NO_DOCTESTS"></a> Disable doctests in PY[|3|23\_]TEST @@ -1794,75 +1794,75 @@ Anyway, preferred way is to move such files into separate dir and don't use this Also see: https://docs.yandex-team.ru/ya-make/manual/python/vars#y\_python\_extended\_source\_search for details -###### Macro [NO\_JOIN\_SRC][]() _# deprecated, does-nothing_ <a name="macro_NO_JOIN_SRC"></a> +###### Macro [NO\_JOIN\_SRC][]() _# deprecated, does-nothing_ <a name="macro_NO_JOIN_SRC"></a> This macro currently does nothing. This is default behavior which cannot be overridden at module level. - -###### Macro [NO\_LIBC][]() <a name="macro_NO_LIBC"></a> -Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata). -Note: use this with care. libc most likely will be linked into executable anyway, -so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. - -###### Macro [NO\_LINT][]() <a name="macro_NO_LINT"></a> -Do not check for style files included in PY\_SRCS, TEST\_SRCS, JAVA\_SRCS. - + +###### Macro [NO\_LIBC][]() <a name="macro_NO_LIBC"></a> +Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata). +Note: use this with care. libc most likely will be linked into executable anyway, +so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. + +###### Macro [NO\_LINT][]() <a name="macro_NO_LINT"></a> +Do not check for style files included in PY\_SRCS, TEST\_SRCS, JAVA\_SRCS. + ###### Macro [NO\_MYPY][]() <a name="macro_NO_MYPY"></a> Not documented yet. -###### Macro [NO\_NEED\_CHECK][]() <a name="macro_NO_NEED_CHECK"></a> -Commits to the project marked with this macro will not be affected by higher-level NEED\_CHECK macro. - -###### Macro [NO\_OPTIMIZE][]() <a name="macro_NO_OPTIMIZE"></a> -Build code without any optimizations (-O0 mode). - +###### Macro [NO\_NEED\_CHECK][]() <a name="macro_NO_NEED_CHECK"></a> +Commits to the project marked with this macro will not be affected by higher-level NEED\_CHECK macro. + +###### Macro [NO\_OPTIMIZE][]() <a name="macro_NO_OPTIMIZE"></a> +Build code without any optimizations (-O0 mode). + ###### Macro [NO\_OPTIMIZE\_PY\_PROTOS][]() <a name="macro_NO_OPTIMIZE_PY_PROTOS"></a> Disable Python proto optimization using embedding corresponding C++ code into binary. Python protobuf runtime will use C++ implementation instead of Python one if former is available. This is default mode only for some system libraries. -###### Macro [NO\_PLATFORM][]() <a name="macro_NO_PLATFORM"></a> -Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata) and set NO\_PLATFORM variable for special processing. -Note: use this with care. libc most likely will be linked into executable anyway, -so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. - +###### Macro [NO\_PLATFORM][]() <a name="macro_NO_PLATFORM"></a> +Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata) and set NO\_PLATFORM variable for special processing. +Note: use this with care. libc most likely will be linked into executable anyway, +so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. + ###### Macro [NO\_PYTHON\_COVERAGE][]() <a name="macro_NO_PYTHON_COVERAGE"></a> Disable python coverage for module -###### Macro [NO\_RUNTIME][]() <a name="macro_NO_RUNTIME"></a> -This macro: -1. Sets the ENABLE(NOUTIL) + DISABLE(USE\_INTERNAL\_STL); -2. If the project that contains the macro NO\_RUNTIME(), peerdir-it project does not contain NO\_RUNTIME() => Warning. -Note: use this with care. Arcadia STL most likely will be linked into executable anyway, so using STL headers/functions/classes -may not be detected at build time and may lead to unpredictable behavors at configure time. - -###### Macro [NO\_SANITIZE][]() <a name="macro_NO_SANITIZE"></a> -Disable all sanitizers for the module. - -###### Macro [NO\_SANITIZE\_COVERAGE][]() <a name="macro_NO_SANITIZE_COVERAGE"></a> -Disable lightweight coverage (-fsanitize-coverage) for the module. - -###### Macro [NO\_SSE4][]() <a name="macro_NO_SSE4"></a> -Compile module without SSE4 - -###### Macro [NO\_UTIL][]() <a name="macro_NO_UTIL"></a> -Build module without dependency on util. -Note: use this with care. Util most likely will be linked into executable anyway, -so using util headers/functions/classes may not be detected at build time and may lead to unpredictable behavors at configure time. - -###### Macro [NO\_WERROR][]() <a name="macro_NO_WERROR"></a> -Override WERROR() behavior -Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. - -###### Macro [NO\_WSHADOW][]() <a name="macro_NO_WSHADOW"></a> -Disable C++ shadowing warnings. - +###### Macro [NO\_RUNTIME][]() <a name="macro_NO_RUNTIME"></a> +This macro: +1. Sets the ENABLE(NOUTIL) + DISABLE(USE\_INTERNAL\_STL); +2. If the project that contains the macro NO\_RUNTIME(), peerdir-it project does not contain NO\_RUNTIME() => Warning. +Note: use this with care. Arcadia STL most likely will be linked into executable anyway, so using STL headers/functions/classes +may not be detected at build time and may lead to unpredictable behavors at configure time. + +###### Macro [NO\_SANITIZE][]() <a name="macro_NO_SANITIZE"></a> +Disable all sanitizers for the module. + +###### Macro [NO\_SANITIZE\_COVERAGE][]() <a name="macro_NO_SANITIZE_COVERAGE"></a> +Disable lightweight coverage (-fsanitize-coverage) for the module. + +###### Macro [NO\_SSE4][]() <a name="macro_NO_SSE4"></a> +Compile module without SSE4 + +###### Macro [NO\_UTIL][]() <a name="macro_NO_UTIL"></a> +Build module without dependency on util. +Note: use this with care. Util most likely will be linked into executable anyway, +so using util headers/functions/classes may not be detected at build time and may lead to unpredictable behavors at configure time. + +###### Macro [NO\_WERROR][]() <a name="macro_NO_WERROR"></a> +Override WERROR() behavior +Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. + +###### Macro [NO\_WSHADOW][]() <a name="macro_NO_WSHADOW"></a> +Disable C++ shadowing warnings. + ###### Macro [NVCC\_DEVICE\_LINK][](file.cu...) <a name="macro_NVCC_DEVICE_LINK"></a> Run nvcc --device-link on objects compiled from srcs with --device-c. This generates a stub object devlink.o that supplies missing pieces for the host linker to link relocatable device objects into the final executable. -###### Macro [ONLY\_TAGS][](tags...) _# builtin_ <a name="macro_ONLY_TAGS"></a> -Instantiate from multimodule only variants with tags listed - +###### Macro [ONLY\_TAGS][](tags...) _# builtin_ <a name="macro_ONLY_TAGS"></a> +Instantiate from multimodule only variants with tags listed + ###### Macro [OPENSOURCE\_EXPORT\_REPLACEMENT][](CMAKE PkgName CMAKE\_TARGET PkgName::PkgTarget CONAN ConanRef CMAKE\_COMPONENT OptCmakePkgComponent) <a name="macro_OPENSOURCE_EXPORT_REPLACEMENT"></a> Use specified conan/system pacakcge when exporting cmake build scripts for arcadia C++ project for opensource publication. @@ -1872,68 +1872,68 @@ This macro specifies the source repository for contrib Does nothing now (just a placeholder for future functionality) See https://st.yandex-team.ru/DTCC-316 -###### Macro [OWNER][](owners...) _# builtin_ <a name="macro_OWNER"></a> -Add reviewers/responsibles of the code. -In the OWNER macro you can use: -1. login-s from staff.yandex-team.ru -2. Review group (to specify the Code-review group need to use the prefix g:) - -Ask devtools@yandex-team.ru if you need more information - -###### Macro [PACK][](archive\_type) <a name="macro_PACK"></a> +###### Macro [OWNER][](owners...) _# builtin_ <a name="macro_OWNER"></a> +Add reviewers/responsibles of the code. +In the OWNER macro you can use: +1. login-s from staff.yandex-team.ru +2. Review group (to specify the Code-review group need to use the prefix g:) + +Ask devtools@yandex-team.ru if you need more information + +###### Macro [PACK][](archive\_type) <a name="macro_PACK"></a> When placed inside the PACKAGE module, packs the build results tree to the archive with specified extension. Currently supported extensions are `tar` and `tar.gz` - + Is not allowed other module types than PACKAGE(). @see: [PACKAGE()](#module\_PACKAGE) -###### Macro [PACKAGE\_STRICT][]() <a name="macro_PACKAGE_STRICT"></a> -Not documented yet. - +###### Macro [PACKAGE\_STRICT][]() <a name="macro_PACKAGE_STRICT"></a> +Not documented yet. + ###### Macro [PACK\_GLOBALS\_IN\_LIBRARY][]() <a name="macro_PACK_GLOBALS_IN_LIBRARY"></a> Not documented yet. -###### Macro [PARTITIONED\_RECURSE][]([BALANCING\_CONFIG config] [LOCAL] dirs...) _# builtin_ <a name="macro_PARTITIONED_RECURSE"></a> -Add directories to the build -All projects must be reachable from the root chain RECURSE() for monorepo continuous integration functionality. -Arguments are processed in chunks - -###### Macro [PARTITIONED\_RECURSE\_FOR\_TESTS][]([BALANCING\_CONFIG config] [LOCAL] dirs...) _# builtin_ <a name="macro_PARTITIONED_RECURSE_FOR_TESTS"></a> -Add directories to the build if tests are demanded. -Arguments are processed in chunks - -###### Macro [PARTITIONED\_RECURSE\_ROOT\_RELATIVE][]([BALANCING\_CONFIG config] dirlist) _# builtin_ <a name="macro_PARTITIONED_RECURSE_ROOT_RELATIVE"></a> -In comparison with RECURSE(), in dirlist there must be a directory relative to the root (${ARCADIA\_ROOT}). -Arguments are processed in chunks - -###### Macro [PEERDIR][](dirs...) _# builtin_ <a name="macro_PEERDIR"></a> -Specify project dependencies -Indicates that the project depends on all of the projects from the list of dirs. -Libraries from these directories will be collected and linked to the current target if the target is executable or sharedlib/dll. -If the current target is a static library, the specified directories will not be built, but they will be linked to any executable target that will link the current library. -@params: +###### Macro [PARTITIONED\_RECURSE][]([BALANCING\_CONFIG config] [LOCAL] dirs...) _# builtin_ <a name="macro_PARTITIONED_RECURSE"></a> +Add directories to the build +All projects must be reachable from the root chain RECURSE() for monorepo continuous integration functionality. +Arguments are processed in chunks + +###### Macro [PARTITIONED\_RECURSE\_FOR\_TESTS][]([BALANCING\_CONFIG config] [LOCAL] dirs...) _# builtin_ <a name="macro_PARTITIONED_RECURSE_FOR_TESTS"></a> +Add directories to the build if tests are demanded. +Arguments are processed in chunks + +###### Macro [PARTITIONED\_RECURSE\_ROOT\_RELATIVE][]([BALANCING\_CONFIG config] dirlist) _# builtin_ <a name="macro_PARTITIONED_RECURSE_ROOT_RELATIVE"></a> +In comparison with RECURSE(), in dirlist there must be a directory relative to the root (${ARCADIA\_ROOT}). +Arguments are processed in chunks + +###### Macro [PEERDIR][](dirs...) _# builtin_ <a name="macro_PEERDIR"></a> +Specify project dependencies +Indicates that the project depends on all of the projects from the list of dirs. +Libraries from these directories will be collected and linked to the current target if the target is executable or sharedlib/dll. +If the current target is a static library, the specified directories will not be built, but they will be linked to any executable target that will link the current library. +@params: 1. As arguments PEERDIR you can only use the LIBRARY directory (the directory with the PROGRAM/DLL and derived from them are prohibited to use as arguments PEERDIR). -2. ADDINCL Keyword ADDINCL (written before the specified directory), adds the flag -I<path to library> the flags to compile the source code of the current project. -Perhaps it may be removed in the future (in favor of a dedicated ADDINCL) - +2. ADDINCL Keyword ADDINCL (written before the specified directory), adds the flag -I<path to library> the flags to compile the source code of the current project. +Perhaps it may be removed in the future (in favor of a dedicated ADDINCL) + ###### Macro [PIRE\_INLINE][](FILES...) <a name="macro_PIRE_INLINE"></a> Not documented yet. - + ###### Macro [PIRE\_INLINE\_CMD][](SRC) <a name="macro_PIRE_INLINE_CMD"></a> Not documented yet. - -###### Macro [PRINT\_MODULE\_TYPE][] <a name="macro_PRINT_MODULE_TYPE"></a> -Not documented yet. - -###### Macro [PROCESS\_DOCS][] <a name="macro_PROCESS_DOCS"></a> -Not documented yet. - + +###### Macro [PRINT\_MODULE\_TYPE][] <a name="macro_PRINT_MODULE_TYPE"></a> +Not documented yet. + +###### Macro [PROCESS\_DOCS][] <a name="macro_PROCESS_DOCS"></a> +Not documented yet. + ###### Macro PROGURAD\_RULES(ProguardRuleFiles...) <a name="macro_PROGUARD_RULES"></a> This macro is strictly prohibited to use outside of mapsmobi project -###### Macro [PROTO2FBS][](InputProto) <a name="macro_PROTO2FBS"></a> +###### Macro [PROTO2FBS][](InputProto) <a name="macro_PROTO2FBS"></a> Produce flatbuf schema out of protobuf description. - + ###### Macro [PROTO\_ADDINCL][]([GLOBAL] [WITH\_GEN] Path) <a name="macro_PROTO_ADDINCL"></a> This macro introduces proper ADDINCLs for .proto-files found in sources and .cpp/.h generated files, supplying them to appropriate commands and allowing @@ -1953,29 +1953,29 @@ PROTO\_LIBRARY with PROTO\_NAMESPACE(GLOBAL ) is enough at user side to correctl If generated .proto files are going to be used for building a module than use of WITH\_GEN parameter will add appropriate dir from the build root for .proto files search. -###### Macro [PROVIDES][](Name...) <a name="macro_PROVIDES"></a> -Specifies provided features. The names must be correct C identifiers. -This prevents different libraries providing the same features to be linked into one program. - +###### Macro [PROVIDES][](Name...) <a name="macro_PROVIDES"></a> +Specifies provided features. The names must be correct C identifiers. +This prevents different libraries providing the same features to be linked into one program. + ###### Macro [PYTHON][](script\_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[\_NOAUTO] outputs...] [STDOUT[\_NOAUTO] output] [OUTPUT\_INCLUDES output\_includes...] [REQUIREMENTS reqs]) <a name="macro_PYTHON"></a> Run a python script with $(PYTHON)/python built from devtools/huge\_python. These macros are similar: RUN\_PROGRAM, LUA, PYTHON. - -Parameters: -- script\_path - Path to the script. -- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. -- CWD dir - Absolute path of the working directory. -- ENV key=value... - Environment variables. -- TOOL tools... - Auxiliary tool directories. -- IN inputs... - Input files. -- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. -- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. -- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. + +Parameters: +- script\_path - Path to the script. +- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. +- CWD dir - Absolute path of the working directory. +- ENV key=value... - Environment variables. +- TOOL tools... - Auxiliary tool directories. +- IN inputs... - Input files. +- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. +- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. +- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. - REQUIREMENTS - Override default requirements for CPU and RAM - -For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or -${CURDIR} and ${BINDIR} which are expanded where the outputs are used. - + +For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or +${CURDIR} and ${BINDIR} which are expanded where the outputs are used. + ###### Macro [PYTHON2\_ADDINCL][]() <a name="macro_PYTHON2_ADDINCL"></a> This macro adds include path for Python headers (Python 2.x variant) without PEERDIR. This should be used in 2 cases only: @@ -1987,35 +1987,35 @@ Never use this macro in PY2\_PROGRAM, PY2\_LIBRARY and PY23\_LIBRARY: they have Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs -###### Macro [PYTHON2\_MODULE][]() <a name="macro_PYTHON2_MODULE"></a> -Use in PY\_ANY\_MODULE to set it up for Python 2.x. - -###### Macro [PYTHON3\_ADDINCL][]() <a name="macro_PYTHON3_ADDINCL"></a> -This macro adds include path for Python headers (Python 3.x variant). -This should be used in 2 cases only: +###### Macro [PYTHON2\_MODULE][]() <a name="macro_PYTHON2_MODULE"></a> +Use in PY\_ANY\_MODULE to set it up for Python 2.x. + +###### Macro [PYTHON3\_ADDINCL][]() <a name="macro_PYTHON3_ADDINCL"></a> +This macro adds include path for Python headers (Python 3.x variant). +This should be used in 2 cases only: - In PY2MODULE since it compiles into .so and uses external Python runtime; -- In system Python libraries themselves since peerdir there may create a loop; -In all other cases use USE\_PYTHON3() macro instead. - -Never use this macro in PY3\_PROGRAM and PY3\_LIBRARY and PY23\_LIBRARY: they have everything by default. - -Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs - -###### Macro [PYTHON3\_MODULE][]() <a name="macro_PYTHON3_MODULE"></a> -Use in PY\_ANY\_MODULE to set it up for Python 3.x. - -###### Macro [PYTHON\_PATH][](Path) <a name="macro_PYTHON_PATH"></a> -Set path to Python that will be used to runs scripts in tests - +- In system Python libraries themselves since peerdir there may create a loop; +In all other cases use USE\_PYTHON3() macro instead. + +Never use this macro in PY3\_PROGRAM and PY3\_LIBRARY and PY23\_LIBRARY: they have everything by default. + +Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py\_srcs + +###### Macro [PYTHON3\_MODULE][]() <a name="macro_PYTHON3_MODULE"></a> +Use in PY\_ANY\_MODULE to set it up for Python 3.x. + +###### Macro [PYTHON\_PATH][](Path) <a name="macro_PYTHON_PATH"></a> +Set path to Python that will be used to runs scripts in tests + ###### Macro [PY\_CONSTRUCTOR][](package.module[:func]) <a name="macro_PY_CONSTRUCTOR"></a> Specifies the module or function which will be started before python's main() init() is expected in the target module if no function is specified Can be considered as \_\_attribute\_\_((constructor)) for python -###### Macro PY\_DOCTEST(Packages...) <a name="macro_PY_DOCTESTS"></a> -Add to the test doctests for specified Python packages -The packages should be part of a test (listed as sources of the test or its PEERDIRs). - +###### Macro PY\_DOCTEST(Packages...) <a name="macro_PY_DOCTESTS"></a> +Add to the test doctests for specified Python packages +The packages should be part of a test (listed as sources of the test or its PEERDIRs). + ###### Macro [PY\_ENUMS\_SERIALIZATION][] <a name="macro_PY_ENUMS_SERIALIZATION"></a> Not documented yet. @@ -2023,19 +2023,19 @@ Not documented yet. Add extra Python files for linting. This macro allows adding Python files which has no .py extension. -###### Macro [PY\_MAIN][](package.module[:func]) <a name="macro_PY_MAIN"></a> -Specifies the module or function from which to start executing a python program - -Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipyprogrampy3programimakrospymain - -###### Macro [PY\_NAMESPACE][](prefix) <a name="macro_PY_NAMESPACE"></a> -Sets default Python namespace for all python sources in the module. -Especially suitable in PROTO\_LIBRARY where Python sources are generated and there is no PY\_SRCS to place NAMESPACE parameter. - -###### Macro [PY\_PROTOS\_FOR][](path/to/module) _#builtin, deprecated_ <a name="macro_PY_PROTOS_FOR"></a> -Use PROTO\_LIBRARY() in order to have .proto compiled into Python. -Generates pb2.py files out of .proto files and saves those into PACKAGE module - +###### Macro [PY\_MAIN][](package.module[:func]) <a name="macro_PY_MAIN"></a> +Specifies the module or function from which to start executing a python program + +Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipyprogrampy3programimakrospymain + +###### Macro [PY\_NAMESPACE][](prefix) <a name="macro_PY_NAMESPACE"></a> +Sets default Python namespace for all python sources in the module. +Especially suitable in PROTO\_LIBRARY where Python sources are generated and there is no PY\_SRCS to place NAMESPACE parameter. + +###### Macro [PY\_PROTOS\_FOR][](path/to/module) _#builtin, deprecated_ <a name="macro_PY_PROTOS_FOR"></a> +Use PROTO\_LIBRARY() in order to have .proto compiled into Python. +Generates pb2.py files out of .proto files and saves those into PACKAGE module + ###### Macro [PY\_PROTO\_PLUGIN][](Name Ext Tool DEPS <Dependencies>) <a name="macro_PY_PROTO_PLUGIN"></a> Define protoc plugin for python with given Name that emits extra output with provided Extension using Tool. Extra dependencies are passed via DEPS @@ -2045,45 +2045,45 @@ Define protoc plugin for python with given Name that emits 2 extra outputs with using Tool. Extra dependencies are passed via DEPS ###### Macro [PY\_REGISTER][]([package.]module\_name) <a name="macro_PY_REGISTER"></a> -Python knows about which built-ins can be imported, due to their registration in the Assembly or at the start of the interpreter. -All modules from the sources listed in PY\_SRCS() are registered automatically. -To register the modules from the sources in the SRCS(), you need to use PY\_REGISTER(). - -PY\_REGISTER(module\_name) initializes module globally via call to initmodule\_name() +Python knows about which built-ins can be imported, due to their registration in the Assembly or at the start of the interpreter. +All modules from the sources listed in PY\_SRCS() are registered automatically. +To register the modules from the sources in the SRCS(), you need to use PY\_REGISTER(). + +PY\_REGISTER(module\_name) initializes module globally via call to initmodule\_name() PY\_REGISTER(package.module\_name) initializes module in the specified package It renames its init function with CFLAGS(-Dinitmodule\_name=init7package11module\_name) or CFLAGS(-DPyInit\_module\_name=PyInit\_7package11module\_name) - -Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#makrospyregister - + +Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#makrospyregister + ###### Macro [PY\_REQUIREMENTS][]([cpu: <value>] [ram: <value>]) <a name="macro_PY_REQUIREMENTS"></a> Override CPU and RAM requirements for all Python build commands -###### Macro [PY\_SRCS][]({| CYTHON\_C} { | TOP\_LEVEL | NAMESPACE ns} Files...) <a name="macro_PY_SRCS"></a> +###### Macro [PY\_SRCS][]({| CYTHON\_C} { | TOP\_LEVEL | NAMESPACE ns} Files...) <a name="macro_PY_SRCS"></a> Build specified Python sources according to Arcadia binary Python build. Basically creates precompiled and source resources keyed with module paths. -The resources eventually are linked into final program and can be accessed as regular Python modules. -This custom loader linked into the program will add them to sys.meta\_path. - -PY\_SRCS also support .proto, .ev, .pyx and .swg files. The .proto and .ev are compiled to .py-code by protoc and than handled as usual .py files. -.pyx and .swg lead to C/C++ Python extensions generation, that are automatically registered in Python as built-in modules. - -By default .pyx files are built as C++-extensions. Use CYTHON\_C to build them as C (similar to BUILDWITH\_CYTHON\_C, but with the ability to specify namespace). - -\_\_init\_\_.py never required, but if present (and specified in PY\_SRCS), it will be imported when you import package modules with \_\_init\_\_.py Oh. - -@example - +The resources eventually are linked into final program and can be accessed as regular Python modules. +This custom loader linked into the program will add them to sys.meta\_path. + +PY\_SRCS also support .proto, .ev, .pyx and .swg files. The .proto and .ev are compiled to .py-code by protoc and than handled as usual .py files. +.pyx and .swg lead to C/C++ Python extensions generation, that are automatically registered in Python as built-in modules. + +By default .pyx files are built as C++-extensions. Use CYTHON\_C to build them as C (similar to BUILDWITH\_CYTHON\_C, but with the ability to specify namespace). + +\_\_init\_\_.py never required, but if present (and specified in PY\_SRCS), it will be imported when you import package modules with \_\_init\_\_.py Oh. + +@example + PY2_LIBRARY(mymodule) - PY_SRCS(a.py sub/dir/b.py e.proto sub/dir/f.proto c.pyx sub/dir/d.pyx g.swg sub/dir/h.swg) - END() - -PY\_SRCS honors Python2 and Python3 differences and adjusts itself to Python version of a current module. -PY\_SRCS can be used in any Arcadia Python build modules like PY\*\_LIBRARY, PY\*\_PROGRAM, PY\*TEST. + PY_SRCS(a.py sub/dir/b.py e.proto sub/dir/f.proto c.pyx sub/dir/d.pyx g.swg sub/dir/h.swg) + END() + +PY\_SRCS honors Python2 and Python3 differences and adjusts itself to Python version of a current module. +PY\_SRCS can be used in any Arcadia Python build modules like PY\*\_LIBRARY, PY\*\_PROGRAM, PY\*TEST. PY\_SRCS in LIBRARY or PROGRAM effectively converts these into PY2\_LIBRARY and PY2\_PROGRAM respectively. -It is strongly advised to make this conversion explicit. Never use PY\_SRCS in a LIBRARY if you plan to use it from external Python extension module. - -Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipylibrarypy3libraryimakrospysrcs - +It is strongly advised to make this conversion explicit. Never use PY\_SRCS in a LIBRARY if you plan to use it from external Python extension module. + +Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipylibrarypy3libraryimakrospysrcs + ###### Macro [PY\_SSQLS\_SRCS][](Srcs...) <a name="macro_PY_SSQLS_SRCS"></a> Not documented yet. @@ -2096,28 +2096,28 @@ $usage: REAL\_LINK\_EXEC\_DYN\_LIB\_IMPL(peers...) # internal ###### Macro [REAL\_LINK\_EXE\_IMPL][] <a name="macro_REAL_LINK_EXE_IMPL"></a> $usage: REAL\_LINK\_EXE\_IMPL(peers...) # internal -###### Macro [RECURSE][]([LOCAL] dirs...) _# builtin_ <a name="macro_RECURSE"></a> -Add directories to the build -All projects must be reachable from the root chain RECURSE() for monorepo continuous integration functionality - -###### Macro [RECURSE\_FOR\_TESTS][]([LOCAL] dirs...) _# builtin_ <a name="macro_RECURSE_FOR_TESTS"></a> +###### Macro [RECURSE][]([LOCAL] dirs...) _# builtin_ <a name="macro_RECURSE"></a> +Add directories to the build +All projects must be reachable from the root chain RECURSE() for monorepo continuous integration functionality + +###### Macro [RECURSE\_FOR\_TESTS][]([LOCAL] dirs...) _# builtin_ <a name="macro_RECURSE_FOR_TESTS"></a> Add directories to the build if tests are demanded. Use --force-build-depends flag if you want to build testing modules without tests running - -###### Macro [RECURSE\_ROOT\_RELATIVE][](dirlist) _# builtin_ <a name="macro_RECURSE_ROOT_RELATIVE"></a> -In comparison with RECURSE(), in dirlist there must be a directory relative to the root (${ARCADIA\_ROOT}) - + +###### Macro [RECURSE\_ROOT\_RELATIVE][](dirlist) _# builtin_ <a name="macro_RECURSE_ROOT_RELATIVE"></a> +In comparison with RECURSE(), in dirlist there must be a directory relative to the root (${ARCADIA\_ROOT}) + ###### Macro [REGISTER\_SANDBOX\_IMPORT][] <a name="macro_REGISTER_SANDBOX_IMPORT"></a> Not documented yet. -###### Macro [REGISTER\_YQL\_PYTHON\_UDF][] <a name="macro_REGISTER_YQL_PYTHON_UDF"></a> -Not documented yet. - -###### Macro [REQUIREMENTS][]([cpu:<count>] [disk\_usage:<size>] [ram:<size>] [ram\_disk:<size>] [container:<id>] [network:<restricted|full>] [dns:dns64]) <a name="macro_REQUIREMENTS"></a> -Allows you to specify the requirements of the test. - -Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ - +###### Macro [REGISTER\_YQL\_PYTHON\_UDF][] <a name="macro_REGISTER_YQL_PYTHON_UDF"></a> +Not documented yet. + +###### Macro [REQUIREMENTS][]([cpu:<count>] [disk\_usage:<size>] [ram:<size>] [ram\_disk:<size>] [container:<id>] [network:<restricted|full>] [dns:dns64]) <a name="macro_REQUIREMENTS"></a> +Allows you to specify the requirements of the test. + +Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ + ###### Macro [REQUIRES][](dirs...) <a name="macro_REQUIRES"></a> Specify list of dirs which this module must depend on indirectly. @@ -2136,43 +2136,43 @@ to be addressed by either ADDINCLs or marking them as TEXT. Please contact devto Add data (resources, random files, strings) to the program) The common usage is to place Src file into binary. The Key is used to access it using library/cpp/resource or library/python/resource. Alternative syntax with '- Key=Value' allows placing Value string as resource data into binary and make it accessible by Key. - -This is a simpler but less flexible option than ARCHIVE(), because in the case of ARCHIVE(), you have to use the data explicitly, + +This is a simpler but less flexible option than ARCHIVE(), because in the case of ARCHIVE(), you have to use the data explicitly, and in the case of RESOURCE(), the data will fall through SRCS() or SRCS(GLOBAL) to binary linking. - + Use the FORCE\_TEXT parameter to explicitly mark all Src files as text files: they will not be parsed unless used elsewhere. -@example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a2ispolzujjtekomanduresource - -@example: - - LIBRARY() +@example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a2ispolzujjtekomanduresource + +@example: + + LIBRARY() OWNER(user1) - + RESOURCE( path/to/file1 /key/in/program/1 path/to/file2 /key2 ) - END() - + END() + ###### Macro [RESOURCE\_FILES][]([DONT\_PARSE] [PREFIX {prefix}] [STRIP prefix\_to\_strip] {path}) <a name="macro_RESOURCE_FILES"></a> This macro expands into RESOURCE([DONT\_PARSE] {path} resfs/file/{prefix}{path} - resfs/src/resfs/file/{prefix}{remove\_prefix(path, prefix\_to\_strip)}={rootrel\_arc\_src(path)} -) - -resfs/src/{key} stores a source root (or build root) relative path of the -source of the value of the {key} resource. - -resfs/file/{key} stores any value whose source was a file on a filesystem. -resfs/src/resfs/file/{key} must store its path. - +) + +resfs/src/{key} stores a source root (or build root) relative path of the +source of the value of the {key} resource. + +resfs/file/{key} stores any value whose source was a file on a filesystem. +resfs/src/resfs/file/{key} must store its path. + DONT\_PARSE disables parsing for source code files (determined by extension) Please don't abuse: use separate DONT\_PARSE macro call only for files subject to parsing -This form is for use from other plugins: -RESOURCE\_FILES([DEST {dest}] {path}) expands into RESOURCE({path} resfs/file/{dest}) - +This form is for use from other plugins: +RESOURCE\_FILES([DEST {dest}] {path}) expands into RESOURCE({path} resfs/file/{dest}) + @see: https://wiki.yandex-team.ru/devtools/commandsandvars/resourcefiles/ ###### Macro [RESTRICT\_LICENSES][](ALLOW\_ONLY|DENY LicenseProperty...) <a name="macro_RESTRICT_LICENSES"></a> @@ -2189,18 +2189,18 @@ All macro invocation for the same module must use same constraints type (DENY or ###### Macro [RESTRICT\_PATH][] <a name="macro_RESTRICT_PATH"></a> Not documented yet. -###### Macro [RUN][] <a name="macro_RUN"></a> -Not documented yet. - +###### Macro [RUN][] <a name="macro_RUN"></a> +Not documented yet. + ###### Macro [RUN\_ANTLR][](Args...) <a name="macro_RUN_ANTLR"></a> Macro to invoke ANTLR3 generator (general case) - + ###### Macro [RUN\_ANTLR4][](Args...) <a name="macro_RUN_ANTLR4"></a> Macro to invoke ANTLR4 generator (general case) - + ###### Macro [RUN\_ANTLR4\_CPP][](GRAMMAR, OUTPUT\_INCLUDES, LISTENER, VISITOR, Args...) <a name="macro_RUN_ANTLR4_CPP"></a> Macro to invoke ANTLR4 generator (Cpp) - + ###### Macro [RUN\_ANTLR4\_GO][](GRAMMAR, OUTPUT\_INCLUDES, LISTENER, VISITOR, Args...) <a name="macro_RUN_ANTLR4_GO"></a> Macro to invoke ANTLR4 generator (Go) @@ -2208,166 +2208,166 @@ Macro to invoke ANTLR4 generator (Go) Not documented yet. ###### Macro [RUN\_PROGRAM][](tool\_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[\_NOAUTO] outputs...] [STDOUT[\_NOAUTO] output] [OUTPUT\_INCLUDES output\_includes...] [REQUIREMENTS reqs]) <a name="macro_RUN_PROGRAM"></a> -Run a program from arcadia. +Run a program from arcadia. These macros are similar: RUN\_PROGRAM, LUA, PYTHON. - -Parameters: -- tool\_path - Path to the directory of the tool. -- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. -- CWD dir - Absolute path of the working directory. -- ENV key=value... - Environment variables. -- TOOL tools... - Auxiliary tool directories. + +Parameters: +- tool\_path - Path to the directory of the tool. +- args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. +- CWD dir - Absolute path of the working directory. +- ENV key=value... - Environment variables. +- TOOL tools... - Auxiliary tool directories. - IN inputs... - Input files -- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. -- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. -- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. +- OUT[\_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. +- STDOUT[\_NOAUTO] output - Redirect the standard output to the output file. +- OUTPUT\_INCLUDES output\_includes... - Includes of the output files that are needed to build them. - REQUIREMENTS - Override default requirements for CPU and RAM - -For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or -${CURDIR} and ${BINDIR} which are expanded where the outputs are used. + +For absolute paths use ${ARCADIA\_ROOT} and ${ARCADIA\_BUILD\_ROOT}, or +${CURDIR} and ${BINDIR} which are expanded where the outputs are used. Note that Tool is always built for the host platform, so be careful to provide that tool can be built for all Arcadia major host platforms (Linux, MacOS and Windows). - -###### Macro [RUN\_PYTHON][](Args...) <a name="macro_RUN_PYTHON"></a> -Version of RUN() macro to invoke Python scripts -@see: [RUN()](#macro\_RUN) - + +###### Macro [RUN\_PYTHON][](Args...) <a name="macro_RUN_PYTHON"></a> +Version of RUN() macro to invoke Python scripts +@see: [RUN()](#macro\_RUN) + ###### Macro [SDBUS\_CPP\_ADAPTOR][](File) <a name="macro_SDBUS_CPP_ADAPTOR"></a> Not documented yet. ###### Macro [SDBUS\_CPP\_PROXY][](File) <a name="macro_SDBUS_CPP_PROXY"></a> Not documented yet. -###### Macro [SET][](varname value) _#builtin_ <a name="macro_SET"></a> -Sets varname to value - -###### Macro [SETUP\_EXECTEST][] <a name="macro_SETUP_EXECTEST"></a> -Not documented yet. - +###### Macro [SET][](varname value) _#builtin_ <a name="macro_SET"></a> +Sets varname to value + +###### Macro [SETUP\_EXECTEST][] <a name="macro_SETUP_EXECTEST"></a> +Not documented yet. + ###### Macro [SETUP\_PYTEST\_BIN][] <a name="macro_SETUP_PYTEST_BIN"></a> -Not documented yet. - -###### Macro [SETUP\_RUN\_PYTHON][] <a name="macro_SETUP_RUN_PYTHON"></a> -Not documented yet. - -###### Macro [SET\_APPEND][](varname appendvalue) _#builtin_ <a name="macro_SET_APPEND"></a> -Appends appendvalue to varname's value using space as a separator - -###### Macro [SET\_APPEND\_WITH\_GLOBAL][](varname appendvalue) _#builtin_ <a name="macro_SET_APPEND_WITH_GLOBAL"></a> -Appends appendvalue to varname's value using space as a separator. -New value is propagated to dependants - +Not documented yet. + +###### Macro [SETUP\_RUN\_PYTHON][] <a name="macro_SETUP_RUN_PYTHON"></a> +Not documented yet. + +###### Macro [SET\_APPEND][](varname appendvalue) _#builtin_ <a name="macro_SET_APPEND"></a> +Appends appendvalue to varname's value using space as a separator + +###### Macro [SET\_APPEND\_WITH\_GLOBAL][](varname appendvalue) _#builtin_ <a name="macro_SET_APPEND_WITH_GLOBAL"></a> +Appends appendvalue to varname's value using space as a separator. +New value is propagated to dependants + ###### Macro [SET\_COMPILE\_OUTPUTS\_MODIFIERS][](NOREL?";norel":"") <a name="macro_SET_COMPILE_OUTPUTS_MODIFIERS"></a> Not documented yet. -###### Macro [SIZE][](SMALL/MEDIUM/LARGE) <a name="macro_SIZE"></a> +###### Macro [SIZE][](SMALL/MEDIUM/LARGE) <a name="macro_SIZE"></a> Set the 'size' for the test. Each 'size' has own set of resrtictions, SMALL bein the most restricted and LARGE being the list. -See documentation on test system for more details. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [SKIP\_TEST][](Reason) <a name="macro_SKIP_TEST"></a> -Skip the suite defined by test module. Provide a reason to be output in test execution report. - +See documentation on test system for more details. + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [SKIP\_TEST][](Reason) <a name="macro_SKIP_TEST"></a> +Skip the suite defined by test module. Provide a reason to be output in test execution report. + ###### Macro [SOURCE\_GROUP][](...) _#builtin, deprecated_ <a name="macro_SOURCE_GROUP"></a> -Ignored - -###### Macro [SPLIT\_CODEGEN][](tool prefix opts... [OUT\_NUM num] [OUTPUT\_INCLUDES output\_includes...]) <a name="macro_SPLIT_CODEGEN"></a> -Generator of a certain number of parts of the .cpp file + one header .h file from .in - -Supports keywords: -1. OUT\_NUM <the number of generated Prefix.N.cpp default 25 (N varies from 0 to 24)> -2. OUTPUT\_INCLUDES <path to files that will be included in generalnyj of macro files> - -###### Macro [SPLIT\_DWARF][]() <a name="macro_SPLIT_DWARF"></a> -Emit debug info for the PROGRAM/DLL as a separate file <module\_name>.debug. +Ignored + +###### Macro [SPLIT\_CODEGEN][](tool prefix opts... [OUT\_NUM num] [OUTPUT\_INCLUDES output\_includes...]) <a name="macro_SPLIT_CODEGEN"></a> +Generator of a certain number of parts of the .cpp file + one header .h file from .in + +Supports keywords: +1. OUT\_NUM <the number of generated Prefix.N.cpp default 25 (N varies from 0 to 24)> +2. OUTPUT\_INCLUDES <path to files that will be included in generalnyj of macro files> + +###### Macro [SPLIT\_DWARF][]() <a name="macro_SPLIT_DWARF"></a> +Emit debug info for the PROGRAM/DLL as a separate file <module\_name>.debug. NB: It does not help you to save process RSS but can add problems (see e.g. BEGEMOT-2147). - -###### Macro [SPLIT\_FACTOR][](x) <a name="macro_SPLIT_FACTOR"></a> -Sets the number of chunks for parallel run tests when used in test module with FORK\_TESTS() or FORK\_SUBTESTS(). -If none of those is specified this macro implies FORK\_TESTS(). - -Supports C++ ut and PyTest. - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [SRC][](File Flags...) <a name="macro_SRC"></a> -Compile single file with extra Flags. -Compilation is driven by the last extension of the File and Flags are specific to corresponding compilation command - -###### Macro [SRCDIR][](dirlist) _# builtin_ <a name="macro_SRCDIR"></a> -Add the specified directories to the list of those in which the source files will be searched -Available only for arcadia/contrib - -###### Macro [SRCS][](<[GLOBAL] File> ...) <a name="macro_SRCS"></a> -Source files of the project. Files are built according to their extension and put int module output or fed to ultimate PROGRAM/DLL depending on GLOBAL presence. -Arcadia Paths from the root and is relative to the project's LIST are supported - -GLOBAL marks next file as direct input to link phase of the program/shared library project built into. This prevents symbols of the file to be excluded by linker as unused. + +###### Macro [SPLIT\_FACTOR][](x) <a name="macro_SPLIT_FACTOR"></a> +Sets the number of chunks for parallel run tests when used in test module with FORK\_TESTS() or FORK\_SUBTESTS(). +If none of those is specified this macro implies FORK\_TESTS(). + +Supports C++ ut and PyTest. + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [SRC][](File Flags...) <a name="macro_SRC"></a> +Compile single file with extra Flags. +Compilation is driven by the last extension of the File and Flags are specific to corresponding compilation command + +###### Macro [SRCDIR][](dirlist) _# builtin_ <a name="macro_SRCDIR"></a> +Add the specified directories to the list of those in which the source files will be searched +Available only for arcadia/contrib + +###### Macro [SRCS][](<[GLOBAL] File> ...) <a name="macro_SRCS"></a> +Source files of the project. Files are built according to their extension and put int module output or fed to ultimate PROGRAM/DLL depending on GLOBAL presence. +Arcadia Paths from the root and is relative to the project's LIST are supported + +GLOBAL marks next file as direct input to link phase of the program/shared library project built into. This prevents symbols of the file to be excluded by linker as unused. The scope of the GLOBAL keyword is the following file (that is, in the case of SRCS(GLOBAL foo.cpp bar.cpp) global will be only foo.cpp) - -@example: - - LIBRARY(test_global) - SRCS(GLOBAL foo.cpp) - END() - -This will produce foo.o and feed it to any PROGRAM/DLL module transitively depending on test\_global library. The library itself will be empty and won't produce .a file. - -###### Macro [SRC\_CPP\_AVX][](File Flags...) <a name="macro_SRC_CPP_AVX"></a> -Compile single .cpp-file with AVX and extra Flags. - -###### Macro [SRC\_CPP\_AVX2][](File Flags...) <a name="macro_SRC_CPP_AVX2"></a> -Compile single .cpp-file with AVX2 and extra Flags. - + +@example: + + LIBRARY(test_global) + SRCS(GLOBAL foo.cpp) + END() + +This will produce foo.o and feed it to any PROGRAM/DLL module transitively depending on test\_global library. The library itself will be empty and won't produce .a file. + +###### Macro [SRC\_CPP\_AVX][](File Flags...) <a name="macro_SRC_CPP_AVX"></a> +Compile single .cpp-file with AVX and extra Flags. + +###### Macro [SRC\_CPP\_AVX2][](File Flags...) <a name="macro_SRC_CPP_AVX2"></a> +Compile single .cpp-file with AVX2 and extra Flags. + ###### Macro [SRC\_CPP\_PIC][](File Flags...) <a name="macro_SRC_CPP_PIC"></a> Compile single .c-file with -fPIC and extra Flags. -###### Macro [SRC\_CPP\_SSE2][](File Flags...) <a name="macro_SRC_CPP_SSE2"></a> -Compile single .cpp-file with SSE2 and extra Flags. - -###### Macro [SRC\_CPP\_SSE3][](File Flags...) <a name="macro_SRC_CPP_SSE3"></a> -Compile single .cpp-file with SSE3 and extra Flags. - -###### Macro [SRC\_CPP\_SSE4][](File Flags...) <a name="macro_SRC_CPP_SSE4"></a> -Compile single .cpp-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. - -###### Macro [SRC\_CPP\_SSE41][](File Flags...) <a name="macro_SRC_CPP_SSE41"></a> -Compile single .cpp-file with SSE4.1 and extra Flags. - -###### Macro [SRC\_CPP\_SSSE3][](File Flags...) <a name="macro_SRC_CPP_SSSE3"></a> -Compile single .cpp-file with SSSE3 and extra Flags. - -###### Macro [SRC\_C\_AVX][](File Flags...) <a name="macro_SRC_C_AVX"></a> -Compile single .c-file with AVX and extra Flags. - -###### Macro [SRC\_C\_AVX2][](File Flags...) <a name="macro_SRC_C_AVX2"></a> -Compile single .c-file with AVX2 and extra Flags. - -###### Macro [SRC\_C\_SSE2][](File Flags...) <a name="macro_SRC_C_SSE2"></a> -Compile single .c-file with SSE2 and extra Flags. - -###### Macro [SRC\_C\_SSE3][](File Flags...) <a name="macro_SRC_C_SSE3"></a> -Compile single .c-file with SSE3 and extra Flags. - -###### Macro [SRC\_C\_SSE4][](File Flags...) <a name="macro_SRC_C_SSE4"></a> -Compile single .c-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. - -###### Macro [SRC\_C\_SSE41][](File Flags...) <a name="macro_SRC_C_SSE41"></a> -Compile single .c-file with SSE4.1 and extra Flags. - -###### Macro [SRC\_C\_SSSE3][](File Flags...) <a name="macro_SRC_C_SSSE3"></a> -Compile single .c-file with SSSE3 and extra Flags. - +###### Macro [SRC\_CPP\_SSE2][](File Flags...) <a name="macro_SRC_CPP_SSE2"></a> +Compile single .cpp-file with SSE2 and extra Flags. + +###### Macro [SRC\_CPP\_SSE3][](File Flags...) <a name="macro_SRC_CPP_SSE3"></a> +Compile single .cpp-file with SSE3 and extra Flags. + +###### Macro [SRC\_CPP\_SSE4][](File Flags...) <a name="macro_SRC_CPP_SSE4"></a> +Compile single .cpp-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. + +###### Macro [SRC\_CPP\_SSE41][](File Flags...) <a name="macro_SRC_CPP_SSE41"></a> +Compile single .cpp-file with SSE4.1 and extra Flags. + +###### Macro [SRC\_CPP\_SSSE3][](File Flags...) <a name="macro_SRC_CPP_SSSE3"></a> +Compile single .cpp-file with SSSE3 and extra Flags. + +###### Macro [SRC\_C\_AVX][](File Flags...) <a name="macro_SRC_C_AVX"></a> +Compile single .c-file with AVX and extra Flags. + +###### Macro [SRC\_C\_AVX2][](File Flags...) <a name="macro_SRC_C_AVX2"></a> +Compile single .c-file with AVX2 and extra Flags. + +###### Macro [SRC\_C\_SSE2][](File Flags...) <a name="macro_SRC_C_SSE2"></a> +Compile single .c-file with SSE2 and extra Flags. + +###### Macro [SRC\_C\_SSE3][](File Flags...) <a name="macro_SRC_C_SSE3"></a> +Compile single .c-file with SSE3 and extra Flags. + +###### Macro [SRC\_C\_SSE4][](File Flags...) <a name="macro_SRC_C_SSE4"></a> +Compile single .c-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. + +###### Macro [SRC\_C\_SSE41][](File Flags...) <a name="macro_SRC_C_SSE41"></a> +Compile single .c-file with SSE4.1 and extra Flags. + +###### Macro [SRC\_C\_SSSE3][](File Flags...) <a name="macro_SRC_C_SSSE3"></a> +Compile single .c-file with SSSE3 and extra Flags. + ###### Macro [SRC\_RESOURCE][](Id) <a name="macro_SRC_RESOURCE"></a> Not documented yet. -###### Macro [STRIP][]() <a name="macro_STRIP"></a> -Strip debug info from a PROGRAM, DLL or TEST. -This macro doesn't work in LIBRARY's, UNION's and PACKAGE's. - -###### Macro [STRUCT\_CODEGEN][](Prefix) <a name="macro_STRUCT_CODEGEN"></a> -A special case BASE\_CODEGEN, in which the kernel/struct\_codegen/codegen\_tool tool is used. - +###### Macro [STRIP][]() <a name="macro_STRIP"></a> +Strip debug info from a PROGRAM, DLL or TEST. +This macro doesn't work in LIBRARY's, UNION's and PACKAGE's. + +###### Macro [STRUCT\_CODEGEN][](Prefix) <a name="macro_STRUCT_CODEGEN"></a> +A special case BASE\_CODEGEN, in which the kernel/struct\_codegen/codegen\_tool tool is used. + ###### Macro [STYLE][](Globs...) <a name="macro_STYLE"></a> Not documented yet. @@ -2389,39 +2389,39 @@ and tsan.supp for thread sanitizer suppressions respectively. See https://clang.llvm.org/docs/AddressSanitizer.html#suppressing-memory-leaks for details. -###### Macro [SYMLINK][](from to) <a name="macro_SYMLINK"></a> -Add symlink - -###### Macro [SYSTEM\_PROPERTIES][]([<Key Value>...] [<File Path>...]) <a name="macro_SYSTEM_PROPERTIES"></a> -List of Key,Value pairs that will be available to test via System.getProperty(). -FILE means that parst should be read from file specifies as Path. - -Documentation: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [TAG][] ([tag...]) <a name="macro_TAG"></a> -Each test can have one or more tags used to filter tests list for running. -There are also special tags affecting test behaviour, for example ya:external, sb:ssd. - -Documentation: https://wiki.yandex-team.ru/yatool/test/#obshhieponjatija - -###### Macro [TASKLET][]() <a name="macro_TASKLET"></a> -Not documented yet. - -###### Macro [TASKLET\_REG][](Name, Lang, Impl, Includes...) <a name="macro_TASKLET_REG"></a> -Not documented yet. - +###### Macro [SYMLINK][](from to) <a name="macro_SYMLINK"></a> +Add symlink + +###### Macro [SYSTEM\_PROPERTIES][]([<Key Value>...] [<File Path>...]) <a name="macro_SYSTEM_PROPERTIES"></a> +List of Key,Value pairs that will be available to test via System.getProperty(). +FILE means that parst should be read from file specifies as Path. + +Documentation: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [TAG][] ([tag...]) <a name="macro_TAG"></a> +Each test can have one or more tags used to filter tests list for running. +There are also special tags affecting test behaviour, for example ya:external, sb:ssd. + +Documentation: https://wiki.yandex-team.ru/yatool/test/#obshhieponjatija + +###### Macro [TASKLET][]() <a name="macro_TASKLET"></a> +Not documented yet. + +###### Macro [TASKLET\_REG][](Name, Lang, Impl, Includes...) <a name="macro_TASKLET_REG"></a> +Not documented yet. + ###### Macro [TASKLET\_REG\_EXT][](Name, Lang, Impl, Wrapper, Includes...) <a name="macro_TASKLET_REG_EXT"></a> Not documented yet. -###### Macro [TEST\_CWD][](path) <a name="macro_TEST_CWD"></a> -Defines working directory for test runs. Othen used in conjunction with DATA() macro. -Is only used inside of the TEST modules. - -Documentation: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [TEST\_DATA][] <a name="macro_TEST_DATA"></a> -Not documented yet. - +###### Macro [TEST\_CWD][](path) <a name="macro_TEST_CWD"></a> +Defines working directory for test runs. Othen used in conjunction with DATA() macro. +Is only used inside of the TEST modules. + +Documentation: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [TEST\_DATA][] <a name="macro_TEST_DATA"></a> +Not documented yet. + ###### Macro [TEST\_JAVA\_CLASSPATH\_CMD\_TYPE][](Type) <a name="macro_TEST_JAVA_CLASSPATH_CMD_TYPE"></a> Availible types: MANIFEST(default), COMMAND\_FILE, LIST Method for passing a classpath value to a java command line @@ -2429,34 +2429,34 @@ MANIFEST via empty jar file with manifest that cantains Class-Path attribute COMMAND\_FILE via @command\_file LIST via flat args -###### Macro [TEST\_SRCS][](Files...) <a name="macro_TEST_SRCS"></a> +###### Macro [TEST\_SRCS][](Files...) <a name="macro_TEST_SRCS"></a> In PY2TEST, PY3TEST and PY\*\_LIBRARY modules used as PY\_SRCS macro and additionally used to mine test cases to be executed by testing framework. - -Documentation: https://wiki.yandex-team.ru/yatool/test/#testynapytest - -###### Macro [TIMEOUT][](TIMEOUT) <a name="macro_TIMEOUT"></a> -Sets a timeout on test execution - -Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ - -###### Macro [UBERJAR][]() <a name="macro_UBERJAR"></a> + +Documentation: https://wiki.yandex-team.ru/yatool/test/#testynapytest + +###### Macro [TIMEOUT][](TIMEOUT) <a name="macro_TIMEOUT"></a> +Sets a timeout on test execution + +Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ + +###### Macro [UBERJAR][]() <a name="macro_UBERJAR"></a> UBERJAR is a single all-in-one jar-archive that includes all its Java dependencies (reachable PEERDIR). -It also supports shading classes inside the archive by moving them to a different package (similar to the maven-shade-plugin). -Use UBERJAR inside JAVA\_PROGRAM module. - -You can use the following macros to configure the archive: -1. UBERJAR\_HIDING\_PREFIX prefix for classes to shade (classes remain in their packages by default) +It also supports shading classes inside the archive by moving them to a different package (similar to the maven-shade-plugin). +Use UBERJAR inside JAVA\_PROGRAM module. + +You can use the following macros to configure the archive: +1. UBERJAR\_HIDING\_PREFIX prefix for classes to shade (classes remain in their packages by default) 2. UBERJAR\_HIDE\_EXCLUDE\_PATTERN exclude classes matching this patterns from shading (if enabled). -3. UBERJAR\_PATH\_EXCLUDE\_PREFIX the prefix for classes that should not get into the jar archive (all classes are placed into the archive by default) +3. UBERJAR\_PATH\_EXCLUDE\_PREFIX the prefix for classes that should not get into the jar archive (all classes are placed into the archive by default) 4. UBERJAR\_MANIFEST\_TRANSFORMER\_MAIN add ManifestResourceTransformer class to uberjar processing and specify main-class 5. UBERJAR\_MANIFEST\_TRANSFORMER\_ATTRIBUTE add ManifestResourceTransformer class to uberjar processing and specify some attribute 6. UBERJAR\_APPENDING\_TRANSFORMER add AppendingTransformer class to uberjar processing 7. UBERJAR\_SERVICES\_RESOURCE\_TRANSFORMER add ServicesResourceTransformer class to uberjar processing - -Documentation: https://wiki.yandex-team.ru/yatool/java/ - -@see: [JAVA\_PROGRAM](#module\_JAVA\_PROGRAM), [UBERJAR\_HIDING\_PREFIX](#macro\_UBERJAR\_HIDING\_PREFIX), [UBERJAR\_HIDE\_EXCLUDE\_PATTERN](#macro\_UBERJAR\_HIDE\_EXCLUDE\_PATTERN), [UBERJAR\_PATH\_EXCLUDE\_PREFIX](#macro\_UBERJAR\_PATH\_EXCLUDE\_PREFIX) - + +Documentation: https://wiki.yandex-team.ru/yatool/java/ + +@see: [JAVA\_PROGRAM](#module\_JAVA\_PROGRAM), [UBERJAR\_HIDING\_PREFIX](#macro\_UBERJAR\_HIDING\_PREFIX), [UBERJAR\_HIDE\_EXCLUDE\_PATTERN](#macro\_UBERJAR\_HIDE\_EXCLUDE\_PATTERN), [UBERJAR\_PATH\_EXCLUDE\_PREFIX](#macro\_UBERJAR\_PATH\_EXCLUDE\_PREFIX) + ###### Macro [UBERJAR\_APPENDING\_TRANSFORMER][](Resource) <a name="macro_UBERJAR_APPENDING_TRANSFORMER"></a> Add AppendingTransformer for UBERJAR() java programs @@ -2465,19 +2465,19 @@ Parameters: @see: [UBERJAR](#macro\_UBERJAR) -###### Macro [UBERJAR\_HIDE\_EXCLUDE\_PATTERN][](Args...) <a name="macro_UBERJAR_HIDE_EXCLUDE_PATTERN"></a> -Exculude classes matching this patterns from shading (if enabled). -Pattern may contain '\*' and '\*\*' globs. -Shading is enabled for UBERJAR program using UBERJAR\_HIDING\_PREFIX macro. If this macro is not specified all classes are shaded. - -@see: [UBERJAR](#macro\_UBERJAR), [UBERJAR\_HIDING\_PREFIX](#macro\_UBERJAR\_HIDING\_PREFIX) - -###### Macro [UBERJAR\_HIDING\_PREFIX][](Arg) <a name="macro_UBERJAR_HIDING_PREFIX"></a> -Set prefix for classes to shade. All classes in UBERJAR will be moved into package prefixed with Arg. -Classes remain in their packages by default. - -@see: [UBERJAR](#macro\_UBERJAR) - +###### Macro [UBERJAR\_HIDE\_EXCLUDE\_PATTERN][](Args...) <a name="macro_UBERJAR_HIDE_EXCLUDE_PATTERN"></a> +Exculude classes matching this patterns from shading (if enabled). +Pattern may contain '\*' and '\*\*' globs. +Shading is enabled for UBERJAR program using UBERJAR\_HIDING\_PREFIX macro. If this macro is not specified all classes are shaded. + +@see: [UBERJAR](#macro\_UBERJAR), [UBERJAR\_HIDING\_PREFIX](#macro\_UBERJAR\_HIDING\_PREFIX) + +###### Macro [UBERJAR\_HIDING\_PREFIX][](Arg) <a name="macro_UBERJAR_HIDING_PREFIX"></a> +Set prefix for classes to shade. All classes in UBERJAR will be moved into package prefixed with Arg. +Classes remain in their packages by default. + +@see: [UBERJAR](#macro\_UBERJAR) + ###### Macro [UBERJAR\_MANIFEST\_TRANSFORMER\_ATTRIBUTE][](Key, Value) <a name="macro_UBERJAR_MANIFEST_TRANSFORMER_ATTRIBUTE"></a> Transform manifest.mf for UBERJAR() java programs, set attribute @@ -2488,12 +2488,12 @@ Transform manifest.mf for UBERJAR() java programs, set main-class attribute @see: [UBERJAR](#macro\_UBERJAR) -###### Macro [UBERJAR\_PATH\_EXCLUDE\_PREFIX][](Args...) <a name="macro_UBERJAR_PATH_EXCLUDE_PREFIX"></a> -Exculude classes matching this patterns from UBERJAR. -By default all dependencies of UBERJAR program will lend in a .jar archive. - -@see: [UBERJAR](#macro\_UBERJAR) - +###### Macro [UBERJAR\_PATH\_EXCLUDE\_PREFIX][](Args...) <a name="macro_UBERJAR_PATH_EXCLUDE_PREFIX"></a> +Exculude classes matching this patterns from UBERJAR. +By default all dependencies of UBERJAR program will lend in a .jar archive. + +@see: [UBERJAR](#macro\_UBERJAR) + ###### Macro [UBERJAR\_SERVICES\_RESOURCE\_TRANSFORMER][]() <a name="macro_UBERJAR_SERVICES_RESOURCE_TRANSFORMER"></a> Add ServicesResourceTransformer for UBERJAR() java programs @@ -2512,9 +2512,9 @@ Not documented yet. Add dependency on C++ runtime Note: This macro is inteneded for use in \_GO\_BASE\_UNIT like module when the module is built without C++ runtime by default -###### Macro [USE\_ERROR\_PRONE][]() <a name="macro_USE_ERROR_PRONE"></a> -Use errorprone instead of javac for .java compilation. - +###### Macro [USE\_ERROR\_PRONE][]() <a name="macro_USE_ERROR_PRONE"></a> +Use errorprone instead of javac for .java compilation. + ###### Macro [USE\_EXT\_PROTO][](peerdir\_tag...) <a name="macro_USE_EXT_PROTO"></a> Configure module to use proto files from existing PROTO\_LIBRARY module. Additional PEERDIR tags required to build a module can be passed through @@ -2535,37 +2535,37 @@ Use lld linker for a program. This doesn't work in libraries ###### Macro [USE\_PERL\_514\_LIB][]() <a name="macro_USE_PERL_514_LIB"></a> Add dependency on Perl 5.14 to your LIBRARY -###### Macro [USE\_PERL\_LIB][]() <a name="macro_USE_PERL_LIB"></a> -Add dependency on Perl to your LIBRARY - +###### Macro [USE\_PERL\_LIB][]() <a name="macro_USE_PERL_LIB"></a> +Add dependency on Perl to your LIBRARY + ###### Macro [USE\_PLANTUML][]() <a name="macro_USE_PLANTUML"></a> Use PlantUML plug-in for yfm builder to render UML diagrams into documentation ###### Macro [USE\_PYTHON2][]() <a name="macro_USE_PYTHON2"></a> -This adds Python 2.x runtime library to your LIBRARY and makes it Python2-compatible. -Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. - +This adds Python 2.x runtime library to your LIBRARY and makes it Python2-compatible. +Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. + If you'd like to use #include <Python.h> with Python2 specify USE\_PYTHON2 or better make it PY2\_LIBRARY. -If you'd like to use #include <Python.h> with Python3 specify USE\_PYTHON3 or better make it PY3\_LIBRARY. -If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23\_LIBRARY. - +If you'd like to use #include <Python.h> with Python3 specify USE\_PYTHON3 or better make it PY3\_LIBRARY. +If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23\_LIBRARY. + @see: [PY2\_LIBRARY](#module\_PY2\_LIBRARY), [PY3\_LIBRARY](#module\_PY3\_LIBRARY), [PY23\_LIBRARY](#multimodule\_PY23\_LIBRARY) - + ###### Macro [USE\_PYTHON3][]() <a name="macro_USE_PYTHON3"></a> -This adds Python3 library to your LIBRARY and makes it Python3-compatible. -Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. - -If you'd like to use #include <Python.h> with Python3 specify USE\_PYTHON3 or better make it PY3\_LIBRARY. +This adds Python3 library to your LIBRARY and makes it Python3-compatible. +Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. + +If you'd like to use #include <Python.h> with Python3 specify USE\_PYTHON3 or better make it PY3\_LIBRARY. If you'd like to use #include <Python.h> with Python2 specify USE\_PYTHON2 or better make it PY2\_LIBRARY. -If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23\_LIBRARY. - +If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23\_LIBRARY. + @see: [PY2\_LIBRARY](#module\_PY2\_LIBRARY), [PY3\_LIBRARY](#module\_PY3\_LIBRARY), [PY23\_LIBRARY](#multimodule\_PY23\_LIBRARY) - -###### Macro [USE\_RECIPE][](path [arg1 arg2...]) <a name="macro_USE_RECIPE"></a> -Provides prepared environment via recipe for test. - -Documentation: https://wiki.yandex-team.ru/yatool/test/recipes - + +###### Macro [USE\_RECIPE][](path [arg1 arg2...]) <a name="macro_USE_RECIPE"></a> +Provides prepared environment via recipe for test. + +Documentation: https://wiki.yandex-team.ru/yatool/test/recipes + ###### Macro [USE\_SKIFF][]() _#wip, do not use_ <a name="macro_USE_SKIFF"></a> Use mapreduce/yt/skiff\_proto/plugin for C++ @@ -2577,18 +2577,18 @@ Note: This macro is intended for use in \_GO\_BASE\_UNIT like module when the mo Change uid for resource validation tests. May be useful when sandbox resource ttl is changed, but test status is cached in CI. You can change ext to change test's uid. For example VALIDATE\_DATA\_RESTART(X), where is X is current revision. -###### Macro [VERSION][](Args...) <a name="macro_VERSION"></a> -Specify version of a module. Currently unused by build system, only informative. - +###### Macro [VERSION][](Args...) <a name="macro_VERSION"></a> +Specify version of a module. Currently unused by build system, only informative. + ###### Macro [VISIBILITY][](level) <a name="macro_VISIBILITY"></a> This macro sets visibility level for symbols compiled for the current module. 'level' may take only one of the following values: DEFAULT, HIDDEN. -###### Macro [WERROR][]() <a name="macro_WERROR"></a> -Consider warnings as errors in the current module. -In the bright future will be removed, since WERROR is the default. -Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. - +###### Macro [WERROR][]() <a name="macro_WERROR"></a> +Consider warnings as errors in the current module. +In the bright future will be removed, since WERROR is the default. +Priorities: NO\_COMPILER\_WARNINGS > NO\_WERROR > WERROR\_MODE > WERROR. + ###### Macro [WINDOWS\_MANIFEST][](Manifest) <a name="macro_WINDOWS_MANIFEST"></a> Not documented yet. @@ -2603,9 +2603,9 @@ Include dynamic libraries as extra PROGRAM/DLL outputs ###### Macro [WITH\_GROOVY][]() <a name="macro_WITH_GROOVY"></a> Compile groovy source code in this java module -###### Macro [WITH\_JDK][]() <a name="macro_WITH_JDK"></a> +###### Macro [WITH\_JDK][]() <a name="macro_WITH_JDK"></a> Add directory with JDK to JAVA\_PROGRAM output - + ###### Macro [WITH\_KOTLIN][]() <a name="macro_WITH_KOTLIN"></a> Compile kotlin source code in this java module @@ -2615,19 +2615,19 @@ Enable allopen kotlin compiler plugin https://kotlinlang.org/docs/all-open-plugi ###### Macro [WITH\_KOTLINC\_NOARG][](-flags) <a name="macro_WITH_KOTLINC_NOARG"></a> Enable noarg kotlin compiler plugin https://kotlinlang.org/docs/no-arg-plugin.html -###### Macro [XS\_PROTO][](InputProto Dir Outputs...) _# deprecated_ <a name="macro_XS_PROTO"></a> -Generate Perl code from protobuf. -In order to use this macro one should predict all outputs protoc will emit from input\_proto file and enlist those as outputs. - -###### Macro [YABS\_GENERATE\_CONF][] <a name="macro_YABS_GENERATE_CONF"></a> -Not documented yet. - -###### Macro [YABS\_GENERATE\_PHANTOM\_CONF\_PATCH][] <a name="macro_YABS_GENERATE_PHANTOM_CONF_PATCH"></a> -Not documented yet. - -###### Macro [YABS\_GENERATE\_PHANTOM\_CONF\_TEST\_CHECK][] <a name="macro_YABS_GENERATE_PHANTOM_CONF_TEST_CHECK"></a> -Not documented yet. - +###### Macro [XS\_PROTO][](InputProto Dir Outputs...) _# deprecated_ <a name="macro_XS_PROTO"></a> +Generate Perl code from protobuf. +In order to use this macro one should predict all outputs protoc will emit from input\_proto file and enlist those as outputs. + +###### Macro [YABS\_GENERATE\_CONF][] <a name="macro_YABS_GENERATE_CONF"></a> +Not documented yet. + +###### Macro [YABS\_GENERATE\_PHANTOM\_CONF\_PATCH][] <a name="macro_YABS_GENERATE_PHANTOM_CONF_PATCH"></a> +Not documented yet. + +###### Macro [YABS\_GENERATE\_PHANTOM\_CONF\_TEST\_CHECK][] <a name="macro_YABS_GENERATE_PHANTOM_CONF_TEST_CHECK"></a> +Not documented yet. + ###### Macro [YDL\_DESC\_USE\_BINARY][]() <a name="macro_YDL_DESC_USE_BINARY"></a> Used in conjunction with BUILD\_YDL\_DESC. When enabled, all generated descriptors are binary. @@ -2640,17 +2640,17 @@ Used in conjunction with BUILD\_YDL\_DESC. When enabled, all generated descripto This will generate descriptor Event.ydld in a binary format. -###### Macro [YMAPS\_SPROTO][](ProtoFiles...) _# maps-specific_ <a name="macro_YMAPS_SPROTO"></a> -Maps-specific .proto handling: generate .sproto.h files using maps/libs/sproto/sprotoc. - +###### Macro [YMAPS\_SPROTO][](ProtoFiles...) _# maps-specific_ <a name="macro_YMAPS_SPROTO"></a> +Maps-specific .proto handling: generate .sproto.h files using maps/libs/sproto/sprotoc. + ###### Macro [YP\_PROTO\_YSON][](Files... OUT\_OPTS Opts...) <a name="macro_YP_PROTO_YSON"></a> Genereate .yson.go from .proto using yp/go/yson/internal/proto-yson-gen/cmd/proto-yson-gen -###### Macro [YQL\_ABI\_VERSION][](major minor release)) <a name="macro_YQL_ABI_VERSION"></a> -Specifying the supported ABI for YQL\_UDF. - -@see: [YQL\_UDF()](#multimodule\_YQL\_UDF) - +###### Macro [YQL\_ABI\_VERSION][](major minor release)) <a name="macro_YQL_ABI_VERSION"></a> +Specifying the supported ABI for YQL\_UDF. + +@see: [YQL\_UDF()](#multimodule\_YQL\_UDF) + ###### Macro [YQL\_LAST\_ABI\_VERSION][]() <a name="macro_YQL_LAST_ABI_VERSION"></a> Use the last ABI for YQL\_UDF diff --git a/build/external_resources/codenavigation/ya.make b/build/external_resources/codenavigation/ya.make index 26598e3c8f..8cfdf0d3d5 100644 --- a/build/external_resources/codenavigation/ya.make +++ b/build/external_resources/codenavigation/ya.make @@ -6,7 +6,7 @@ NO_CODENAVIGATION() NO_RUNTIME() IF (OS_LINUX) - DECLARE_EXTERNAL_RESOURCE(CPPYNDEXER sbr:2218884955) + DECLARE_EXTERNAL_RESOURCE(CPPYNDEXER sbr:2218884955) DECLARE_EXTERNAL_RESOURCE(PYNDEXER sbr:2112287762) DECLARE_EXTERNAL_RESOURCE(PY3YNDEXER sbr:2670411952) ENDIF() diff --git a/build/platform/local_so/readme.md b/build/platform/local_so/readme.md index b64c400101..1bcad54581 100644 --- a/build/platform/local_so/readme.md +++ b/build/platform/local_so/readme.md @@ -1,3 +1,3 @@ -This is supporting library for DYNAMIC_LIBRARY module. - -It sets LDFLAG that brings support of dynamic loading fron binary's directory on Linux, Darwin etc. On Windows this behavior is enabled by default. +This is supporting library for DYNAMIC_LIBRARY module. + +It sets LDFLAG that brings support of dynamic loading fron binary's directory on Linux, Darwin etc. On Windows this behavior is enabled by default. diff --git a/build/platform/local_so/ya.make b/build/platform/local_so/ya.make index 263c632000..70b72f653c 100644 --- a/build/platform/local_so/ya.make +++ b/build/platform/local_so/ya.make @@ -1,9 +1,9 @@ -RESOURCES_LIBRARY() - -OWNER(g:ymake) - -IF (NOT OS_WINDOWS) - SET_APPEND(RPATH_GLOBAL '-Wl,-rpath,$ORIGIN') -ENDIF() - -END() +RESOURCES_LIBRARY() + +OWNER(g:ymake) + +IF (NOT OS_WINDOWS) + SET_APPEND(RPATH_GLOBAL '-Wl,-rpath,$ORIGIN') +ENDIF() + +END() diff --git a/build/platform/python/ya.make b/build/platform/python/ya.make index 5296bb1ea4..247e65f4c9 100644 --- a/build/platform/python/ya.make +++ b/build/platform/python/ya.make @@ -116,7 +116,7 @@ IF (USE_SYSTEM_PYTHON) ENABLE(PYTHON_NOT_FOUND) ENDIF() CFLAGS(GLOBAL "/I$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/include") - LDFLAGS("/LIBPATH:$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/libs") + LDFLAGS("/LIBPATH:$EXTERNAL_PYTHON_RESOURCE_GLOBAL/python/libs") ENDIF() IF (PYTHON_NOT_FOUND) @@ -124,9 +124,9 @@ IF (USE_SYSTEM_PYTHON) ENDIF() ELSEIF (NOT USE_ARCADIA_PYTHON) CFLAGS(GLOBAL $PYTHON_FLAGS) - IF (OS_WINDOWS) + IF (OS_WINDOWS) LDFLAGS($PYTHON_LDFLAGS $PYTHON_LIBRARIES) - ENDIF() + ENDIF() ENDIF() END() diff --git a/build/platform/wine/ya.make b/build/platform/wine/ya.make index 25723c3a3f..7d74cb279b 100644 --- a/build/platform/wine/ya.make +++ b/build/platform/wine/ya.make @@ -6,5 +6,5 @@ OWNER(neksard) DECLARE_EXTERNAL_RESOURCE(WINE_TOOL sbr:1093314933) DECLARE_EXTERNAL_RESOURCE(WINE32_TOOL sbr:2264052281) -SET(NEED_PLATFORM_PEERDIRS no) +SET(NEED_PLATFORM_PEERDIRS no) END() diff --git a/build/plugins/build_mn_files.py b/build/plugins/build_mn_files.py index 30a5472062..4da76f1852 100644 --- a/build/plugins/build_mn_files.py +++ b/build/plugins/build_mn_files.py @@ -1,7 +1,7 @@ from os.path import basename, splitext -def on_build_mns_files(unit, *args): +def on_build_mns_files(unit, *args): files = [] name = '' ranking_suffix = '' @@ -26,4 +26,4 @@ def on_build_mns_files(unit, *args): file_basename, _ = splitext(basename(filename)) asmdataname = "staticMn{0}{1}Ptr".format(ranking_suffix, file_basename) output_name = 'mn.staticMn{0}{1}Ptr.cpp'.format(ranking_suffix, file_basename) - unit.on_build_mns_file([filename, name, output_name, ranking_suffix, check, fml_unused_tool, asmdataname]) + unit.on_build_mns_file([filename, name, output_name, ranking_suffix, check, fml_unused_tool, asmdataname]) diff --git a/build/plugins/bundle.py b/build/plugins/bundle.py index 392c246d4f..0bec8254ee 100644 --- a/build/plugins/bundle.py +++ b/build/plugins/bundle.py @@ -2,14 +2,14 @@ import os def onbundle(unit, *args): - """ - @usage BUNDLE(<Dir [NAME Name]>...) - - Brings build artefact from module Dir under optional Name to the current module (e.g. UNION) - If NAME is not specified, the name of the Dir's build artefact will be preserved - It makes little sense to specify BUNDLE on non-final targets and so this may stop working without prior notice. - Bundle on multimodule will select final target among multimodule variants and will fail if there are none or more than one. - """ + """ + @usage BUNDLE(<Dir [NAME Name]>...) + + Brings build artefact from module Dir under optional Name to the current module (e.g. UNION) + If NAME is not specified, the name of the Dir's build artefact will be preserved + It makes little sense to specify BUNDLE on non-final targets and so this may stop working without prior notice. + Bundle on multimodule will select final target among multimodule variants and will fail if there are none or more than one. + """ i = 0 while i < len(args): if i + 2 < len(args) and args[i + 1] == "NAME": @@ -19,4 +19,4 @@ def onbundle(unit, *args): target, name = args[i], os.path.basename(args[i]) i += 1 - unit.on_bundle_target([target, name]) + unit.on_bundle_target([target, name]) diff --git a/build/plugins/gobuild.py b/build/plugins/gobuild.py index 42d92e261c..8df96ebc55 100644 --- a/build/plugins/gobuild.py +++ b/build/plugins/gobuild.py @@ -258,7 +258,7 @@ def on_go_process_srcs(unit): import_runtime_cgo = 'false' if import_path in import_runtime_cgo_false[race_mode] else 'true' import_syscall = 'false' if import_path in import_syscall_false[race_mode] else 'true' args = [import_path] + cgo_files + ['FLAGS', '-import_runtime_cgo=' + import_runtime_cgo, '-import_syscall=' + import_syscall] - unit.on_go_compile_cgo1(args) + unit.on_go_compile_cgo1(args) cgo2_cflags = get_appended_values(unit, 'CGO2_CFLAGS_VALUE') for f in cgo_files: if f.endswith('.go'): @@ -272,7 +272,7 @@ def on_go_process_srcs(unit): args += ['S_FILES'] + s_files if len(syso_files) > 0: args += ['OBJ_FILES'] + syso_files - unit.on_go_compile_cgo2(args) + unit.on_go_compile_cgo2(args) def on_go_resource(unit, *args): diff --git a/build/plugins/large_files.py b/build/plugins/large_files.py index 30816f973b..33a78d7110 100644 --- a/build/plugins/large_files.py +++ b/build/plugins/large_files.py @@ -1,39 +1,39 @@ -import os -import ymake -from _common import strip_roots - -PLACEHOLDER_EXT = "external" - - -def onlarge_files(unit, *args): - """ +import os +import ymake +from _common import strip_roots + +PLACEHOLDER_EXT = "external" + + +def onlarge_files(unit, *args): + """ @usage LARGE_FILES([AUTOUPDATED] Files...) - + Use large file ether from working copy or from remote storage via placeholder <File>.external If <File> is present locally (and not a symlink!) it will be copied to build directory. Otherwise macro will try to locate <File>.external, parse it retrieve ot during build phase. - """ - args = list(args) + """ + args = list(args) if args and args[0] == 'AUTOUPDATED': args = args[1:] - for arg in args: + for arg in args: if arg == 'AUTOUPDATED': unit.message(["warn", "Please set AUTOUPDATED argument before other file names"]) continue - src = unit.resolve_arc_path(arg) - if src.startswith("$S"): - msg = "Used local large file {}. Don't forget to run 'ya upload --update-external' and commit {}.{}".format(src, src, PLACEHOLDER_EXT) - unit.message(["warn", msg]) - unit.oncopy_file([arg, arg]) - else: - out_file = strip_roots(os.path.join(unit.path(), arg)) - external = "{}.{}".format(arg, PLACEHOLDER_EXT) + src = unit.resolve_arc_path(arg) + if src.startswith("$S"): + msg = "Used local large file {}. Don't forget to run 'ya upload --update-external' and commit {}.{}".format(src, src, PLACEHOLDER_EXT) + unit.message(["warn", msg]) + unit.oncopy_file([arg, arg]) + else: + out_file = strip_roots(os.path.join(unit.path(), arg)) + external = "{}.{}".format(arg, PLACEHOLDER_EXT) from_external_cmd = [external, out_file, 'OUT_NOAUTO', arg] if os.path.dirname(arg): from_external_cmd.extend(("RENAME", os.path.basename(arg))) unit.on_from_external(from_external_cmd) - unit.onadd_check(['check.external', external]) - + unit.onadd_check(['check.external', external]) + diff --git a/build/plugins/lib/ya.make b/build/plugins/lib/ya.make index 3e21486fdd..a9bbb58bf2 100644 --- a/build/plugins/lib/ya.make +++ b/build/plugins/lib/ya.make @@ -1,7 +1,7 @@ -OWNER(g:ymake) - -PY23_LIBRARY() - PY_SRCS( - _metric_resolvers.py - ) -END() +OWNER(g:ymake) + +PY23_LIBRARY() + PY_SRCS( + _metric_resolvers.py + ) +END() diff --git a/build/plugins/lj_archive.py b/build/plugins/lj_archive.py index dec0abb870..1d80bb98f3 100644 --- a/build/plugins/lj_archive.py +++ b/build/plugins/lj_archive.py @@ -1,8 +1,8 @@ def onlj_archive(unit, *args): - """ - @usage: LJ_ARCHIVE(NAME Name LuaFiles...) - Precompile .lua files using LuaJIT and archive both sources and results using sources names as keys - """ + """ + @usage: LJ_ARCHIVE(NAME Name LuaFiles...) + Precompile .lua files using LuaJIT and archive both sources and results using sources names as keys + """ def iter_luas(l): for a in l: if a.endswith('.lua'): @@ -11,7 +11,7 @@ def onlj_archive(unit, *args): def iter_objs(l): for a in l: s = a[:-3] + 'raw' - unit.on_luajit_objdump(['OUT', s, a]) + unit.on_luajit_objdump(['OUT', s, a]) yield s luas = list(iter_luas(args)) @@ -21,10 +21,10 @@ def onlj_archive(unit, *args): unit.onarchive_by_keys(['DONTCOMPRESS', 'NAME', 'LuaSources.inc', 'KEYS', ':'.join(luas)] + luas) def onlj_21_archive(unit, *args): - """ - @usage: LJ_21_ARCHIVE(NAME Name LuaFiles...) # deprecated - Precompile .lua files using LuaJIT 2.1 and archive both sources and results using sources names as keys - """ + """ + @usage: LJ_21_ARCHIVE(NAME Name LuaFiles...) # deprecated + Precompile .lua files using LuaJIT 2.1 and archive both sources and results using sources names as keys + """ def iter_luas(l): for a in l: if a.endswith('.lua'): @@ -33,7 +33,7 @@ def onlj_21_archive(unit, *args): def iter_objs(l): for a in l: s = a[:-3] + 'raw' - unit.on_luajit_21_objdump(['OUT', s, a]) + unit.on_luajit_21_objdump(['OUT', s, a]) yield s luas = list(iter_luas(args)) diff --git a/build/plugins/macros_with_error.py b/build/plugins/macros_with_error.py index 780c76f4f1..e82fb56d2c 100644 --- a/build/plugins/macros_with_error.py +++ b/build/plugins/macros_with_error.py @@ -21,9 +21,9 @@ def onrestrict_path(unit, *args): if not _common.strip_roots(unit.path()).startswith(paths): error_msg = "Path '[[imp]]{}[[rst]]' is restricted - [[bad]]{}[[rst]]. Valid path prefixes are: [[unimp]]{}[[rst]]".format(unit.path(), msg, ', '.join(paths)) ymake.report_configure_error(error_msg) - -def onassert(unit, *args): - val = unit.get(args[0]) - if val and val.lower() == "no": - msg = ' '.join(args[1:]) - ymake.report_configure_error(msg) + +def onassert(unit, *args): + val = unit.get(args[0]) + if val and val.lower() == "no": + msg = ' '.join(args[1:]) + ymake.report_configure_error(msg) diff --git a/build/plugins/mx_archive.py b/build/plugins/mx_archive.py index 9937d7fd5a..56b0d4d16e 100644 --- a/build/plugins/mx_archive.py +++ b/build/plugins/mx_archive.py @@ -1,16 +1,16 @@ def onmx_formulas(unit, *args): - """ - @usage: MX_FORMULAS(BinFiles...) # deprecated, matrixnet - Create MatrixNet formulas archive - """ + """ + @usage: MX_FORMULAS(BinFiles...) # deprecated, matrixnet + Create MatrixNet formulas archive + """ def iter_infos(): for a in args: if a.endswith('.bin'): - unit.on_mx_bin_to_info([a]) + unit.on_mx_bin_to_info([a]) yield a[:-3] + 'info' else: yield a infos = list(iter_infos()) unit.onarchive_asm(['NAME', 'MxFormulas'] + infos) - unit.on_mx_gen_table(infos) + unit.on_mx_gen_table(infos) diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index 2a6f6b2a0c..f32a2d39a0 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -3,12 +3,12 @@ import collections from hashlib import md5 import ymake -from _common import stripext, rootrel_arc_src, tobuilddir, listid, resolve_to_ymake_path, generate_chunks, pathid +from _common import stripext, rootrel_arc_src, tobuilddir, listid, resolve_to_ymake_path, generate_chunks, pathid YA_IDE_VENV_VAR = 'YA_IDE_VENV' PY_NAMESPACE_PREFIX = 'py/namespace' -BUILTIN_PROTO = 'builtin_proto' +BUILTIN_PROTO = 'builtin_proto' def is_arc_src(src, unit): return ( @@ -29,11 +29,11 @@ def to_build_root(path, unit): return '${ARCADIA_BUILD_ROOT}/' + rootrel_arc_src(path, unit) return path -def uniq_suffix(path, unit): - upath = unit.path() - if '/' not in path: - return '' - return '.{}'.format(pathid(path)[:4]) +def uniq_suffix(path, unit): + upath = unit.path() + if '/' not in path: + return '' + return '.{}'.format(pathid(path)[:4]) def pb2_arg(suf, path, mod, unit): return '{path}__int__{suf}={mod}{modsuf}'.format( @@ -104,8 +104,8 @@ def parse_pyx_includes(filename, path, source_root, seen=None): else: ymake.report_configure_error("'{}' includes missing file: {} ({})".format(path, incfile, abs_path)) -def has_pyx(args): - return any(arg.endswith('.pyx') for arg in args) +def has_pyx(args): + return any(arg.endswith('.pyx') for arg in args) def get_srcdir(path, unit): return rootrel_arc_src(path, unit)[:-len(path)].rstrip('/') @@ -170,8 +170,8 @@ def py_program(unit, py3): def onpy_srcs(unit, *args): """ - @usage PY_SRCS({| CYTHON_C} { | TOP_LEVEL | NAMESPACE ns} Files...) - + @usage PY_SRCS({| CYTHON_C} { | TOP_LEVEL | NAMESPACE ns} Files...) + PY_SRCS() - is rule to build extended versions of Python interpreters and containing all application code in its executable file. It can be used to collect only the executables but not shared libraries, and, in particular, not to collect the modules that are imported using import directive. The main disadvantage is the lack of IDE support; There is also no readline yet. The application can be collect from any of the sources from which the C library, and with the help of PY_SRCS .py , .pyx,.proto and .swg files. @@ -182,16 +182,16 @@ def onpy_srcs(unit, *args): Example of library declaration with PY_SRCS(): PY2_LIBRARY(mymodule) - PY_SRCS(a.py sub/dir/b.py e.proto sub/dir/f.proto c.pyx sub/dir/d.pyx g.swg sub/dir/h.swg) + PY_SRCS(a.py sub/dir/b.py e.proto sub/dir/f.proto c.pyx sub/dir/d.pyx g.swg sub/dir/h.swg) END() - PY_REGISTER honors Python2 and Python3 differences and adjusts itself to Python version of a current module - Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipylibrarypy3libraryimakrospysrcs + PY_REGISTER honors Python2 and Python3 differences and adjusts itself to Python version of a current module + Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipylibrarypy3libraryimakrospysrcs """ # Each file arg must either be a path, or "${...}/buildpath=modname", where # "${...}/buildpath" part will be used as a file source in a future macro, # and "modname" will be used as a module name. - + upath = unit.path()[3:] py3 = is_py3(unit) py_main_only = unit.get('PROCESS_PY_MAIN_ONLY') @@ -200,7 +200,7 @@ def onpy_srcs(unit, *args): in_proto_library = unit.get('PY_PROTO') or unit.get('PY3_PROTO') venv = unit.get(YA_IDE_VENV_VAR) need_gazetteer_peerdir = False - trim = 0 + trim = 0 if not upath.startswith('contrib/tools/python') and not upath.startswith('library/python/runtime') and unit.get('NO_PYTHON_INCLS') != 'yes': unit.onpeerdir(['contrib/libs/python']) @@ -217,7 +217,7 @@ def onpy_srcs(unit, *args): cython_coverage = unit.get('CYTHON_COVERAGE') == 'yes' cythonize_py = False - optimize_proto = unit.get('OPTIMIZE_PY_PROTOS_FLAG') == 'yes' + optimize_proto = unit.get('OPTIMIZE_PY_PROTOS_FLAG') == 'yes' cython_directives = [] if cython_coverage: @@ -274,10 +274,10 @@ def onpy_srcs(unit, *args): # Unsupported but legal PROTO_LIBRARY arguments. elif arg == 'GLOBAL' or not in_proto_library and arg.endswith('.gztproto'): pass - elif arg == '_MR': - # GLOB support: convert arcadia-root-relative paths to module-relative - # srcs are assumed to start with ${ARCADIA_ROOT} - trim = len(unit.path()) + 14 + elif arg == '_MR': + # GLOB support: convert arcadia-root-relative paths to module-relative + # srcs are assumed to start with ${ARCADIA_ROOT} + trim = len(unit.path()) + 14 # Sources. else: main_mod = arg == 'MAIN' @@ -288,8 +288,8 @@ def onpy_srcs(unit, *args): main_py = False path, mod = arg.split('=', 1) else: - if trim: - arg = arg[trim:] + if trim: + arg = arg[trim:] if arg.endswith('.gztproto'): need_gazetteer_peerdir = True path = '{}.proto'.format(arg[:-9]) @@ -381,10 +381,10 @@ def onpy_srcs(unit, *args): pass for pyxs, cython, out_suffix, noext in [ - (pyxs_c, unit.on_buildwith_cython_c_dep, ".c", False), - (pyxs_c_h, unit.on_buildwith_cython_c_h, ".c", True), - (pyxs_c_api_h, unit.on_buildwith_cython_c_api_h, ".c", True), - (pyxs_cpp, unit.on_buildwith_cython_cpp_dep, ".cpp", False), + (pyxs_c, unit.on_buildwith_cython_c_dep, ".c", False), + (pyxs_c_h, unit.on_buildwith_cython_c_h, ".c", True), + (pyxs_c_api_h, unit.on_buildwith_cython_c_api_h, ".c", True), + (pyxs_cpp, unit.on_buildwith_cython_cpp_dep, ".cpp", False), ]: for path, mod in pyxs: filename = rootrel_arc_src(path, unit) @@ -476,9 +476,9 @@ def onpy_srcs(unit, *args): ] if with_pyc: src = unit.resolve_arc_path(path) or path - dst = path + uniq_suffix(path, unit) - unit.on_py_compile_bytecode([root_rel_path + '-', src, dst]) - res += [dst + '.yapyc', '/py_code/' + mod] + dst = path + uniq_suffix(path, unit) + unit.on_py_compile_bytecode([root_rel_path + '-', src, dst]) + res += [dst + '.yapyc', '/py_code/' + mod] unit.onresource(res) add_python_lint_checks(unit, 2, [path for path, mod in pys] + unit.get(['_PY_EXTRA_LINT_FILES_VALUE']).split()) @@ -500,7 +500,7 @@ def onpy_srcs(unit, *args): unit.onpeerdir(unit.get("PY_PROTO_DEPS").split()) proto_paths = [path for path, mod in protos] - unit.on_generate_py_protos_internal(proto_paths) + unit.on_generate_py_protos_internal(proto_paths) unit.onpy_srcs([ pb2_arg(py_suf, path, mod, unit) for path, mod in protos @@ -509,10 +509,10 @@ def onpy_srcs(unit, *args): if optimize_proto and need_gazetteer_peerdir: unit.onpeerdir(['kernel/gazetteer/proto']) - + if evs: unit.onpeerdir([cpp_runtime_path]) - unit.on_generate_py_evs_internal([path for path, mod in evs]) + unit.on_generate_py_evs_internal([path for path, mod in evs]) unit.onpy_srcs([ev_arg(path, mod, unit) for path, mod in evs]) if fbss: @@ -520,7 +520,7 @@ def onpy_srcs(unit, *args): pysrc_base_name = listid(fbss) unit.onfbs_to_pysrc([pysrc_base_name] + [path for path, _ in fbss]) unit.onsrcs(['GLOBAL', '{}.fbs.pysrc'.format(pysrc_base_name)]) - + def _check_test_srcs(*args): used = set(args) & {"NAMESPACE", "TOP_LEVEL", "__main__.py"} @@ -536,12 +536,12 @@ def ontest_srcs(unit, *args): def onpy_doctests(unit, *args): - """ - @usage PY_DOCTEST(Packages...) - - Add to the test doctests for specified Python packages - The packages should be part of a test (listed as sources of the test or its PEERDIRs). - """ + """ + @usage PY_DOCTEST(Packages...) + + Add to the test doctests for specified Python packages + The packages should be part of a test (listed as sources of the test or its PEERDIRs). + """ if unit.get('PY3TEST_BIN' if is_py3(unit) else 'PYTEST_BIN') != 'no': unit.onresource(['-', 'PY_DOCTEST_PACKAGES="{}"'.format(' '.join(args))]) @@ -556,17 +556,17 @@ def py_register(unit, func, py3): def onpy_register(unit, *args): """ @usage: PY_REGISTER([package.]module_name) - + Python knows about which built-ins can be imported, due to their registration in the Assembly or at the start of the interpreter. All modules from the sources listed in PY_SRCS() are registered automatically. To register the modules from the sources in the SRCS(), you need to use PY_REGISTER(). - - PY_REGISTER(module_name) initializes module globally via call to initmodule_name() + + PY_REGISTER(module_name) initializes module globally via call to initmodule_name() PY_REGISTER(package.module_name) initializes module in the specified package It renames its init function with CFLAGS(-Dinitmodule_name=init7package11module_name) or CFLAGS(-DPyInit_module_name=PyInit_7package11module_name) - - Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#makrospyregister + + Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#makrospyregister """ py3 = is_py3(unit) @@ -593,11 +593,11 @@ def py_main(unit, arg): def onpy_main(unit, arg): """ - @usage: PY_MAIN(package.module[:func]) + @usage: PY_MAIN(package.module[:func]) - Specifies the module or function from which to start executing a python program + Specifies the module or function from which to start executing a python program - Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipyprogrampy3programimakrospymain + Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipyprogrampy3programimakrospymain """ arg = arg.replace('/', '.') diff --git a/build/plugins/res.py b/build/plugins/res.py index d5f0a98826..a937caba81 100644 --- a/build/plugins/res.py +++ b/build/plugins/res.py @@ -52,10 +52,10 @@ def onfat_resource(unit, *args): def onresource_files(unit, *args): """ - @usage: RESOURCE_FILES([DONT_PARSE] [PREFIX {prefix}] [STRIP prefix_to_strip] {path}) - - This macro expands into - RESOURCE([DONT_PARSE] {path} resfs/file/{prefix}{path} + @usage: RESOURCE_FILES([DONT_PARSE] [PREFIX {prefix}] [STRIP prefix_to_strip] {path}) + + This macro expands into + RESOURCE([DONT_PARSE] {path} resfs/file/{prefix}{path} - resfs/src/resfs/file/{prefix}{remove_prefix(path, prefix_to_strip)}={rootrel_arc_src(path)} ) @@ -65,28 +65,28 @@ def onresource_files(unit, *args): resfs/file/{key} stores any value whose source was a file on a filesystem. resfs/src/resfs/file/{key} must store its path. - DONT_PARSE disables parsing for source code files (determined by extension) - Please don't abuse: use separate DONT_PARSE macro call only for files subject to parsing - + DONT_PARSE disables parsing for source code files (determined by extension) + Please don't abuse: use separate DONT_PARSE macro call only for files subject to parsing + This form is for use from other plugins: RESOURCE_FILES([DEST {dest}] {path}) expands into RESOURCE({path} resfs/file/{dest}) - - @see: https://wiki.yandex-team.ru/devtools/commandsandvars/resourcefiles/ + + @see: https://wiki.yandex-team.ru/devtools/commandsandvars/resourcefiles/ """ prefix = '' prefix_to_strip = None dest = None res = [] - first = 0 + first = 0 if args and not unit.enabled('_GO_MODULE'): # GO_RESOURCE currently doesn't support DONT_PARSE res.append('DONT_PARSE') - if args and args[0] == 'DONT_PARSE': - first = 1 + if args and args[0] == 'DONT_PARSE': + first = 1 - args = iter(args[first:]) + args = iter(args[first:]) for arg in args: if arg == 'PREFIX': prefix, dest = next(args), None diff --git a/build/plugins/split_codegen.py b/build/plugins/split_codegen.py index f5e874a48b..f1e60bc142 100644 --- a/build/plugins/split_codegen.py +++ b/build/plugins/split_codegen.py @@ -7,15 +7,15 @@ _ADDITIONAL_STREAM_COUNT = 5 def onsplit_codegen(unit, *args): - ''' - @usage: SPLIT_CODEGEN(tool prefix opts... [OUT_NUM num] [OUTPUT_INCLUDES output_includes...]) - - Generator of a certain number of parts of the .cpp file + one header .h file from .in - - Supports keywords: - 1. OUT_NUM <the number of generated Prefix.N.cpp default 25 (N varies from 0 to 24)> - 2. OUTPUT_INCLUDES <path to files that will be included in generalnyj of macro files> - ''' + ''' + @usage: SPLIT_CODEGEN(tool prefix opts... [OUT_NUM num] [OUTPUT_INCLUDES output_includes...]) + + Generator of a certain number of parts of the .cpp file + one header .h file from .in + + Supports keywords: + 1. OUT_NUM <the number of generated Prefix.N.cpp default 25 (N varies from 0 to 24)> + 2. OUTPUT_INCLUDES <path to files that will be included in generalnyj of macro files> + ''' keywords = {"OUT_NUM": 1} flat_args, spec_args = sort_by_keywords(keywords, args) @@ -40,4 +40,4 @@ def onsplit_codegen(unit, *args): else: cmd += ['OPTS'] + cpp_parts_args - unit.on_split_codegen_base(cmd) + unit.on_split_codegen_base(cmd) diff --git a/build/plugins/swig.py b/build/plugins/swig.py index b8953935b8..32a37204a6 100644 --- a/build/plugins/swig.py +++ b/build/plugins/swig.py @@ -66,7 +66,7 @@ class Swig(iw.CustomCommand): unit.onpeerdir(['build/platform/perl']) if self._swig_lang in ['jni_cpp', 'java']: - self._out_header = os.path.splitext(self._main_out)[0] + '.h' + self._out_header = os.path.splitext(self._main_out)[0] + '.h' if (not unit.get('USE_SYSTEM_JDK')) and (unit.get('OS_ANDROID') != "yes"): unit.onpeerdir(['contrib/libs/jdk']) @@ -101,9 +101,9 @@ class Swig(iw.CustomCommand): (common.join_intl_paths(self._bindir, self._out_name), (['noauto', 'add_to_outs'] if self._swig_lang != 'java' else [])), ] + ([(self._out_header, [])] if self._swig_lang == 'java' else []) - def output_includes(self): + def output_includes(self): return [(self._out_header, [])] if self._swig_lang in ['java', 'jni_cpp'] else [] - + def run(self, extra_args, binary): if self._local_swig: binary = self._tool diff --git a/build/plugins/ya.make b/build/plugins/ya.make index 0e4969e656..4ad5f5988e 100644 --- a/build/plugins/ya.make +++ b/build/plugins/ya.make @@ -14,8 +14,8 @@ PY_SRCS( _test_const.py ) -PEERDIR(build/plugins/lib) - +PEERDIR(build/plugins/lib) + END() RECURSE( diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py index 46616e22f3..8970837f0f 100644 --- a/build/plugins/ytest.py +++ b/build/plugins/ytest.py @@ -6,7 +6,7 @@ import copy import base64 import shlex import _common -import lib._metric_resolvers as mr +import lib._metric_resolvers as mr import _test_const as consts import _requirements as reqs import StringIO diff --git a/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.prebuilt b/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.prebuilt index 49c4b5e13d..607ec865b4 100644 --- a/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.prebuilt +++ b/build/prebuilt/contrib/python/mypy-protobuf/bin/protoc-gen-mypy/ya.make.prebuilt @@ -3,7 +3,7 @@ INCLUDE(ya.make.resource) IF (SANDBOX_RESOURCE_ID != "") ENABLE(PREBUILT) - PREBUILT_PROGRAM(protoc-gen-mypy) + PREBUILT_PROGRAM(protoc-gen-mypy) DECLARE_EXTERNAL_RESOURCE(MYPY_PROTOBUF sbr:${SANDBOX_RESOURCE_ID}) diff --git a/build/rules/contrib_python.policy b/build/rules/contrib_python.policy index 38a4ebbc16..60fd149753 100644 --- a/build/rules/contrib_python.policy +++ b/build/rules/contrib_python.policy @@ -263,7 +263,7 @@ ALLOW datalens/backend/app/dls -> contrib/python/quart DENY .* -> contrib/python/quart # https://st.yandex-team.ru/CONTRIB-2012 -ALLOW maps/geomarketing -> contrib/python/facebook-business +ALLOW maps/geomarketing -> contrib/python/facebook-business ALLOW sandbox/projects/maps/geomarketing -> contrib/python/facebook-business ALLOW jupytercloud/arcadia_kernel/default -> contrib/python/facebook-business ALLOW jupytercloud/arcadia_kernel/default_yql -> contrib/python/facebook-business @@ -273,8 +273,8 @@ ALLOW quality/ab_testing/cofe/bin/lib/files/py3/cofe_kernel_yql -> contrib/pytho DENY .* -> contrib/python/facebook-business # https://st.yandex-team.ru/CONTRIB-1954 -ALLOW contrib/python/glom -> contrib/python/face$ -DENY .* -> contrib/python/face$ +ALLOW contrib/python/glom -> contrib/python/face$ +DENY .* -> contrib/python/face$ # https://st.yandex-team.ru/CONTRIB-1918 ALLOW contrib/python/webstruct -> contrib/python/webstruct diff --git a/build/rules/contrib_restricted.policy b/build/rules/contrib_restricted.policy index eeedf41043..a83ead1904 100644 --- a/build/rules/contrib_restricted.policy +++ b/build/rules/contrib_restricted.policy @@ -80,7 +80,7 @@ ALLOW dict/mt/video -> contrib/restricted/rubberband # Allowed subset of abseil is exported via library/ ALLOW library/cpp/containers/absl_flat_hash -> contrib/restricted/abseil-cpp/absl/container ALLOW library/cpp/containers/absl_tstring_flat_hash -> contrib/restricted/abseil-cpp-tstring/y_absl/container - + # spdlog is just yet another best logging engine # The best logging engine, however, is to be designed in CPPCOM-20 ALLOW quasar/backend/src/base -> contrib/restricted/spdlog diff --git a/build/rules/py2_deprecation/readme.md b/build/rules/py2_deprecation/readme.md index db3c25e203..deb36317a1 100644 --- a/build/rules/py2_deprecation/readme.md +++ b/build/rules/py2_deprecation/readme.md @@ -1,9 +1,9 @@ -# Python 2 в Аркадии deprecated - -Arcadia мигрирует на Python 3 и код на Python 2 [объявлен deprecated](https://clubs.at.yandex-team.ru/arcadia/23044) - -Чтобы не перегружать большими портянками предупреждений консоль все такие ошибки по умолчанию выводятся через этот модуль и потому фигурирут одной строкой. - -Чтобы увидеть все ошибки достаточно запустить вашу сборку с дополнительным флагом `-DFAIL_PY2`. Это вызовет configure-ошибки во всех стартовых Python2-only модулях: -программах - `PY2_PROGRAM`, тестах (`PY2TEST`) и Sandbox-задачах (`SANDBOX_TASK`). `PY2_LIBRARY` на данный момент не вызывает ошибок, потому что достаточно сложно -отследить зависимости на них из разрешённых `PY23_LIBRARY` и `PY23_TEST`.
\ No newline at end of file +# Python 2 в Аркадии deprecated + +Arcadia мигрирует на Python 3 и код на Python 2 [объявлен deprecated](https://clubs.at.yandex-team.ru/arcadia/23044) + +Чтобы не перегружать большими портянками предупреждений консоль все такие ошибки по умолчанию выводятся через этот модуль и потому фигурирут одной строкой. + +Чтобы увидеть все ошибки достаточно запустить вашу сборку с дополнительным флагом `-DFAIL_PY2`. Это вызовет configure-ошибки во всех стартовых Python2-only модулях: +программах - `PY2_PROGRAM`, тестах (`PY2TEST`) и Sandbox-задачах (`SANDBOX_TASK`). `PY2_LIBRARY` на данный момент не вызывает ошибок, потому что достаточно сложно +отследить зависимости на них из разрешённых `PY23_LIBRARY` и `PY23_TEST`.
\ No newline at end of file diff --git a/build/rules/py2_deprecation/ya.make b/build/rules/py2_deprecation/ya.make index 8f6c0636d9..f488d5e97b 100644 --- a/build/rules/py2_deprecation/ya.make +++ b/build/rules/py2_deprecation/ya.make @@ -1,6 +1,6 @@ -OWNER(g:ymake) -RESOURCES_LIBRARY() - +OWNER(g:ymake) +RESOURCES_LIBRARY() + MESSAGE(WARNING You are using deprecated Python2-only code. Please consider rewriting to Python 3. To list all such errors use `ya make -DFAIL_PY2`.) - -END() + +END() diff --git a/build/sanitize-blacklist.txt b/build/sanitize-blacklist.txt index 65e6362bb3..c1fb5e539f 100644 --- a/build/sanitize-blacklist.txt +++ b/build/sanitize-blacklist.txt @@ -1,4 +1,4 @@ src:*contrib/tools/python/src* -src:*contrib/tools/python3/src* +src:*contrib/tools/python3/src* src:*contrib/libs/luajit* type:std::__*::locale::id=init diff --git a/build/scripts/c_templates/ya.make b/build/scripts/c_templates/ya.make index 66d901609e..b395e11021 100644 --- a/build/scripts/c_templates/ya.make +++ b/build/scripts/c_templates/ya.make @@ -1,5 +1,5 @@ -OWNER(g:ymake) - +OWNER(g:ymake) + LIBRARY(dummy-vcs) NO_PLATFORM() diff --git a/build/scripts/fetch_from.py b/build/scripts/fetch_from.py index 2f9c95ee96..db4fea50bf 100755 --- a/build/scripts/fetch_from.py +++ b/build/scripts/fetch_from.py @@ -210,7 +210,7 @@ def fetch_url(url, unpack, resource_file_name, expected_md5=None, expected_sha1= tmp_file_name = uniq_string_generator() request = urllib2.Request(url, headers={'User-Agent': make_user_agent()}) - req = retry.retry_func(lambda: urllib2.urlopen(request, timeout=30), tries=tries, delay=5, backoff=1.57079) + req = retry.retry_func(lambda: urllib2.urlopen(request, timeout=30), tries=tries, delay=5, backoff=1.57079) logging.debug('Headers: %s', req.headers.headers) expected_file_size = int(req.headers['Content-Length']) real_md5 = hashlib.md5() diff --git a/build/scripts/fetch_from_archive.py b/build/scripts/fetch_from_archive.py index 762e0a16e1..57aff91b5e 100644 --- a/build/scripts/fetch_from_archive.py +++ b/build/scripts/fetch_from_archive.py @@ -1,36 +1,36 @@ -import os -import sys -import logging -import argparse - -import fetch_from - - -def parse_args(): - parser = argparse.ArgumentParser() - fetch_from.add_common_arguments(parser) - parser.add_argument('--file-name', required=True) - parser.add_argument('--archive', required=True) - - return parser.parse_args() - -def main(args): - archive = args.archive - file_name = args.file_name.rstrip('-') - - fetch_from.process(archive, file_name, args, remove=False) - - -if __name__ == '__main__': - args = parse_args() - fetch_from.setup_logging(args, os.path.basename(__file__)) - - try: - main(args) - except Exception as e: - logging.exception(e) - print >>sys.stderr, open(args.abs_log_path).read() - sys.stderr.flush() +import os +import sys +import logging +import argparse + +import fetch_from + + +def parse_args(): + parser = argparse.ArgumentParser() + fetch_from.add_common_arguments(parser) + parser.add_argument('--file-name', required=True) + parser.add_argument('--archive', required=True) + + return parser.parse_args() + +def main(args): + archive = args.archive + file_name = args.file_name.rstrip('-') + + fetch_from.process(archive, file_name, args, remove=False) + + +if __name__ == '__main__': + args = parse_args() + fetch_from.setup_logging(args, os.path.basename(__file__)) + + try: + main(args) + except Exception as e: + logging.exception(e) + print >>sys.stderr, open(args.abs_log_path).read() + sys.stderr.flush() import error sys.exit(error.ExitCodes.INFRASTRUCTURE_ERROR if fetch_from.is_temporary(e) else 1) diff --git a/build/scripts/fetch_from_external.py b/build/scripts/fetch_from_external.py index 83f0416ca1..d4ed6f4221 100644 --- a/build/scripts/fetch_from_external.py +++ b/build/scripts/fetch_from_external.py @@ -1,60 +1,60 @@ import sys import json -import os.path -import fetch_from -import argparse -import logging +import os.path +import fetch_from +import argparse +import logging -def parse_args(): - parser = argparse.ArgumentParser() - fetch_from.add_common_arguments(parser) - parser.add_argument('--external-file', required=True) - parser.add_argument('--custom-fetcher') - parser.add_argument('--resource-file') - return parser.parse_args() +def parse_args(): + parser = argparse.ArgumentParser() + fetch_from.add_common_arguments(parser) + parser.add_argument('--external-file', required=True) + parser.add_argument('--custom-fetcher') + parser.add_argument('--resource-file') + return parser.parse_args() -def main(args): - external_file = args.external_file.rstrip('.external') - if os.path.isfile(args.resource_file): +def main(args): + external_file = args.external_file.rstrip('.external') + if os.path.isfile(args.resource_file): fetch_from.process(args.resource_file, os.path.basename(args.resource_file), args, False) - return - - error = None - try: - with open(args.external_file) as f: - js = json.load(f) - - if js['storage'] == 'SANDBOX': - import fetch_from_sandbox as ffsb - del args.external_file - args.resource_id = js['resource_id'] - ffsb.main(args) - elif js['storage'] == 'MDS': - import fetch_from_mds as fmds - del args.external_file - args.key = js['resource_id'] - fmds.main(args) - else: - error = 'Unsupported storage in {}'.format(external_file) - except: - logging.error('Invalid external file: {}'.format(external_file)) - raise - if error: - raise Exception(error) - - + return + + error = None + try: + with open(args.external_file) as f: + js = json.load(f) + + if js['storage'] == 'SANDBOX': + import fetch_from_sandbox as ffsb + del args.external_file + args.resource_id = js['resource_id'] + ffsb.main(args) + elif js['storage'] == 'MDS': + import fetch_from_mds as fmds + del args.external_file + args.key = js['resource_id'] + fmds.main(args) + else: + error = 'Unsupported storage in {}'.format(external_file) + except: + logging.error('Invalid external file: {}'.format(external_file)) + raise + if error: + raise Exception(error) + + if __name__ == '__main__': - args = parse_args() - fetch_from.setup_logging(args, os.path.basename(__file__)) - - try: - main(args) - except Exception as e: - logging.exception(e) - print >>sys.stderr, open(args.abs_log_path).read() - sys.stderr.flush() + args = parse_args() + fetch_from.setup_logging(args, os.path.basename(__file__)) + + try: + main(args) + except Exception as e: + logging.exception(e) + print >>sys.stderr, open(args.abs_log_path).read() + sys.stderr.flush() import error sys.exit(error.ExitCodes.INFRASTRUCTURE_ERROR if fetch_from.is_temporary(e) else 1) diff --git a/build/scripts/fetch_from_sandbox.py b/build/scripts/fetch_from_sandbox.py index bc6430963b..a99542e174 100755 --- a/build/scripts/fetch_from_sandbox.py +++ b/build/scripts/fetch_from_sandbox.py @@ -170,15 +170,15 @@ def fetch(resource_id, custom_fetcher): if custom_fetcher: yield lambda: fetch_via_script(custom_fetcher, resource_id) - - # Don't try too hard here: we will get back to proxy later on - yield lambda: fetch_from.fetch_url(proxy_link, False, resource_file_name, expected_md5, tries=2) + + # Don't try too hard here: we will get back to proxy later on + yield lambda: fetch_from.fetch_url(proxy_link, False, resource_file_name, expected_md5, tries=2) for x in get_storage_links(): - # Don't spend too much time connecting single host - yield lambda: fetch_from.fetch_url(x, False, resource_file_name, expected_md5, tries=1) + # Don't spend too much time connecting single host + yield lambda: fetch_from.fetch_url(x, False, resource_file_name, expected_md5, tries=1) if mds_link is not None: - # Don't try too hard here: we will get back to MDS later on - yield lambda: fetch_from.fetch_url(mds_link, True, resource_file_name, expected_md5, tries=2) + # Don't try too hard here: we will get back to MDS later on + yield lambda: fetch_from.fetch_url(mds_link, True, resource_file_name, expected_md5, tries=2) yield lambda: fetch_from.fetch_url(proxy_link, False, resource_file_name, expected_md5) if mds_link is not None: yield lambda: fetch_from.fetch_url(mds_link, True, resource_file_name, expected_md5) diff --git a/build/scripts/fs_tools.py b/build/scripts/fs_tools.py index d2d6209822..dec4c349c8 100644 --- a/build/scripts/fs_tools.py +++ b/build/scripts/fs_tools.py @@ -82,13 +82,13 @@ if __name__ == '__main__': link_or_copy(args[0], args[1]) elif mode == 'link_or_copy_to_dir': assert len(args) > 1 - start = 0 - if args[0] == '--no-check': - if args == 2: - sys.exit() - start = 1 + start = 0 + if args[0] == '--no-check': + if args == 2: + sys.exit() + start = 1 dst = args[-1] - for src in args[start:-1]: + for src in args[start:-1]: link_or_copy(src, os.path.join(dst, os.path.basename(src))) elif mode == 'cat': with open(args[0], 'w') as dst: diff --git a/build/scripts/gen_java_codenav_entry.py b/build/scripts/gen_java_codenav_entry.py index e2fd871770..ff0a5c737d 100644 --- a/build/scripts/gen_java_codenav_entry.py +++ b/build/scripts/gen_java_codenav_entry.py @@ -44,7 +44,7 @@ def just_do_it(java, kythe, kythe_to_proto, out_name, binding_only, kindexes): print >> sys.stderr, '[INFO] Preprocessing execution time:', (datetime.datetime.now() - preprocess_start).total_seconds(), 'seconds' print >> sys.stderr, '[INFO] Total execution time:', (datetime.datetime.now() - start).total_seconds(), 'seconds' - + if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("--java", help="java path") diff --git a/build/scripts/generate_mf.py b/build/scripts/generate_mf.py index 4dbe95e26a..a44a969980 100644 --- a/build/scripts/generate_mf.py +++ b/build/scripts/generate_mf.py @@ -5,7 +5,7 @@ import os import sys import io -import process_command_files as pcf +import process_command_files as pcf class BadMfError(Exception): pass @@ -23,7 +23,7 @@ def process_quotes(s): def parse_args(): - args = pcf.get_args(sys.argv[1:]) + args = pcf.get_args(sys.argv[1:]) lics, peers, free_args, credits = [], [], [], [] current_list = free_args for a in args: diff --git a/build/scripts/link_dyn_lib.py b/build/scripts/link_dyn_lib.py index 510728910e..23487f5c1e 100644 --- a/build/scripts/link_dyn_lib.py +++ b/build/scripts/link_dyn_lib.py @@ -150,9 +150,9 @@ def fix_cmd(arch, musl, c): if p.endswith('.supp'): return [] - if p.endswith('.pkg.fake'): - return [] - + if p.endswith('.pkg.fake'): + return [] + return [p] return sum((do_fix(x) for x in c), []) diff --git a/build/scripts/link_exe.py b/build/scripts/link_exe.py index 0ab4ef94a3..f469e3b442 100644 --- a/build/scripts/link_exe.py +++ b/build/scripts/link_exe.py @@ -19,7 +19,7 @@ musl_libs = '-lc', '-lcrypt', '-ldl', '-lm', '-lpthread', '-lrt', '-lutil' def fix_cmd(musl, c): - return [i for i in c if (not musl or i not in musl_libs) and not i.endswith('.ios.interface') and not i.endswith('.pkg.fake')] + return [i for i in c if (not musl or i not in musl_libs) and not i.endswith('.ios.interface') and not i.endswith('.pkg.fake')] def gen_default_suppressions(inputs, output, source_root): diff --git a/build/scripts/run_msvc_wine.py b/build/scripts/run_msvc_wine.py index 1799eb5276..439d1f8831 100644 --- a/build/scripts/run_msvc_wine.py +++ b/build/scripts/run_msvc_wine.py @@ -1,6 +1,6 @@ import sys import os -import re +import re import subprocess import signal import time @@ -202,8 +202,8 @@ def is_good_file(p): if os.path.getsize(p) < 300: return False - asm_pattern = re.compile('asm(\.\w+)?\.obj$') - if asm_pattern.search(p): + asm_pattern = re.compile('asm(\.\w+)?\.obj$') + if asm_pattern.search(p): pass elif p.endswith('.obj'): with open(p, 'rb') as f: diff --git a/build/scripts/vcs_info.py b/build/scripts/vcs_info.py index bcf2a053ed..319d1b4631 100644 --- a/build/scripts/vcs_info.py +++ b/build/scripts/vcs_info.py @@ -45,15 +45,15 @@ class _Formatting(object): return strval.replace(r'\n', '\\n"\\\n' + indent + '"') @staticmethod - def escape_trigraphs(strval): - return strval.replace(r'?', '\\?') - - @staticmethod + def escape_trigraphs(strval): + return strval.replace(r'?', '\\?') + + @staticmethod def escaped_define(strkey, val): name = "#define " + strkey + " " if _Formatting.is_str(val): define = "\"" + _Formatting.escape_line_feed( - _Formatting.escape_trigraphs(_Formatting.escape_special_symbols(val))) + "\"" + _Formatting.escape_trigraphs(_Formatting.escape_special_symbols(val))) + "\"" else: define = str(val) return name + define @@ -68,8 +68,8 @@ class _Formatting(object): def get_default_json(): return json.loads('''{ - "ARCADIA_SOURCE_HG_HASH": "0000000000000000000000000000000000000000", - "ARCADIA_SOURCE_LAST_AUTHOR": "<UNKNOWN>", + "ARCADIA_SOURCE_HG_HASH": "0000000000000000000000000000000000000000", + "ARCADIA_SOURCE_LAST_AUTHOR": "<UNKNOWN>", "ARCADIA_SOURCE_LAST_CHANGE": -1, "ARCADIA_SOURCE_PATH": "/", "ARCADIA_SOURCE_REVISION": -1, @@ -79,8 +79,8 @@ def get_default_json(): "BUILD_TIMESTAMP": 0, "BUILD_HOST": "localhost", "BUILD_USER": "nobody", - "PROGRAM_VERSION": "Arc info:\\n Branch: unknown-vcs-branch\\n Commit: 0000000000000000000000000000000000000000\\n Author: <UNKNOWN>\\n Summary: No VCS\\n\\n", - "SCM_DATA": "Arc info:\\n Branch: unknown-vcs-branch\\n Commit: 0000000000000000000000000000000000000000\\n Author: <UNKNOWN>\\n Summary: No VCS\\n", + "PROGRAM_VERSION": "Arc info:\\n Branch: unknown-vcs-branch\\n Commit: 0000000000000000000000000000000000000000\\n Author: <UNKNOWN>\\n Summary: No VCS\\n\\n", + "SCM_DATA": "Arc info:\\n Branch: unknown-vcs-branch\\n Commit: 0000000000000000000000000000000000000000\\n Author: <UNKNOWN>\\n Summary: No VCS\\n", "VCS": "arc", "ARCADIA_PATCH_NUMBER": 0, "ARCADIA_TAG": "" diff --git a/build/scripts/yndexer.py b/build/scripts/yndexer.py index 15cb2cedf2..a38e28ba99 100644 --- a/build/scripts/yndexer.py +++ b/build/scripts/yndexer.py @@ -62,7 +62,7 @@ if __name__ == '__main__': yndexer, input_file, '-pb2', '-i', 'arc::{}'.format(arc_root), - '-i', 'build::{}'.format(build_root), + '-i', 'build::{}'.format(build_root), '-i', '.IGNORE::/', '-o', os.path.dirname(output_file), '-n', os.path.basename(output_file).rsplit('.ydx.pb2', 1)[0], diff --git a/build/sysincl/darwin.yml b/build/sysincl/darwin.yml index 9906c037eb..582c7e1202 100644 --- a/build/sysincl/darwin.yml +++ b/build/sysincl/darwin.yml @@ -126,7 +126,7 @@ - sys/acl.h - sys/aio.h - sys/attr.h - - sys/clonefile.h + - sys/clonefile.h - sys/dirent.h - sys/disk.h - sys/domain.h diff --git a/build/sysincl/stl-to-libcxx.yml b/build/sysincl/stl-to-libcxx.yml index 890f10f3a4..7d9600f345 100644 --- a/build/sysincl/stl-to-libcxx.yml +++ b/build/sysincl/stl-to-libcxx.yml @@ -46,7 +46,7 @@ - includes: - __config: contrib/libs/cxxsupp/libcxx/include/__config - - __undef_macros: contrib/libs/cxxsupp/libcxx/include/__undef_macros + - __undef_macros: contrib/libs/cxxsupp/libcxx/include/__undef_macros - algorithm: contrib/libs/cxxsupp/libcxx/include/algorithm - any: contrib/libs/cxxsupp/libcxx/include/any - array: contrib/libs/cxxsupp/libcxx/include/array diff --git a/build/sysincl/stl-to-nothing.yml b/build/sysincl/stl-to-nothing.yml index dba7c25859..c7e27d1411 100644 --- a/build/sysincl/stl-to-nothing.yml +++ b/build/sysincl/stl-to-nothing.yml @@ -29,7 +29,7 @@ - includes: - __config - - __undef_macros + - __undef_macros - algorithm - any - array diff --git a/build/sysincl/swig.yml b/build/sysincl/swig.yml index 7851302f52..9931a15e3c 100644 --- a/build/sysincl/swig.yml +++ b/build/sysincl/swig.yml @@ -1,5 +1,5 @@ # Generated by devtools/yamaker. -- includes: +- includes: - argcargv.i: - contrib/tools/swig/Lib/python/argcargv.i - arrays_java.i: @@ -60,10 +60,10 @@ - contrib/tools/swig/Lib/java/enumtypesafe.swg - enumtypeunsafe.swg: - contrib/tools/swig/Lib/java/enumtypeunsafe.swg - - exception.i: - - contrib/tools/swig/Lib/exception.i + - exception.i: + - contrib/tools/swig/Lib/exception.i - contrib/tools/swig/Lib/go/exception.i - - contrib/tools/swig/Lib/perl5/exception.i + - contrib/tools/swig/Lib/perl5/exception.i - contrib/tools/swig/Lib/python/exception.i - factory.i: - contrib/tools/swig/Lib/perl5/factory.i @@ -188,11 +188,11 @@ - contrib/tools/swig/Lib/python/std_carray.i - std_char_traits.i: - contrib/tools/swig/Lib/python/std_char_traits.i - - std_common.i: + - std_common.i: - contrib/tools/swig/Lib/go/std_common.i - contrib/tools/swig/Lib/java/std_common.i - contrib/tools/swig/Lib/perl5/std_common.i - - contrib/tools/swig/Lib/python/std_common.i + - contrib/tools/swig/Lib/python/std_common.i - std_complex.i: - contrib/tools/swig/Lib/python/std_complex.i - std_container.i: @@ -202,11 +202,11 @@ - contrib/tools/swig/Lib/java/std_deque.i - contrib/tools/swig/Lib/perl5/std_deque.i - contrib/tools/swig/Lib/python/std_deque.i - - std_except.i: + - std_except.i: - contrib/tools/swig/Lib/go/std_except.i - contrib/tools/swig/Lib/java/std_except.i - contrib/tools/swig/Lib/perl5/std_except.i - - contrib/tools/swig/Lib/python/std_except.i + - contrib/tools/swig/Lib/python/std_except.i - std_ios.i: - contrib/tools/swig/Lib/python/std_ios.i - std_iostream.i: @@ -216,26 +216,26 @@ - contrib/tools/swig/Lib/java/std_list.i - contrib/tools/swig/Lib/perl5/std_list.i - contrib/tools/swig/Lib/python/std_list.i - - std_map.i: + - std_map.i: - contrib/tools/swig/Lib/go/std_map.i - contrib/tools/swig/Lib/java/std_map.i - contrib/tools/swig/Lib/perl5/std_map.i - - contrib/tools/swig/Lib/python/std_map.i + - contrib/tools/swig/Lib/python/std_map.i - std_multimap.i: - contrib/tools/swig/Lib/python/std_multimap.i - std_multiset.i: - contrib/tools/swig/Lib/python/std_multiset.i - - std_pair.i: + - std_pair.i: - contrib/tools/swig/Lib/go/std_pair.i - contrib/tools/swig/Lib/java/std_pair.i - contrib/tools/swig/Lib/perl5/std_pair.i - - contrib/tools/swig/Lib/python/std_pair.i + - contrib/tools/swig/Lib/python/std_pair.i - std_set.i: - contrib/tools/swig/Lib/java/std_set.i - contrib/tools/swig/Lib/python/std_set.i - - std_shared_ptr.i: + - std_shared_ptr.i: - contrib/tools/swig/Lib/java/std_shared_ptr.i - - contrib/tools/swig/Lib/python/std_shared_ptr.i + - contrib/tools/swig/Lib/python/std_shared_ptr.i - std_sstream.i: - contrib/tools/swig/Lib/python/std_sstream.i - std_streambuf.i: @@ -287,6 +287,6 @@ - contrib/tools/swig/Lib/python/typemaps.i - various.i: - contrib/tools/swig/Lib/java/various.i - - wchar.i: - - contrib/tools/swig/Lib/python/wchar.i - - contrib/tools/swig/Lib/wchar.i + - wchar.i: + - contrib/tools/swig/Lib/python/wchar.i + - contrib/tools/swig/Lib/wchar.i diff --git a/build/ya.conf.json b/build/ya.conf.json index 875c053d3b..5f7cc875d6 100644 --- a/build/ya.conf.json +++ b/build/ya.conf.json @@ -816,8 +816,8 @@ "c_compiler": "$(MSVC)/bin/Hostx64/x64/cl.exe", "cxx_compiler": "$(MSVC)/bin/Hostx64/x64/cl.exe", "cxx_std": "c++latest", - "version": "2019", - "for_ide": "msvs2019" + "version": "2019", + "for_ide": "msvs2019" } }, "msvc2019-arm": { @@ -6534,7 +6534,7 @@ }, "yndexer": { "formula": { - "sandbox_id": 992600186, + "sandbox_id": 992600186, "match": "YNDEXER" }, "executable": { @@ -6545,7 +6545,7 @@ }, "ytyndexer": { "formula": { - "sandbox_id": 1051903185, + "sandbox_id": 1051903185, "match": "YTYNDEXER" }, "executable": { @@ -7273,7 +7273,7 @@ }, "contexts_difference": { "formula": { - "sandbox_id": 1128937263, + "sandbox_id": 1128937263, "match": "contexts_difference" }, "executable": { @@ -7284,7 +7284,7 @@ }, "ycmerge": { "formula": { - "sandbox_id": 1164600398, + "sandbox_id": 1164600398, "match": "ycmerge" }, "executable": { diff --git a/build/ya.make b/build/ya.make index 87f5140eb8..407b8f13e0 100644 --- a/build/ya.make +++ b/build/ya.make @@ -25,7 +25,7 @@ RECURSE( docs/empty external_resources platform/java - platform/local_so + platform/local_so platform/perl platform/python platform/python/ldflags diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 7bce15bf67..081833998b 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -1,16 +1,16 @@ -# !!! DISCLAIMER! PLEASE DON'T IGNORE !!! -# The FAKEID value is huge hammer. It affects UIDs of all nodes in build graph including, but not limnited to -# any resource fetch (think java contrib), build on any language (C++, Python, Java, Go), any code generation. -# Any build after this change will pay the price: -# - Local builds and Sandbox builds will reload all resources from Sandbox and cached data from YT (if ready). -# - Distributed (YT) cache warmup will take signigicant time to catch up and will need to recache everithing. -# - Autocheck will rebuild and recache everything. -# Use this with extreme care and only change if it is utlimately needed. Consider more specific XXX_FAKEIDs below instead. +# !!! DISCLAIMER! PLEASE DON'T IGNORE !!! +# The FAKEID value is huge hammer. It affects UIDs of all nodes in build graph including, but not limnited to +# any resource fetch (think java contrib), build on any language (C++, Python, Java, Go), any code generation. +# Any build after this change will pay the price: +# - Local builds and Sandbox builds will reload all resources from Sandbox and cached data from YT (if ready). +# - Distributed (YT) cache warmup will take signigicant time to catch up and will need to recache everithing. +# - Autocheck will rebuild and recache everything. +# Use this with extreme care and only change if it is utlimately needed. Consider more specific XXX_FAKEIDs below instead. FAKEID=3141592653 SANDBOX_FAKEID=${FAKEID}.7600000 CPP_FAKEID=9107927 -GO_FAKEID=9056219 +GO_FAKEID=9056219 ANDROID_FAKEID=8821472 CLANG_TIDY_FAKEID=8625699 @@ -20,18 +20,18 @@ BINDIR=bin:/ SRCDIR= YMAKE=ymake ECHO=echo -INCLUDE_EXTS=.h .hh .hpp .rli .cuh .inc .i +INCLUDE_EXTS=.h .hh .hpp .rli .cuh .inc .i CPP_EXT=.cpp -OBJ_SUF= +OBJ_SUF= CFLAGS= EXTRA_C_FLAGS= SFLAGS= - + AUTOCHECK_BALANCING_OPTIONS= -SO_OTPUTS=no +SO_OTPUTS=no @import "${CONF_ROOT}/conf/settings.conf" -@import "${CONF_ROOT}/conf/opensource.conf" +@import "${CONF_ROOT}/conf/opensource.conf" @import "${CONF_ROOT}/conf/rules.conf" @import "${CONF_ROOT}/conf/sysincl.conf" @import "${CONF_ROOT}/conf/license.conf" @@ -53,12 +53,12 @@ when ($USE_YMAKE_RESOURCE == "yes") { __COMMA__=${comma:""} ARCADIA_TEST_ROOT=../arcadia_tests_data/ -DEFAULT_REQUIREMENTS=network:restricted cpu:1 ram:32 -CC_REQUIREMENTS=$DEFAULT_REQUIREMENTS -LIB_REQUIREMENTS=$DEFAULT_REQUIREMENTS -LD_REQUIREMENTS=$DEFAULT_REQUIREMENTS -JAVA_REQUIREMENTS=$DEFAULT_REQUIREMENTS -PY_REQUIREMENTS=$DEFAULT_REQUIREMENTS +DEFAULT_REQUIREMENTS=network:restricted cpu:1 ram:32 +CC_REQUIREMENTS=$DEFAULT_REQUIREMENTS +LIB_REQUIREMENTS=$DEFAULT_REQUIREMENTS +LD_REQUIREMENTS=$DEFAULT_REQUIREMENTS +JAVA_REQUIREMENTS=$DEFAULT_REQUIREMENTS +PY_REQUIREMENTS=$DEFAULT_REQUIREMENTS BISON_DATA_DIR=contrib/tools/bison/bison/data CPP_BISON_SKELS=${BISON_DATA_DIR}/glr.cc ${BISON_DATA_DIR}/lalr1.cc ${BISON_DATA_DIR}/yacc.c ${BISON_DATA_DIR}/stack.hh ${BISON_DATA_DIR}/variant.hh ${BISON_DATA_DIR}/c++.m4 ${BISON_DATA_DIR}/c++-skel.m4 @@ -67,8 +67,8 @@ when ($OPENSOURCE == "yes") { USE_PREBUILT_TOOLS=no } -FAIL_PY2=no - +FAIL_PY2=no + _PREBUILT_TOOLS_ROOT=build/prebuilt _TOOL_PROTOC_GEN_GO=vendor/github.com/golang/protobuf/protoc-gen-go _TOOL_RESCOMPILER=tools/rescompiler @@ -111,7 +111,7 @@ otherwise { } # tag:codenav -when ($CODENAVIGATION && $NOCODENAVIGATION != "yes") { +when ($CODENAVIGATION && $NOCODENAVIGATION != "yes") { PY_PROGRAM_LINK_EXE=$LINK_EXE ${kv;hide:"pyndex $TARGET"} YNDEXER_ARGS=$YMAKE_PYTHON ${input:"build/scripts/yndexer.py"} $CPPYNDEXER_RESOURCE_GLOBAL/yndexer 1500 $(SOURCE_ROOT) $ARCADIA_BUILD_ROOT ${input:SRC} YNDEXER_OUTPUT=${output;noauto;suf=${OBJ_CROSS_SUF}.ydx.pb2:SRC} @@ -148,10 +148,10 @@ when ($NO_MAPREDUCE == "yes") { C_DEFINES+=-DNO_MAPREDUCE } -when ($OS_ANDROID == "yes") { - PIE=yes -} - +when ($OS_ANDROID == "yes") { + PIE=yes +} + # TODO: extract to conf/maps/maps.conf when ($MAPSMOBI_BUILD_TARGET == "yes" && $OS_LINUX != "yes") { USE_STL_SYSTEM=yes @@ -290,9 +290,9 @@ ARCH_TOOL=${tool:"tools/archiver"} PROTOC=${tool:"contrib/tools/protoc"} PROTOC_STYLEGUIDE_OUT=--cpp_styleguide_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE PROTOC_PLUGIN_STYLEGUIDE=--plugin=protoc-gen-cpp_styleguide=${tool:"contrib/tools/protoc/plugins/cpp_styleguide"} -PROTOBUF_PATH=${ARCADIA_ROOT}/contrib/libs/protobuf/src -USE_VANILLA_PROTOC=no - +PROTOBUF_PATH=${ARCADIA_ROOT}/contrib/libs/protobuf/src +USE_VANILLA_PROTOC=no + # tag:tool-specific FML_TOOL=${tool:"tools/relev_fml_codegen"} FML_UNUSED_TOOL=${tool:"tools/relev_fml_unused"} @@ -303,8 +303,8 @@ ENUM_PARSER_TOOL=${tool:"tools/enum_parser/enum_parser"} CYTHON_SCRIPT=${input:"${ARCADIA_ROOT}/contrib/tools/cython/cython.py"} RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT CYTHON_OUTPUT_INCLUDES=\ -${output_include;hide:"contrib/libs/python/Include/compile.h"} \ -${output_include;hide:"contrib/libs/python/Include/frameobject.h"} \ +${output_include;hide:"contrib/libs/python/Include/compile.h"} \ +${output_include;hide:"contrib/libs/python/Include/frameobject.h"} \ ${output_include;hide:"contrib/libs/python/Include/longintrepr.h"} \ ${output_include;hide:"contrib/libs/python/Include/pyconfig.h"} \ ${output_include;hide:"contrib/libs/python/Include/Python.h"} \ @@ -435,12 +435,12 @@ when ($SANITIZER_TYPE) { } # tag:internal -### @usage: CHECK_CONFIG_H(<conf_header>) # internal +### @usage: CHECK_CONFIG_H(<conf_header>) # internal ### ### This internal macro adds checking code for configuration header in external (contrib) library. -### The check is needed to avoid conflicts on certain types and functions available in arcadia. -### -### @see https://a.yandex-team.ru/arc/trunk/arcadia/build/scripts/check_config_h.py for exact details +### The check is needed to avoid conflicts on certain types and functions available in arcadia. +### +### @see https://a.yandex-team.ru/arc/trunk/arcadia/build/scripts/check_config_h.py for exact details macro CHECK_CONFIG_H(Conf) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/check_config_h.py"} ${input;rootrel:Conf} ${output;nopath;noext:Conf.config.cpp} ${kv;hide:"p CH"} ${kv;hide:"pc yellow"} OUTPUT_INCLUDES=$Conf @@ -481,27 +481,27 @@ macro CHECK_DEPENDENT_DIRS(TYPE, ALL?"UNUSED":"", PEERDIRS?"PEERDIRS":"ALL", RES } # tag:proto -PY_PROTOS_FOR=no -BUILD_PROTO_AS_EVLOG=no - -# tag:proto +PY_PROTOS_FOR=no +BUILD_PROTO_AS_EVLOG=no + +# tag:proto PROTO_NAMESPACE= # tag:proto tag:python-specific GEN_PY_PROTOS=$YMAKE_PYTHON ${input:"build/scripts/gen_py_protos.py"} # tag:proto tag:cpp-specific -PROTO_HEADER_EXTS=.pb.h -CPP_PROTO_CMDLINE= +PROTO_HEADER_EXTS=.pb.h +CPP_PROTO_CMDLINE= CPP_PROTO_OPTS= -CPP_PROTO_OUTS= +CPP_PROTO_OUTS= CPP_PROTO_SUFFIXES=.pb.h .pb.cc CPP_PROTO_PLUGINS= # tag:proto tag:cpp-specific -CPP_EV_OPTS=--plugin=protoc-gen-event2cpp=${tool:"tools/event2cpp"} --event2cpp_out=$ARCADIA_BUILD_ROOT -I=$ARCADIA_ROOT/library/cpp/eventlog -CPP_EV_OUTS= - +CPP_EV_OPTS=--plugin=protoc-gen-event2cpp=${tool:"tools/event2cpp"} --event2cpp_out=$ARCADIA_BUILD_ROOT -I=$ARCADIA_ROOT/library/cpp/eventlog +CPP_EV_OUTS= + # tag:proto tag:python-specific PY_PROTO_OPTS= PY_PROTO_OUTS= @@ -514,39 +514,39 @@ PY_EVLOG_SUFFIXES=_ev_pb2.py JAVA_PROTO_ARGS= # tag:proto tag:python-specific -OPTIMIZE_PY_PROTOS_FLAG=no - +OPTIMIZE_PY_PROTOS_FLAG=no + # tag:built-in -### @usage: RESOURCE([FORCE_TEXT ][Src Key]* [- Key=Value]*) # built-in -### Add data (resources, random files, strings) to the program) +### @usage: RESOURCE([FORCE_TEXT ][Src Key]* [- Key=Value]*) # built-in +### Add data (resources, random files, strings) to the program) ### The common usage is to place Src file into binary. The Key is used to access it using library/cpp/resource or library/python/resource. -### Alternative syntax with '- Key=Value' allows placing Value string as resource data into binary and make it accessible by Key. -### -### This is a simpler but less flexible option than ARCHIVE(), because in the case of ARCHIVE(), you have to use the data explicitly, -### and in the case of RESOURCE(), the data will fall through SRCS() or SRCS(GLOBAL) to binary linking. -### -### Use the FORCE_TEXT parameter to explicitly mark all Src files as text files: they will not be parsed unless used elsewhere. -### -### @example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a2ispolzujjtekomanduresource -### -### @example: -### -### LIBRARY() -### OWNER(user1) -### -### RESOURCE( -### path/to/file1 /key/in/program/1 -### path/to/file2 /key2 -### ) -### END() -### -macro RESOURCE(Args...) { - PEERDIR(library/cpp/resource) -} - +### Alternative syntax with '- Key=Value' allows placing Value string as resource data into binary and make it accessible by Key. +### +### This is a simpler but less flexible option than ARCHIVE(), because in the case of ARCHIVE(), you have to use the data explicitly, +### and in the case of RESOURCE(), the data will fall through SRCS() or SRCS(GLOBAL) to binary linking. +### +### Use the FORCE_TEXT parameter to explicitly mark all Src files as text files: they will not be parsed unless used elsewhere. +### +### @example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a2ispolzujjtekomanduresource +### +### @example: +### +### LIBRARY() +### OWNER(user1) +### +### RESOURCE( +### path/to/file1 /key/in/program/1 +### path/to/file2 /key2 +### ) +### END() +### +macro RESOURCE(Args...) { + PEERDIR(library/cpp/resource) +} + # tag:internal ### @usage: _ORDER_ADDINCL([BUILD ...] [SOURCE ...] Args...) # internal -### +### ### Order and filter ADDINCLs (Args - is intentionally omitted in ADDINCL macro) macro _ORDER_ADDINCL(BUILD[], SOURCE[], ARGS...) { ADDINCL($BUILD $SOURCE) @@ -555,62 +555,62 @@ macro _ORDER_ADDINCL(BUILD[], SOURCE[], ARGS...) { # tag:proto ### @usage: PROTO_ADDINCL([GLOBAL] [WITH_GEN] Path) ### -### This macro introduces proper ADDINCLs for .proto-files found in sources and -### .cpp/.h generated files, supplying them to appropriate commands and allowing -### proper dependency resolution at configure-time. -### -### Note: you normally shouldn't use this macro. ADDINCLs should be sent to user -### from dependency via PROTO_NAMESPACE macro +### This macro introduces proper ADDINCLs for .proto-files found in sources and +### .cpp/.h generated files, supplying them to appropriate commands and allowing +### proper dependency resolution at configure-time. +### +### Note: you normally shouldn't use this macro. ADDINCLs should be sent to user +### from dependency via PROTO_NAMESPACE macro macro PROTO_ADDINCL(GLOBAL?"GLOBAL":"", Path, WITH_GEN?"BUILD":"") { _ORDER_ADDINCL($WITH_GEN $GLOBAL FOR proto ${ARCADIA_BUILD_ROOT}/$Path SOURCE $GLOBAL FOR proto ${ARCADIA_ROOT}/$Path) - ADDINCL($GLOBAL ${ARCADIA_BUILD_ROOT}/$Path) -} - + ADDINCL($GLOBAL ${ARCADIA_BUILD_ROOT}/$Path) +} + # tag:proto ### @usage: PROTO_NAMESPACE([GLOBAL] [WITH_GEN] Namespace) -### -### Defines protobuf namespace (import/export path prefix) which should be used for imports and -### which defines output path for .proto generation. -### -### For proper importing and configure-time depenedency management it sets ADDINCLs -### for both .cpp headers includes and .proto imports. If .proto expected to be used outsed of the -### processing module use GLOBAL to send proper ADDINCLs to all (transitive) users. PEERDIR to -### PROTO_LIBRARY with PROTO_NAMESPACE(GLOBAL ) is enough at user side to correctly use the library. +### +### Defines protobuf namespace (import/export path prefix) which should be used for imports and +### which defines output path for .proto generation. +### +### For proper importing and configure-time depenedency management it sets ADDINCLs +### for both .cpp headers includes and .proto imports. If .proto expected to be used outsed of the +### processing module use GLOBAL to send proper ADDINCLs to all (transitive) users. PEERDIR to +### PROTO_LIBRARY with PROTO_NAMESPACE(GLOBAL ) is enough at user side to correctly use the library. ### If generated .proto files are going to be used for building a module than use of WITH_GEN ### parameter will add appropriate dir from the build root for .proto files search. macro PROTO_NAMESPACE(GLOBAL?"GLOBAL":"", WITH_GEN?"WITH_GEN":"", Namespace) { - SET(PROTO_NAMESPACE $Namespace) + SET(PROTO_NAMESPACE $Namespace) PROTO_ADDINCL($GLOBAL $WITH_GEN $Namespace) -} - +} + # tag:proto tag:internal tag:python-specific -### @usage: OPTIMIZE_PY_PROTOS() # internal -### -### Enable Python proto optimization by embedding corresponding C++ code into binary. -### Python protobuf runtime will use C++ implementation instead of Python one if former is available. +### @usage: OPTIMIZE_PY_PROTOS() # internal +### +### Enable Python proto optimization by embedding corresponding C++ code into binary. +### Python protobuf runtime will use C++ implementation instead of Python one if former is available. ### This is default mode for most PROTO_LIBRARY's and PY2_LIBRARY's, some system ones being exceptions. -macro OPTIMIZE_PY_PROTOS() { - SET(OPTIMIZE_PY_PROTOS_FLAG yes) -} - +macro OPTIMIZE_PY_PROTOS() { + SET(OPTIMIZE_PY_PROTOS_FLAG yes) +} + # tag:proto tag:python-specific ### @usage: NO_OPTIMIZE_PY_PROTOS() -### -### Disable Python proto optimization using embedding corresponding C++ code into binary. -### Python protobuf runtime will use C++ implementation instead of Python one if former is available. -### This is default mode only for some system libraries. +### +### Disable Python proto optimization using embedding corresponding C++ code into binary. +### Python protobuf runtime will use C++ implementation instead of Python one if former is available. +### This is default mode only for some system libraries. macro NO_OPTIMIZE_PY_PROTOS() { SET(OPTIMIZE_PY_PROTOS_FLAG no) } # tag:proto tag:python-specific -macro _PROTO_PLUGIN_ARGS_BASE(Name, Tool, OutParm...) { - .CMD=--plugin=protoc-gen-${Name}=\${tool:"$Tool"} --${Name}_out=$OutParm$ARCADIA_BUILD_ROOT/\$PROTO_NAMESPACE +macro _PROTO_PLUGIN_ARGS_BASE(Name, Tool, OutParm...) { + .CMD=--plugin=protoc-gen-${Name}=\${tool:"$Tool"} --${Name}_out=$OutParm$ARCADIA_BUILD_ROOT/\$PROTO_NAMESPACE .SEM=ignored } # tag:proto tag:python-specific -macro _ADD_PY_PROTO_OUT(Suf) { +macro _ADD_PY_PROTO_OUT(Suf) { SET_APPEND(PY_PROTO_OUTS \${output;hide;noauto;norel;nopath;noext;suf=$Suf:File}) SET_APPEND(PY_PROTO_OUTS_INTERNAL \${output;hide;noauto;norel;nopath;noext;suf=__int__$Suf:File} \${hide;kv:"ext_out_name_for_\${nopath;noext;suf=__int__$Suf:File} \${nopath;noext;suf=$Suf:File}"}) # XXX fix variable expansion in plugins @@ -618,100 +618,100 @@ macro _ADD_PY_PROTO_OUT(Suf) { } # tag:proto tag:python-specific -### @usage: PY_PROTO_PLUGIN(Name Ext Tool DEPS <Dependencies>) -### -### Define protoc plugin for python with given Name that emits extra output with provided Extension -### using Tool. Extra dependencies are passed via DEPS -macro PY_PROTO_PLUGIN(NAME, EXT, TOOL, DEPS[]) { - SET_APPEND(PY_PROTO_OPTS $_PROTO_PLUGIN_ARGS_BASE($NAME $TOOL)) - _ADD_PY_PROTO_OUT($EXT) - # XXX fix variable expansion in plugins - SET(PY_PROTO_DEPS $PY_PROTO_DEPS $DEPS) -} - +### @usage: PY_PROTO_PLUGIN(Name Ext Tool DEPS <Dependencies>) +### +### Define protoc plugin for python with given Name that emits extra output with provided Extension +### using Tool. Extra dependencies are passed via DEPS +macro PY_PROTO_PLUGIN(NAME, EXT, TOOL, DEPS[]) { + SET_APPEND(PY_PROTO_OPTS $_PROTO_PLUGIN_ARGS_BASE($NAME $TOOL)) + _ADD_PY_PROTO_OUT($EXT) + # XXX fix variable expansion in plugins + SET(PY_PROTO_DEPS $PY_PROTO_DEPS $DEPS) +} + # tag:proto tag:python-specific -### @usage: PY_PROTO_PLUGIN2(Name Ext1 Ext2 Tool DEPS <Dependencies>) -### -### Define protoc plugin for python with given Name that emits 2 extra outputs with provided Extensions -### using Tool. Extra dependencies are passed via DEPS -macro PY_PROTO_PLUGIN2(NAME, EXT1, EXT2, TOOL, DEPS[]) { - PY_PROTO_PLUGIN($NAME $EXT1 $TOOL DEPS $DEPS) +### @usage: PY_PROTO_PLUGIN2(Name Ext1 Ext2 Tool DEPS <Dependencies>) +### +### Define protoc plugin for python with given Name that emits 2 extra outputs with provided Extensions +### using Tool. Extra dependencies are passed via DEPS +macro PY_PROTO_PLUGIN2(NAME, EXT1, EXT2, TOOL, DEPS[]) { + PY_PROTO_PLUGIN($NAME $EXT1 $TOOL DEPS $DEPS) _ADD_PY_PROTO_OUT($EXT2) -} - +} + # tag:proto tag:java-specific -macro _JAVA_PROTO_PLUGIN_ARGS_BASE(Name, Tool, OutParm...) { - .CMD=--plugin=protoc-gen-${Name}=\${tool:"$Tool"} --${Name}_out=$ARCADIA_BUILD_ROOT/java_out -} - +macro _JAVA_PROTO_PLUGIN_ARGS_BASE(Name, Tool, OutParm...) { + .CMD=--plugin=protoc-gen-${Name}=\${tool:"$Tool"} --${Name}_out=$ARCADIA_BUILD_ROOT/java_out +} + # tag:proto tag:java-specific -### @usage: JAVA_PROTO_PLUGIN(Name Tool DEPS <Dependencies>) -### -### Define protoc plugin for Java with given Name that emits extra outputs -### using Tool. Extra dependencies are passed via DEPS -macro JAVA_PROTO_PLUGIN(NAME, TOOL, DEPS[]) { - SET_APPEND(JAVA_PROTO_ARGS $_JAVA_PROTO_PLUGIN_ARGS_BASE($NAME $TOOL)) - # XXX fix variable expansion in plugins - SET(JAVA_PROTOBUF_PEERS $JAVA_PROTOBUF_PEERS $DEPS) -} - +### @usage: JAVA_PROTO_PLUGIN(Name Tool DEPS <Dependencies>) +### +### Define protoc plugin for Java with given Name that emits extra outputs +### using Tool. Extra dependencies are passed via DEPS +macro JAVA_PROTO_PLUGIN(NAME, TOOL, DEPS[]) { + SET_APPEND(JAVA_PROTO_ARGS $_JAVA_PROTO_PLUGIN_ARGS_BASE($NAME $TOOL)) + # XXX fix variable expansion in plugins + SET(JAVA_PROTOBUF_PEERS $JAVA_PROTOBUF_PEERS $DEPS) +} + # tag:proto tag:cpp-specific macro _ADD_CPP_PROTO_OUT(Suf) { SET_APPEND(CPP_PROTO_OUTS \${output;hide;norel;nopath;noext;suf=$Suf:File}) - - # XXX fix variable expansion in plugins - SET(CPP_PROTO_SUFFIXES $CPP_PROTO_SUFFIXES $Suf) -} - + + # XXX fix variable expansion in plugins + SET(CPP_PROTO_SUFFIXES $CPP_PROTO_SUFFIXES $Suf) +} + # tag:proto tag:cpp-specific -HAS_CPP_PROTOBUF_PEERS=no -CPP_PROTOBUF_PEERS= - +HAS_CPP_PROTOBUF_PEERS=no +CPP_PROTOBUF_PEERS= + # tag:proto tag:cpp-specific -### @usage: CPP_PROTO_PLUGIN0(Name Tool DEPS <Dependencies>) -### -### Define protoc plugin for C++ with given Name that emits code into regular outputs -### using Tool. Extra dependencies are passed via DEPS. -macro CPP_PROTO_PLUGIN0(NAME, TOOL, DEPS[]) { +### @usage: CPP_PROTO_PLUGIN0(Name Tool DEPS <Dependencies>) +### +### Define protoc plugin for C++ with given Name that emits code into regular outputs +### using Tool. Extra dependencies are passed via DEPS. +macro CPP_PROTO_PLUGIN0(NAME, TOOL, DEPS[]) { .SEM=target_proto_plugin $NAME ${tool;rootrel:TOOL} ${output;hide;suf=.fake.o:NAME} - SET_APPEND(CPP_PROTO_OPTS $_PROTO_PLUGIN_ARGS_BASE($NAME $TOOL)) - - # XXX fix variable expansion in plugins - ENABLE(HAS_CPP_PROTOBUF_PEERS) + SET_APPEND(CPP_PROTO_OPTS $_PROTO_PLUGIN_ARGS_BASE($NAME $TOOL)) + + # XXX fix variable expansion in plugins + ENABLE(HAS_CPP_PROTOBUF_PEERS) SET(CPP_PROTOBUF_PEERS $CPP_PROTOBUF_PEERS $DEPS) -} - +} + # tag:proto tag:cpp-specific -### @usage: CPP_PROTO_PLUGIN(Name Tool Suf DEPS <Dependencies>) -### -### Define protoc plugin for C++ with given Name that emits code into 1 extra output -### using Tool. Extra dependencies are passed via DEPS. -macro CPP_PROTO_PLUGIN(NAME, TOOL, SUF, DEPS[]) { - CPP_PROTO_PLUGIN0($NAME $TOOL DEPS $DEPS) - - _ADD_CPP_PROTO_OUT($SUF) -} - +### @usage: CPP_PROTO_PLUGIN(Name Tool Suf DEPS <Dependencies>) +### +### Define protoc plugin for C++ with given Name that emits code into 1 extra output +### using Tool. Extra dependencies are passed via DEPS. +macro CPP_PROTO_PLUGIN(NAME, TOOL, SUF, DEPS[]) { + CPP_PROTO_PLUGIN0($NAME $TOOL DEPS $DEPS) + + _ADD_CPP_PROTO_OUT($SUF) +} + # tag:proto tag:cpp-specific -### @usage: CPP_PROTO_PLUGIN2(Name Tool Suf1 Suf2 DEPS <Dependencies>) -### -### Define protoc plugin for C++ with given Name that emits code into 2 extra outputs -### using Tool. Extra dependencies are passed via DEPS. -macro CPP_PROTO_PLUGIN2(NAME, TOOL, SUF1, SUF2, DEPS[]) { - CPP_PROTO_PLUGIN($NAME $TOOL $SUF1 DEPS $DEPS) - - _ADD_CPP_PROTO_OUT($SUF2) -} - +### @usage: CPP_PROTO_PLUGIN2(Name Tool Suf1 Suf2 DEPS <Dependencies>) +### +### Define protoc plugin for C++ with given Name that emits code into 2 extra outputs +### using Tool. Extra dependencies are passed via DEPS. +macro CPP_PROTO_PLUGIN2(NAME, TOOL, SUF1, SUF2, DEPS[]) { + CPP_PROTO_PLUGIN($NAME $TOOL $SUF1 DEPS $DEPS) + + _ADD_CPP_PROTO_OUT($SUF2) +} + # tag:proto -### @usage: USE_SKIFF() #wip, do not use -### -### Use mapreduce/yt/skiff_proto/plugin for C++ -macro USE_SKIFF() { - # Move extra includes to INDUCED_DEPS macro in mapreduce/yt/skiff_proto/plugin/ya.make - CPP_PROTO_PLUGIN0(skiff mapreduce/yt/skiff_proto/plugin DEPS mapreduce/yt/skiff_proto/lib) -} - +### @usage: USE_SKIFF() #wip, do not use +### +### Use mapreduce/yt/skiff_proto/plugin for C++ +macro USE_SKIFF() { + # Move extra includes to INDUCED_DEPS macro in mapreduce/yt/skiff_proto/plugin/ya.make + CPP_PROTO_PLUGIN0(skiff mapreduce/yt/skiff_proto/plugin DEPS mapreduce/yt/skiff_proto/lib) +} + # tag:go-specific _GO_COMMON_GOOGLE_APIS = \ vendor/google.golang.org/genproto/googleapis/api/annotations \ @@ -753,9 +753,9 @@ _COMMON_GOOGLE_APIS=None # tag:go-specific ### @usage: USE_COMMON_GOOGLE_APIS([apis...]) ### -### Use common-google-apis library set. Pass optional apis list to be used or use them all. -### This macro is properly handled for all languages including Go, where apis come in -## pregenerated form. In other languages apis are generated from sources in Arcadia. +### Use common-google-apis library set. Pass optional apis list to be used or use them all. +### This macro is properly handled for all languages including Go, where apis come in +## pregenerated form. In other languages apis are generated from sources in Arcadia. macro USE_COMMON_GOOGLE_APIS(APIS...) { SET(_COMMON_GOOGLE_APIS ${pre=vendor/google.golang.org/genproto/googleapis/:APIS}) } @@ -805,7 +805,7 @@ macro GO_PROTO_PLUGIN(NAME, EXT, TOOL, DEPS[]) { # tag:go-specific tag:proto macro _GO_PROTOC_PLUGIN_ARGS_BASE_IMPL(Name, Tool, PLUGINS...) { - .CMD=--plugin=protoc-gen-${Name}=${tool:Tool} --${Name}_out=${join=|:PLUGINS}:${ARCADIA_BUILD_ROOT}/$PROTO_NAMESPACE + .CMD=--plugin=protoc-gen-${Name}=${tool:Tool} --${Name}_out=${join=|:PLUGINS}:${ARCADIA_BUILD_ROOT}/$PROTO_NAMESPACE } # tag:go-specific tag:proto @@ -819,13 +819,13 @@ macro _GO_PROTOC_PLUGIN_ARGS_BASE(Name, Tool, MAP[], PLUGINS[]) { } # tag:go-specific tag:proto -GO_PROTO_CMDLINE=${cwd;rootdir;input:File} $YMAKE_PYTHON ${input:"build/scripts/go_proto_wrapper.py"} $GO_ARCADIA_PROJECT_PREFIX $GO_CONTRIB_PROJECT_PREFIX ./$PROTO_NAMESPACE $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_PATH ${input;rootrel:File} +GO_PROTO_CMDLINE=${cwd;rootdir;input:File} $YMAKE_PYTHON ${input:"build/scripts/go_proto_wrapper.py"} $GO_ARCADIA_PROJECT_PREFIX $GO_CONTRIB_PROJECT_PREFIX ./$PROTO_NAMESPACE $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_PATH ${input;rootrel:File} # tag:go-specific tag:proto -macro _GO_PROTO_CMD_IMPL(File, OPTS[], OUTS[]) { +macro _GO_PROTO_CMD_IMPL(File, OPTS[], OUTS[]) { .CMD=$GO_PROTO_CMDLINE $OPTS $OUTS ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} .PEERDIR=${GO_PROTOBUF_IMPORTS} ${GO_PROTOBUF_WELLKNOWN_TYPES} - .ADDINCL=FOR proto contrib/libs/protobuf/src + .ADDINCL=FOR proto contrib/libs/protobuf/src } # tag:go-specific tag:proto @@ -834,18 +834,18 @@ macro _GO_PROTO_CMD(File) { } # tag:proto -### @usage: YP_PROTO_YSON(Files... OUT_OPTS Opts...) -### -### Genereate .yson.go from .proto using yp/go/yson/internal/proto-yson-gen/cmd/proto-yson-gen -macro YP_PROTO_YSON(OUT_OPTS[], Files...) { +### @usage: YP_PROTO_YSON(Files... OUT_OPTS Opts...) +### +### Genereate .yson.go from .proto using yp/go/yson/internal/proto-yson-gen/cmd/proto-yson-gen +macro YP_PROTO_YSON(OUT_OPTS[], Files...) { .CMD=${cwd:BINDIR} $PROTOC --plugin=protoc-gen-custom=${tool:"yp/go/yson/internal/proto-yson-gen/cmd/proto-yson-gen"} -I=${ARCADIA_ROOT}/${PROTO_NAMESPACE} ${pre=-I=:_PROTO__INCLUDE} -I=${ARCADIA_ROOT} --custom_out="$OUT_OPTS paths=base_name:." --custom_opt="goroot=${GO_TOOLS_ROOT}" ${input:Files} ${output;hide;noauto;nopath;noext;suf=.yson.go:Files} - .ADDINCL=FOR proto ${ARCADIA_ROOT}/${MODDIR} FOR proto ${ARCADIA_ROOT}/${GO_TEST_IMPORT_PATH} FOR proto yt ${ARCADIA_BUILD_ROOT}/yt FOR proto contrib/libs/protobuf/src - .PEERDIR=$GOSTD/strings $GOSTD/fmt $GOSTD/errors $GOSTD/encoding/json library/go/core/xerrors yt/go/yson yt/go/yterrors yp/go/yson/ytypes contrib/libs/protobuf - -} - + .ADDINCL=FOR proto ${ARCADIA_ROOT}/${MODDIR} FOR proto ${ARCADIA_ROOT}/${GO_TEST_IMPORT_PATH} FOR proto yt ${ARCADIA_BUILD_ROOT}/yt FOR proto contrib/libs/protobuf/src + .PEERDIR=$GOSTD/strings $GOSTD/fmt $GOSTD/errors $GOSTD/encoding/json library/go/core/xerrors yt/go/yson yt/go/yterrors yp/go/yson/ytypes contrib/libs/protobuf + +} + # tag:proto -macro _CPP_PROTO_CMD(File) { +macro _CPP_PROTO_CMD(File) { .CMD=$CPP_PROTO_CMDLINE $CPP_PROTO_OPTS $CPP_PROTO_OUTS ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} .SEM=target_proto_mesages PRIVATE ${input:File} ${output;hide;suf=.pb.o:File} ${output;main;hide;norel;nopath;noext:File.pb.h} ${hide;tool:"contrib/tools/protoc/bin"} && set_global_flags COMMON_PROTOC_FLAGS -I=$ARCADIA_ROOT -I=$ARCADIA_BUILD_ROOT && modules_required protobuf.cmake .PEERDIR=contrib/libs/protobuf @@ -858,52 +858,52 @@ macro _CPP_VANILLA_PROTO_CMD(File) { } # tag:proto -macro _CPP_EVLOG_CMD(File) { - .CMD=$CPP_PROTO_CMDLINE $CPP_EV_OPTS $CPP_EV_OUTS ${kv;hide:"p EV"} ${kv;hide:"pc yellow"} +macro _CPP_EVLOG_CMD(File) { + .CMD=$CPP_PROTO_CMDLINE $CPP_EV_OPTS $CPP_EV_OUTS ${kv;hide:"p EV"} ${kv;hide:"pc yellow"} .PEERDIR=library/cpp/eventlog contrib/libs/protobuf -} - +} + # tag:proto -macro _CPP_PROTO_EVLOG_CMD(File) { - # process .proto as .ev - .CMD=$CPP_PROTO_CMDLINE $CPP_EV_OPTS $CPP_PROTO_OUTS ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} +macro _CPP_PROTO_EVLOG_CMD(File) { + # process .proto as .ev + .CMD=$CPP_PROTO_CMDLINE $CPP_EV_OPTS $CPP_PROTO_OUTS ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} .PEERDIR=library/cpp/eventlog contrib/libs/protobuf } # tag:proto -macro _CPP_CFGPROTO_CMD(File) { - # keep extension in output just as in EV: this is hard-codeded behaviour of protoc for non-.proto extensions - .CMD=$CPP_PROTO_CMDLINE --plugin=protoc-gen-config=${tool:"library/cpp/proto_config/plugin"} --config_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE $CPP_EV_OUTS ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} +macro _CPP_CFGPROTO_CMD(File) { + # keep extension in output just as in EV: this is hard-codeded behaviour of protoc for non-.proto extensions + .CMD=$CPP_PROTO_CMDLINE --plugin=protoc-gen-config=${tool:"library/cpp/proto_config/plugin"} --config_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE $CPP_EV_OUTS ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} .PEERDIR=library/cpp/proto_config/codegen library/cpp/proto_config/protos contrib/libs/protobuf -} - +} + # tag:proto -PY_PROTO_MYPY_ENABLED=yes +PY_PROTO_MYPY_ENABLED=yes PY_PROTO_MYPY_PLUGIN_BASE=--plugin=protoc-gen-mypy=${tool:"contrib/python/mypy-protobuf/bin/protoc-gen-mypy"} --mypy_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE - + # tag:proto tag:python-specific -PY_PROTO_MYPY_SUFFIX= -PY_PROTO_MYPY_PLUGIN= -PY_PROTO_MYPY_PLUGIN_INTERNAL= - +PY_PROTO_MYPY_SUFFIX= +PY_PROTO_MYPY_PLUGIN= +PY_PROTO_MYPY_PLUGIN_INTERNAL= + # tag:proto tag:python-specific -macro NO_MYPY() { - DISABLE(PY_PROTO_MYPY_ENABLED) -} - +macro NO_MYPY() { + DISABLE(PY_PROTO_MYPY_ENABLED) +} + # tag:proto tag:python-specific -macro _PY_PROTO_CMD_BASE(File, Suf, Args...) { - .CMD=$PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_PATH --python_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE ${input;rootrel:File} ${output;hide;noauto;norel;nopath;noext;suf=$Suf:File} ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} $Args +macro _PY_PROTO_CMD_BASE(File, Suf, Args...) { + .CMD=$PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_PATH --python_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE ${input;rootrel:File} ${output;hide;noauto;norel;nopath;noext;suf=$Suf:File} ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} $Args } # tag:proto tag:python-specific -macro _PY_PROTO_CMD(File) { - .CMD=${cwd;rootdir;input:File} $_PY_PROTO_CMD_BASE($File _pb2.py $PY_PROTO_OPTS $PY_PROTO_OUTS $PY_PROTO_MYPY_PLUGIN) +macro _PY_PROTO_CMD(File) { + .CMD=${cwd;rootdir;input:File} $_PY_PROTO_CMD_BASE($File _pb2.py $PY_PROTO_OPTS $PY_PROTO_OUTS $PY_PROTO_MYPY_PLUGIN) } # tag:proto tag:python-specific -macro _PY_PROTO_CMD_INTERNAL(File) { - .CMD=${cwd;rootdir;input:File} $GEN_PY_PROTOS --suffixes $PY_PROTO_SUFFIXES $PY_PROTO_MYPY_SUFFIX -- $_PY_PROTO_CMD_BASE($File __int___pb2.py $PY_PROTO_OPTS $PY_PROTO_OUTS_INTERNAL ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__int___pb2.py:File} ${nopath;noext;suf=_pb2.py:File}"} $PY_PROTO_MYPY_PLUGIN_INTERNAL) +macro _PY_PROTO_CMD_INTERNAL(File) { + .CMD=${cwd;rootdir;input:File} $GEN_PY_PROTOS --suffixes $PY_PROTO_SUFFIXES $PY_PROTO_MYPY_SUFFIX -- $_PY_PROTO_CMD_BASE($File __int___pb2.py $PY_PROTO_OPTS $PY_PROTO_OUTS_INTERNAL ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__int___pb2.py:File} ${nopath;noext;suf=_pb2.py:File}"} $PY_PROTO_MYPY_PLUGIN_INTERNAL) } # tag:proto tag:java-specific @@ -933,25 +933,25 @@ otherwise { } # tag:proto tag:java-specific -macro _JAVA_PROTO_CMD(File) { - .CMD=${cwd;rootdir;input:File} $YMAKE_PYTHON ${input:"build/scripts/tared_protoc.py"} --tar-output ${output;norel;nopath;noext;suf=.jsrc:File} --protoc-out-dir $ARCADIA_BUILD_ROOT/java_out $PROTOC -I=./$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_ROOT $_JAVA_PROTO_OUT_ARG$ARCADIA_BUILD_ROOT/java_out ${input;rootrel:File} ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} $JAVA_PROTO_ARGS +macro _JAVA_PROTO_CMD(File) { + .CMD=${cwd;rootdir;input:File} $YMAKE_PYTHON ${input:"build/scripts/tared_protoc.py"} --tar-output ${output;norel;nopath;noext;suf=.jsrc:File} --protoc-out-dir $ARCADIA_BUILD_ROOT/java_out $PROTOC -I=./$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_ROOT $_JAVA_PROTO_OUT_ARG$ARCADIA_BUILD_ROOT/java_out ${input;rootrel:File} ${kv;hide:"p PB"} ${kv;hide:"pc yellow"} $JAVA_PROTO_ARGS } - + # tag:proto tag:perl-specific tag:deprecated -### @usage: XS_PROTO(InputProto Dir Outputs...) # deprecated -### -### Generate Perl code from protobuf. -### In order to use this macro one should predict all outputs protoc will emit from input_proto file and enlist those as outputs. +### @usage: XS_PROTO(InputProto Dir Outputs...) # deprecated +### +### Generate Perl code from protobuf. +### In order to use this macro one should predict all outputs protoc will emit from input_proto file and enlist those as outputs. macro XS_PROTO(File, Dir, Outputs...) { - .CMD=$PROTOC -I=${ARCADIA_ROOT}/${Dir} ${pre=-I=:_PROTO__INCLUDE} -I=${ARCADIA_ROOT} -I=${PROTOBUF_PATH} --perlxs_out=${BINDIR} ${input:File} ${hide;output:Outputs} ${output_include;hide;nopath;noext;suf=.pb.h:File} + .CMD=$PROTOC -I=${ARCADIA_ROOT}/${Dir} ${pre=-I=:_PROTO__INCLUDE} -I=${ARCADIA_ROOT} -I=${PROTOBUF_PATH} --perlxs_out=${BINDIR} ${input:File} ${hide;output:Outputs} ${output_include;hide;nopath;noext;suf=.pb.h:File} PEERDIR(${Dir}) ADDINCL(${ARCADIA_BUILD_ROOT}/${Dir}) } # tag:proto tag:fbs -### @usage: PROTO2FBS(InputProto) -### +### @usage: PROTO2FBS(InputProto) +### ### Produce flatbuf schema out of protobuf description. macro PROTO2FBS(File) { .CMD=${cwd:BINDIR} ${tool:"contrib/tools/flatc"} -I . -I ${ARCADIA_ROOT} --proto ${input:File} ${output;hide;nopath;noext:File.fbs} ${kv;hide:"p FBS"} ${kv;hide:"pc yellow"} @@ -963,23 +963,23 @@ when ($PY_PROTOS_FOR == "yes") { } # tag:python-specific -macro _PY_EVLOG_CMD_BASE(File, Suf, Args...) { - .CMD=$_PY_PROTO_CMD_BASE($File $Suf $Args) +macro _PY_EVLOG_CMD_BASE(File, Suf, Args...) { + .CMD=$_PY_PROTO_CMD_BASE($File $Suf $Args) .PEERDIR=library/cpp/eventlog/proto } # tag:python-specific tag:proto -macro _PY_EVLOG_CMD(File) { - .CMD=${cwd;rootdir;input:File} $_PY_EVLOG_CMD_BASE($File _ev_pb2.py) +macro _PY_EVLOG_CMD(File) { + .CMD=${cwd;rootdir;input:File} $_PY_EVLOG_CMD_BASE($File _ev_pb2.py) } # tag:python-specific tag:proto -macro _PY_EVLOG_CMD_INTERNAL(File) { - .CMD=${cwd;rootdir;input:File} $GEN_PY_PROTOS --suffixes $PY_EVLOG_SUFFIXES -- $_PY_EVLOG_CMD_BASE($File __int___ev_pb2.py ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__int___ev_pb2.py:File} ${nopath;noext;suf=_ev_pb2.py:File}"}) +macro _PY_EVLOG_CMD_INTERNAL(File) { + .CMD=${cwd;rootdir;input:File} $GEN_PY_PROTOS --suffixes $PY_EVLOG_SUFFIXES -- $_PY_EVLOG_CMD_BASE($File __int___ev_pb2.py ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__int___ev_pb2.py:File} ${nopath;noext;suf=_ev_pb2.py:File}"}) } # tag:java-specific tag:proto -macro _JAVA_EVLOG_CMD(File) { +macro _JAVA_EVLOG_CMD(File) { .CMD=$COPY_CMD ${input:File} ${output;nopath;noext;norel;suf=_ev.proto:File} ${kv;hide:"p EV"} ${kv;hide:"pc yellow"} .PEERDIR=library/cpp/eventlog/proto } @@ -1014,19 +1014,19 @@ when ($ALLOCATOR == "LF") { SANITIZER_CFLAGS= # tag:proto tag:grpc -### @usage: GRPC() -### -### Emit GRPC code for all .proto files in a PROTO_LIBRARY. -### This works for all available PROTO_LIBRARY versions (C++, Python 2.x, Pyton 3.x, Java and Go). +### @usage: GRPC() +### +### Emit GRPC code for all .proto files in a PROTO_LIBRARY. +### This works for all available PROTO_LIBRARY versions (C++, Python 2.x, Pyton 3.x, Java and Go). macro GRPC() { - # C++ - CPP_PROTO_PLUGIN2(grpc_cpp contrib/tools/protoc/plugins/grpc_cpp .grpc.pb.cc .grpc.pb.h DEPS contrib/libs/grpc) + # C++ + CPP_PROTO_PLUGIN2(grpc_cpp contrib/tools/protoc/plugins/grpc_cpp .grpc.pb.cc .grpc.pb.h DEPS contrib/libs/grpc) # Python - PY_PROTO_PLUGIN(grpc_py _pb2_grpc.py contrib/tools/protoc/plugins/grpc_python DEPS contrib/libs/grpc/python contrib/libs/grpc) + PY_PROTO_PLUGIN(grpc_py _pb2_grpc.py contrib/tools/protoc/plugins/grpc_python DEPS contrib/libs/grpc/python contrib/libs/grpc) # Java - JAVA_PROTO_PLUGIN(grpc_java contrib/tools/protoc/plugins/grpc_java DEPS $JAVA_GRPC_STUB $JAVA_GRPC_PROTOBUF) + JAVA_PROTO_PLUGIN(grpc_java contrib/tools/protoc/plugins/grpc_java DEPS $JAVA_GRPC_STUB $JAVA_GRPC_PROTOBUF) } # tag:fbs @@ -1037,7 +1037,7 @@ FLATC_FLAGS_VALUE= macro FLATC_FLAGS(FLAGS...) { SET_APPEND(FLATC_FLAGS_VALUE $FLAGS) } - + # tag:fbs _PY_FBS_DEPS=contrib/python/flatbuffers @@ -1101,9 +1101,9 @@ NEED_PLATFORM_PEERDIRS=yes PEERDIR_TEST_TOOL=yes # tag:python-specific -PYTHON2=no -PYTHON3=no - +PYTHON2=no +PYTHON3=no + # tag:python-specific when (!$ARCADIA_PYTHON_UNICODE_SIZE) { when ($OS_WINDOWS) { @@ -1114,56 +1114,56 @@ when (!$ARCADIA_PYTHON_UNICODE_SIZE) { } } -### @usage: _BARE_UNIT # internal -### -### The base of all modules describing default bare minimum for all modules. -### To avoid surprises, all buildable modules are better to be inherited from it or its descendants. -module _BARE_UNIT { +### @usage: _BARE_UNIT # internal +### +### The base of all modules describing default bare minimum for all modules. +### To avoid surprises, all buildable modules are better to be inherited from it or its descendants. +module _BARE_UNIT { .EXTS=.* .CMD=TOUCH_UNIT .IGNORED=GO_PROTO_PLUGIN .NODE_TYPE=Bundle .PEERDIR_POLICY=as_include - .RESTRICTED=GRPC USE_SKIFF INDUCED_DEPS FUZZ_DICTS FUZZ_OPTS PACK DOCS_DIR DOCS_CONFIG DOCS_VARS YT_SPEC USE_CXX USE_UTIL WHOLE_ARCHIVE PRIMARY_OUTPUT SECONDARY_OUTPUT DEPENDENCY_MANAGEMENT EXCLUDE NO_DOCTESTS EMBED_JAVA_VCS_INFO RESOURCE_FILES PACK_GLOBALS_IN_LIBRARY EXPOSE GLOBAL_DEPS - .FINAL_TARGET=no - - PEERDIR_TAGS=__EMPTY__ - - when ($FATAL_ERROR_MESSAGE && $FATAL_ERROR_MODULE != "yes") { - PEERDIR+=build/conf_fatal_error - } - - DEFAULT(MODULE_VERSION) - DEFAULT(MODULE_PREFIX) - DEFAULT(MODULE_SUFFIX) -} - -### @usage: _BASE_UNIT # internal -### -### The base of all LIBRARY/PROGRAM modules describing common logic for all modules. -### To avoid surprises, all buildable modules are better to be inherited from it or its descendants. -module _BASE_UNIT: _BARE_UNIT { - .GLOBAL=_FBS_NAMESPACE_MAP - - PEERDIR_TAGS=CPP_PROTO CPP_FBS CPP_SSQLS CPP_IDL PY2 PY2_NATIVE YQL_UDF_STATIC __EMPTY__ DLL_LIB - - CPP_PROTO_CMDLINE=${cwd;rootdir;input:File} $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_PATH --cpp_out=${CPP_PROTO_PLUGINS}$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE $PROTOC_STYLEGUIDE_OUT $PROTOC_PLUGIN_STYLEGUIDE ${input;rootrel:File} + .RESTRICTED=GRPC USE_SKIFF INDUCED_DEPS FUZZ_DICTS FUZZ_OPTS PACK DOCS_DIR DOCS_CONFIG DOCS_VARS YT_SPEC USE_CXX USE_UTIL WHOLE_ARCHIVE PRIMARY_OUTPUT SECONDARY_OUTPUT DEPENDENCY_MANAGEMENT EXCLUDE NO_DOCTESTS EMBED_JAVA_VCS_INFO RESOURCE_FILES PACK_GLOBALS_IN_LIBRARY EXPOSE GLOBAL_DEPS + .FINAL_TARGET=no + + PEERDIR_TAGS=__EMPTY__ + + when ($FATAL_ERROR_MESSAGE && $FATAL_ERROR_MODULE != "yes") { + PEERDIR+=build/conf_fatal_error + } + + DEFAULT(MODULE_VERSION) + DEFAULT(MODULE_PREFIX) + DEFAULT(MODULE_SUFFIX) +} + +### @usage: _BASE_UNIT # internal +### +### The base of all LIBRARY/PROGRAM modules describing common logic for all modules. +### To avoid surprises, all buildable modules are better to be inherited from it or its descendants. +module _BASE_UNIT: _BARE_UNIT { + .GLOBAL=_FBS_NAMESPACE_MAP + + PEERDIR_TAGS=CPP_PROTO CPP_FBS CPP_SSQLS CPP_IDL PY2 PY2_NATIVE YQL_UDF_STATIC __EMPTY__ DLL_LIB + + CPP_PROTO_CMDLINE=${cwd;rootdir;input:File} $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_PATH --cpp_out=${CPP_PROTO_PLUGINS}$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE $PROTOC_STYLEGUIDE_OUT $PROTOC_PLUGIN_STYLEGUIDE ${input;rootrel:File} CPP_PROTO_OUTS+=${output;hide;norel;nopath;noext:File.pb.cc} ${output;main;hide;norel;nopath;noext:File.pb.h} CPP_EV_OUTS+=${output;hide;norel:File.pb.cc} ${output;hide;norel:File.pb.h} - + when ($PY_PROTOS_FOR == "yes") { - MACRO_ALIAS(EVLOG_CMD _PY_EVLOG_CMD) - MACRO_ALIAS(PROTO_CMD _PY_PROTO_CMD) + MACRO_ALIAS(EVLOG_CMD _PY_EVLOG_CMD) + MACRO_ALIAS(PROTO_CMD _PY_PROTO_CMD) } otherwise { - MACRO_ALIAS(EVLOG_CMD _CPP_EVLOG_CMD) + MACRO_ALIAS(EVLOG_CMD _CPP_EVLOG_CMD) MACRO_ALIAS(FBS_CMD _CPP_FLATC_CMD) when ($BUILD_PROTO_AS_EVLOG == "yes") { - MACRO_ALIAS(PROTO_CMD _CPP_PROTO_EVLOG_CMD) + MACRO_ALIAS(PROTO_CMD _CPP_PROTO_EVLOG_CMD) } otherwise { - MACRO_ALIAS(PROTO_CMD _CPP_PROTO_CMD) - } + MACRO_ALIAS(PROTO_CMD _CPP_PROTO_CMD) + } when ($USE_VANILLA_PROTOC == "yes") { PROTOC=${tool:"contrib/tools/protoc_std"} PROTOC_STYLEGUIDE_OUT= @@ -1176,7 +1176,7 @@ module _BASE_UNIT: _BARE_UNIT { SANITIZER_DEFINED=no when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no") { - CFLAGS+=-fsanitize=$SANITIZER_TYPE -D${SANITIZER_TYPE}_sanitizer_enabled $SANITIZER_CFLAGS -fno-omit-frame-pointer + CFLAGS+=-fsanitize=$SANITIZER_TYPE -D${SANITIZER_TYPE}_sanitizer_enabled $SANITIZER_CFLAGS -fno-omit-frame-pointer LDFLAGS+=-fsanitize=$SANITIZER_TYPE SANITIZER_DEFINED=yes @@ -1229,7 +1229,7 @@ module _BASE_UNIT: _BARE_UNIT { LDFLAGS+=-flto } when ($CLANG) { - CFLAGS+=-flto + CFLAGS+=-flto LDFLAGS+=-flto } } @@ -1265,8 +1265,8 @@ module _BASE_UNIT: _BARE_UNIT { PEERDIR+=contrib/libs/linux-headers } - # Adding PEERDIR from trigger doesn't always work. In this case it - # cause troubles in contrib/libs/libc_compat/ubuntu_14 under musl + # Adding PEERDIR from trigger doesn't always work. In this case it + # cause troubles in contrib/libs/libc_compat/ubuntu_14 under musl # Workaround this issue by setting variable with PEERDIR in trigger # and then adding PEERDIR to it's value unconditionally. when ($USE_UBUNTU_COMPATIBILITY == "yes" && $NEED_PLATFORM_PEERDIRS == "yes") { @@ -1277,17 +1277,17 @@ module _BASE_UNIT: _BARE_UNIT { } PEERDIR+=$_UBUNTU_COMPAT_PEERDIR - when ($NORUNTIME != "yes") { + when ($NORUNTIME != "yes") { PEERDIR+=contrib/libs/cxxsupp when ($MAPSMOBI_BUILD_TARGET == "yes") { PEERDIR+=build/platform/mapkit } - } - - when ($NOUTIL != "yes") { - PEERDIR+=util - } - + } + + when ($NOUTIL != "yes") { + PEERDIR+=util + } + when ($MUSL == "yes") { CFLAGS += -D_musl_ LINK_DYN_LIB_FLAGS += --musl @@ -1312,20 +1312,20 @@ module _BASE_UNIT: _BARE_UNIT { CFLAGS+=-DCYTHON_TRACE=1 -DCYTHON_TRACE_NOGIL=1 } - DEFAULT(USE_SSE4 yes) - - when ($NOSSE != "yes") { - CFLAGS+=$SSE_CFLAGS - C_DEFINES+=$SSE_DEFINES - when ($USE_SSE4 == "yes") { - CFLAGS+=$SSE4_CFLAGS - C_DEFINES+=$SSE4_DEFINES + DEFAULT(USE_SSE4 yes) + + when ($NOSSE != "yes") { + CFLAGS+=$SSE_CFLAGS + C_DEFINES+=$SSE_DEFINES + when ($USE_SSE4 == "yes") { + CFLAGS+=$SSE4_CFLAGS + C_DEFINES+=$SSE4_DEFINES } - } - elsewhen ($MSVC != "yes") { - CFLAGS += -mno-sse - } - + } + elsewhen ($MSVC != "yes") { + CFLAGS += -mno-sse + } + when ($LIPO == "yes" && $NEED_PLATFORM_PEERDIRS != "no") { when ($OS_DARWIN == "yes" || $OS_IOS == "yes") { PEERDIR += build/platform/cctools @@ -1389,19 +1389,19 @@ when ($COMMON_LINK_SETTINGS == "yes") { } when ($EMBED_LINKER_CREF == "yes") { - LDFLAGS+=-Wl,--cref ${tmp;stdout;pre=$MODULE_PREFIX;suf=.ldcref:REALPRJNAME} -Wl,--no-demangle - LINK_ADDITIONAL_SECTIONS+=--add-section=.ya.linker_cref=${tmp;pre=$MODULE_PREFIX;suf=.ldcref:REALPRJNAME} + LDFLAGS+=-Wl,--cref ${tmp;stdout;pre=$MODULE_PREFIX;suf=.ldcref:REALPRJNAME} -Wl,--no-demangle + LINK_ADDITIONAL_SECTIONS+=--add-section=.ya.linker_cref=${tmp;pre=$MODULE_PREFIX;suf=.ldcref:REALPRJNAME} } elsewhen ($DUMP_LINKER_CREF == "yes") { - LDFLAGS+=-Wl,--cref ${output;stdout;pre=$MODULE_PREFIX;suf=.ldcref:REALPRJNAME} -Wl,--no-demangle + LDFLAGS+=-Wl,--cref ${output;stdout;pre=$MODULE_PREFIX;suf=.ldcref:REALPRJNAME} -Wl,--no-demangle } when ($EMBED_LINKER_MAP == "yes") { - LDFLAGS+=-Wl,-Map=${tmp;pre=$MODULE_PREFIX;suf=.map.$_LINKER_ID:REALPRJNAME} - LINK_ADDITIONAL_SECTIONS+=--add-section=.ya.linker_map.${_LINKER_ID}=${tmp;pre=$MODULE_PREFIX;suf=.map.$_LINKER_ID:REALPRJNAME} + LDFLAGS+=-Wl,-Map=${tmp;pre=$MODULE_PREFIX;suf=.map.$_LINKER_ID:REALPRJNAME} + LINK_ADDITIONAL_SECTIONS+=--add-section=.ya.linker_map.${_LINKER_ID}=${tmp;pre=$MODULE_PREFIX;suf=.map.$_LINKER_ID:REALPRJNAME} } elsewhen ($DUMP_LINKER_MAP == "yes") { - LDFLAGS+=-Wl,-Map=${output;rootrel;pre=$MODULE_PREFIX;suf=.map.$_LINKER_ID:REALPRJNAME} + LDFLAGS+=-Wl,-Map=${output;rootrel;pre=$MODULE_PREFIX;suf=.map.$_LINKER_ID:REALPRJNAME} } when ($USE_MKL == "yes") { @@ -1512,32 +1512,32 @@ when ($EMBED_LINKER_MAP == "yes" || $EMBED_LINKER_CREF == "yes") { $OBJCOPY_TOOL $LINK_ADDITIONAL_SECTIONS $TARGET } -_SO_EXT_FILTER=${ext=.so:PEERS} ${hide;late_out;nopath;ext=.so;pre=$BINDIR/:PEERS} -when ($OS_WINDOWS == "yes") { - _SO_EXT_FILTER=${ext=.dll:PEERS} ${hide;late_out;nopath;ext=.dll;pre=$BINDIR/:PEERS} -} -elsewhen ($OS_DARWIN == "yes" || $OS_IOS == "yes") { - _SO_EXT_FILTER=${ext=.dylib:PEERS} ${hide;late_out;nopath;ext=.dylib;pre=$BINDIR/:PEERS} -} - -LINK_OR_COPY_SO_CMD= +_SO_EXT_FILTER=${ext=.so:PEERS} ${hide;late_out;nopath;ext=.so;pre=$BINDIR/:PEERS} +when ($OS_WINDOWS == "yes") { + _SO_EXT_FILTER=${ext=.dll:PEERS} ${hide;late_out;nopath;ext=.dll;pre=$BINDIR/:PEERS} +} +elsewhen ($OS_DARWIN == "yes" || $OS_IOS == "yes") { + _SO_EXT_FILTER=${ext=.dylib:PEERS} ${hide;late_out;nopath;ext=.dylib;pre=$BINDIR/:PEERS} +} + +LINK_OR_COPY_SO_CMD= when ($SO_OUTPUTS == "yes") { - LINK_OR_COPY_SO_CMD=$FS_TOOLS link_or_copy_to_dir --no-check $_SO_EXT_FILTER ${BINDIR} - LDFLAGS+=$RPATH_GLOBAL -} - -# tag:restrinced tag:DLL -### $usage: WITH_DYNAMIC_LIBS() # restricted -### -### Include dynamic libraries as extra PROGRAM/DLL outputs -macro WITH_DYNAMIC_LIBS() { - ENABLE(SO_OUTPUTS) -} - + LINK_OR_COPY_SO_CMD=$FS_TOOLS link_or_copy_to_dir --no-check $_SO_EXT_FILTER ${BINDIR} + LDFLAGS+=$RPATH_GLOBAL +} + +# tag:restrinced tag:DLL +### $usage: WITH_DYNAMIC_LIBS() # restricted +### +### Include dynamic libraries as extra PROGRAM/DLL outputs +macro WITH_DYNAMIC_LIBS() { + ENABLE(SO_OUTPUTS) +} + # tag:internal ### $usage: REAL_LINK_EXE_IMPL(peers...) # internal macro REAL_LINK_EXE_IMPL(WHOLE_ARCHIVE_PEERS...) { - .CMD=$REAL_LINK_EXE_CMDLINE && $LINK_OR_COPY_SO_CMD + .CMD=$REAL_LINK_EXE_CMDLINE && $LINK_OR_COPY_SO_CMD } # tag:internal @@ -1549,13 +1549,13 @@ macro REAL_LINK_EXEC_DYN_LIB_IMPL(WHOLE_ARCHIVE_PEERS...) { # tag:internal ### $usage: REAL_LINK_DYN_LIB_IMPL(peers...) # internal macro REAL_LINK_DYN_LIB_IMPL(WHOLE_ARCHIVE_PEERS...) { - .CMD=$REAL_LINK_DYN_LIB_CMDLINE && $LINK_OR_COPY_SO_CMD + .CMD=$REAL_LINK_DYN_LIB_CMDLINE && $LINK_OR_COPY_SO_CMD } # tag:internal ### $usage: LINK_EXE_IMPL(peers...) # internal macro LINK_EXE_IMPL(WHOLE_ARCHIVE_PEERS...) { - .CMD=$LINK_EXE_CMDLINE && $LINK_OR_COPY_SO_CMD + .CMD=$LINK_EXE_CMDLINE && $LINK_OR_COPY_SO_CMD } # tag:internal @@ -1575,7 +1575,7 @@ module _LINK_UNIT: _BASE_UNIT { .NODE_TYPE=Program .PEERDIR_POLICY=as_build_from .FINAL_TARGET=yes - .ALIASES=RES_REQUIREMENTS=PY_REQUIREMENTS + .ALIASES=RES_REQUIREMENTS=PY_REQUIREMENTS DEFAULT(ALLOCATOR $DEFAULT_ALLOCATOR) _USE_LINKER() @@ -1602,13 +1602,13 @@ macro ADD_CLANG_TIDY() { } # tag:internal -### @usage: _BASE_PROGRAM # internal -### -### The base of all programs. It adds dependencies to make final artefact complete and runnable. -module _BASE_PROGRAM: _LINK_UNIT { +### @usage: _BASE_PROGRAM # internal +### +### The base of all programs. It adds dependencies to make final artefact complete and runnable. +module _BASE_PROGRAM: _LINK_UNIT { .SYMLINK_POLICY=EXE .ALLOWED=INDUCED_DEPS WHOLE_ARCHIVE - .GLOBAL=LDFLAGS _WHOLE_ARCHIVE_LIBS_VALUE RPATH + .GLOBAL=LDFLAGS _WHOLE_ARCHIVE_LIBS_VALUE RPATH SET(MODULE_TYPE PROGRAM) when ($OS_IOS == "yes") { @@ -1636,15 +1636,15 @@ module _BASE_PROGRAM: _LINK_UNIT { } } - DEFAULT(CPU_CHECK yes) - when ($USE_SSE4 != "yes" || $NOUTIL == "yes" || $ALLOCATOR == "FAKE") { - CPU_CHECK = no - } - - when ($CPU_CHECK == "yes") { + DEFAULT(CPU_CHECK yes) + when ($USE_SSE4 != "yes" || $NOUTIL == "yes" || $ALLOCATOR == "FAKE") { + CPU_CHECK = no + } + + when ($CPU_CHECK == "yes") { PEERDIR += library/cpp/cpuid_check } - + when ($USE_ARC_PROFILE == "yes" && $NOUTIL != "yes") { PEERDIR += library/cpp/execprofile/autostart } @@ -1667,49 +1667,49 @@ module _BASE_PROGRAM: _LINK_UNIT { } CPP_PROGRAM_SEM=add_executable $MODDIR $REALPRJNAME ${hide:TARGET} ${hide:AUTO_INPUT} && vcs_info && target_link_flags PUBLIC $OBJADDE_LIB $OBJADDE -### @usage: PROGRAM([progname]) -### +### @usage: PROGRAM([progname]) +### ### Regular program module. -### If name is not specified it will be generated from the name of the containing project directory. -module PROGRAM: _BASE_PROGRAM { - .ALIASES=REQUIREMENTS=CC_REQUIREMENTS +### If name is not specified it will be generated from the name of the containing project directory. +module PROGRAM: _BASE_PROGRAM { + .ALIASES=REQUIREMENTS=CC_REQUIREMENTS .SEM=CPP_PROGRAM_SEM - - ADD_YTEST($MODULE_PREFIX$REALPRJNAME coverage.extractor) + + ADD_YTEST($MODULE_PREFIX$REALPRJNAME coverage.extractor) ADD_CLANG_TIDY() SET(MODULE_LANG CPP) } -# tag:python-specific tag:deprecated tag:internal -module _PY2_PROGRAM: _BASE_PY_PROGRAM { - .ALIASES=REQUIREMENTS=PY_REQUIREMENTS +# tag:python-specific tag:deprecated tag:internal +module _PY2_PROGRAM: _BASE_PY_PROGRAM { + .ALIASES=REQUIREMENTS=PY_REQUIREMENTS SET(MODULE_LANG PY2) - - # Looks like we cannot avoid copy-paste util ymake supports multiple inheritance - # We need to attach coverage.extractor to every py_program target, except pytest targets - ADD_YTEST($MODULE_PREFIX$REALPRJNAME coverage.extractor) -} - + + # Looks like we cannot avoid copy-paste util ymake supports multiple inheritance + # We need to attach coverage.extractor to every py_program target, except pytest targets + ADD_YTEST($MODULE_PREFIX$REALPRJNAME coverage.extractor) +} + # tag:python-specific tag:deprecated ### @usage: PY2_PROGRAM([progname]) # deprecated -### +### ### Deprecated. Use PY3_PROGRAM instead. -### Python 2.x binary program. Links all Python 2.x libraries and Python 2.x interpreter into itself to form regular executable. +### Python 2.x binary program. Links all Python 2.x libraries and Python 2.x interpreter into itself to form regular executable. ### If name is not specified it will be generated from the name of the containing project directory. -### This only compatible with PYTHON2-tagged modules and selects those from multimodules. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ -module PY2_PROGRAM: _PY2_PROGRAM { - when ($FAIL_PY2 == "yes") { - _OK=no - } - otherwise { - PEERDIR+=build/rules/py2_deprecation - } +### This only compatible with PYTHON2-tagged modules and selects those from multimodules. +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ +module PY2_PROGRAM: _PY2_PROGRAM { + when ($FAIL_PY2 == "yes") { + _OK=no + } + otherwise { + PEERDIR+=build/rules/py2_deprecation + } ASSERT(_OK You are using deprecated Python2-only code (PY2_PROGRAM). Please consider rewriting to Python 3.) } -# tag:python-specific +# tag:python-specific ### @usage: NO_EXTENDED_SOURCE_SEARCH() ### ### Prevent module using in extended python source search. @@ -1724,12 +1724,12 @@ macro NO_EXTENDED_SOURCE_SEARCH() { # tag:python-specific ### @usage: PY3_PROGRAM([progname]) -### -### Python 3.x binary program. Links all Python 3.x libraries and Python 3.x interpreter into itself to form regular executable. -### If name is not specified it will be generated from the name of the containing project directory. -### This only compatible with PYTHON3-tagged modules and selects those from multimodules. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ +### +### Python 3.x binary program. Links all Python 3.x libraries and Python 3.x interpreter into itself to form regular executable. +### If name is not specified it will be generated from the name of the containing project directory. +### This only compatible with PYTHON3-tagged modules and selects those from multimodules. +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ multimodule PY3_PROGRAM { module PY3_BIN: PY3_PROGRAM_BIN { .PEERDIRSELF=PY3_BIN_LIB @@ -1748,12 +1748,12 @@ multimodule PY3_PROGRAM { } # tag:ycr-specific -macro _YCR_GENERATE_CONFIGS_INTL(Package, App, Configs...) { +macro _YCR_GENERATE_CONFIGS_INTL(Package, App, Configs...) { .CMD=${tool:"maps/infra/yacare/scripts/make_configs"} $Package $App ${cwd:BINDIR} ${output;hide;pre=debian/$Package/:Configs} } # tag:ycr-specific -macro _YCR_GENERATE_CONFIGS(Package, App) { +macro _YCR_GENERATE_CONFIGS(Package, App) { .CMD=$_YCR_GENERATE_CONFIGS_INTL($Package $App ${pre=etc/yandex/maps/yacare/:App.conf} ${pre=etc/template_generator/templates/etc/logrotate.d/:App} ${pre=etc/nginx/sites-available/:App.conf} ${pre=etc/syslog-ng/conf-available/:App.conf} ${pre=etc/template_generator/config.d/:App.yaml} ${pre=/juggler/checks-available/yacare_;suf=/MANIFEST.json:App} ${pre=etc/yandex/maps/roquefort/:App.conf} ${pre=usr/lib/yandex/maps/yacare/lua/init_worker.d/rate_limiter_:App.lua} ${pre=usr/lib/yandex/maps/yacare/lua/init_worker.d/tvm_:App.lua} ${pre=usr/lib/yandex/maps/yacare/lua/init.d/tvm_:App.lua} ${pre=etc/template_generator/templates/etc/supervisor/conf-available/:App.conf} ${pre=etc/template_generator/templates/etc/yandex/unified_agent/conf.d/04_yacare_:App.yml}) } @@ -1766,10 +1766,10 @@ otherwise { } # tag:ycr-specific -### @usage: YCR_PROGRAM([progname]) -### -### yacare-specific program module. Generates yacare configs in addition to producing the program. -### If name is not specified it will be generated from the name of the containing project directory. +### @usage: YCR_PROGRAM([progname]) +### +### yacare-specific program module. Generates yacare configs in addition to producing the program. +### If name is not specified it will be generated from the name of the containing project directory. module YCR_PROGRAM: PROGRAM { .CMD=YCR_LINK_EXE } @@ -1785,7 +1785,7 @@ macro _PYCR_GENERATE_CONFIGS(Package, App) { } # tag:ycr-specific tag:python-specific -PYCR_LINK_EXE=$LINK_EXE && $_PYCR_GENERATE_CONFIGS($MODULE_PREFIX$REALPRJNAME $MODULE_PREFIX$REALPRJNAME) +PYCR_LINK_EXE=$LINK_EXE && $_PYCR_GENERATE_CONFIGS($MODULE_PREFIX$REALPRJNAME $MODULE_PREFIX$REALPRJNAME) # tag:ycr-specific tag:python-specific ### @usage: PYCR_PROGRAM([progname]) @@ -1796,13 +1796,13 @@ module PYCR_PROGRAM: PY3_PROGRAM_BIN { .CMD=PYCR_LINK_EXE } -### @usage: EXPORTS_SCRIPT(exports_file) +### @usage: EXPORTS_SCRIPT(exports_file) ### ### Specify exports script within PROGRAM, DLL and DLL-derived modules. -### This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files. +### This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files. ### The other option use EXPORTS parameter of the DLL module itself. -### -### @see: [DLL](#module_DLL) +### +### @see: [DLL](#module_DLL) macro EXPORTS_SCRIPT(Arg) { SET(EXPORTS_FILE $Arg) } @@ -1831,12 +1831,12 @@ macro CUSTOM_LINK_STEP_SCRIPT(Name) { SET(_CUSTOM_LINK_STEP_SCRIPT build/scripts/$Name) } -### @usage: _BASE_UNITTEST # internal -### -### Module with base logic for all unit-test modules: it makes code runnable as unit-test by Arcadia testing machinery. -module _BASE_UNITTEST: _BASE_PROGRAM { - .FINAL_TARGET=no - .NODE_TYPE=Program +### @usage: _BASE_UNITTEST # internal +### +### Module with base logic for all unit-test modules: it makes code runnable as unit-test by Arcadia testing machinery. +module _BASE_UNITTEST: _BASE_PROGRAM { + .FINAL_TARGET=no + .NODE_TYPE=Program .ALLOWED=YT_SPEC when ($UT_SKIP_EXCEPTIONS == "yes") { C_DEFINES+=-DUT_SKIP_EXCEPTIONS @@ -1846,34 +1846,34 @@ module _BASE_UNITTEST: _BASE_PROGRAM { UNITTEST_SEM=$CPP_PROGRAM_SEM && add_test NAME $REALPRJNAME COMMAND $REALPRJNAME # tag:test -### @usage: UNITTEST([name]) +### @usage: UNITTEST([name]) ### ### Unit test module based on library/cpp/testing/unittest. -### It is recommended not to specify the name. +### It is recommended not to specify the name. ### ### Documentation: https://wiki.yandex-team.ru/yatool/test/#opisanievya.make1 -module UNITTEST: _BASE_UNITTEST { +module UNITTEST: _BASE_UNITTEST { .SEM=UNITTEST_SEM PEERDIR(library/cpp/testing/unittest_main) - ADD_YTEST($MODULE_PREFIX$REALPRJNAME unittest.py) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME unittest.py) SET(MODULE_LANG CPP) } # tag:yt-specific tag:test -### @usage: YT_UNITTEST([name]) -### -### YT Unit test module based on mapreduce/yt/library/utlib -module YT_UNITTEST: _BASE_UNITTEST { +### @usage: YT_UNITTEST([name]) +### +### YT Unit test module based on mapreduce/yt/library/utlib +module YT_UNITTEST: _BASE_UNITTEST { PEERDIR(mapreduce/yt/library/utlib) - ADD_YTEST($MODULE_PREFIX$REALPRJNAME unittest.py) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME unittest.py) } # tag:test -### @usage: UNITTEST_WITH_CUSTOM_ENTRY_POINT([name]) -### -### Generic unit test module. -module UNITTEST_WITH_CUSTOM_ENTRY_POINT: _BASE_UNITTEST { - ADD_YTEST($MODULE_PREFIX$REALPRJNAME unittest.py) +### @usage: UNITTEST_WITH_CUSTOM_ENTRY_POINT([name]) +### +### Generic unit test module. +module UNITTEST_WITH_CUSTOM_ENTRY_POINT: _BASE_UNITTEST { + ADD_YTEST($MODULE_PREFIX$REALPRJNAME unittest.py) } # tag:cpp-specific tag:test @@ -1886,26 +1886,26 @@ module UNITTEST_WITH_CUSTOM_ENTRY_POINT: _BASE_UNITTEST { module GTEST: _BASE_UNITTEST { .SEM=UNITTEST_SEM PEERDIR(library/cpp/testing/gtest library/cpp/testing/gtest_main) - ADD_YTEST($MODULE_PREFIX$REALPRJNAME gunittest) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME gunittest) SET(MODULE_LANG CPP) } USE_AFL=no # tag:fuzzing -### @usage: FUZZ() +### @usage: FUZZ() ### -### In order to start using Fuzzing in Arcadia, you need to create a FUZZ module with the implementation of the function LLVMFuzzerTestOneInput(). -### This module should be reachable by RECURSE from /autocheck project in order for the corpus to be regularly updated. -### AFL and Libfuzzer are supported in Arcadia via a single interface, but the automatic fuzzing still works only through Libfuzzer. +### In order to start using Fuzzing in Arcadia, you need to create a FUZZ module with the implementation of the function LLVMFuzzerTestOneInput(). +### This module should be reachable by RECURSE from /autocheck project in order for the corpus to be regularly updated. +### AFL and Libfuzzer are supported in Arcadia via a single interface, but the automatic fuzzing still works only through Libfuzzer. +### +### Example: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/re2/re2/fuzzing/re2_fuzzer.cc?rev=2919463#L58 ### -### Example: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/re2/re2/fuzzing/re2_fuzzer.cc?rev=2919463#L58 -### ### Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ -module FUZZ: _BASE_PROGRAM { +module FUZZ: _BASE_PROGRAM { .NODE_TYPE=Program - .FINAL_TARGET=no - .ALLOWED=FUZZ_DICTS FUZZ_OPTS + .FINAL_TARGET=no + .ALLOWED=FUZZ_DICTS FUZZ_OPTS DEFAULT(LIBFUZZER_PATH contrib/libs/libfuzzer12) when ($USE_AFL == "no") { @@ -1919,7 +1919,7 @@ module FUZZ: _BASE_PROGRAM { PEERDIR+=devtools/nofuzz } - ADD_YTEST($MODULE_PREFIX$REALPRJNAME fuzz.test) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME fuzz.test) } # tag:ios-specific @@ -1941,14 +1941,14 @@ otherwise { } # tag:deprecated -### @usage: BOOSTTEST([name]) #deprecated -### -### Test module based on boost/test/unit_test.hpp. -### As with entire boost library usage of this technology is deprecated in Arcadia and restricted with configuration error in most of projects. -### No new module of this type should be introduced unless it is explicitly approved by C++ committee. -module BOOSTTEST: _BASE_PROGRAM { +### @usage: BOOSTTEST([name]) #deprecated +### +### Test module based on boost/test/unit_test.hpp. +### As with entire boost library usage of this technology is deprecated in Arcadia and restricted with configuration error in most of projects. +### No new module of this type should be introduced unless it is explicitly approved by C++ committee. +module BOOSTTEST: _BASE_PROGRAM { .NODE_TYPE=Program - .FINAL_TARGET=no + .FINAL_TARGET=no .CMD=LINK_BOOSTTEST_CMD PEERDIR(library/cpp/testing/boost_test) when ($BOOSTTEST_IS_FAT_OBJECT) { @@ -1958,7 +1958,7 @@ module BOOSTTEST: _BASE_PROGRAM { PEERDIR+=devtools/boosttest_ios_wrapper/library MODULE_SUFFIX=.ios.tar } - ADD_YTEST($MODULE_PREFIX$REALPRJNAME $BOOST_TEST_TYPE_STRING) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME $BOOST_TEST_TYPE_STRING) SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/result.json) } @@ -1971,11 +1971,11 @@ module BOOSTTEST_WITH_MAIN: BOOSTTEST { } FUZZ_DICTS_VALUE= -### @usage: FUZZ_DICTS(path1 [path2...]) -### -### Allows you to specify dictionaries, relative to the root of Arcadia, which will be used in Fuzzing. +### @usage: FUZZ_DICTS(path1 [path2...]) +### +### Allows you to specify dictionaries, relative to the root of Arcadia, which will be used in Fuzzing. ### Libfuzzer and AFL use a single syntax for dictionary descriptions. -### Should only be used in FUZZ modules. +### Should only be used in FUZZ modules. ### ### Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ macro FUZZ_DICTS(Data...) { @@ -1983,19 +1983,19 @@ macro FUZZ_DICTS(Data...) { } FUZZ_OPTS_VALUE= -### @usage: FUZZ_OPTS(opt1 [Opt2...]) -### -### Overrides or adds options to the corpus mining and fuzzer run. -### Currently supported only Libfuzzer, so you should use the options for it. -### Should only be used in FUZZ modules. -### -### @example: -### -### FUZZ_OPTS ( -### -max_len=1024 -### -rss_limit_mb=8192 -### ) -### +### @usage: FUZZ_OPTS(opt1 [Opt2...]) +### +### Overrides or adds options to the corpus mining and fuzzer run. +### Currently supported only Libfuzzer, so you should use the options for it. +### Should only be used in FUZZ modules. +### +### @example: +### +### FUZZ_OPTS ( +### -max_len=1024 +### -rss_limit_mb=8192 +### ) +### ### Documentation: https://wiki.yandex-team.ru/yatool/fuzzing/ macro FUZZ_OPTS(Data...) { SET_APPEND(FUZZ_OPTS_VALUE $Data) @@ -2017,11 +2017,11 @@ macro YT_SPEC(Data...) { # tag:test TEST_SRCS_VALUE= -### @usage: TEST_SRCS(Files...) -### +### @usage: TEST_SRCS(Files...) +### ### In PY2TEST, PY3TEST and PY*_LIBRARY modules used as PY_SRCS macro and additionally used to mine test cases to be executed by testing framework. -### -### Documentation: https://wiki.yandex-team.ru/yatool/test/#testynapytest +### +### Documentation: https://wiki.yandex-team.ru/yatool/test/#testynapytest macro TEST_SRCS(Tests...) { SET_APPEND(TEST_SRCS_VALUE $Tests) } @@ -2035,10 +2035,10 @@ TEST_DATA_VALUE= ### @usage: DATA([path...]) ### ### Specifies the path to the data necessary test. -### Valid values are: arcadia/<path> , arcadia_tests_data/<path> and sbr://<resource_id>. -### In the latter case resource will be brought to the working directory of the test before it is started +### Valid values are: arcadia/<path> , arcadia_tests_data/<path> and sbr://<resource_id>. +### In the latter case resource will be brought to the working directory of the test before it is started ### -### Used only inside TEST modules. +### Used only inside TEST modules. ### ### Documentation: https://wiki.yandex-team.ru/yatool/test/#dannyeizrepozitorija macro DATA(Data...) { @@ -2060,11 +2060,11 @@ macro TAG(Tags...) { # tag:test TEST_REQUIREMENTS_VALUE= -### @usage: REQUIREMENTS([cpu:<count>] [disk_usage:<size>] [ram:<size>] [ram_disk:<size>] [container:<id>] [network:<restricted|full>] [dns:dns64]) +### @usage: REQUIREMENTS([cpu:<count>] [disk_usage:<size>] [ram:<size>] [ram_disk:<size>] [container:<id>] [network:<restricted|full>] [dns:dns64]) ### ### Allows you to specify the requirements of the test. ### -### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ +### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ macro REQUIREMENTS(Tags...) { SET_APPEND(TEST_REQUIREMENTS_VALUE $Tags) } @@ -2073,7 +2073,7 @@ macro REQUIREMENTS(Tags...) { TEST_ENV_VALUE= ### @usage: ENV(key[=value]) ### -### Sets env variable key to value (gets value from system env by default). +### Sets env variable key to value (gets value from system env by default). macro ENV(Data...) { SET_APPEND(TEST_ENV_VALUE ${quo:Data}) } @@ -2087,11 +2087,11 @@ macro CONFTEST_LOAD_POLICY_LOCAL() { # tag:test TEST_RECIPES_VALUE= -### @usage: USE_RECIPE(path [arg1 arg2...]) +### @usage: USE_RECIPE(path [arg1 arg2...]) ### -### Provides prepared environment via recipe for test. -### -### Documentation: https://wiki.yandex-team.ru/yatool/test/recipes +### Provides prepared environment via recipe for test. +### +### Documentation: https://wiki.yandex-team.ru/yatool/test/recipes macro USE_RECIPE(Data...) { SET_APPEND(TEST_RECIPES_VALUE $Data) SET_APPEND(TEST_RECIPES_VALUE "USE_RECIPE_DELIM") @@ -2101,18 +2101,18 @@ macro USE_RECIPE(Data...) { TEST_PYTHON_PATH_VALUE= # tag:python-specific tag:test -### @usage: PYTHON_PATH(Path) -### -### Set path to Python that will be used to runs scripts in tests +### @usage: PYTHON_PATH(Path) +### +### Set path to Python that will be used to runs scripts in tests macro PYTHON_PATH(Path) { SET(TEST_PYTHON_PATH_VALUE $Path) } # tag:test SKIP_TEST_VALUE= -### @usage: SKIP_TEST(Reason) -### -### Skip the suite defined by test module. Provide a reason to be output in test execution report. +### @usage: SKIP_TEST(Reason) +### +### Skip the suite defined by test module. Provide a reason to be output in test execution report. macro SKIP_TEST(Reason...) { SET(SKIP_TEST_VALUE $Reason) } @@ -2121,14 +2121,14 @@ macro SKIP_TEST(Reason...) { LINT_LEVEL_VALUE=extended ### @usage: NO_LINT() ### -### Do not check for style files included in PY_SRCS, TEST_SRCS, JAVA_SRCS. +### Do not check for style files included in PY_SRCS, TEST_SRCS, JAVA_SRCS. macro NO_LINT() { SET(LINT_LEVEL_VALUE none) } - -### @usage: LINT(<none|base|strict>) -### -### Set linting levem for sources of the module + +### @usage: LINT(<none|base|strict>) +### +### Set linting levem for sources of the module macro LINT(level) { SET(LINT_LEVEL_VALUE $level) } @@ -2142,12 +2142,12 @@ macro NO_DOCTESTS() { } # tag:python-specific tag:test -### @usage: _BASE_PYTEST # internal -### -### Base logic of Python 2.x py.test modules: common module properties and dependencies. -module _BASE_PYTEST: _BASE_PY_PROGRAM { +### @usage: _BASE_PYTEST # internal +### +### Base logic of Python 2.x py.test modules: common module properties and dependencies. +module _BASE_PYTEST: _BASE_PY_PROGRAM { .NODE_TYPE=Program - .FINAL_TARGET=no + .FINAL_TARGET=no .ALLOWED=YT_SPEC NO_DOCTESTS when ($USE_ARCADIA_PYTHON == "yes") { PEERDIR+=library/python/pytest @@ -2161,10 +2161,10 @@ module _BASE_PYTEST: _BASE_PY_PROGRAM { } # tag:python-specific tag:deprecated tag:test -### @usage: PYTEST_BIN() #deprecated -### +### @usage: PYTEST_BIN() #deprecated +### ### Same as PY2TEST. Don't use this, use PY2TEST instead. -module PYTEST_BIN: _BASE_PYTEST { +module PYTEST_BIN: _BASE_PYTEST { .NODE_TYPE=Program SETUP_PYTEST_BIN() } @@ -2172,31 +2172,31 @@ module PYTEST_BIN: _BASE_PYTEST { # tag:python-specific tag:test ### @usage: PY2TEST([name]) ### -### The test module for Python 2.x based on py.test -### -### This module is compatible only with PYTHON2-tagged modules and selects peers from multimodules accordingly. -### This module is compatible with non-Arcadia Python builds. -### +### The test module for Python 2.x based on py.test +### +### This module is compatible only with PYTHON2-tagged modules and selects peers from multimodules accordingly. +### This module is compatible with non-Arcadia Python builds. +### ### Documentation: https://wiki.yandex-team.ru/yatool/test/#python -### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ +### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ module PY2TEST: PYTEST_BIN { - when ($FAIL_PY2 == "yes") { - _OK=no - } - otherwise { - PEERDIR+=build/rules/py2_deprecation - } + when ($FAIL_PY2 == "yes") { + _OK=no + } + otherwise { + PEERDIR+=build/rules/py2_deprecation + } SET(MODULE_LANG PY2) ASSERT(_OK You are using deprecated Python2-only code (PY2TEST). Please consider rewriting to Python 3.) } # tag:python-specific tag:deprecated tag:test -### @usage: PY3TEST_BIN() #deprecated -### -### Same as PY3TEST. Don't use this, use PY3TEST instead. -module PY3TEST_BIN: _BASE_PY3_PROGRAM { +### @usage: PY3TEST_BIN() #deprecated +### +### Same as PY3TEST. Don't use this, use PY3TEST instead. +module PY3TEST_BIN: _BASE_PY3_PROGRAM { .NODE_TYPE=Program - .FINAL_TARGET=no + .FINAL_TARGET=no .ALLOWED=YT_SPEC NO_DOCTESTS SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/result.json) SET(MODULE_LANG PY3) @@ -2212,21 +2212,21 @@ module PY3TEST_BIN: _BASE_PY3_PROGRAM { EXCLUDE_SUBMODULES=PY3TEST_LIBRARY # tag:python-specific tag:test -### @usage: PY3TEST([name]) -### -### The test module for Python 3.x based on py.test -### +### @usage: PY3TEST([name]) +### +### The test module for Python 3.x based on py.test +### ### This module is compatible only with PYTHON3-tagged modules and selects peers from multimodules accordingly. -### This module is only compatible with Arcadia Python build (to avoid tests duplication from Python2/3-tests). For non-Arcadia python use PYTEST. -### -### Documentation: https://wiki.yandex-team.ru/yatool/test/#testynapytest -### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ +### This module is only compatible with Arcadia Python build (to avoid tests duplication from Python2/3-tests). For non-Arcadia python use PYTEST. +### +### Documentation: https://wiki.yandex-team.ru/yatool/test/#testynapytest +### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ multimodule PY3TEST { module PY3TEST_PROGRAM: PY3TEST_BIN { .FINAL_TARGET=yes } - module PY3TEST_LIBRARY: _PY3_LIBRARY { + module PY3TEST_LIBRARY: _PY3_LIBRARY { PEERDIR+=library/python/pytest _REQUIRE_EXPLICIT_LICENSE() } @@ -2245,50 +2245,50 @@ macro STYLE(Globs...) { # tag:cpp-specific tag:deprecated tag:test ### @usage: GTEST_UGLY([name]) -### +### ### Deprecated, do not use in new projects. Use GTEST instead. ### -### The test module based on gtest (contrib/libs/gtest contrib/libs/gmock). -### Use public documentation on gtest for details. +### The test module based on gtest (contrib/libs/gtest contrib/libs/gmock). +### Use public documentation on gtest for details. ### -### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ +### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ module GTEST_UGLY: _BASE_PROGRAM { .NODE_TYPE=Program - .FINAL_TARGET=no + .FINAL_TARGET=no PEERDIR(contrib/restricted/googletest/googlemock contrib/restricted/googletest/googletest) - ADD_YTEST($MODULE_PREFIX$REALPRJNAME gtest) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME gtest) SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/result.json) } # tag:test -### @usage: EXECTEST() +### @usage: EXECTEST() +### +### Module definition of generic test that executes a binary. +### Use macro RUN to specify binary to run. ### -### Module definition of generic test that executes a binary. -### Use macro RUN to specify binary to run. +### @example: ### -### @example: -### ### EXECTEST() -### OWNER(g:yatool) -### -### RUN( -### cat input.txt -### ) -### DATA( -### arcadia/devtools/ya/test/tests/exectest/data -### ) -### DEPENDS( -### devtools/dummy_arcadia/cat -### ) -### TEST_CWD(devtools/ya/test/tests/exectest/data) -### END() -### -### More examples: https://wiki.yandex-team.ru/yatool/test/#exec-testy -### -### @see: [RUN()](#macro_RUN) -module EXECTEST: _BARE_UNIT { +### OWNER(g:yatool) +### +### RUN( +### cat input.txt +### ) +### DATA( +### arcadia/devtools/ya/test/tests/exectest/data +### ) +### DEPENDS( +### devtools/dummy_arcadia/cat +### ) +### TEST_CWD(devtools/ya/test/tests/exectest/data) +### END() +### +### More examples: https://wiki.yandex-team.ru/yatool/test/#exec-testy +### +### @see: [RUN()](#macro_RUN) +module EXECTEST: _BARE_UNIT { .NODE_TYPE=Program - .FINAL_TARGET=no + .FINAL_TARGET=no .ALLOWED=YT_SPEC .RESTRICTED=FORK_TEST_FILES SET(MODULE_SUFFIX .pkg.fake) @@ -2300,8 +2300,8 @@ module EXECTEST: _BARE_UNIT { ### @usage: Y_BENCHMARK([benchmarkname]) ### ### Benchmark test based on the library/cpp/testing/benchmark. -### -### For more details see: https://wiki.yandex-team.ru/yatool/test/#zapuskbenchmark +### +### For more details see: https://wiki.yandex-team.ru/yatool/test/#zapuskbenchmark module Y_BENCHMARK: PROGRAM { PEERDIR(library/cpp/testing/benchmark/main) SET(MODULE_LANG CPP) @@ -2315,7 +2315,7 @@ module Y_BENCHMARK: PROGRAM { ### For more details see: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/benchmark/README.md module G_BENCHMARK: _BASE_PROGRAM { PEERDIR(library/cpp/testing/gbenchmark_main) - ADD_YTEST($MODULE_PREFIX$REALPRJNAME g_benchmark) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME g_benchmark) SET(MODULE_LANG CPP) } @@ -2335,36 +2335,36 @@ when ($YA_DEV == "yes") { # tag:test ### @usage: UNITTEST_FOR(path/to/lib) -### -### Convenience extension of UNITTEST module. -### The UNINTTEST module with additional SRCDIR + ADDINCL + PEERDIR on path/to/lib. +### +### Convenience extension of UNITTEST module. +### The UNINTTEST module with additional SRCDIR + ADDINCL + PEERDIR on path/to/lib. ### path/to/lib is the path to the directory with the LIBRARY project. -### -### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ +### +### Documentation about the Arcadia test system: https://wiki.yandex-team.ru/yatool/test/ module UNITTEST_FOR: UNITTEST { .SEM=UNITTEST_SEM PEERDIR(ADDINCL $UNITTEST_DIR) SRCDIR($UNITTEST_DIR) } -### @usage: _LIBRARY # internal -### -### Base module definition for all libraries. -### Contains basic logic like module properties, default variable values etc. -### All libraries similar to C++-libraries should be inherited from it. -module _LIBRARY: _BASE_UNIT { +### @usage: _LIBRARY # internal +### +### Base module definition for all libraries. +### Contains basic logic like module properties, default variable values etc. +### All libraries similar to C++-libraries should be inherited from it. +module _LIBRARY: _BASE_UNIT { .CMD=LINK_LIB .NODE_TYPE=Library .PEERDIR_POLICY=as_include .EXTS=.o .obj .a .mf .supp .tidyjson .ld .ALLOWED=GRPC USE_SKIFF EXTRALIBS OBJADDE_GLOBAL RESOURCE_FILES - .GLOBAL=USER_CFLAGS USER_CXXFLAGS USER_CONLYFLAGS LDFLAGS SRCS _WHOLE_ARCHIVE_LIBS_VALUE RPATH - .RESTRICTED=ALLOCATOR SIZE TAG DATA TEST_DATA DEPENDS FORK_TESTS FORK_SUBTESTS SPLIT_FACTOR TEST_CWD RUN TIMEOUT SPLIT_DWARF - .FINAL_TARGET=no + .GLOBAL=USER_CFLAGS USER_CXXFLAGS USER_CONLYFLAGS LDFLAGS SRCS _WHOLE_ARCHIVE_LIBS_VALUE RPATH + .RESTRICTED=ALLOCATOR SIZE TAG DATA TEST_DATA DEPENDS FORK_TESTS FORK_SUBTESTS SPLIT_FACTOR TEST_CWD RUN TIMEOUT SPLIT_DWARF + .FINAL_TARGET=no .GLOBAL_CMD=GLOBAL_LINK_LIB .GLOBAL_EXTS=.o .obj .tidyjson - .ALIASES=RES_REQUIREMENTS=PY_REQUIREMENTS - + .ALIASES=RES_REQUIREMENTS=PY_REQUIREMENTS + GLOBAL_SUFFIX=.global$MODULE_SUFFIX #TODO: Remove this hack (really we do not need add fake src at all) ENABLE(NEED_ADD_FAKE_SRC) @@ -2422,20 +2422,20 @@ CMAKE_FIND_PKG_COMP= CONAN_REQUIRE= ### @usage: LIBRARY() -### -### The regular static library module. -### -### The LIBRARY() is intermediate module, so when built directly it won't build its dependencies. -### It transitively provides its PEERDIRs to ultimate final target, where all LIBRARY() modules are built and linked together. -### -### This is C++ library, and it selects peers from multimodules accordingly. -### -### It makes little sense to mention LIBRARY in DEPENDS or BUNDLE, package and deploy it since it is not a standalone entity. -### In order to use library in tests PEERDIR it to link into tests. -### If you think you need to distribute static library please contact devtools@ for assistance. +### +### The regular static library module. +### +### The LIBRARY() is intermediate module, so when built directly it won't build its dependencies. +### It transitively provides its PEERDIRs to ultimate final target, where all LIBRARY() modules are built and linked together. +### +### This is C++ library, and it selects peers from multimodules accordingly. +### +### It makes little sense to mention LIBRARY in DEPENDS or BUNDLE, package and deploy it since it is not a standalone entity. +### In order to use library in tests PEERDIR it to link into tests. +### If you think you need to distribute static library please contact devtools@ for assistance. module LIBRARY: _LIBRARY { .GLOBAL=_AARS _PROGUARD_RULES - .ALIASES=REQUIREMENTS=CC_REQUIREMENTS + .ALIASES=REQUIREMENTS=CC_REQUIREMENTS .SEM=CPP_LIBRARY_SEM .GLOBAL_SEM=CPP_OBJ_LIBRARY_SEM @@ -2454,7 +2454,7 @@ module LIBRARY: _LIBRARY { CPP_LIBRARY_SEM=ignored } - when ($HAS_CPP_PROTOBUF_PEERS == "yes") { + when ($HAS_CPP_PROTOBUF_PEERS == "yes") { PEERDIR+=$CPP_PROTOBUF_PEERS } SET(MODULE_TYPE LIBRARY) @@ -2497,40 +2497,40 @@ macro _CONDITIONAL_SRCS(USE_CONDITIONAL_SRCS[], DYMMY...) { } # XXX: dirty hack for correct LDFLAGS passing -RESOURCES_LIBRARY_LINK=$TOUCH_UNIT ${hide:LDFLAGS_GLOBAL} ${hide:LDFLAGS} +RESOURCES_LIBRARY_LINK=$TOUCH_UNIT ${hide:LDFLAGS_GLOBAL} ${hide:LDFLAGS} RESOURCES_LIBRARY_SEM=ignored -### @usage: RESOURCES_LIBRARY() -### -### Definition of a module that brings its content from external source (Sandbox) via DECLARE_EXTERNAL_RESOURCE macro. -### This can participate in PEERDIRs of others as library but it cannot have own sources and PEERDIRs. -### -### @see: [DECLARE_EXTERNAL_RESOURCE()](#macro_DECLARE_EXTERNAL_RESOURCE) -module RESOURCES_LIBRARY: _BARE_UNIT { +### @usage: RESOURCES_LIBRARY() +### +### Definition of a module that brings its content from external source (Sandbox) via DECLARE_EXTERNAL_RESOURCE macro. +### This can participate in PEERDIRs of others as library but it cannot have own sources and PEERDIRs. +### +### @see: [DECLARE_EXTERNAL_RESOURCE()](#macro_DECLARE_EXTERNAL_RESOURCE) +module RESOURCES_LIBRARY: _BARE_UNIT { .CMD=RESOURCES_LIBRARY_LINK .SEM=RESOURCES_LIBRARY_SEM - .ALLOWED=DECLARE_EXTERNAL_RESOURCE EXTRALIBS OBJADDE_GLOBAL - .RESTRICTED=ALLOCATOR SIZE TAG DATA TEST_DATA DEPENDS FORK_TESTS FORK_SUBTESTS SPLIT_FACTOR TEST_CWD RUN TIMEOUT SRC SRCS PEERDIR SPLIT_DWARF - .NODE_TYPE=Library - .PEERDIR_POLICY=as_include - .EXTS=.o .obj .a .mf .supp .tidyjson .ld - .GLOBAL=USER_CFLAGS USER_CXXFLAGS USER_CONLYFLAGS LDFLAGS _WHOLE_ARCHIVE_LIBS_VALUE RPATH - - MODULE_SUFFIX=.pkg.fake - ENABLE(NEED_ADD_FAKE_SRC) + .ALLOWED=DECLARE_EXTERNAL_RESOURCE EXTRALIBS OBJADDE_GLOBAL + .RESTRICTED=ALLOCATOR SIZE TAG DATA TEST_DATA DEPENDS FORK_TESTS FORK_SUBTESTS SPLIT_FACTOR TEST_CWD RUN TIMEOUT SRC SRCS PEERDIR SPLIT_DWARF + .NODE_TYPE=Library + .PEERDIR_POLICY=as_include + .EXTS=.o .obj .a .mf .supp .tidyjson .ld + .GLOBAL=USER_CFLAGS USER_CXXFLAGS USER_CONLYFLAGS LDFLAGS _WHOLE_ARCHIVE_LIBS_VALUE RPATH + + MODULE_SUFFIX=.pkg.fake + ENABLE(NEED_ADD_FAKE_SRC) WITHOUT_LICENSE_TEXTS() } FAT_OBJECT_ARGS= FAT_OBJECT_OUTS= - + macro _FAT_OBJECT_ARGS_BASE(Flag, Lib) { .CMD=$Flag=$Lib } macro PACK_GLOBALS_IN_LIBRARY() { - SET_APPEND(FAT_OBJECT_ARGS $_FAT_OBJECT_ARGS_BASE(--globals-lib, ${BINDIR}/${pre=$MODULE_PREFIX:REALPRJNAME.globals.a})) - SET_APPEND(FAT_OBJECT_OUTS \${output;hide;noauto;norel;nopath;noext;pre=$MODULE_PREFIX;suf=$BINDIR:REALPRJNAME.globals.a}) + SET_APPEND(FAT_OBJECT_ARGS $_FAT_OBJECT_ARGS_BASE(--globals-lib, ${BINDIR}/${pre=$MODULE_PREFIX:REALPRJNAME.globals.a})) + SET_APPEND(FAT_OBJECT_OUTS \${output;hide;noauto;norel;nopath;noext;pre=$MODULE_PREFIX;suf=$BINDIR:REALPRJNAME.globals.a}) } when ($OS_ANDROID != "yes") { @@ -2540,12 +2540,12 @@ otherwise { LINK_FAT_OBJECT_CMD=$LINK_FAT_OBJECT_LIBRARY } -### @usage: FAT_OBJECT() -### -### The "fat" object module. It will contain all its transitive dependencies reachable by PEERDIRs: -### static libraries, local (from own SRCS) and global (from peers') object files. -### -### Designed for use in XCode projects for iOS. +### @usage: FAT_OBJECT() +### +### The "fat" object module. It will contain all its transitive dependencies reachable by PEERDIRs: +### static libraries, local (from own SRCS) and global (from peers') object files. +### +### Designed for use in XCode projects for iOS. module FAT_OBJECT: LIBRARY { .ALLOWED=PACK_GLOBALS_IN_LIBRARY .CMD=LINK_FAT_OBJECT_CMD @@ -2563,10 +2563,10 @@ module FAT_OBJECT: LIBRARY { _USE_LINKER() - # This module requires at least one .o which is not subject to removal so just add _fake_src.cpp as SRCS - # ymake's handling of NEED_ADD_FAKE_SRC may insert arbitrary command, not necessarily compilation - DISABLE(NEED_ADD_FAKE_SRC) - SRCS(build/scripts/_fake_src.cpp) + # This module requires at least one .o which is not subject to removal so just add _fake_src.cpp as SRCS + # ymake's handling of NEED_ADD_FAKE_SRC may insert arbitrary command, not necessarily compilation + DISABLE(NEED_ADD_FAKE_SRC) + SRCS(build/scripts/_fake_src.cpp) } ### @usage: RECURSIVE_LIBRARY() @@ -2585,23 +2585,23 @@ module RECURSIVE_LIBRARY: LIBRARY { SRCS(build/scripts/_fake_src.cpp) } -_SONAME= - -### @usage: DLL_UNIT # internal -### -### Base module for all dynamically linked libraries as final artifacts. -### Contains all general logic for such kind of modules. Supports versioning and export files. -### Cannot participate in linking to programs, intended to be used as final artifact (packaged and deployed). -module DLL_UNIT: _LINK_UNIT { +_SONAME= + +### @usage: DLL_UNIT # internal +### +### Base module for all dynamically linked libraries as final artifacts. +### Contains all general logic for such kind of modules. Supports versioning and export files. +### Cannot participate in linking to programs, intended to be used as final artifact (packaged and deployed). +module DLL_UNIT: _LINK_UNIT { .CMD=LINK_DYN_LIB .NODE_TYPE=Library .SYMLINK_POLICY=SO - .GLOBAL=USER_CFLAGS USER_CXXFLAGS USER_CONLYFLAGS LDFLAGS _WHOLE_ARCHIVE_LIBS_VALUE RPATH + .GLOBAL=USER_CFLAGS USER_CXXFLAGS USER_CONLYFLAGS LDFLAGS _WHOLE_ARCHIVE_LIBS_VALUE RPATH .ALLOWED=WHOLE_ARCHIVE - DYNAMIC_LINK=yes + DYNAMIC_LINK=yes ALLOCATOR(FAKE) SET(MODULE_TYPE DLL) - SET(MODULE_TAG DLL) + SET(MODULE_TAG DLL) SET(MODULE_LANG CPP) ADD_CLANG_TIDY() @@ -2610,7 +2610,7 @@ module DLL_UNIT: _LINK_UNIT { } elsewhen ($DARWIN == "yes" || $OS_IOS == "yes") { MODULE_PREFIX=lib - MODULE_SUFFIX=.dylib + MODULE_SUFFIX=.dylib } elsewhen ($TIDY == "yes") { MODULE_PREFIX= @@ -2618,18 +2618,18 @@ module DLL_UNIT: _LINK_UNIT { } otherwise { MODULE_PREFIX=lib - MODULE_SUFFIX=.so + MODULE_SUFFIX=.so + } + + # This by now replicates ymake's bahavior. We'll get rid of SONAME setting in ymake and fix this code alltogether + SONAME=${pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX:REALPRJNAME} + when ($MODULE_VERSION) { + LINK_DYN_LIB_FLAGS=--soname ${output;pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX$MODULE_VERSION:REALPRJNAME} } + _SONAME=$SONAME$MODULE_VERSION - # This by now replicates ymake's bahavior. We'll get rid of SONAME setting in ymake and fix this code alltogether - SONAME=${pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX:REALPRJNAME} - when ($MODULE_VERSION) { - LINK_DYN_LIB_FLAGS=--soname ${output;pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX$MODULE_VERSION:REALPRJNAME} - } - _SONAME=$SONAME$MODULE_VERSION - when ($LINUX == "yes") { - # '-z notext' is needed for linking mkl into shared libraries + # '-z notext' is needed for linking mkl into shared libraries LDFLAGS += -Wl,-z,notext when ($_NO_FIX_ELF != "yes") { LINK_DYN_LIB_FLAGS+=--fix-elf ${tool:"tools/fix_elf"} @@ -2643,26 +2643,26 @@ module DLL_UNIT: _LINK_UNIT { when ($CLANG_COVERAGE && $CLANG_COVERAGE != "no") { PEERDIR+=library/cpp/testing/dump_clang_coverage } - - when ($IDE_MSVS == "yes") { - PEERDIR+=build/scripts/c_templates - } + + when ($IDE_MSVS == "yes") { + PEERDIR+=build/scripts/c_templates + } } # tag:python-specific -### @usage: PY_ANY_MODULE(name major_ver [minor_ver] [EXPORTS symlist_file] [PREFIX prefix]) -### -### The Python external module for any versio of Arcadia or system Python. -### 1. major_ver and minor_ver must be integers. -### 2. The resulting .so will have the prefix "lib". -### 3. Processing EXPORTS and PREFIX is the same as for DLL module -### This is native DLL, so it will select C++ version from PROTO_LIBRARY. -### -### Note: Use PYTHON2_MODULE()/PYTHON3_MODULE() in order to PEERDIR proper version of PY23_NATIVE_LIBRARY. -### Do not PEERDIR any PY*_LIBRARY: this will link Python in and render artifact unusable as Python module. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ -module PY_ANY_MODULE: DLL_UNIT { +### @usage: PY_ANY_MODULE(name major_ver [minor_ver] [EXPORTS symlist_file] [PREFIX prefix]) +### +### The Python external module for any versio of Arcadia or system Python. +### 1. major_ver and minor_ver must be integers. +### 2. The resulting .so will have the prefix "lib". +### 3. Processing EXPORTS and PREFIX is the same as for DLL module +### This is native DLL, so it will select C++ version from PROTO_LIBRARY. +### +### Note: Use PYTHON2_MODULE()/PYTHON3_MODULE() in order to PEERDIR proper version of PY23_NATIVE_LIBRARY. +### Do not PEERDIR any PY*_LIBRARY: this will link Python in and render artifact unusable as Python module. +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ +module PY_ANY_MODULE: DLL_UNIT { when ($MSVC != "yes" && $DARWIN != "yes") { LDFLAGS+= -Wl,-Bsymbolic } @@ -2678,13 +2678,13 @@ module PY_ANY_MODULE: DLL_UNIT { } } - # This by now replicates ymake's bahavior. We'll get rid of SONAME setting in ymake and fix this code alltogether - SONAME=${pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX:REALPRJNAME} - when ($MODULE_VERSION) { - LINK_DYN_LIB_FLAGS=--soname ${output;pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX$MODULE_VERSION:REALPRJNAME} - } - _SONAME=$SONAME$MODULE_VERSION - + # This by now replicates ymake's bahavior. We'll get rid of SONAME setting in ymake and fix this code alltogether + SONAME=${pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX:REALPRJNAME} + when ($MODULE_VERSION) { + LINK_DYN_LIB_FLAGS=--soname ${output;pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX$MODULE_VERSION:REALPRJNAME} + } + _SONAME=$SONAME$MODULE_VERSION + # -bundle when ($DARWIN == "yes") { LDFLAGS+=-flat_namespace @@ -2692,85 +2692,85 @@ module PY_ANY_MODULE: DLL_UNIT { when ($MSVC == "yes" || $CYGWIN == "yes") { MODULE_PREFIX= - MODULE_SUFFIX=.pyd + MODULE_SUFFIX=.pyd } otherwise { MODULE_PREFIX= - MODULE_SUFFIX=.so + MODULE_SUFFIX=.so } .RESTRICTED=USE_PYTHON2 USE_PYTHON3 PY_SRCS PY_MAIN } # tag:python-specific ### @usage: PY2MODULE(name major_ver [minor_ver] [EXPORTS symlist_file] [PREFIX prefix]) -### -### The Python external module for Python2 and any system Python -### 1. major_ver and minor_ver must be integers. -### 2. The resulting .so will have the prefix "lib". -### 3. Processing EXPORTS and PREFIX is the same as for DLL module -### This is native DLL, so it will select C++ version from PROTO_LIBRARY. -### -### Note: this module will always PEERDIR Python2 version of PY23_NATIVE_LIBRARY. +### +### The Python external module for Python2 and any system Python +### 1. major_ver and minor_ver must be integers. +### 2. The resulting .so will have the prefix "lib". +### 3. Processing EXPORTS and PREFIX is the same as for DLL module +### This is native DLL, so it will select C++ version from PROTO_LIBRARY. +### +### Note: this module will always PEERDIR Python2 version of PY23_NATIVE_LIBRARY. ### Do not PEERDIR PY2_LIBRARY or PY23_LIBRARY: this will link Python in and render artifact unusable as Python module. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ module PY2MODULE: PY_ANY_MODULE { - PYTHON2_MODULE() + PYTHON2_MODULE() SET(MODULE_LANG PY2) - .RESTRICTED=PYTHON3_MODULE PYTHON3_ADDINCL -} - + .RESTRICTED=PYTHON3_MODULE PYTHON3_ADDINCL +} + # tag:python-specific -### @usage: PY3MODULE(name major_ver [minor_ver] [EXPORTS symlist_file] [PREFIX prefix]) -### -### The Python external module for Python3 and any system Python -### 1. major_ver and minor_ver must be integers. -### 2. The resulting .so will have the prefix "lib". -### 3. Processing EXPORTS and PREFIX is the same as for DLL module -### This is native DLL, so it will select C++ version from PROTO_LIBRARY. -### -### Note: this module will always PEERDIR Python3 version of PY23_NATIVE_LIBRARY. -### Do not PEERDIR PY3_LIBRARY or PY23_LIBRARY: this will link Python in and render artifact unusable as Python module. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ -module PY3MODULE: PY_ANY_MODULE { - PYTHON3_MODULE() +### @usage: PY3MODULE(name major_ver [minor_ver] [EXPORTS symlist_file] [PREFIX prefix]) +### +### The Python external module for Python3 and any system Python +### 1. major_ver and minor_ver must be integers. +### 2. The resulting .so will have the prefix "lib". +### 3. Processing EXPORTS and PREFIX is the same as for DLL module +### This is native DLL, so it will select C++ version from PROTO_LIBRARY. +### +### Note: this module will always PEERDIR Python3 version of PY23_NATIVE_LIBRARY. +### Do not PEERDIR PY3_LIBRARY or PY23_LIBRARY: this will link Python in and render artifact unusable as Python module. +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ +module PY3MODULE: PY_ANY_MODULE { + PYTHON3_MODULE() SET(MODULE_LANG PY3) .RESTRICTED=PYTHON2_MODULE PYTHON2_ADDINCL -} - +} + # tag:python-specific -### @usage: PYTHON2_MODULE() -### -### Use in PY_ANY_MODULE to set it up for Python 2.x. -macro PYTHON2_MODULE() { - when ($USE_ARCADIA_PYTHON == "yes" && $MSVC == "yes" || $IS_CROSS_TOOLS == "yes") { - PEERDIR+=contrib/tools/python/lib - } - +### @usage: PYTHON2_MODULE() +### +### Use in PY_ANY_MODULE to set it up for Python 2.x. +macro PYTHON2_MODULE() { + when ($USE_ARCADIA_PYTHON == "yes" && $MSVC == "yes" || $IS_CROSS_TOOLS == "yes") { + PEERDIR+=contrib/tools/python/lib + } + PYTHON2_ADDINCL() -} - +} + # tag:python-specific -### @usage: PYTHON3_MODULE() -### -### Use in PY_ANY_MODULE to set it up for Python 3.x. -macro PYTHON3_MODULE() { - when ($USE_ARCADIA_PYTHON == "yes" && $MSVC == "yes" || $IS_CROSS_TOOLS == "yes") { - PEERDIR+=contrib/tools/python3/lib - } - - PYTHON3_ADDINCL() -} - +### @usage: PYTHON3_MODULE() +### +### Use in PY_ANY_MODULE to set it up for Python 3.x. +macro PYTHON3_MODULE() { + when ($USE_ARCADIA_PYTHON == "yes" && $MSVC == "yes" || $IS_CROSS_TOOLS == "yes") { + PEERDIR+=contrib/tools/python3/lib + } + + PYTHON3_ADDINCL() +} + # tag:r-specific -### @usage: R_MODULE(name major_ver [minor_ver] [EXPORTS symlist_file] [PREFIX prefix]) -### -### The external module for R language. -### 1. major_ver and minor_ver must be integers. -### 2. The resulting .so will have the prefix "lib". -### 3. Processing EXPORTS and PREFIX is the same as for DLL module -### This is native DLL, so it will select C++ version from PROTO_LIBRARY. +### @usage: R_MODULE(name major_ver [minor_ver] [EXPORTS symlist_file] [PREFIX prefix]) +### +### The external module for R language. +### 1. major_ver and minor_ver must be integers. +### 2. The resulting .so will have the prefix "lib". +### 3. Processing EXPORTS and PREFIX is the same as for DLL module +### This is native DLL, so it will select C++ version from PROTO_LIBRARY. module R_MODULE: DLL_UNIT { when ($DARWIN == "yes") { LDFLAGS+=-flat_namespace -dynamiclib @@ -2784,27 +2784,27 @@ module R_MODULE: DLL_UNIT { ADDINCL(contrib/libs/r-lang) } -### @usage: DYNAMIC_LIBRARY_FROM(Paths) -### -### Use specified libraries as sources of DLL -macro DYNAMIC_LIBRARY_FROM(Path...) { - PEERDIR($Path) - WHOLE_ARCHIVE($Path) -} - - +### @usage: DYNAMIC_LIBRARY_FROM(Paths) +### +### Use specified libraries as sources of DLL +macro DYNAMIC_LIBRARY_FROM(Path...) { + PEERDIR($Path) + WHOLE_ARCHIVE($Path) +} + + ### @usage: DLL(name major_ver [minor_ver] [EXPORTS symlist_file] [PREFIX prefix]) -### -### Dynamic library module defintion. +### +### Dynamic library module defintion. ### 1. major_ver and minor_ver must be integers. ### 2. EXPORTS allows you to explicitly specify the list of exported functions. This accepts 2 kind of files: .exports with <lang symbol> pairs and JSON-line .symlist files ### 3. PREFIX allows you to change the prefix of the output file (default DLL has the prefix "lib"). ### -### DLL cannot participate in linking to programs but can be used from Java or as final artifact (packaged and deployed). +### DLL cannot participate in linking to programs but can be used from Java or as final artifact (packaged and deployed). module DLL: DLL_UNIT { SET(MAKE_ONLY_SHARED_LIB yes) SET(MODULE_LANG CPP) - when ($OS_WINDOWS) { + when ($OS_WINDOWS) { MODULE_SUFFIX=.dll } @@ -2831,8 +2831,8 @@ module DLL_TOOL: DLL { ### 3. PREFIX allows you to change the prefix of the output file. module SO_PROGRAM: DLL { .CMD=LINK_EXEC_DYN_LIB - SET(MODULE_TYPE PROGRAM) - + SET(MODULE_TYPE PROGRAM) + MODULE_PREFIX= when ($MSVC == "yes" || $CYGWIN == "yes") { MODULE_SUFFIX=.exe @@ -2849,13 +2849,13 @@ DLL_PROXY_CMD_MF=$GENERATE_MF && $COPY_CMD $AUTO_INPUT $TARGET ### ### The use of this module is strictly prohibited!!! ### This is a temporary and project-specific solution. -module DEV_DLL_PROXY: _BARE_UNIT { +module DEV_DLL_PROXY: _BARE_UNIT { .NODE_TYPE=Library - .EXTS=.so .dll .dylib .mf + .EXTS=.so .dll .dylib .mf .CMD=DLL_PROXY_CMD_MF DYNAMIC_LINK=yes - when ($OS_WINDOWS == "yes") { + when ($OS_WINDOWS == "yes") { MODULE_SUFFIX=.dll } elsewhen ($DARWIN == "yes" || $OS_IOS == "yes") { @@ -2874,105 +2874,105 @@ module DEV_DLL_PROXY: _BARE_UNIT { ### The use of this module is strictly prohibited!!! ### This is a temporary and project-specific solution. module DLL_PROXY: DEV_DLL_PROXY { - .EXTS=.so .dylib .lib .mf + .EXTS=.so .dylib .lib .mf .PROXY=yes .PEERDIR_POLICY=as_build_from - SET(PEERDIR_TAGS DLL __EMPTY__) + SET(PEERDIR_TAGS DLL __EMPTY__) - when ($OS_WINDOWS == "yes") { + when ($OS_WINDOWS == "yes") { MODULE_SUFFIX=.lib } } -# tag:internal -### @usage: DYNAMIC_DEPS(Path...) # internal, temporary -### -### Enlist paths to all DYNAMIC_LIBRARY dependencies of the DYNAMIC_LIBRARY -### This it needed to transfer their outputs through the library to PROGRAM -### or dependent DLL/DYNAMIC_LIBRARY. -### -### Note: this is temporary solution until support of `super-global` variables come -### which will enable transfer of some properies though final targets like DLLs. -macro DYNAMIC_DEPS(Path...) { - # PEERDIR as macro completely ignored in place where this macro applies - SET_APPEND(PEERDIR $Path) -} - -# tag:internal -### @usage: DYNAMIC_LIBRARY() # internal -### -### The use of this module is strictly prohibited except LGPL-related opensourcing -### This provides linkable DLL module which brings its results to programs and tests -### for seamless tesing and packaging -multimodule DYNAMIC_LIBRARY { - module DLL_BIN: DLL { - .PROXY=yes - .IGNORED=PROVIDES - SET(MODULE_TAG DLL) - } - module DLL_LIB: _DLL_COMPATIBLE_LIBRARY { - .CMD=TOUCH_UNIT_MF - .PEERDIRSELF=DLL_BIN - .IGNORED=SRCS PEERDIR RUN_PROGRAM PYTHON DYNAMIC_LIBRARY_FROM GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER USE_PYTHON2 USE_PYTHON3 - .ALLOWED=DYNAMIC_DEPS - - SET(PEERDIR_TAGS DLL_LIB __EMPTY__) - - _BARE_MODULE() - DYNAMIC_LINK=yes - MODULE_SUFFIX=.pkg.fake - PEERDIR+=build/platform/local_so - +# tag:internal +### @usage: DYNAMIC_DEPS(Path...) # internal, temporary +### +### Enlist paths to all DYNAMIC_LIBRARY dependencies of the DYNAMIC_LIBRARY +### This it needed to transfer their outputs through the library to PROGRAM +### or dependent DLL/DYNAMIC_LIBRARY. +### +### Note: this is temporary solution until support of `super-global` variables come +### which will enable transfer of some properies though final targets like DLLs. +macro DYNAMIC_DEPS(Path...) { + # PEERDIR as macro completely ignored in place where this macro applies + SET_APPEND(PEERDIR $Path) +} + +# tag:internal +### @usage: DYNAMIC_LIBRARY() # internal +### +### The use of this module is strictly prohibited except LGPL-related opensourcing +### This provides linkable DLL module which brings its results to programs and tests +### for seamless tesing and packaging +multimodule DYNAMIC_LIBRARY { + module DLL_BIN: DLL { + .PROXY=yes + .IGNORED=PROVIDES + SET(MODULE_TAG DLL) + } + module DLL_LIB: _DLL_COMPATIBLE_LIBRARY { + .CMD=TOUCH_UNIT_MF + .PEERDIRSELF=DLL_BIN + .IGNORED=SRCS PEERDIR RUN_PROGRAM PYTHON DYNAMIC_LIBRARY_FROM GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER USE_PYTHON2 USE_PYTHON3 + .ALLOWED=DYNAMIC_DEPS + + SET(PEERDIR_TAGS DLL_LIB __EMPTY__) + + _BARE_MODULE() + DYNAMIC_LINK=yes + MODULE_SUFFIX=.pkg.fake + PEERDIR+=build/platform/local_so + RESTRICT_PATH(contrib devtools/dummy_arcadia MSG Use of this module type outside contrib/libs is prohibited) # disable credits generation for static library SET(CREDITS_FLAGS) - } -} - + } +} + ### @usage: GLOBAL_SRCS(filenames...) ### -### Make all source files listed as GLOBAL. +### Make all source files listed as GLOBAL. ### Call to GLOBAL_SRCS macro is equivalent to call to SRCS macro when each source file is marked with GLOBAL keyword. ### Arcadia root relative or project dir relative paths are supported for filenames arguments. GLOBAL keyword is not ### recognized for GLOBAL_SRCS in contrast to SRCS macro. ### ### @example: ### Consider the file to ya.make: -### +### ### LIBRARY() -### GLOBAL_SRCS(foo.cpp bar.cpp) +### GLOBAL_SRCS(foo.cpp bar.cpp) ### END() -### -### @see: [SRCS()](#macro_SRCS) +### +### @see: [SRCS()](#macro_SRCS) macro GLOBAL_SRCS(Files...) { SRCS(${pre=GLOBAL :Files}) } ### @usage: ALL_SRCS([GLOBAL] filenames...) ### -### Make all source files listed as GLOBAL or not depending on the keyword GLOBAL +### Make all source files listed as GLOBAL or not depending on the keyword GLOBAL ### Call to ALL_SRCS macro is equivalent to call to GLOBAL_SRCS macro when GLOBAL keyword is specified ### as the first argument and is equivalent to call to SRCS macro otherwise. ### ### @example: -### +### ### LIBRARY() -### SET(MAKE_IT_GLOBAL GLOBAL) -### ALL_SRCS(${MAKE_IT_GLOBAL} foo.cpp bar.cpp) +### SET(MAKE_IT_GLOBAL GLOBAL) +### ALL_SRCS(${MAKE_IT_GLOBAL} foo.cpp bar.cpp) ### END() -### -### @see: [GLOBAL_SRCS()](#macro_GLOBAL_SRCS), [SRCS()](#macro_SRCS) +### +### @see: [GLOBAL_SRCS()](#macro_GLOBAL_SRCS), [SRCS()](#macro_SRCS) macro ALL_SRCS(GLOBAL?"GLOBAL":"", Files...) { SRCS(${pre=$GLOBAL :Files}) } -### @usage: _DLL_COMPATIBLE_LIBRARY # internal -### -### Base module to place DLLs into multimodules back to back with libraries. -### In order to function properly all modules in multimodule shall have the +### @usage: _DLL_COMPATIBLE_LIBRARY # internal +### +### Base module to place DLLs into multimodules back to back with libraries. +### In order to function properly all modules in multimodule shall have the ### same set of arguments. So this module is just library that accepts but -### ignores all DLL arguments. +### ignores all DLL arguments. module _DLL_COMPATIBLE_LIBRARY: LIBRARY { } @@ -2983,12 +2983,12 @@ module _DLL_COMPATIBLE_LIBRARY: LIBRARY { PACKED_PACKAGE_ARGS= PACKED_PACKAGE_EXT= ### @usage: PACK(archive_type) -### -### When placed inside the PACKAGE module, packs the build results tree to the archive with specified extension. Currently supported extensions are `tar` and `tar.gz` -### -### Is not allowed other module types than PACKAGE(). -### -### @see: [PACKAGE()](#module_PACKAGE) +### +### When placed inside the PACKAGE module, packs the build results tree to the archive with specified extension. Currently supported extensions are `tar` and `tar.gz` +### +### Is not allowed other module types than PACKAGE(). +### +### @see: [PACKAGE()](#module_PACKAGE) macro PACK(Ext) { SET(PACKED_PACKAGE_EXT $Ext) } @@ -2999,104 +2999,104 @@ macro PACKAGE_STRICT() { } ### @usage: PACKAGE(name) -### +### ### Module collects what is described directly inside it, builds and collects all its transitively available PEERDIRs. ### As a result, build directory of the project gets the structure of the accessible part of Arcadia, where the build result of each PEERDIR is placed to relevant Arcadia subpath. -### The data can be optionally packed if macro PACK() is used. +### The data can be optionally packed if macro PACK() is used. +### +### Is only used together with the macros FILES(), PEERDIR(), COPY(), FROM_SANDBOX(), RUN_PROGRAM or BUNDLE(). Don't use SRCS inside a PACKAGE. ### -### Is only used together with the macros FILES(), PEERDIR(), COPY(), FROM_SANDBOX(), RUN_PROGRAM or BUNDLE(). Don't use SRCS inside a PACKAGE. +### Documentation: https://wiki.yandex-team.ru/yatool/large-data/ ### -### Documentation: https://wiki.yandex-team.ru/yatool/large-data/ -### -### @see: [PACK()](#macro_PACK) -module PACKAGE: _BASE_UNIT { +### @see: [PACK()](#macro_PACK) +module PACKAGE: _BASE_UNIT { .CMD=TOUCH_PACKAGE_MF .PEERDIR_POLICY=as_build_from .ALL_INS_TO_OUT=yes - .FINAL_TARGET=yes - .ALLOWED=PACK + .FINAL_TARGET=yes + .ALLOWED=PACK SET(MODULE_SUFFIX .pkg.fake) - SET(DONT_RESOLVE_INCLUDES yes) + SET(DONT_RESOLVE_INCLUDES yes) NO_PLATFORM() when ($PACKED_PACKAGE_EXT) { - PACKED_PACKAGE_ARGS+=--dest-arch ${output;pre=$MODULE_PREFIX;suf=.$PACKED_PACKAGE_EXT:REALPRJNAME} + PACKED_PACKAGE_ARGS+=--dest-arch ${output;pre=$MODULE_PREFIX;suf=.$PACKED_PACKAGE_EXT:REALPRJNAME} } SET(NEED_PLATFORM_PEERDIRS no) - PEERDIR_TAGS=CPP_PROTO CPP_FBS PY2 PY2_NATIVE YQL_UDF_SHARED __EMPTY__ DOCBOOK JAR_RUNNABLE PY3_BIN PY3TEST_PROGRAM DLL -} - -TOUCH_GROUP=$TOUCH_PACKAGE ${kv;hide:"p CI"} - -### @usage: CI_GROUP() -### -### Module collects what is described directly inside it transitively by PEERDIRs. -### No particular layout of built artifacts is implied. This module is needed primarilly for CI dependency analysis and may not trigger builds at all. -### -### Is only used together with the macro PEERDIR() and FILES(). Don't use SRCS inside CI_GROUP(). -module CI_GROUP: _BARE_UNIT { - .CMD=TOUCH_GROUP - .PEERDIR_POLICY=as_build_from - .ALL_INS_TO_OUT=yes - .FINAL_TARGET=yes - .RESTRICTED=SRCS + PEERDIR_TAGS=CPP_PROTO CPP_FBS PY2 PY2_NATIVE YQL_UDF_SHARED __EMPTY__ DOCBOOK JAR_RUNNABLE PY3_BIN PY3TEST_PROGRAM DLL +} + +TOUCH_GROUP=$TOUCH_PACKAGE ${kv;hide:"p CI"} + +### @usage: CI_GROUP() +### +### Module collects what is described directly inside it transitively by PEERDIRs. +### No particular layout of built artifacts is implied. This module is needed primarilly for CI dependency analysis and may not trigger builds at all. +### +### Is only used together with the macro PEERDIR() and FILES(). Don't use SRCS inside CI_GROUP(). +module CI_GROUP: _BARE_UNIT { + .CMD=TOUCH_GROUP + .PEERDIR_POLICY=as_build_from + .ALL_INS_TO_OUT=yes + .FINAL_TARGET=yes + .RESTRICTED=SRCS MODULE_SUFFIX=.ci.pkg.fake - PEERDIR_TAGS=CPP_PROTO PY3 PY3_NATIVE YQL_UDF_SHARED __EMPTY__ DOCBOOK JAR_RUNNABLE DLL -} - + PEERDIR_TAGS=CPP_PROTO PY3 PY3_NATIVE YQL_UDF_SHARED __EMPTY__ DOCBOOK JAR_RUNNABLE DLL +} + TOUCH_UNIT_MF=$TOUCH_UNIT && $GENERATE_MF TOUCH_DOCS=$YMAKE_PYTHON ${input:"build/scripts/touch.py"} ${kv;hide:"p DC"} ${kv;hide:"pc light-cyan"} $TARGET TOUCH_DOCS_MF=$TOUCH_DOCS && $GENERATE_MF # tag:proto -### @usage: RESOLVE_PROTO() -### -### Enable include resolving within UNIONs and let system .proto being resolved -### among .proto/.gztproto imports -### -### Note: it is currently impossible to enbale resolving only for .proto, so resolving is enabled for all supported files +### @usage: RESOLVE_PROTO() +### +### Enable include resolving within UNIONs and let system .proto being resolved +### among .proto/.gztproto imports +### +### Note: it is currently impossible to enbale resolving only for .proto, so resolving is enabled for all supported files ### also we only add ADDINCL for stock protobuf. So use this macro with care: it may cause resolving problems those are -### to be addressed by either ADDINCLs or marking them as TEXT. Please contact devtools for details. -macro RESOLVE_PROTO() { - SET(DONT_RESOLVE_INCLUDES no) - ADDINCL(FOR proto $PROTOBUF_PATH) -} - +### to be addressed by either ADDINCLs or marking them as TEXT. Please contact devtools for details. +macro RESOLVE_PROTO() { + SET(DONT_RESOLVE_INCLUDES no) + ADDINCL(FOR proto $PROTOBUF_PATH) +} + ### @usage: UNION(name) ### -### Collection of PEERDIR dependencies, files and artifacts. -### UNION doesn't build its peers, just provides those to modules depending on it. -### When specied in DEPENDS() macro the UNION is transitively closed, building all its peers and providing those by own paths (without adding this module path like PACKAGE does). +### Collection of PEERDIR dependencies, files and artifacts. +### UNION doesn't build its peers, just provides those to modules depending on it. +### When specied in DEPENDS() macro the UNION is transitively closed, building all its peers and providing those by own paths (without adding this module path like PACKAGE does). ### -### Is only used together with the macros like FILES(), PEERDIR(), COPY(), FROM_SANDBOX(), RUN_PROGRAM or BUNDLE(). Don't use SRCS inside a UNION. -### -### Documentation: https://wiki.yandex-team.ru/yatool/large-data/ -module UNION: _BASE_UNIT { +### Is only used together with the macros like FILES(), PEERDIR(), COPY(), FROM_SANDBOX(), RUN_PROGRAM or BUNDLE(). Don't use SRCS inside a UNION. +### +### Documentation: https://wiki.yandex-team.ru/yatool/large-data/ +module UNION: _BASE_UNIT { .ALL_INS_TO_OUT=yes - .FINAL_TARGET=no + .FINAL_TARGET=no NO_PLATFORM() SET(MODULE_SUFFIX .pkg.fake) - SET(DONT_RESOLVE_INCLUDES yes) + SET(DONT_RESOLVE_INCLUDES yes) .CMD=TOUCH_UNIT_MF SET(NEED_PLATFORM_PEERDIRS no) - PEERDIR_TAGS=CPP_PROTO CPP_FBS PY2 PY2_NATIVE YQL_UDF_SHARED __EMPTY__ DOCBOOK JAR_RUNABLE PY3_BIN DLL + PEERDIR_TAGS=CPP_PROTO CPP_FBS PY2 PY2_NATIVE YQL_UDF_SHARED __EMPTY__ DOCBOOK JAR_RUNABLE PY3_BIN DLL } # tag:python-specific module _PY_PACKAGE: UNION { .EXTS=.py .ALL_INS_TO_OUT=yes - .ALLOWED=GRPC USE_SKIFF + .ALLOWED=GRPC USE_SKIFF ENABLE(PY_PROTOS_FOR) SET(PEERDIR_TAGS PY_PROTO) - SET(DONT_RESOLVE_INCLUDES no) + SET(DONT_RESOLVE_INCLUDES no) } - + # tag:python-specific tag:deprecated tag:internal -### @usage: PY_PACKAGE(name) # internal, deprecated -### -### This is module created via PY_PROTOS_FOR() macro +### @usage: PY_PACKAGE(name) # internal, deprecated +### +### This is module created via PY_PROTOS_FOR() macro module PY_PACKAGE: _PY_PACKAGE { - .FINAL_TARGET=yes + .FINAL_TARGET=yes } # tag:internal @@ -3123,7 +3123,7 @@ _DOCS_EXTRA_TOOLS= _DOCS_EXTRA_INPUTS= _DOCS_ENV= _DOCS_KV=${kv;hide:"p DO"} ${kv;hide:"pc light-cyan"} ${kv;hide:"show_out yes"} - + _DOCS_PLANTUML_ENV=\ ${env:"JAVA_PATH=$JDK_RESOURCE_GLOBAL/bin/java"} \ ${env:"PLANTUML_PATH=${ARCADIA_BUILD_ROOT}/contrib/tools/plantuml/plantuml.run.cp.jar"} \ @@ -3157,8 +3157,8 @@ $_DOCS_COMMON_CMDLINE_PREFIX \ # tag:internal tag:docs macro _DOCS_YFM_BOOK_IMPL(CONFIG, INCLUDE_SRCS[], EXTRA_INPUTS[]) { .CMD=$_DOCS_YFM_BOOK_CMDLINIE -} - +} + _DOCS_YFM_CMD=$_DOCS_YFM_BOOK_IMPL($_DOCS_CONFIG_VALUE INCLUDE_SRCS $_DOCS_INCLUDE_SOURCES_VALUE EXTRA_INPUTS $_DOCS_EXTRA_INPUTS) _DOCS_MKDOCS_CMDLINE_SUFFIX= @@ -3205,12 +3205,12 @@ module _DOCS_BASE_UNIT: _BARE_UNIT { _DOCS_DEFAULT_CONFIG=$_DOCS_MKDOCS_DEFAULT_CONFIG _DOCS_COMMON_BOOK_PROCESS_DEPS=$_DOCS_MKDOCS_BOOK_PROCESS_DEPS } - } -} - + } +} + # tag:internal tag:docs ### _DOCS_EPILOOGUE() # internal -### +### ### This macro executes macros which should be envoked after all user ### specified macros in the ya.make file macro _DOCS_EPILOGUE() { @@ -3218,8 +3218,8 @@ macro _DOCS_EPILOGUE() { _LATE_GLOB(_DOCS_SRCS_GLOB ${pre=${ARCADIA_ROOT}/;suf=/**/*:_DOCS_DIR_VALUE}) SET(_DOCS_SRCS_VALUE \${input;hide:_DOCS_SRCS_GLOB}) -} - +} + # tag:internal tag:docs ### _DOCS_YFM_USE_PLANTUML() # internal ### @@ -3238,12 +3238,12 @@ macro _DOCS_YFM_USE_PLANTUML() { # tag:docs ### @usage: DOCS() -### -### Documentation project multimodule. -### -### When built directly, via RECURSE, DEPENDS or BUNDLE the output artifact is docs.tar.gz with statically generated site (using mkdocs as builder). -### When PEERDIRed from other DOCS() module behaves like a UNION (supplying own content and dependencies to build target). -### Peerdirs from modules other than DOCS are not accepted. +### +### Documentation project multimodule. +### +### When built directly, via RECURSE, DEPENDS or BUNDLE the output artifact is docs.tar.gz with statically generated site (using mkdocs as builder). +### When PEERDIRed from other DOCS() module behaves like a UNION (supplying own content and dependencies to build target). +### Peerdirs from modules other than DOCS are not accepted. ### Most usual macros are not accepted, only used with the macros DOCS_DIR(), DOCS_CONFIG(), DOCS_VARS(), DOCS_BUILDER(). ### ### @see: [DOCS_DIR()](#macro_DOCS_DIR), [DOCS_CONFIG()](#macro_DOCS_CONFIG), [DOCS_VARS()](#macro_DOCS_VARS), [DOCS_BUILDER()](#macro_DOCS_BUILDER). @@ -3310,12 +3310,12 @@ macro DOCS_BUILDER(DocsTool) { } # tag:docs -### @usage: DOCS_DIR(path) -### -### Specify directory with source .md files for DOCS multimodule if it differs from project directory. +### @usage: DOCS_DIR(path) +### +### Specify directory with source .md files for DOCS multimodule if it differs from project directory. ### Path must be Arcadia root relative. -### -### @see: [DOCS](#multimodule_DOCS) +### +### @see: [DOCS](#multimodule_DOCS) macro DOCS_DIR(Dir) { SET(_DOCS_DIR_VALUE $Dir) } @@ -3323,26 +3323,26 @@ macro DOCS_DIR(Dir) { # tag:docs _DOCS_DEFAULT_CONFIG= _DOCS_CONFIG_VALUE=$_DOCS_DEFAULT_CONFIG -### @usage: DOCS_CONFIG(path) -### +### @usage: DOCS_CONFIG(path) +### ### Specify path to config file for DOCS multimodule if it differs from default path. ### If [DOCS_BUILDER()](#macro_DOCS_BUILDER) is set to "mkdocs" the default path is "%%project_directory%%/mkdocs.yml". ### If [DOCS_BUILDER()](#macro_DOCS_BUILDER) is not set or set to "yfm" the default path is "%%project_directory%%/.yfm". ### Path must be either Arcadia root relative. -### -### @see: [DOCS](#multimodule_DOCS) +### +### @see: [DOCS](#multimodule_DOCS) macro DOCS_CONFIG(File) { SET(_DOCS_CONFIG_VALUE $File) } # tag:docs _DOCS_VARS_VALUE= -### @usage: DOCS_VARS(variable1=value1 variable2=value2 ...) -### -### Specify a set of default values of template variables for DOCS multimodule. +### @usage: DOCS_VARS(variable1=value1 variable2=value2 ...) +### +### Specify a set of default values of template variables for DOCS multimodule. ### There must be no spaces around "=". Values will be treated as strings. -### -### @see: [DOCS](#multimodule_DOCS) +### +### @see: [DOCS](#multimodule_DOCS) macro DOCS_VARS(Args...) { SET_APPEND(_DOCS_VARS_VALUE $Args) } @@ -3361,12 +3361,12 @@ macro DOCS_INCLUDE_SOURCES(Args...) { # tag:python-specific PY_NAMESPACE_VALUE= - + # tag:python-specific -### @usage: PY_NAMESPACE(prefix) -### -### Sets default Python namespace for all python sources in the module. -### Especially suitable in PROTO_LIBRARY where Python sources are generated and there is no PY_SRCS to place NAMESPACE parameter. +### @usage: PY_NAMESPACE(prefix) +### +### Sets default Python namespace for all python sources in the module. +### Especially suitable in PROTO_LIBRARY where Python sources are generated and there is no PY_SRCS to place NAMESPACE parameter. macro PY_NAMESPACE(Arg) { SET(PY_NAMESPACE_VALUE $Arg) } @@ -3382,39 +3382,39 @@ macro _SRCS_NO_GLOBAL(GLOBAL[], FILES...) { } # tag:java-specific -JAVA_VCS_MF_ARG= +JAVA_VCS_MF_ARG= COMPILE_JAVA_MF=$COMPILE_JAVA # tag:java-specific -when ($EXT_JAVA_VCS_INFO == "yes") { - JAVA_VCS_MF_ARG=--vcs-mf $VCS_JAVA +when ($EXT_JAVA_VCS_INFO == "yes") { + JAVA_VCS_MF_ARG=--vcs-mf $VCS_JAVA COMPILE_JAVA_MF=$GENERATE_VCS_JAVA_INFO_NODEP && $COMPILE_JAVA } - + # tag:java-specific -EXT_JAVA_VCS_INFO=no -### @usage: EMBED_JAVA_VCS_INFO() -### -### Embed manifest with vcs info into `EXTERNAL_JAVA_LIBRARY` -### By default this is disabled. -macro EMBED_JAVA_VCS_INFO() { - ENABLE(EXT_JAVA_VCS_INFO) -} - +EXT_JAVA_VCS_INFO=no +### @usage: EMBED_JAVA_VCS_INFO() +### +### Embed manifest with vcs info into `EXTERNAL_JAVA_LIBRARY` +### By default this is disabled. +macro EMBED_JAVA_VCS_INFO() { + ENABLE(EXT_JAVA_VCS_INFO) +} + # tag:java-specific tag:internal -### @usage: EXTERNAL_JAVA_LIBRARY() #internal -### -### EXTERNAL_JAVA_LIBRARY() is a module for creating a .jar file using non-Java code (generators etc.) +### @usage: EXTERNAL_JAVA_LIBRARY() #internal +### +### EXTERNAL_JAVA_LIBRARY() is a module for creating a .jar file using non-Java code (generators etc.) ### Unlike regular JAVA_LIBRARY this module doesn't produce .pom file, so it cannot be exported to Maven itself. -### PEERDIR it from JAVA_LIBRARY or JAVA_PROGRAM for export to Maven. -module EXTERNAL_JAVA_LIBRARY: _BASE_UNIT { +### PEERDIR it from JAVA_LIBRARY or JAVA_PROGRAM for export to Maven. +module EXTERNAL_JAVA_LIBRARY: _BASE_UNIT { .EXTS=.jsrc .java .jar .mf .NODE_TYPE=Bundle .CMD=COMPILE_JAVA_MF .PEERDIR_POLICY=as_build_from - .FINAL_TARGET=no + .FINAL_TARGET=no .ALIASES=SRCS=_SRCS_NO_GLOBAL - .ALLOWED=EMBED_JAVA_VCS_INFO + .ALLOWED=EMBED_JAVA_VCS_INFO .RESTRICTED=EXTERNAL_JAR PEERDIR(build/platform/java/jdk) @@ -3423,8 +3423,8 @@ module EXTERNAL_JAVA_LIBRARY: _BASE_UNIT { PEERDIR_TAGS=JAVA_PROTO JAVA_FBS JAVA_IDL PROPAGATES_MANAGEABLE_PEERS=yes DYNAMIC_LINK=yes - MACRO_ALIAS(PROTO_CMD _JAVA_PROTO_CMD) - MACRO_ALIAS(EVLOG_CMD _JAVA_EVLOG_CMD) + MACRO_ALIAS(PROTO_CMD _JAVA_PROTO_CMD) + MACRO_ALIAS(EVLOG_CMD _JAVA_EVLOG_CMD) MACRO_ALIAS(FBS_CMD _JAVA_FLATC_CMD) when ($PACKAGE_PREFIX) { @@ -3481,11 +3481,11 @@ when($JDK_VERSION == "8") { } # tag:java-specific -macro _DO_2_RUN_JAR_PROGRAM(IN_DIRS_VAR="uniq_", IN_DIRS_INPUTS[], IN{input}[], IN_DIR[], OUT_NOAUTO{output}[], OUT{output}[], TOOL{tool}[], OUT_DIR[], CLASSPATH[], REQUIREMENTS[], ADD_SRCS_TO_CLASSPATH?"yes":"no", CWD="${ARCADIA_BUILD_ROOT}", Args...) { +macro _DO_2_RUN_JAR_PROGRAM(IN_DIRS_VAR="uniq_", IN_DIRS_INPUTS[], IN{input}[], IN_DIR[], OUT_NOAUTO{output}[], OUT{output}[], TOOL{tool}[], OUT_DIR[], CLASSPATH[], REQUIREMENTS[], ADD_SRCS_TO_CLASSPATH?"yes":"no", CWD="${ARCADIA_BUILD_ROOT}", Args...) { _LATE_GLOB(${IN_DIRS_VAR} ${suf=/**/*:IN_DIR}) _CHECK_RUN_JAVA_PROG_CLASSPATH($CLASSPATH) .PEERDIR=build/platform/java/jdk $JDK_RESOURCE_PEERDIR - .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/mkdir.py"} ${OUT_DIR} && ${cwd:CWD} $YMAKE_PYTHON ${input:"build/scripts/setup_java_tmpdir.py"} $YMAKE_PYTHON ${input:"build/scripts/stdout2stderr.py"} $YMAKE_PYTHON ${input:"build/scripts/fix_java_command_file_cp.py"} --build-root ${ARCADIA_BUILD_ROOT} $JDK_RESOURCE/bin/java -Dfile.encoding=utf8 -classpath ${RUN_JAR_PROG_CP_PRE}${tool:CLASSPATH}${RUN_JAR_PROG_CP_SUF} ${Args} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} && $_GENTAR_HELPER($CLASSPATH $IN_DIR $IN $TOOL $Args OUT_DIR $OUT_DIR) ${input;hide:IN} ${output;noauto;hide:OUT_NOAUTO} ${output;hide:OUT} ${tool;hide:TOOL} ${IN_DIRS_INPUTS} + .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/mkdir.py"} ${OUT_DIR} && ${cwd:CWD} $YMAKE_PYTHON ${input:"build/scripts/setup_java_tmpdir.py"} $YMAKE_PYTHON ${input:"build/scripts/stdout2stderr.py"} $YMAKE_PYTHON ${input:"build/scripts/fix_java_command_file_cp.py"} --build-root ${ARCADIA_BUILD_ROOT} $JDK_RESOURCE/bin/java -Dfile.encoding=utf8 -classpath ${RUN_JAR_PROG_CP_PRE}${tool:CLASSPATH}${RUN_JAR_PROG_CP_SUF} ${Args} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} && $_GENTAR_HELPER($CLASSPATH $IN_DIR $IN $TOOL $Args OUT_DIR $OUT_DIR) ${input;hide:IN} ${output;noauto;hide:OUT_NOAUTO} ${output;hide:OUT} ${tool;hide:TOOL} ${IN_DIRS_INPUTS} } # tag:java-specific @@ -3516,11 +3516,11 @@ macro _JAR_ANN_PROC_OPTS(Classes...) { # tag:java-specific macro _NOOP_MACRO(Args...) { - ENABLE(UNUSED_MACRO) + ENABLE(UNUSED_MACRO) } # tag:java-specific -module _JAR_BASE: _BARE_UNIT { +module _JAR_BASE: _BARE_UNIT { .NODE_TYPE=Bundle .CMD=TOUCH_UNIT .PEERDIR_POLICY=as_build_from @@ -3711,7 +3711,7 @@ LINK_JAR=$PREPARE_JAVA_BUILD_DIRS \ $_PACK_JNI \ && $PACK_JAR \ $_DO_JAVA_YNDEXING \ - ${requirements;hide:JAVA_REQUIREMENTS} \ + ${requirements;hide:JAVA_REQUIREMENTS} \ ${kv;hide:"p JV"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} \ $_MAKE_JSTYLE_FILE_LIST \ $_LINK_UBERJAR \ @@ -4018,21 +4018,21 @@ multimodule JTEST_YMAKE { # tag:python-specific tag:deprecated ### @usage: PY2_LIBRARY() # deprecated -### +### ### Deprecated. Use PY23_LIBRARY or PY3_LIBRARY instead. ### Python 2.x binary built library. Builds sources from PY_SRCS to data suitable for PY2_PROGRAM. -### Adds dependencies to Python 2.x runtime library from Arcadia. -### This module is only compatible with PYTHON2-tagged modules and selects those from multimodules. -### This module is only compatible with Arcadia Python build. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ +### Adds dependencies to Python 2.x runtime library from Arcadia. +### This module is only compatible with PYTHON2-tagged modules and selects those from multimodules. +### This module is only compatible with Arcadia Python build. +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ module PY2_LIBRARY: _LIBRARY { - .ALIASES=REQUIREMENTS=PY_REQUIREMENTS - _ARCADIA_PYTHON_ADDINCL() - - when ($NO_PYTHON_INCLS != "yes") { - PEERDIR+=contrib/libs/python - } + .ALIASES=REQUIREMENTS=PY_REQUIREMENTS + _ARCADIA_PYTHON_ADDINCL() + + when ($NO_PYTHON_INCLS != "yes") { + PEERDIR+=contrib/libs/python + } when ($MSVC == "yes" || $CYGWIN == "yes") { MODULE_PREFIX=py } @@ -4043,25 +4043,25 @@ module PY2_LIBRARY: _LIBRARY { .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER USE_PYTHON2 .RESTRICTED=PYTHON3_ADDINCL USE_PYTHON3 PYTHON2_ADDINCL OPTIMIZE_PY_PROTOS NO_OPTIMIZE_PY_PROTOS USE_GLOBAL_CMD=yes - - when ($PY_PROTO_MYPY_ENABLED == "yes") { - PY_PROTO_MYPY_SUFFIX=_pb2.pyi - PY_PROTO_MYPY_PLUGIN=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=_pb2.pyi:File} - PY_PROTO_MYPY_PLUGIN_INTERNAL=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=__int___pb2.pyi:File} ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__int___pb2.pyi:File} ${nopath;noext;suf=_pb2.pyi:File}"}) - } + + when ($PY_PROTO_MYPY_ENABLED == "yes") { + PY_PROTO_MYPY_SUFFIX=_pb2.pyi + PY_PROTO_MYPY_PLUGIN=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=_pb2.pyi:File} + PY_PROTO_MYPY_PLUGIN_INTERNAL=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=__int___pb2.pyi:File} ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__int___pb2.pyi:File} ${nopath;noext;suf=_pb2.pyi:File}"}) + } SET(MODULE_LANG PY2) } - -### @usage: _PY3_LIBRARY() -### -### Basic Python3 library module -module _PY3_LIBRARY: _LIBRARY { - _ARCADIA_PYTHON3_ADDINCL() - - when ($NO_PYTHON_INCLS != "yes") { - PEERDIR+=contrib/libs/python - } + +### @usage: _PY3_LIBRARY() +### +### Basic Python3 library module +module _PY3_LIBRARY: _LIBRARY { + _ARCADIA_PYTHON3_ADDINCL() + + when ($NO_PYTHON_INCLS != "yes") { + PEERDIR+=contrib/libs/python + } when ($MSVC == "yes" || $CYGWIN == "yes") { MODULE_PREFIX=py } @@ -4072,53 +4072,53 @@ module _PY3_LIBRARY: _LIBRARY { .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER .RESTRICTED=PYTHON3_ADDINCL USE_PYTHON3 PYTHON2_ADDINCL USE_PYTHON2 OPTIMIZE_PY_PROTOS NO_OPTIMIZE_PY_PROTOS USE_GLOBAL_CMD=yes - + PEERDIR($YMAKE_PYTHON3_PEER) RUN_CYTHON_SCRIPT=$YMAKE_PYTHON3 $CYTHON_SCRIPT - when ($PY_PROTO_MYPY_ENABLED == "yes") { - PY_PROTO_MYPY_SUFFIX=_pb2.pyi - PY_PROTO_MYPY_PLUGIN=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=_pb2.pyi:File} - PY_PROTO_MYPY_PLUGIN_INTERNAL=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=__int___pb2.pyi:File} ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__int___pb2.pyi:File} ${nopath;noext;suf=_pb2.pyi:File}"}) - } + when ($PY_PROTO_MYPY_ENABLED == "yes") { + PY_PROTO_MYPY_SUFFIX=_pb2.pyi + PY_PROTO_MYPY_PLUGIN=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=_pb2.pyi:File} + PY_PROTO_MYPY_PLUGIN_INTERNAL=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=__int___pb2.pyi:File} ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__int___pb2.pyi:File} ${nopath;noext;suf=_pb2.pyi:File}"}) + } SET(MODULE_LANG PY3) } # tag:python-specific -### @usage: PY3_LIBRARY() -### -### Python 3.x binary library. Builds sources from PY_SRCS to data suitable for PY2_PROGRAM -### Adds dependencies to Python 2.x runtime library from Arcadia. -### This module is only compatible with PYTHON3-tagged modules and selects those from multimodules. -### This module is only compatible with Arcadia Python build. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ -module PY3_LIBRARY: _PY3_LIBRARY { - .ALIASES=REQUIREMENTS=PY_REQUIREMENTS -} - - -# tag:python-specific -### @usage: _BASE_PY_PROGRAM #internal -### +### @usage: PY3_LIBRARY() +### +### Python 3.x binary library. Builds sources from PY_SRCS to data suitable for PY2_PROGRAM +### Adds dependencies to Python 2.x runtime library from Arcadia. +### This module is only compatible with PYTHON3-tagged modules and selects those from multimodules. +### This module is only compatible with Arcadia Python build. +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ +module PY3_LIBRARY: _PY3_LIBRARY { + .ALIASES=REQUIREMENTS=PY_REQUIREMENTS +} + + +# tag:python-specific +### @usage: _BASE_PY_PROGRAM #internal +### ### The base module for all Python 2.x binary programs. Adds linking logic, relevant module properties and -### dependency on Python 2.x interpreter. Also adds import tests on all sources including PEERDIR'ed libraries. -### Links all Python 2.x libraries and Python 2.x interpreter into itself to form regular executable. -### This only compatible with PYTHON2-tagged modules and selects those from multimodules. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ -module _BASE_PY_PROGRAM: _BASE_PROGRAM { +### dependency on Python 2.x interpreter. Also adds import tests on all sources including PEERDIR'ed libraries. +### Links all Python 2.x libraries and Python 2.x interpreter into itself to form regular executable. +### This only compatible with PYTHON2-tagged modules and selects those from multimodules. +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ +module _BASE_PY_PROGRAM: _BASE_PROGRAM { .CMD=PY_PROGRAM_LINK_EXE - _ARCADIA_PYTHON_ADDINCL() + _ARCADIA_PYTHON_ADDINCL() when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no") { NO_CHECK_IMPORTS_FOR_VALUE= } ADD_CHECK_PY_IMPORTS() - when ($NO_PYTHON_INCLS != "yes") { + when ($NO_PYTHON_INCLS != "yes") { PEERDIR += contrib/libs/python - } + } when ($USE_ARCADIA_PYTHON == "yes") { PEERDIR += library/python/runtime/main PEERDIR += contrib/python/subprocess32 @@ -4160,17 +4160,17 @@ otherwise { # tag:python-specific -### @usage: _BASE_PY_PROGRAM #internal -### +### @usage: _BASE_PY_PROGRAM #internal +### ### The base module for all Python 3.x binary programs. Adds linking logic, relevant module properties and -### dependency on Python 3.x interpreter. Also adds import tests on all sources including libraries. -### Links all Python 3.x libraries and Python 3.x interpreter into itself to form regular executable. -### This only compatible with PYTHON3-tagged modules and selects those from multimodules -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ -module _BASE_PY3_PROGRAM: _BASE_PROGRAM { +### dependency on Python 3.x interpreter. Also adds import tests on all sources including libraries. +### Links all Python 3.x libraries and Python 3.x interpreter into itself to form regular executable. +### This only compatible with PYTHON3-tagged modules and selects those from multimodules +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs/ +module _BASE_PY3_PROGRAM: _BASE_PROGRAM { .CMD=PY3_PROGRAM_LINK_EXE - _ARCADIA_PYTHON3_ADDINCL() + _ARCADIA_PYTHON3_ADDINCL() PEERDIR(library/python/runtime_py3/main) when ($PYTHON_SQLITE3 != "no") { PEERDIR += contrib/tools/python3/src/Modules/_sqlite @@ -4190,9 +4190,9 @@ module _BASE_PY3_PROGRAM: _BASE_PROGRAM { ALLOCATOR($_MY_ALLOCATOR) STRIP() - when ($NO_PYTHON_INCLS != "yes") { - PEERDIR+=contrib/libs/python - } + when ($NO_PYTHON_INCLS != "yes") { + PEERDIR+=contrib/libs/python + } when ($BUILD_TYPE == "DEBUG") { NO_STRIP=yes } @@ -4202,10 +4202,10 @@ module _BASE_PY3_PROGRAM: _BASE_PROGRAM { when ($PYTHON_COVERAGE == "yes") { PEERDIR+=library/python/coverage } - when ($CODENAVIGATION && $NOCODENAVIGATION != "yes") { - PEERDIR += contrib/python/six - } - .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER + when ($CODENAVIGATION && $NOCODENAVIGATION != "yes") { + PEERDIR += contrib/python/six + } + .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER .RESTRICTED=PYTHON3_ADDINCL USE_PYTHON3 PYTHON2_ADDINCL USE_PYTHON2 SET(MODULE_LANG PY3) } @@ -4215,10 +4215,10 @@ module _BASE_PY3_PROGRAM: _BASE_PROGRAM { ### Use instead of PY3_PROGRAM only if ya.make with PY3_PROGRAM() included in another ya.make ### In all other cases use PY3_PROGRAM module PY3_PROGRAM_BIN: _BASE_PY3_PROGRAM { - .ALIASES=REQUIREMENTS=PY_REQUIREMENTS - # Look's like we cannot avoid copy-paste util ymake supports multiple inheritance - # We need to attach coverage.extractor to every py_program target, except pytest targets - ADD_YTEST($MODULE_PREFIX$REALPRJNAME coverage.extractor) + .ALIASES=REQUIREMENTS=PY_REQUIREMENTS + # Look's like we cannot avoid copy-paste util ymake supports multiple inheritance + # We need to attach coverage.extractor to every py_program target, except pytest targets + ADD_YTEST($MODULE_PREFIX$REALPRJNAME coverage.extractor) } # tag:java-specific @@ -4324,7 +4324,7 @@ otherwise { JDK_RESOURCE=$JDK8_RESOURCE_GLOBAL } } - + # tag:java-specific when (!$USE_SYSTEM_ERROR_PRONE) { when ($JDK_VERSION == "8" || $JDK_VERSION == "10") { @@ -4418,60 +4418,60 @@ when ($JDK_VERSION == "8") { } # tag:java-specific -COMPILE_JAVA=${cwd:ARCADIA_BUILD_ROOT} $YMAKE_PYTHON ${input:"build/scripts/compile_java.py"} --javac-bin $JDK_RESOURCE/bin/javac --jar-bin $JDK_RESOURCE/bin/jar $JAVA_VCS_MF_ARG $PACKAGE_PREFIX_ARGS --jar-output $TARGET --srcs-jar-output ${output;suf=-sources.jar:REALPRJNAME} $AUTO_INPUT DELIM $JAVAC_OPTS DELIM $PEERS ${requirements;hide:JAVA_REQUIREMENTS} ${kv;hide:"p JV"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} ${kv;hide:"PEERS $PEERS"} +COMPILE_JAVA=${cwd:ARCADIA_BUILD_ROOT} $YMAKE_PYTHON ${input:"build/scripts/compile_java.py"} --javac-bin $JDK_RESOURCE/bin/javac --jar-bin $JDK_RESOURCE/bin/jar $JAVA_VCS_MF_ARG $PACKAGE_PREFIX_ARGS --jar-output $TARGET --srcs-jar-output ${output;suf=-sources.jar:REALPRJNAME} $AUTO_INPUT DELIM $JAVAC_OPTS DELIM $PEERS ${requirements;hide:JAVA_REQUIREMENTS} ${kv;hide:"p JV"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} ${kv;hide:"PEERS $PEERS"} REAL_SWIG_DLL_JAR_CMD=$GENERATE_VCS_JAVA_INFO_NODEP && ${cwd:ARCADIA_BUILD_ROOT} $YMAKE_PYTHON ${input:"build/scripts/build_dll_and_java.py"} $JAVA_SWIG_DELIM $REAL_LINK_DYN_LIB $JAVA_SWIG_DELIM $COMPILE_JAVA $JAVA_SWIG_DELIM $AUTO_INPUT $JAVA_SWIG_DELIM $TARGET $JAVA_SWIG_DELIM ${output;suf=.jar:REALPRJNAME} $JAVA_SWIG_DELIM ${output;suf=-sources.jar:REALPRJNAME} $JAVA_SWIG_DELIM $ARCADIA_BUILD_ROOT $ARCADIA_ROOT # tag:deprecated -### @usage: METAQUERY() #deprecated -### +### @usage: METAQUERY() #deprecated +### ### Project Definition - KIWI Meta query. (Objected) -### +### ### https://wiki.yandex-team.ru/robot/manual/kiwi/techdoc/design/metaquery/ -module METAQUERY: _BASE_UNIT { +module METAQUERY: _BASE_UNIT { .ALL_INS_TO_OUT=yes - .FINAL_TARGET=yes - PRINT_MODULE_TYPE(METAQUERY $MODULE_PREFIX$REALPRJNAME) + .FINAL_TARGET=yes + PRINT_MODULE_TYPE(METAQUERY $MODULE_PREFIX$REALPRJNAME) } ARGS_DELIM="MACRO_CALLS_DELIM" SYSTEM_PROPERTIES_VALUE= -### @usage: SYSTEM_PROPERTIES([<Key Value>...] [<File Path>...]) -### -### List of Key,Value pairs that will be available to test via System.getProperty(). -### FILE means that parst should be read from file specifies as Path. -### -### Documentation: https://wiki.yandex-team.ru/yatool/test/ +### @usage: SYSTEM_PROPERTIES([<Key Value>...] [<File Path>...]) +### +### List of Key,Value pairs that will be available to test via System.getProperty(). +### FILE means that parst should be read from file specifies as Path. +### +### Documentation: https://wiki.yandex-team.ru/yatool/test/ macro SYSTEM_PROPERTIES(Args...) { SET_APPEND(SYSTEM_PROPERTIES_VALUE $Args) } # tag:java-specific JVM_ARGS_VALUE= -### @usage: JVM_ARGS(Args...) -### -### Arguments to run Java programs in tests. -### -### Documentation: https://wiki.yandex-team.ru/yatool/test/ +### @usage: JVM_ARGS(Args...) +### +### Arguments to run Java programs in tests. +### +### Documentation: https://wiki.yandex-team.ru/yatool/test/ macro JVM_ARGS(Args...) { SET_APPEND(JVM_ARGS_VALUE $Args) } # tag:java-specific CHECK_JAVA_DEPS_VALUE= -### @usage: CHECK_JAVA_DEPS(<yes|no>) -### -### Check for different classes with duplicate name in classpath. -### -### Documentation: https://wiki.yandex-team.ru/yatool/test/ +### @usage: CHECK_JAVA_DEPS(<yes|no>) +### +### Check for different classes with duplicate name in classpath. +### +### Documentation: https://wiki.yandex-team.ru/yatool/test/ macro CHECK_JAVA_DEPS(Arg) { SET(CHECK_JAVA_DEPS_VALUE $Arg) } ERROR_PRONE_VALUE= -### @usage: USE_ERROR_PRONE() -### -### Use errorprone instead of javac for .java compilation. +### @usage: USE_ERROR_PRONE() +### +### Use errorprone instead of javac for .java compilation. macro USE_ERROR_PRONE() { SET(ERROR_PRONE_VALUE yes) } @@ -4479,34 +4479,34 @@ macro USE_ERROR_PRONE() { TEST_CWD_VALUE= ### @usage: TEST_CWD(path) ### -### Defines working directory for test runs. Othen used in conjunction with DATA() macro. -### Is only used inside of the TEST modules. +### Defines working directory for test runs. Othen used in conjunction with DATA() macro. +### Is only used inside of the TEST modules. ### -### Documentation: https://wiki.yandex-team.ru/yatool/test/ +### Documentation: https://wiki.yandex-team.ru/yatool/test/ macro TEST_CWD(Arg) { SET(TEST_CWD_VALUE $Arg) } # tag:java-specific MAKE_UBERJAR_VALUE= -### @usage: UBERJAR() -### +### @usage: UBERJAR() +### ### UBERJAR is a single all-in-one jar-archive that includes all its Java dependencies (reachable PEERDIR). -### It also supports shading classes inside the archive by moving them to a different package (similar to the maven-shade-plugin). -### Use UBERJAR inside JAVA_PROGRAM module. -### -### You can use the following macros to configure the archive: -### 1. UBERJAR_HIDING_PREFIX prefix for classes to shade (classes remain in their packages by default) +### It also supports shading classes inside the archive by moving them to a different package (similar to the maven-shade-plugin). +### Use UBERJAR inside JAVA_PROGRAM module. +### +### You can use the following macros to configure the archive: +### 1. UBERJAR_HIDING_PREFIX prefix for classes to shade (classes remain in their packages by default) ### 2. UBERJAR_HIDE_EXCLUDE_PATTERN exclude classes matching this patterns from shading (if enabled). -### 3. UBERJAR_PATH_EXCLUDE_PREFIX the prefix for classes that should not get into the jar archive (all classes are placed into the archive by default) +### 3. UBERJAR_PATH_EXCLUDE_PREFIX the prefix for classes that should not get into the jar archive (all classes are placed into the archive by default) ### 4. UBERJAR_MANIFEST_TRANSFORMER_MAIN add ManifestResourceTransformer class to uberjar processing and specify main-class ### 5. UBERJAR_MANIFEST_TRANSFORMER_ATTRIBUTE add ManifestResourceTransformer class to uberjar processing and specify some attribute ### 6. UBERJAR_APPENDING_TRANSFORMER add AppendingTransformer class to uberjar processing ### 7. UBERJAR_SERVICES_RESOURCE_TRANSFORMER add ServicesResourceTransformer class to uberjar processing -### -### Documentation: https://wiki.yandex-team.ru/yatool/java/ -### -### @see: [JAVA_PROGRAM](#module_JAVA_PROGRAM), [UBERJAR_HIDING_PREFIX](#macro_UBERJAR_HIDING_PREFIX), [UBERJAR_HIDE_EXCLUDE_PATTERN](#macro_UBERJAR_HIDE_EXCLUDE_PATTERN), [UBERJAR_PATH_EXCLUDE_PREFIX](#macro_UBERJAR_PATH_EXCLUDE_PREFIX) +### +### Documentation: https://wiki.yandex-team.ru/yatool/java/ +### +### @see: [JAVA_PROGRAM](#module_JAVA_PROGRAM), [UBERJAR_HIDING_PREFIX](#macro_UBERJAR_HIDING_PREFIX), [UBERJAR_HIDE_EXCLUDE_PATTERN](#macro_UBERJAR_HIDE_EXCLUDE_PATTERN), [UBERJAR_PATH_EXCLUDE_PREFIX](#macro_UBERJAR_PATH_EXCLUDE_PREFIX) macro UBERJAR() { SET(MAKE_UBERJAR_VALUE yes) } @@ -4514,12 +4514,12 @@ macro UBERJAR() { # tag:java-specific UBERJAR_PREFIX_VALUE= UBERJAR_PREFIX_FLAG= -### @usage: UBERJAR_HIDING_PREFIX(Arg) -### -### Set prefix for classes to shade. All classes in UBERJAR will be moved into package prefixed with Arg. -### Classes remain in their packages by default. -### -### @see: [UBERJAR](#macro_UBERJAR) +### @usage: UBERJAR_HIDING_PREFIX(Arg) +### +### Set prefix for classes to shade. All classes in UBERJAR will be moved into package prefixed with Arg. +### Classes remain in their packages by default. +### +### @see: [UBERJAR](#macro_UBERJAR) macro UBERJAR_HIDING_PREFIX(Arg) { SET(UBERJAR_PREFIX_VALUE $Arg) SET(UBERJAR_PREFIX_FLAG ${pre=--shade-prefix :Arg}) @@ -4528,13 +4528,13 @@ macro UBERJAR_HIDING_PREFIX(Arg) { # tag:java-specific UBERJAR_HIDE_EXCLUDE_VALUE= UBERJAR_HIDE_EXCLUDE_FLAGS= -### @usage: UBERJAR_HIDE_EXCLUDE_PATTERN(Args...) -### -### Exculude classes matching this patterns from shading (if enabled). -### Pattern may contain '*' and '**' globs. -### Shading is enabled for UBERJAR program using UBERJAR_HIDING_PREFIX macro. If this macro is not specified all classes are shaded. -### -### @see: [UBERJAR](#macro_UBERJAR), [UBERJAR_HIDING_PREFIX](#macro_UBERJAR_HIDING_PREFIX) +### @usage: UBERJAR_HIDE_EXCLUDE_PATTERN(Args...) +### +### Exculude classes matching this patterns from shading (if enabled). +### Pattern may contain '*' and '**' globs. +### Shading is enabled for UBERJAR program using UBERJAR_HIDING_PREFIX macro. If this macro is not specified all classes are shaded. +### +### @see: [UBERJAR](#macro_UBERJAR), [UBERJAR_HIDING_PREFIX](#macro_UBERJAR_HIDING_PREFIX) macro UBERJAR_HIDE_EXCLUDE_PATTERN(Args...) { SET_APPEND(UBERJAR_HIDE_EXCLUDE_VALUE $ARGS_DELIM $Args) SET_APPEND(UBERJAR_HIDE_EXCLUDE_FLAGS ${pre=--shade-exclude :Args}) @@ -4543,12 +4543,12 @@ macro UBERJAR_HIDE_EXCLUDE_PATTERN(Args...) { # tag:java-specific UBERJAR_PATH_EXCLUDES= UBERJAR_PATH_EXCLUDE_VALUE= -### @usage: UBERJAR_PATH_EXCLUDE_PREFIX(Args...) -### -### Exculude classes matching this patterns from UBERJAR. -### By default all dependencies of UBERJAR program will lend in a .jar archive. -### -### @see: [UBERJAR](#macro_UBERJAR) +### @usage: UBERJAR_PATH_EXCLUDE_PREFIX(Args...) +### +### Exculude classes matching this patterns from UBERJAR. +### By default all dependencies of UBERJAR program will lend in a .jar archive. +### +### @see: [UBERJAR](#macro_UBERJAR) macro UBERJAR_PATH_EXCLUDE_PREFIX(Args...) { SET_APPEND(UBERJAR_PATH_EXCLUDE_VALUE $ARGS_DELIM $Args) SET_APPEND(UBERJAR_PATH_EXCLUDES ${pre=--uber-exclude :Args}) @@ -4611,20 +4611,20 @@ macro UBERJAR_SERVICES_RESOURCE_TRANSFORMER() { # tag:idea-specific IDEA_EXCLUDE_DIRS_VALUE= -### @usage: IDEA_EXCLUDE_DIRS(<excluded dirs>) -### -### Exclude specified directories from an idea project generated by ya ide idea -### Have no effect on regular build. +### @usage: IDEA_EXCLUDE_DIRS(<excluded dirs>) +### +### Exclude specified directories from an idea project generated by ya ide idea +### Have no effect on regular build. macro IDEA_EXCLUDE_DIRS(Args...) { SET_APPEND(IDEA_EXCLUDE_DIRS_VALUE $Args) } # tag:idea-specific IDEA_RESOURCE_DIRS_VALUE= -### @usage: IDEA_RESOURCE_DIRS(<additional dirs>) -### -### Set specified resource directories in an idea project generated by ya ide idea -### Have no effect on regular build. +### @usage: IDEA_RESOURCE_DIRS(<additional dirs>) +### +### Set specified resource directories in an idea project generated by ya ide idea +### Have no effect on regular build. macro IDEA_RESOURCE_DIRS(Args...) { SET_APPEND(IDEA_RESOURCE_DIRS_VALUE $Args) } @@ -4641,9 +4641,9 @@ macro IDEA_MODULE_NAME(Name) { # tag:java-specific JAVAC_FLAGS_VALUE= -### @usage: JAVAC_FLAGS(Args...) -### -### Set additional Java compilation flags. +### @usage: JAVAC_FLAGS(Args...) +### +### Set additional Java compilation flags. macro JAVAC_FLAGS(Args...) { SET_APPEND(JAVAC_OPTS $Args) SET_APPEND(JAVAC_FLAGS_VALUE $ARGS_DELIM $Args) @@ -4674,9 +4674,9 @@ when ($SAVE_JAVAC_GENERATED_SRCS) { # tag:java-specific MAVEN_GROUP_ID_VALUE= ### @usage: MAVEN_GROUP_ID(group_id_for_maven_export) -### -### Set maven export group id for JAVA_PROGRAM() and JAVA_LIBRARY(). -### Have no effect on regular build. +### +### Set maven export group id for JAVA_PROGRAM() and JAVA_LIBRARY(). +### Have no effect on regular build. macro MAVEN_GROUP_ID(Arg) { SET(MAVEN_GROUP_ID_VALUE $Arg) } @@ -4684,16 +4684,16 @@ macro MAVEN_GROUP_ID(Arg) { # tag:java-specific ANNOTATION_PROCESSOR_VALUE= ### @usage: ANNOTATION_PROCESSOR(processors...) -### +### ### The macro is in development. -### Used to specify annotation processors to build JAVA_PROGRAM() and JAVA_LIBRARY(). +### Used to specify annotation processors to build JAVA_PROGRAM() and JAVA_LIBRARY(). macro ANNOTATION_PROCESSOR(Args...) { SET_APPEND(ANNOTATION_PROCESSOR_VALUE $ARGS_DELIM $Args) } EXCLUDE_VALUE= ### EXCLUDE(prefixes) -### +### ### The macro is in development. ### Specifies which libraries should be excluded from the classpath. macro EXCLUDE(Args...) { @@ -4703,28 +4703,28 @@ macro EXCLUDE(Args...) { # tag:java-specific JAVA_SRCS_VALUE= ### @usage: JAVA_SRCS(srcs) -### -### Specify java source files and resources. A macro can be contained in any of four java modules. +### +### Specify java source files and resources. A macro can be contained in any of four java modules. ### Keywords: -### 1. X SRCDIR - specify the directory x is performed relatively to search the source code for these patterns. If there is no SRCDIR, the source will be searched relative to the module directory. -### 2. PACKAGE_PREFIX x - use if source paths relative to the SRCDIR does not coincide with the full class names. For example, if all sources of module are in the same package, you can create a directory package/name , and just put the source code in the SRCDIR and specify PACKAGE_PREFIX package.name. +### 1. X SRCDIR - specify the directory x is performed relatively to search the source code for these patterns. If there is no SRCDIR, the source will be searched relative to the module directory. +### 2. PACKAGE_PREFIX x - use if source paths relative to the SRCDIR does not coincide with the full class names. For example, if all sources of module are in the same package, you can create a directory package/name , and just put the source code in the SRCDIR and specify PACKAGE_PREFIX package.name. ### ### @example: ### - example/ya.make -### -### JAVA_PROGRAM() -### JAVA_SRCS(SRCDIR src/main/java **/*) -### END() -### +### +### JAVA_PROGRAM() +### JAVA_SRCS(SRCDIR src/main/java **/*) +### END() +### ### - example/src/main/java/ru/yandex/example/HelloWorld.java -### -### package ru.yandex.example; -### public class HelloWorld { -### public static void main(String[] args) { -### System.out.println("Hello, World!"); -### } -### } -### +### +### package ru.yandex.example; +### public class HelloWorld { +### public static void main(String[] args) { +### System.out.println("Hello, World!"); +### } +### } +### ### Documentation: https://wiki.yandex-team.ru/yatool/java/#javasrcs macro JAVA_SRCS(Args...) { SET_APPEND(JAVA_SRCS_VALUE $ARGS_DELIM $Args) @@ -4755,21 +4755,21 @@ TEST_CLASSPATH_MANAGED= DEPENDENCY_MANAGEMENT_VALUE= ### @usage: DEPENDENCY_MANAGEMENT(path/to/lib1 path/to/lib2 ...) ### -### Lock version of the library from the contrib/java at some point, so that all unversioned PEERDIRs to this library refer to the specified version. -### -### For example, if the moduse has PEERDIR (contrib/java/junit/junit), and -### 1. specifies DEPENDENCY_MANAGEMENT(contrib/java/junit/junit/4.12), -### the PEERDIR is automatically replaced by contrib/java/junit/junit/4.12; -### 2. doesn't specify DEPENDENCY_MANAGEMENT, PEERDIR automatically replaced +### Lock version of the library from the contrib/java at some point, so that all unversioned PEERDIRs to this library refer to the specified version. +### +### For example, if the moduse has PEERDIR (contrib/java/junit/junit), and +### 1. specifies DEPENDENCY_MANAGEMENT(contrib/java/junit/junit/4.12), +### the PEERDIR is automatically replaced by contrib/java/junit/junit/4.12; +### 2. doesn't specify DEPENDENCY_MANAGEMENT, PEERDIR automatically replaced ### with the default from contrib/java/junit/junit/ya.make. -### These defaults are always there and are supported by maven-import, which puts -### there the maximum version available in contrib/java. +### These defaults are always there and are supported by maven-import, which puts +### there the maximum version available in contrib/java. ### -### The property is transitive. That is, if module A PEERDIRs module B, and B has PEERDIR(contrib/java/junit/junit), and this junit was replaced by junit-4.12, then junit-4.12 will come to A through B. +### The property is transitive. That is, if module A PEERDIRs module B, and B has PEERDIR(contrib/java/junit/junit), and this junit was replaced by junit-4.12, then junit-4.12 will come to A through B. ### -### If some module has both DEPENDENCY_MANAGEMENT(contrib/java/junit/junit/4.12) and PERDIR(contrib/java/junit/junit/4.11), the PEERDIR wins. -### -### Documentation: https://wiki.yandex-team.ru/yatool/java/ +### If some module has both DEPENDENCY_MANAGEMENT(contrib/java/junit/junit/4.12) and PERDIR(contrib/java/junit/junit/4.11), the PEERDIR wins. +### +### Documentation: https://wiki.yandex-team.ru/yatool/java/ macro DEPENDENCY_MANAGEMENT(Args...) { SET_APPEND(DEPENDENCY_MANAGEMENT_VALUE $ARGS_DELIM $Args) _GHOST_PEERDIR($Args) @@ -4855,11 +4855,11 @@ macro JAVA_EXTERNAL_DEPENDENCIES(Args...) { } # tag:java-specific -### @usage _JAVA_PLACEHOLDER #internal +### @usage _JAVA_PLACEHOLDER #internal ### The base module for all Java modules. Defines common properties and dependencies. -module _JAVA_PLACEHOLDER: _BASE_UNIT { +module _JAVA_PLACEHOLDER: _BASE_UNIT { .CMD=TOUCH_JAVA_UNIT - .FINAL_TARGET=yes + .FINAL_TARGET=yes .ALLOWED=DEPENDENCY_MANAGEMENT EXCLUDE .ALIASES=RUN_JAVA_PROGRAM=_RUN_JBUILD_PROGRAM HAS_MANAGEABLE_PEERS=yes @@ -4891,7 +4891,7 @@ module _JAVA_PLACEHOLDER: _BASE_UNIT { when($WITH_GROOVY_VALUE) { PEERDIR+=build/platform/java/groovy contrib/java/org/codehaus/groovy/groovy/${GROOVY_VERSION} } - + when($ERROR_PRONE_VALUE && $JDK_VERSION == "16") { JAVAC_FLAGS_VALUE+=$ERROR_PRONE_JDK16_ADD_OPENS } @@ -4980,20 +4980,20 @@ macro JAR_EXCLUDE(Filters...) { } # tag:sandbox-specific -### @usage: SANDBOX_TASK([Name]) -### -### Multimodule describing Sandbox task (Python code that can be executed by Sandbox system). -### +### @usage: SANDBOX_TASK([Name]) +### +### Multimodule describing Sandbox task (Python code that can be executed by Sandbox system). +### ### When being a final target, this multimodule builds Sandbox binary task. It may PEERDIR other SANDBOX_TASKs as libraries. ### The final artifact is provided when SANDBOX_TASK is referred to by DEPENDS and BUNDLE macros. ### As PEERDIR target, it works like regular PY2_LIBRARY with predefined dependencies on Sandbox SDK to allow code reuse among SANDBOX_TASKs. -### +### ### Currently Sandbox supports only Python 2.x, so both variants will be compatible only with Python 2.x modules ### and will select multimodule variants accordingly. -### -### Documentation: https://wiki.yandex-team.ru/sandbox/tasks/binary +### +### Documentation: https://wiki.yandex-team.ru/sandbox/tasks/binary multimodule SANDBOX_TASK { - module SB_TASK_BIN: _PY2_PROGRAM { + module SB_TASK_BIN: _PY2_PROGRAM { PY_MAIN(sandbox.taskbox.binary) PEERDIR(sandbox/bin sandbox/sdk2 sandbox/sandboxsdk sandbox/taskbox/worker) SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE api.*) @@ -5001,13 +5001,13 @@ multimodule SANDBOX_TASK { SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE library.*) SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE sky*) REGISTER_SANDBOX_IMPORT(${MODDIR}) - when ($FAIL_PY2 == "yes") { - _OK=no - } - otherwise { - PEERDIR+=build/rules/py2_deprecation - } - + when ($FAIL_PY2 == "yes") { + _OK=no + } + otherwise { + PEERDIR+=build/rules/py2_deprecation + } + ASSERT(_OK You are using deprecated Python2-only code (SANDBOX_TASK). Please consider rewriting to 2/3-compatible code.) } module PY2: PY2_LIBRARY { @@ -5018,7 +5018,7 @@ multimodule SANDBOX_TASK { # tag:sandbox-specific multimodule SANDBOX_PY23_TASK { - module SB_TASK_BIN: _PY2_PROGRAM { + module SB_TASK_BIN: _PY2_PROGRAM { PY_MAIN(sandbox.taskbox.binary) PEERDIR(sandbox/bin sandbox/sdk2 sandbox/sandboxsdk sandbox/taskbox/worker) SET_APPEND(NO_CHECK_IMPORTS_FOR_VALUE api.*) @@ -5077,50 +5077,50 @@ multimodule SANDBOX_PY3_TASK { } # tag:python-specific tag:internal -NO_PYTHON_INCLS=no -### @usage: NO_PYTHON_INCLUDES() # internal -### -### Disable dependencies on libraries providing Python headers. -### This is only used in Python libraries themselves to avoid PEERDIR loops. -macro NO_PYTHON_INCLUDES() { - ENABLE(NO_PYTHON_INCLS) -} - +NO_PYTHON_INCLS=no +### @usage: NO_PYTHON_INCLUDES() # internal +### +### Disable dependencies on libraries providing Python headers. +### This is only used in Python libraries themselves to avoid PEERDIR loops. +macro NO_PYTHON_INCLUDES() { + ENABLE(NO_PYTHON_INCLS) +} + # tag:python-specific ### @usage: PYTHON2_ADDINCL() -### -### This macro adds include path for Python headers (Python 2.x variant) without PEERDIR. -### This should be used in 2 cases only: +### +### This macro adds include path for Python headers (Python 2.x variant) without PEERDIR. +### This should be used in 2 cases only: ### - In PY2MODULE since it compiles into .so and uses external Python runtime; -### - In system Python libraries themselves since proper PEERDIR there may create a loop; +### - In system Python libraries themselves since proper PEERDIR there may create a loop; ### In all other cases use USE_PYTHON2 macro instead. -### +### ### Never use this macro in PY2_PROGRAM, PY2_LIBRARY and PY23_LIBRARY: they have everything needed by default. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs macro PYTHON2_ADDINCL() { - _PYTHON_ADDINCL() - SET(MODULE_TAG PY2_NATIVE) - SET(PEERDIR_TAGS CPP_PROTO CPP_FBS PY2_NATIVE YQL_UDF_STATIC __EMPTY__ DLL_LIB) -} - + _PYTHON_ADDINCL() + SET(MODULE_TAG PY2_NATIVE) + SET(PEERDIR_TAGS CPP_PROTO CPP_FBS PY2_NATIVE YQL_UDF_STATIC __EMPTY__ DLL_LIB) +} + # tag:python-specific tag:internal -### @usage: _ARCADIA_PYTHON_ADDINCL() # internal +### @usage: _ARCADIA_PYTHON_ADDINCL() # internal ### This macro sets up Python headers for modules with Arcadia python (e.g. PY2_LIBRARY) and configures module as Python 2.x. -macro _ARCADIA_PYTHON_ADDINCL() { - _PYTHON_ADDINCL() - SET(MODULE_TAG PY2) - SET(PEERDIR_TAGS PY2 PY2_NATIVE PY_PROTO PY2_FBS YQL_UDF_STATIC __EMPTY__ DLL_LIB) -} - +macro _ARCADIA_PYTHON_ADDINCL() { + _PYTHON_ADDINCL() + SET(MODULE_TAG PY2) + SET(PEERDIR_TAGS PY2 PY2_NATIVE PY_PROTO PY2_FBS YQL_UDF_STATIC __EMPTY__ DLL_LIB) +} + # tag:python-specific tag:internal -### @usage: _PYTHON_ADDINCL() # internal -### This macro sets up Python 2.x headers for both Arcadia and non-Arcadia python. -macro _PYTHON_ADDINCL() { - SET(PYTHON2 yes) - SET(PYTHON3 no) +### @usage: _PYTHON_ADDINCL() # internal +### This macro sets up Python 2.x headers for both Arcadia and non-Arcadia python. +macro _PYTHON_ADDINCL() { + SET(PYTHON2 yes) + SET(PYTHON3 no) when ($USE_ARCADIA_PYTHON == "yes") { - ADDINCL+=GLOBAL contrib/libs/python/Include + ADDINCL+=GLOBAL contrib/libs/python/Include CFLAGS+=-DARCADIA_PYTHON_UNICODE_SIZE=$ARCADIA_PYTHON_UNICODE_SIZE } otherwise { @@ -5134,91 +5134,91 @@ macro _PYTHON_ADDINCL() { } # tag:python-specific -### @usage: PYTHON3_ADDINCL() -### -### This macro adds include path for Python headers (Python 3.x variant). -### This should be used in 2 cases only: +### @usage: PYTHON3_ADDINCL() +### +### This macro adds include path for Python headers (Python 3.x variant). +### This should be used in 2 cases only: ### - In PY2MODULE since it compiles into .so and uses external Python runtime; -### - In system Python libraries themselves since peerdir there may create a loop; -### In all other cases use USE_PYTHON3() macro instead. -### -### Never use this macro in PY3_PROGRAM and PY3_LIBRARY and PY23_LIBRARY: they have everything by default. -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs -macro PYTHON3_ADDINCL() { - _PYTHON3_ADDINCL() - SET(MODULE_TAG PY3_NATIVE) - SET(PEERDIR_TAGS CPP_PROTO CPP_FBS PY3_NATIVE YQL_UDF_STATIC __EMPTY__ DLL_LIB) -} - +### - In system Python libraries themselves since peerdir there may create a loop; +### In all other cases use USE_PYTHON3() macro instead. +### +### Never use this macro in PY3_PROGRAM and PY3_LIBRARY and PY23_LIBRARY: they have everything by default. +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/py_srcs +macro PYTHON3_ADDINCL() { + _PYTHON3_ADDINCL() + SET(MODULE_TAG PY3_NATIVE) + SET(PEERDIR_TAGS CPP_PROTO CPP_FBS PY3_NATIVE YQL_UDF_STATIC __EMPTY__ DLL_LIB) +} + # tag:python-specific tag:internal -### @usage: _ARCADIA_PYTHON3_ADDINCL() # internal -### -### This macro sets up Python3 headers for modules with Arcadia python (e.g. PY3_LIBRARY) and configures module as Python 3.x. -macro _ARCADIA_PYTHON3_ADDINCL() { - _PYTHON3_ADDINCL() - SET(MODULE_TAG PY3) +### @usage: _ARCADIA_PYTHON3_ADDINCL() # internal +### +### This macro sets up Python3 headers for modules with Arcadia python (e.g. PY3_LIBRARY) and configures module as Python 3.x. +macro _ARCADIA_PYTHON3_ADDINCL() { + _PYTHON3_ADDINCL() + SET(MODULE_TAG PY3) SET(MODULE_LANG PY3) - SET(PEERDIR_TAGS PY3 PY3_BIN_LIB PY3TEST_LIBRARY PY3_NATIVE PY3_PROTO PY3_FBS PY3_SSQLS YQL_UDF_STATIC __EMPTY__ DLL_LIB) -} - + SET(PEERDIR_TAGS PY3 PY3_BIN_LIB PY3TEST_LIBRARY PY3_NATIVE PY3_PROTO PY3_FBS PY3_SSQLS YQL_UDF_STATIC __EMPTY__ DLL_LIB) +} + # tag:python-specific tag:internal -### @usage: _PYTHON_ADDINCL() # internal -### -### This macro sets up Python 3.x headers for both Arcadia and non-Arcadia python. -macro _PYTHON3_ADDINCL() { - SET(PYTHON3 yes) - SET(PYTHON2 no) +### @usage: _PYTHON_ADDINCL() # internal +### +### This macro sets up Python 3.x headers for both Arcadia and non-Arcadia python. +macro _PYTHON3_ADDINCL() { + SET(PYTHON3 yes) + SET(PYTHON2 no) when ($USE_ARCADIA_PYTHON == "yes") { - CFLAGS+=-DUSE_PYTHON3 - ADDINCL+=GLOBAL contrib/libs/python/Include + CFLAGS+=-DUSE_PYTHON3 + ADDINCL+=GLOBAL contrib/libs/python/Include } otherwise { - when ($USE_SYSTEM_PYTHON) { + when ($USE_SYSTEM_PYTHON) { PEERDIR+=build/platform/python - } - otherwise { - CFLAGS+=$PYTHON_INCLUDE - } + } + otherwise { + CFLAGS+=$PYTHON_INCLUDE + } } } # tag:python-specific ### @usage: USE_PYTHON2() -### -### This adds Python 2.x runtime library to your LIBRARY and makes it Python2-compatible. -### Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. -### +### +### This adds Python 2.x runtime library to your LIBRARY and makes it Python2-compatible. +### Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. +### ### If you'd like to use #include <Python.h> with Python2 specify USE_PYTHON2 or better make it PY2_LIBRARY. -### If you'd like to use #include <Python.h> with Python3 specify USE_PYTHON3 or better make it PY3_LIBRARY. -### If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23_LIBRARY. -### +### If you'd like to use #include <Python.h> with Python3 specify USE_PYTHON3 or better make it PY3_LIBRARY. +### If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23_LIBRARY. +### ### @see: [PY2_LIBRARY](#module_PY2_LIBRARY), [PY3_LIBRARY](#module_PY3_LIBRARY), [PY23_LIBRARY](#multimodule_PY23_LIBRARY) macro USE_PYTHON2() { - _ARCADIA_PYTHON_ADDINCL() - SET(PEERDIR_TAGS PY2 PY2_NATIVE CPP_PROTO CPP_FBS YQL_UDF_STATIC __EMPTY__ DLL_LIB) - PEERDIR(contrib/libs/python) + _ARCADIA_PYTHON_ADDINCL() + SET(PEERDIR_TAGS PY2 PY2_NATIVE CPP_PROTO CPP_FBS YQL_UDF_STATIC __EMPTY__ DLL_LIB) + PEERDIR(contrib/libs/python) } # tag:python-specific -### @usage: USE_PYTHON3() -### -### This adds Python3 library to your LIBRARY and makes it Python3-compatible. -### Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. -### -### If you'd like to use #include <Python.h> with Python3 specify USE_PYTHON3 or better make it PY3_LIBRARY. +### @usage: USE_PYTHON3() +### +### This adds Python3 library to your LIBRARY and makes it Python3-compatible. +### Compatibility means proper PEERDIRs, ADDINCLs and variant selection on PEERDIRs to multimodules. +### +### If you'd like to use #include <Python.h> with Python3 specify USE_PYTHON3 or better make it PY3_LIBRARY. ### If you'd like to use #include <Python.h> with Python2 specify USE_PYTHON2 or better make it PY2_LIBRARY. -### If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23_LIBRARY. -### +### If you'd like to use #include <Python.h> with both Python2 and Python3 convert your LIBRARY to PY23_LIBRARY. +### ### @see: [PY2_LIBRARY](#module_PY2_LIBRARY), [PY3_LIBRARY](#module_PY3_LIBRARY), [PY23_LIBRARY](#multimodule_PY23_LIBRARY) macro USE_PYTHON3() { - _ARCADIA_PYTHON3_ADDINCL() - SET(PEERDIR_TAGS PY3 PY3_BIN_LIB PY3TEST_LIBRARY PY3_NATIVE CPP_PROTO CPP_FBS YQL_UDF_STATIC __EMPTY__ DLL_LIB) - PEERDIR(contrib/libs/python) + _ARCADIA_PYTHON3_ADDINCL() + SET(PEERDIR_TAGS PY3 PY3_BIN_LIB PY3TEST_LIBRARY PY3_NATIVE CPP_PROTO CPP_FBS YQL_UDF_STATIC __EMPTY__ DLL_LIB) + PEERDIR(contrib/libs/python) - when ($USE_ARCADIA_PYTHON == "yes") { - PEERDIR+=library/python/runtime_py3 - } + when ($USE_ARCADIA_PYTHON == "yes") { + PEERDIR+=library/python/runtime_py3 + } } # tag:python-specific @@ -5229,12 +5229,12 @@ when ($PERL_DEFAULT_PEERDIR == "yes") { } # tag:perl-specific -### @usage: USE_PERL_LIB() -### Add dependency on Perl to your LIBRARY +### @usage: USE_PERL_LIB() +### Add dependency on Perl to your LIBRARY macro USE_PERL_LIB() { PEERDIR(build/platform/perl) } - + # tag:perl-specific ### @usage: USE_PERL_514_LIB() ### Add dependency on Perl 5.14 to your LIBRARY @@ -5245,19 +5245,19 @@ macro USE_PERL_514_LIB() { } # tag:perl-specific -### @usage: ADD_PERL_MODULE(Dir ModuleName) -### Add dependency on specified Perl module to the library -macro ADD_PERL_MODULE(Dir, Module) { - PEERDIR($Dir) - SET_APPEND(modules $Module) -} - +### @usage: ADD_PERL_MODULE(Dir ModuleName) +### Add dependency on specified Perl module to the library +macro ADD_PERL_MODULE(Dir, Module) { + PEERDIR($Dir) + SET_APPEND(modules $Module) +} + # tag:allocator -### @usage: ALLOCATOR(Alloc) # Default: LF -### -### Set memory allocator implementation for the PROGRAM()/DLL() module. -### This may only be specified for programs and dlls, use in other modules leads to configuration errors. -### +### @usage: ALLOCATOR(Alloc) # Default: LF +### +### Set memory allocator implementation for the PROGRAM()/DLL() module. +### This may only be specified for programs and dlls, use in other modules leads to configuration errors. +### ### Available allocators are: "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU". ### - LF - lfalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc) ### - LF_YT - Allocator selection for YT (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc/yt/ya.make) @@ -5276,7 +5276,7 @@ macro ADD_PERL_MODULE(Dir, Module) { ### - SYSTEM - Use target system allocator ### - FAKE - Don't link with any allocator ### -### More about allocators in Arcadia: https://wiki.yandex-team.ru/arcadia/allocators/ +### More about allocators in Arcadia: https://wiki.yandex-team.ru/arcadia/allocators/ macro ALLOCATOR(Alloc) { SET(ALLOCATOR $Alloc) @@ -5287,47 +5287,47 @@ macro ALLOCATOR(Alloc) { } } -### @usage: CC_REQUIREMENTS([cpu: <value>] [ram: <value>]) -### -### Override CPU and RAM requirements for all C/C++ compilation commands in the module -macro CC_REQUIREMENTS(reqs...) { - # Here we use the fact that quierements ara put into map during rendering, so last value wins - SET_APPEND(CC_REQUIREMENTS $reqs) -} - -### @usage: LIB_REQUIREMENTS([cpu: <value>] [ram: <value>]) -### -### Override CPU and RAM requirements for library creation comand of a x_LIBRARY modules -macro LIB_REQUIREMENTS(reqs...) { - # Here we use the fact that quierements ara put into map during rendering, so last value wins - SET_APPEND(LIB_REQUIREMENTS $reqs) -} - -### @usage: LD_REQUIREMENTS([cpu: <value>] [ram: <value>]) -### -### Override CPU and RAM requirements for link command in the module -macro LD_REQUIREMENTS(reqs...) { - # Here we use the fact that quierements ara put into map during rendering, so last value wins - SET_APPEND(LD_REQUIREMENTS $reqs) -} - -### @usage: JAVA_REQUIREMENTS([cpu: <value>] [ram: <value>]) -### -### Override CPU and RAM requirements for all C/C++ compilation commands in the module -macro JAVA_REQUIREMENTS(reqs...) { - # Here we use the fact that quierements ara put into map during rendering, so last value wins - SET_APPEND(JAVA_REQUIREMENTS $reqs) -} - - -### @usage: PY_REQUIREMENTS([cpu: <value>] [ram: <value>]) -### -### Override CPU and RAM requirements for all Python build commands -macro PY_REQUIREMENTS(reqs) { - # Here we use the fact that quierem - SET_APPEND(PY_REQUIREMENTS $reqs) -} - +### @usage: CC_REQUIREMENTS([cpu: <value>] [ram: <value>]) +### +### Override CPU and RAM requirements for all C/C++ compilation commands in the module +macro CC_REQUIREMENTS(reqs...) { + # Here we use the fact that quierements ara put into map during rendering, so last value wins + SET_APPEND(CC_REQUIREMENTS $reqs) +} + +### @usage: LIB_REQUIREMENTS([cpu: <value>] [ram: <value>]) +### +### Override CPU and RAM requirements for library creation comand of a x_LIBRARY modules +macro LIB_REQUIREMENTS(reqs...) { + # Here we use the fact that quierements ara put into map during rendering, so last value wins + SET_APPEND(LIB_REQUIREMENTS $reqs) +} + +### @usage: LD_REQUIREMENTS([cpu: <value>] [ram: <value>]) +### +### Override CPU and RAM requirements for link command in the module +macro LD_REQUIREMENTS(reqs...) { + # Here we use the fact that quierements ara put into map during rendering, so last value wins + SET_APPEND(LD_REQUIREMENTS $reqs) +} + +### @usage: JAVA_REQUIREMENTS([cpu: <value>] [ram: <value>]) +### +### Override CPU and RAM requirements for all C/C++ compilation commands in the module +macro JAVA_REQUIREMENTS(reqs...) { + # Here we use the fact that quierements ara put into map during rendering, so last value wins + SET_APPEND(JAVA_REQUIREMENTS $reqs) +} + + +### @usage: PY_REQUIREMENTS([cpu: <value>] [ram: <value>]) +### +### Override CPU and RAM requirements for all Python build commands +macro PY_REQUIREMENTS(reqs) { + # Here we use the fact that quierem + SET_APPEND(PY_REQUIREMENTS $reqs) +} + when ($MIC_ARCH == "yes") { CFLAGS+=-mmic LDFLAGS+=-mmic @@ -5372,9 +5372,9 @@ when ($STRIP_DEBUG_INFO) { NO_SPLIT_DWARF=no } -### @usage: SPLIT_DWARF() -### -### Emit debug info for the PROGRAM/DLL as a separate file <module_name>.debug. +### @usage: SPLIT_DWARF() +### +### Emit debug info for the PROGRAM/DLL as a separate file <module_name>.debug. ### NB: It does not help you to save process RSS but can add problems (see e.g. BEGEMOT-2147). macro SPLIT_DWARF() { SET(SPLIT_DWARF_VALUE yes) @@ -5389,26 +5389,26 @@ when ($SPLIT_DWARF_VALUE == "yes" && $NO_SPLIT_DWARF != "yes" && $NO_DEBUGINFO ! BINUTILS_USED=yes } -### @usage: EXTRALIBS_STATIC(Libs...) -### -### Add the specified external static libraries to the program link +### @usage: EXTRALIBS_STATIC(Libs...) +### +### Add the specified external static libraries to the program link macro EXTRALIBS_STATIC(Args...) { LDFLAGS(-Wl,-Bstatic ${Args} -Wl,-Bdynamic) } -### @usage ADD_COMPILABLE_TRANSLATE(Dict Name Options...) -### -### Generate translation dictionary code to transdict.LOWER(Name).cpp that will than be compiled into library +### @usage ADD_COMPILABLE_TRANSLATE(Dict Name Options...) +### +### Generate translation dictionary code to transdict.LOWER(Name).cpp that will than be compiled into library macro ADD_COMPILABLE_TRANSLATE(Dict, Name, MakeTransDictOptions...) { __translatename_lower=${tolower:Name} __translate_dict=${BINDIR}/transdict.${__translatename_lower}.cpp RUN_PROGRAM(dict/tools/maketransdict -i ${Dict} ${MakeTransDictOptions} ${Name} STDOUT_NOAUTO ${__translate_dict} IN ${Dict}) } -### @usage ADD_COMPILABLE_TRANSLIT(TranslitTable NGrams Name Options...) -### -### Generate transliteration dictionary code -### This will emit both translit, untranslit and ngrams table codes those will be than further compiled into library +### @usage ADD_COMPILABLE_TRANSLIT(TranslitTable NGrams Name Options...) +### +### Generate transliteration dictionary code +### This will emit both translit, untranslit and ngrams table codes those will be than further compiled into library macro ADD_COMPILABLE_TRANSLIT(TranslitTable, NGrams, Name, Options...) { __translitname_lower=${tolower:Name} __translit_table=${BINDIR}/translit_trie_${__translitname_lower}.cpp @@ -5423,38 +5423,38 @@ macro ADD_COMPILABLE_TRANSLIT(TranslitTable, NGrams, Name, Options...) { # tag:python-specific tag:proto tag:deprecated -### @usage GENERATE_PY_PROTOS(ProtoFiles...) # deprecated +### @usage GENERATE_PY_PROTOS(ProtoFiles...) # deprecated ### -### Generate python bindings for protobuf files. -### Macro is obsolete and not recommended for use! +### Generate python bindings for protobuf files. +### Macro is obsolete and not recommended for use! macro GENERATE_PY_PROTOS(FILES...) { foreach (FILE : $FILES) { - _PY_PROTO_CMD($FILE) + _PY_PROTO_CMD($FILE) } } # tag:python-specific tag:proto -macro _GENERATE_PY_PROTOS_INTERNAL(FILES...) { +macro _GENERATE_PY_PROTOS_INTERNAL(FILES...) { foreach (FILE : $FILES) { - _PY_PROTO_CMD_INTERNAL($FILE) + _PY_PROTO_CMD_INTERNAL($FILE) } } # tag:python-specific -macro _GENERATE_PY_EVS_INTERNAL(FILES...) { +macro _GENERATE_PY_EVS_INTERNAL(FILES...) { foreach (FILE : $FILES) { - _PY_EVLOG_CMD_INTERNAL($FILE) + _PY_EVLOG_CMD_INTERNAL($FILE) } } -macro _COPY_FILE_IMPL(FILE, AUTO_DST="", NOAUTO_DST="", OUTPUT_INCLUDES[], REQUIREMENTS[]) { - .CMD=$COPY_CMD ${input:FILE} ${output:AUTO_DST} ${output;noauto:NOAUTO_DST} ${output_include;hide:OUTPUT_INCLUDES} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p CP"} ${kv;hide:"pc light-cyan"} +macro _COPY_FILE_IMPL(FILE, AUTO_DST="", NOAUTO_DST="", OUTPUT_INCLUDES[], REQUIREMENTS[]) { + .CMD=$COPY_CMD ${input:FILE} ${output:AUTO_DST} ${output;noauto:NOAUTO_DST} ${output_include;hide:OUTPUT_INCLUDES} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p CP"} ${kv;hide:"pc light-cyan"} .SEM=copy_file ${input:FILE} ${output:AUTO_DST} ${output;noauto:NOAUTO_DST} } ### @usage: COPY_FILE(File Destination [AUTO] [OUTPUT_INCLUDES Deps...]) -### -### Copy file to build root. It is possible to change both location and the name. +### +### Copy file to build root. It is possible to change both location and the name. ### ### Parameters: ### - File - Source file name. @@ -5464,8 +5464,8 @@ macro _COPY_FILE_IMPL(FILE, AUTO_DST="", NOAUTO_DST="", OUTPUT_INCLUDES[], REQUI ### ### The file will be just copied if AUTO boolean parameter is not specified. You should explicitly ### mention it in SRCS under new name (or specify AUTO boolean parameter) for further processing. -macro COPY_FILE(File, Destination, AUTO?"AUTO_DST":"NOAUTO_DST", OUTPUT_INCLUDES[], REQUIREMENTS[]) { - .CMD=$_COPY_FILE_IMPL($File $AUTO $Destination OUTPUT_INCLUDES $OUTPUT_INCLUDES REQUIREMENTS $REQUIREMENTS) +macro COPY_FILE(File, Destination, AUTO?"AUTO_DST":"NOAUTO_DST", OUTPUT_INCLUDES[], REQUIREMENTS[]) { + .CMD=$_COPY_FILE_IMPL($File $AUTO $Destination OUTPUT_INCLUDES $OUTPUT_INCLUDES REQUIREMENTS $REQUIREMENTS) .SEM=$_COPY_FILE_IMPL($File $AUTO $Destination OUTPUT_INCLUDES $OUTPUT_INCLUDES REQUIREMENTS $REQUIREMENTS) } @@ -5477,12 +5477,12 @@ macro COPY_FILE_WITH_CONTEXT(FILE, DEST, AUTO?"AUTO":"", OUTPUT_INCLUDES[]) { .CMD=$COPY_FILE($FILE $DEST $AUTO OUTPUT_INCLUDES $FILE $OUTPUT_INCLUDES) } -macro _BUNDLE_TARGET(Target, Destination) { +macro _BUNDLE_TARGET(Target, Destination) { .CMD=$MOVE_FILE ${result:Target} ${output;noauto:Destination} ${kv;hide:"p BN"} ${kv;hide:"pc light-cyan"} $VCS_INFO_DISABLE_CACHE__NO_UID__ } -### @usage: TIMEOUT(TIMEOUT) -### +### @usage: TIMEOUT(TIMEOUT) +### ### Sets a timeout on test execution ### ### Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ @@ -5507,7 +5507,7 @@ TEST_PARTITION=SEQUENTIAL # tag:test ### @usage: FORK_TESTS() ### -### Splits a test run on chunks by test classes. +### Splits a test run on chunks by test classes. ### The number of chunks can be overridden using the macro SPLIT_FACTOR. ### ### Allows to run tests in parallel. Supported in UNITTEST, JTEST/JUNIT5 and PY2TEST/PY3TEST modules. @@ -5535,9 +5535,9 @@ macro FORK_SUBTESTS(MODE...) { # tag:test ### @usage: SPLIT_FACTOR(x) ### -### Sets the number of chunks for parallel run tests when used in test module with FORK_TESTS() or FORK_SUBTESTS(). -### If none of those is specified this macro implies FORK_TESTS(). -### +### Sets the number of chunks for parallel run tests when used in test module with FORK_TESTS() or FORK_SUBTESTS(). +### If none of those is specified this macro implies FORK_TESTS(). +### ### Supports C++ ut and PyTest. ### ### Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ @@ -5561,39 +5561,39 @@ macro FORK_TEST_FILES() { TEST_SIZE_NAME=SMALL ### @usage: SIZE(SMALL/MEDIUM/LARGE) ### -### Set the 'size' for the test. Each 'size' has own set of resrtictions, SMALL bein the most restricted and LARGE being the list. -### See documentation on test system for more details. -### +### Set the 'size' for the test. Each 'size' has own set of resrtictions, SMALL bein the most restricted and LARGE being the list. +### See documentation on test system for more details. +### ### Documentation about the system test: https://wiki.yandex-team.ru/yatool/test/ macro SIZE(Type) { SET(TEST_SIZE_NAME $Type) } -### @usage: JOIN_SRCS(Out Src...) -### -### Join set of sources into single file named Out and send it for further processing. -### This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. -### You should specify file name with the extension as Out. Futher processing will be done according this extension. +### @usage: JOIN_SRCS(Out Src...) +### +### Join set of sources into single file named Out and send it for further processing. +### This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. +### You should specify file name with the extension as Out. Futher processing will be done according this extension. macro JOIN_SRCS(Out, Src...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/gen_join_srcs.py"} ${output:Out} --ya-start-command-file ${input;rootrel:Src} --ya-end-command-file ${output_include;hide:Src} ${kv;hide:"p JS"} ${kv;hide:"pc magenta"} .SEM=target_joined_source $Out ${input:Src} ${output;hide;suf=.o:Out} && modules_required yandex_common.cmake _CONDITIONAL_SRCS($TIDY_VALUE $Src) } -### @usage: JOIN_SRCS_GLOBAL(Out Src...) -### -### Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). -### This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. +### @usage: JOIN_SRCS_GLOBAL(Out Src...) +### +### Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). +### This macro doesn't place all file into Out, it emits #include<Src>... Use the for C++ source files only. ### You should specify file name with the extension as Out. Further processing will be done according to this extension. macro JOIN_SRCS_GLOBAL(Out, Src...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/gen_join_srcs.py"} ${output;noauto:Out} --ya-start-command-file ${input;rootrel:Src} --ya-end-command-file ${output_include;hide:Src} ${kv;hide:"p JS"} ${kv;hide:"pc magenta"} SRCS(GLOBAL $Out) } -### @usage: FLAT_JOIN_SRCS_GLOBAL(Out Src...) -### -### Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). -### This macro places all files into single file, so will work with any sources. +### @usage: FLAT_JOIN_SRCS_GLOBAL(Out Src...) +### +### Join set of sources into single file named Out and send it for further processing as if it were listed as SRCS(GLOBAL Out). +### This macro places all files into single file, so will work with any sources. ### You should specify file name with the extension as Out. Further processing will be done according to this extension. macro FLAT_JOIN_SRCS_GLOBAL(Out, Src...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/fs_tools.py"} cat ${output;noauto:Out} --ya-start-command-file ${input:Src} --ya-end-command-file ${output_include;hide:Src} ${kv;hide:"p JS"} ${kv;hide:"pc magenta"} @@ -5606,20 +5606,20 @@ SSE2_CFLAGS= SSE3_CFLAGS= SSSE3_CFLAGS= SSE41_CFLAGS= -SSE42_CFLAGS= -POPCNT_CFLAGS= -PCLMUL_CFLAGS= -CX16_FLAGS= +SSE42_CFLAGS= +POPCNT_CFLAGS= +PCLMUL_CFLAGS= +CX16_FLAGS= AVX_CFLAGS= AVX2_CFLAGS= AVX512_CFLAGS= - + # tag:cpu -SSE_DEFINES= -SSE_CFLAGS= -SSE4_DEFINES= -SSE4_CFLAGS= - +SSE_DEFINES= +SSE_CFLAGS= +SSE4_DEFINES= +SSE4_CFLAGS= + # tag:cpu when (($ARCH_X86_64 || $ARCH_I386) && $DISABLE_INSTRUCTION_SETS != "yes") { when ($CLANG || $CLANG_CL || $GCC) { @@ -5628,9 +5628,9 @@ when (($ARCH_X86_64 || $ARCH_I386) && $DISABLE_INSTRUCTION_SETS != "yes") { SSE3_CFLAGS=-msse3 SSSE3_CFLAGS=-mssse3 SSE41_CFLAGS=-msse4.1 - SSE42_CFLAGS=-msse4.2 - POPCNT_CFLAGS=-mpopcnt - PCLMUL_CFLAGS=-mpclmul + SSE42_CFLAGS=-msse4.2 + POPCNT_CFLAGS=-mpopcnt + PCLMUL_CFLAGS=-mpclmul AVX_CFLAGS=-mavx # On Intel FMA3 instruction set comes together with AVX-2 extension starting with Broadwell / Haswell. @@ -5647,58 +5647,58 @@ when (($ARCH_X86_64 || $ARCH_I386) && $DISABLE_INSTRUCTION_SETS != "yes") { # See: # https://en.wikichip.org/wiki/x86/avx-512 AVX512_CFLAGS=-mavx512f -mavx512cd -mavx512bw -mavx512dq -mavx512vl - when ($ARCH_X86_64 && $OS_ANDROID != "yes") { - CX16_FLAGS=-mcx16 - } - SSE_DEFINES=-DSSE_ENABLED=1 -DSSE3_ENABLED=1 -DSSSE3_ENABLED=1 - SSE4_DEFINES=-DSSE41_ENABLED=1 -DSSE42_ENABLED=1 -DPOPCNT_ENABLED=1 -DCX16_ENABLED=1 + when ($ARCH_X86_64 && $OS_ANDROID != "yes") { + CX16_FLAGS=-mcx16 + } + SSE_DEFINES=-DSSE_ENABLED=1 -DSSE3_ENABLED=1 -DSSSE3_ENABLED=1 + SSE4_DEFINES=-DSSE41_ENABLED=1 -DSSE42_ENABLED=1 -DPOPCNT_ENABLED=1 -DCX16_ENABLED=1 } elsewhen ($MSVC) { SSE2_CFLAGS=/D__SSE2__=1 SSE3_CFLAGS=/D__SSE3__=1 SSSE3_CFLAGS=/D__SSSE3__=1 - SSE41_CFLAGS=/D__SSE4_1__=1 - SSE42_CFLAGS=/D__SSE4_2__=1 - POPCNT_CFLAGS=/D__POPCNT__=1 - PCLMUL_CFLAGS=/D__PCLMUL__=1 - AVX_CFLAGS=/arch:AVX /DAVX_ENABLED=1 - AVX2_CFLAGS=/arch:AVX2 /DAVX2_ENABLED=1 + SSE41_CFLAGS=/D__SSE4_1__=1 + SSE42_CFLAGS=/D__SSE4_2__=1 + POPCNT_CFLAGS=/D__POPCNT__=1 + PCLMUL_CFLAGS=/D__PCLMUL__=1 + AVX_CFLAGS=/arch:AVX /DAVX_ENABLED=1 + AVX2_CFLAGS=/arch:AVX2 /DAVX2_ENABLED=1 AVX512_CFLAGS=/arch:AVX512 /DAVX512_ENABLED=1 - SSE_DEFINES=/DSSE_ENABLED=1 /DSSE3_ENABLED=1 /DSSSE3_ENABLED=1 - SSE4_DEFINES=/DSSE41_ENABLED=1 /DSSE42_ENABLED=1 /DPOPCNT_ENABLED=1 /DCX16_ENABLED=1 + SSE_DEFINES=/DSSE_ENABLED=1 /DSSE3_ENABLED=1 /DSSSE3_ENABLED=1 + SSE4_DEFINES=/DSSE41_ENABLED=1 /DSSE42_ENABLED=1 /DPOPCNT_ENABLED=1 /DCX16_ENABLED=1 } - SSE_CFLAGS=$SSE2_CFLAGS $SSE3_CFLAGS $SSSE3_CFLAGS - SSE4_CFLAGS=$SSE41_CFLAGS $SSE42_CFLAGS $POPCNT_CFLAGS $CX16_FLAGS - when ($ARCH_I386 && $OS_ANDROID == "yes") { - USE_SSE4=no - } + SSE_CFLAGS=$SSE2_CFLAGS $SSE3_CFLAGS $SSSE3_CFLAGS + SSE4_CFLAGS=$SSE41_CFLAGS $SSE42_CFLAGS $POPCNT_CFLAGS $CX16_FLAGS + when ($ARCH_I386 && $OS_ANDROID == "yes") { + USE_SSE4=no + } +} +otherwise { + USE_SSE4=no + CPU_CHECK=no } -otherwise { - USE_SSE4=no - CPU_CHECK=no -} # tag:cpu -when ($NOSSE == "yes") { - USE_SSE4=no -} - +when ($NOSSE == "yes") { + USE_SSE4=no +} + # tag:cpu -### @usage: NO_SSE4() -### -### Compile module without SSE4 -macro NO_SSE4() { - SET(USE_SSE4 no) -} - +### @usage: NO_SSE4() +### +### Compile module without SSE4 +macro NO_SSE4() { + SET(USE_SSE4 no) +} + # tag:cpu -### @usage: NO_CPU_CHECK() -### -### Compile module without startup CPU features check -macro NO_CPU_CHECK() { - SET(CPU_CHECK no) -} - +### @usage: NO_CPU_CHECK() +### +### Compile module without startup CPU features check +macro NO_CPU_CHECK() { + SET(CPU_CHECK no) +} + ### @usage: ADDINCLSELF() ### ### The macro adds the -I<project source path> flag to the source compilation flags of the current project. @@ -5723,14 +5723,14 @@ macro SET_COMPILE_OUTPUTS_MODIFIERS(NOREL?";norel":"") { _EMPTY_CMD= # tag:src-processing tag:internal -### @usage: _SRC(Ext Src Flags) # internal -### -### Basic building block of extension-based command dispatching -### To enable specific extension processing define _SRC() macro with fixed first argument (Ext). -### Internal logic will apply this macro to all files with this Ext listed in SRC/SRCS macros or outputs -### of other commands (except ones marked as noauto) +### @usage: _SRC(Ext Src Flags) # internal +### +### Basic building block of extension-based command dispatching +### To enable specific extension processing define _SRC() macro with fixed first argument (Ext). +### Internal logic will apply this macro to all files with this Ext listed in SRC/SRCS macros or outputs +### of other commands (except ones marked as noauto) macro _SRC(EXT, SRC, SRCFLAGS...) { - # Generic macro definition for _SRC (just a placeholder, it does nothing) + # Generic macro definition for _SRC (just a placeholder, it does nothing) } # tag:src-processing @@ -5751,7 +5751,7 @@ macro _SRC("s79", SRC, SRCFLAGS...) { # tag:src-processing macro _SRC("mm", SRC, SRCFLAGS...) { - .CMD=$C_COMPILER $C_FLAGS_PLATFORM -x objective-c++ -fobjc-arc -fobjc-abi-version=2 -c -o ${output:SRC.o} ${input:SRC} $CXXFLAGS ${pre=-I:_C__INCLUDE} ${SRCFLAGS} ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p CC"} ${kv;hide:"pc light-green"} $TOOLCHAIN_ENV + .CMD=$C_COMPILER $C_FLAGS_PLATFORM -x objective-c++ -fobjc-arc -fobjc-abi-version=2 -c -o ${output:SRC.o} ${input:SRC} $CXXFLAGS ${pre=-I:_C__INCLUDE} ${SRCFLAGS} ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p CC"} ${kv;hide:"pc light-green"} $TOOLCHAIN_ENV } # tag:src-processing @@ -5855,17 +5855,17 @@ macro _SRC("proto", SRC, SRCFLAGS...) { # tag:src-processing macro _SRC("gztproto", SRC, SRCFLAGS...) { - # _PROTO__INCLUDE is before ARCADIA_ROOT in includes because in gazetteer we don't use builtins now and paths'canonization (resolving) depends on order of roots. + # _PROTO__INCLUDE is before ARCADIA_ROOT in includes because in gazetteer we don't use builtins now and paths'canonization (resolving) depends on order of roots. # descriptor.proto must be resolved as google/protobuf/descriptor.proto .CMD=${tool:"dict/gazetteer/converter"} -I$PROTOBUF_PATH ${pre="-I":_PROTO__INCLUDE} -I$ARCADIA_ROOT ${SRCFLAGS} ${input:SRC} ${output;nopath;noext;norel:SRC.proto} ${kv;hide:"p GZ"} ${kv;hide:"pc yellow"} .PEERDIR=kernel/gazetteer/proto } # tag:src-processing -macro _SRC("cfgproto", SRC, SRCFLAGS...) { - .CMD=$_CPP_CFGPROTO_CMD($SRC) -} - +macro _SRC("cfgproto", SRC, SRCFLAGS...) { + .CMD=$_CPP_CFGPROTO_CMD($SRC) +} + # tag:src-processing macro _SRC("pyx", SRC, SRCFLAGS...) { # Copy-paste from BUILDWITH_CYTHON @@ -5890,7 +5890,7 @@ macro _SRC("ssqls", SRC, SRCFLAGS...) { # tag:src-processing macro _SRC("f", SRC, SRCFLAGS...) { - .CMD=$YMAKE_PYTHON ${input:"build/scripts/f2c.py"} -t ${tool:"contrib/tools/f2c"} -c ${input:SRC} -o ${output:SRC.c} ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p FT"} ${kv;hide:"pc light-green"} + .CMD=$YMAKE_PYTHON ${input:"build/scripts/f2c.py"} -t ${tool:"contrib/tools/f2c"} -c ${input:SRC} -o ${output:SRC.c} ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p FT"} ${kv;hide:"pc light-green"} .PEERDIR=contrib/libs/libf2c .ADDINCL=contrib/libs/libf2c } @@ -5946,11 +5946,11 @@ macro _SRC("asm", SRC, SRCFLAGS...) { } # tag:src-processing -macro _SRC("lua", SRC, SRCFLAGS...) { - .CMD=${cwd:LUAJIT_PATH} ${tool:"contrib/libs/luajit/compiler"} -b -g ${input:SRC} ${SRCFLAGS} ${global;output;suf=.o:SRC} ${kv;hide:"p LJ"} ${kv;hide:"pc light-cyan"} - .PEERDIR=$LUAJIT_PATH -} - +macro _SRC("lua", SRC, SRCFLAGS...) { + .CMD=${cwd:LUAJIT_PATH} ${tool:"contrib/libs/luajit/compiler"} -b -g ${input:SRC} ${SRCFLAGS} ${global;output;suf=.o:SRC} ${kv;hide:"p LJ"} ${kv;hide:"pc light-cyan"} + .PEERDIR=$LUAJIT_PATH +} + # tag:src-processing macro _SRC("cu", SRC, SRCFLAGS...) { .CMD=$_SRC_CU_CMD @@ -5971,7 +5971,7 @@ macro _SRC("fbs64", SRC, SRCFLAGS...) { macro _SRC("pysrc", SRC, SRCFLAGS...) { .CMD=$_SRC_PYSRC($SRC, $SRCFLAGS) } - + # tag:src-processing macro _SRC_py2src(SRC, SRCFLAGS...) { .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/compile_pysrc.py"} --input ${input:SRC} --output ${output;noext;suf=.py2_raw.cpp:SRC} --rescompiler ${tool:"tools/rescompiler"} py2 --python $(PYTHON)/python --py_compile ${input:"build/scripts/py_compile.py"} ${kv;hide:"p P2"} ${kv;hide:"pc light-green"} @@ -6051,14 +6051,14 @@ macro _SRC_masm(SRC, SRCFLAGS...) { } # tag:lua-specific -### @usage: COMPILE_LUA(Src, [NAME <import_name>]) -### -### Compile LUA source file to object code using LUA 2.0 -### Optionally override import name which is by default reflects Src name -macro COMPILE_LUA(Src, NAME="") { - .CMD=$_SRC(lua, $Src, ${pre=-n :NAME}) -} - +### @usage: COMPILE_LUA(Src, [NAME <import_name>]) +### +### Compile LUA source file to object code using LUA 2.0 +### Optionally override import name which is by default reflects Src name +macro COMPILE_LUA(Src, NAME="") { + .CMD=$_SRC(lua, $Src, ${pre=-n :NAME}) +} + # tag:lua-specific ### @usage: _SRC_lua_21(SRC [SRCFLAGS...]) # internal ### @@ -6069,14 +6069,14 @@ macro _SRC_lua_21(SRC, SRCFLAGS...) { } # tag:lua-specific -### @usage: COMPILE_LUA_21(Src, [NAME <import_name>]) -### +### @usage: COMPILE_LUA_21(Src, [NAME <import_name>]) +### ### Compile LUA source file to object code using LUA 2.1 -### Optionally override import name which is by default reflects Src name -macro COMPILE_LUA_21(Src, NAME="") { +### Optionally override import name which is by default reflects Src name +macro COMPILE_LUA_21(Src, NAME="") { .CMD=$_SRC_lua_21($Src, ${pre=-n :NAME}) -} - +} + GETTEXT_KEEP_PATH=no _MO_OUTPUT= when ($GETTEXT_KEEP_PATH == "yes") { @@ -6135,29 +6135,29 @@ macro YDL_DESC_USE_BINARY() { SET_APPEND(YDL_DESC_FLAGS $YDL_DESC_FLAGS_BINARY) } -### @usage SRC(File Flags...) -### -### Compile single file with extra Flags. -### Compilation is driven by the last extension of the File and Flags are specific to corresponding compilation command +### @usage SRC(File Flags...) +### +### Compile single file with extra Flags. +### Compilation is driven by the last extension of the File and Flags are specific to corresponding compilation command macro SRC(FILE, FLAGS...) { _SRC(${lastext:FILE} $FILE $FLAGS) } -### @usage: SRCS(<[GLOBAL] File> ...) +### @usage: SRCS(<[GLOBAL] File> ...) ### -### Source files of the project. Files are built according to their extension and put int module output or fed to ultimate PROGRAM/DLL depending on GLOBAL presence. +### Source files of the project. Files are built according to their extension and put int module output or fed to ultimate PROGRAM/DLL depending on GLOBAL presence. ### Arcadia Paths from the root and is relative to the project's LIST are supported ### -### GLOBAL marks next file as direct input to link phase of the program/shared library project built into. This prevents symbols of the file to be excluded by linker as unused. +### GLOBAL marks next file as direct input to link phase of the program/shared library project built into. This prevents symbols of the file to be excluded by linker as unused. ### The scope of the GLOBAL keyword is the following file (that is, in the case of SRCS(GLOBAL foo.cpp bar.cpp) global will be only foo.cpp) ### ### @example: ### ### LIBRARY(test_global) -### SRCS(GLOBAL foo.cpp) +### SRCS(GLOBAL foo.cpp) ### END() -### -### This will produce foo.o and feed it to any PROGRAM/DLL module transitively depending on test_global library. The library itself will be empty and won't produce .a file. +### +### This will produce foo.o and feed it to any PROGRAM/DLL module transitively depending on test_global library. The library itself will be empty and won't produce .a file. macro SRCS(FILES...) { foreach (FILE : $FILES) { _SRC(${lastext:FILE} $FILE) @@ -6165,50 +6165,50 @@ macro SRCS(FILES...) { } # tag:cpu tag:src-processing -### @usage SRC_C_SSE2(File Flags...) -### Compile single .c-file with SSE2 and extra Flags. +### @usage SRC_C_SSE2(File Flags...) +### Compile single .c-file with SSE2 and extra Flags. macro SRC_C_SSE2(FILE, FLAGS...) { _SRC(c $FILE $SSE2_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .sse2) } # tag:cpu tag:src-processing -### @usage SRC_C_SSE3(File Flags...) -### Compile single .c-file with SSE3 and extra Flags. +### @usage SRC_C_SSE3(File Flags...) +### Compile single .c-file with SSE3 and extra Flags. macro SRC_C_SSE3(FILE, FLAGS...) { _SRC(c $FILE $SSE3_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .sse3) } # tag:cpu tag:src-processing -### @usage SRC_C_SSSE3(File Flags...) -### Compile single .c-file with SSSE3 and extra Flags. +### @usage SRC_C_SSSE3(File Flags...) +### Compile single .c-file with SSSE3 and extra Flags. macro SRC_C_SSSE3(FILE, FLAGS...) { _SRC(c $FILE $SSSE3_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .ssse3) } # tag:cpu tag:src-processing -### @usage SRC_C_SSE41(File Flags...) -### Compile single .c-file with SSE4.1 and extra Flags. +### @usage SRC_C_SSE41(File Flags...) +### Compile single .c-file with SSE4.1 and extra Flags. macro SRC_C_SSE41(FILE, FLAGS...) { _SRC(c $FILE $SSE41_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .sse41) } # tag:cpu tag:src-processing -### @usage SRC_C_SSE4(File Flags...) -### Compile single .c-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. -macro SRC_C_SSE4(FILE, FLAGS...) { +### @usage SRC_C_SSE4(File Flags...) +### Compile single .c-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. +macro SRC_C_SSE4(FILE, FLAGS...) { _SRC(c $FILE $SSE4_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .sse4) -} - +} + # tag:cpu tag:src-processing -### @usage SRC_C_AVX(File Flags...) -### Compile single .c-file with AVX and extra Flags. +### @usage SRC_C_AVX(File Flags...) +### Compile single .c-file with AVX and extra Flags. macro SRC_C_AVX(FILE, FLAGS...) { _SRC(c $FILE $AVX_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .avx) } # tag:cpu tag:src-processing -### @usage SRC_C_AVX2(File Flags...) -### Compile single .c-file with AVX2 and extra Flags. +### @usage SRC_C_AVX2(File Flags...) +### Compile single .c-file with AVX2 and extra Flags. macro SRC_C_AVX2(FILE, FLAGS...) { _SRC(c $FILE $AVX2_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .avx2) } @@ -6221,107 +6221,107 @@ macro SRC_CPP_PIC(FILE, FLAGS...) { } # tag:cpu tag:src-processing -### @usage SRC_CPP_SSE2(File Flags...) -### Compile single .cpp-file with SSE2 and extra Flags. +### @usage SRC_CPP_SSE2(File Flags...) +### Compile single .cpp-file with SSE2 and extra Flags. macro SRC_CPP_SSE2(FILE, FLAGS...) { _SRC(cpp $FILE $SSE2_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .sse2) } # tag:cpu tag:src-processing -### @usage SRC_CPP_SSE3(File Flags...) -### Compile single .cpp-file with SSE3 and extra Flags. +### @usage SRC_CPP_SSE3(File Flags...) +### Compile single .cpp-file with SSE3 and extra Flags. macro SRC_CPP_SSE3(FILE, FLAGS...) { _SRC(cpp $FILE $SSE3_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .sse3) } # tag:cpu tag:src-processing -### @usage SRC_CPP_SSSE3(File Flags...) -### Compile single .cpp-file with SSSE3 and extra Flags. +### @usage SRC_CPP_SSSE3(File Flags...) +### Compile single .cpp-file with SSSE3 and extra Flags. macro SRC_CPP_SSSE3(FILE, FLAGS...) { _SRC(cpp $FILE $SSSE3_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .sss3) } # tag:cpu tag:src-processing -### @usage SRC_CPP_SSE41(File Flags...) -### Compile single .cpp-file with SSE4.1 and extra Flags. +### @usage SRC_CPP_SSE41(File Flags...) +### Compile single .cpp-file with SSE4.1 and extra Flags. macro SRC_CPP_SSE41(FILE, FLAGS...) { _SRC(cpp $FILE $SSE41_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .sse41) } # tag:cpu tag:src-processing -### @usage SRC_CPP_SSE4(File Flags...) -### Compile single .cpp-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. -macro SRC_CPP_SSE4(FILE, FLAGS...) { +### @usage SRC_CPP_SSE4(File Flags...) +### Compile single .cpp-file with SSE4 (SSE4.1, SSE4.2 and POPCNT) and extra Flags. +macro SRC_CPP_SSE4(FILE, FLAGS...) { _SRC(cpp $FILE $SSE4_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .sse4) -} - +} + # tag:cpu tag:src-processing -### @usage SRC_CPP_AVX(File Flags...) -### Compile single .cpp-file with AVX and extra Flags. +### @usage SRC_CPP_AVX(File Flags...) +### Compile single .cpp-file with AVX and extra Flags. macro SRC_CPP_AVX(FILE, FLAGS...) { _SRC(cpp $FILE $AVX_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .avx) } # tag:cpu tag:src-processing -### @usage SRC_CPP_AVX2(File Flags...) -### Compile single .cpp-file with AVX2 and extra Flags. +### @usage SRC_CPP_AVX2(File Flags...) +### Compile single .cpp-file with AVX2 and extra Flags. macro SRC_CPP_AVX2(FILE, FLAGS...) { _SRC(cpp $FILE $AVX2_CFLAGS $FLAGS COMPILE_OUT_SUFFIX .avx2) } # tag:python-processing tag:cython # TODO: use it in [.pyx] cmd -### @usage: BUILDWITH_CYTHON_CPP(Src Options...) +### @usage: BUILDWITH_CYTHON_CPP(Src Options...) ### -### Generates .cpp file from .pyx. +### Generates .cpp file from .pyx. macro BUILDWITH_CYTHON_CPP(Src, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} --cplus ${CYTHON_CPP_OUTPUT_INCLUDES} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} -o ${output;tobindir:Src.cpp} $CYTHON_OUTPUT_INCLUDES ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p CY"} ${kv;hide:"pc yellow"} ADDINCL(FOR cython contrib/tools/cython/Cython/Includes) } # tag:python-processing tag:cython tag:internal -### @usage: _BUILDWITH_CYTHON_CPP_DEP(Src Dep Options...) # internal -### -### Generates .cpp file from .pyx and attach extra input Dep. -### If Dep changes the .cpp file will be re-generated. -macro _BUILDWITH_CYTHON_CPP_DEP(Src, Dep, Options...) { +### @usage: _BUILDWITH_CYTHON_CPP_DEP(Src Dep Options...) # internal +### +### Generates .cpp file from .pyx and attach extra input Dep. +### If Dep changes the .cpp file will be re-generated. +macro _BUILDWITH_CYTHON_CPP_DEP(Src, Dep, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} --cplus ${CYTHON_CPP_OUTPUT_INCLUDES} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} ${input;hide:Dep} -o ${output;tobindir:Src.cpp} $CYTHON_OUTPUT_INCLUDES ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p CY"} ${kv;hide:"pc yellow"} ADDINCL(FOR cython contrib/tools/cython/Cython/Includes) } # tag:python-processing tag:cython -### @usage: BUILDWITH_CYTHON_C(Src Options...) +### @usage: BUILDWITH_CYTHON_C(Src Options...) ### -### Generates .c file from .pyx. +### Generates .c file from .pyx. macro BUILDWITH_CYTHON_C(Src, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} -o ${output;tobindir:Src.c} $CYTHON_OUTPUT_INCLUDES ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p CY"} ${kv;hide:"pc yellow"} ADDINCL(FOR cython contrib/tools/cython/Cython/Includes) } # tag:python-processing tag:cython tag:internal -### @usage: _BUILDWITH_CYTHON_C_DEP(Src Dep Options...) # internal -### -### Generates .c file from .pyx and attach extra input Dep. -### If Dep changes the .c file will be re-generated. -macro _BUILDWITH_CYTHON_C_DEP(Src, Dep, Options...) { +### @usage: _BUILDWITH_CYTHON_C_DEP(Src Dep Options...) # internal +### +### Generates .c file from .pyx and attach extra input Dep. +### If Dep changes the .c file will be re-generated. +macro _BUILDWITH_CYTHON_C_DEP(Src, Dep, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} ${input;hide:Dep} -o ${output;tobindir:Src.c} $CYTHON_OUTPUT_INCLUDES ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p CY"} ${kv;hide:"pc yellow"} ADDINCL(FOR cython contrib/tools/cython/Cython/Includes) } # tag:python-processing tag:cython tag:internal -### @usage: _BUILDWITH_CYTHON_C_H(Src Dep Options...) # internal +### @usage: _BUILDWITH_CYTHON_C_H(Src Dep Options...) # internal ### ### BUILDWITH_CYTHON_C without .pyx infix and with cdef public .h file. -macro _BUILDWITH_CYTHON_C_H(Src, Dep, Options...) { +macro _BUILDWITH_CYTHON_C_H(Src, Dep, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} ${input;hide:Dep} -o ${output;noext;tobindir:Src.c} ${output;hide;addincl;noext;tobindir:Src.h} $CYTHON_OUTPUT_INCLUDES ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p CY"} ${kv;hide:"pc yellow"} ADDINCL(FOR cython contrib/tools/cython/Cython/Includes) } # tag:python-processing tag:cython tag:internal -### @usage: _BUILDWITH_CYTHON_C_API_H(Src Dep Options...) # internal +### @usage: _BUILDWITH_CYTHON_C_API_H(Src Dep Options...) # internal ### ### BUILDWITH_CYTHON_C_H with cdef api _api.h file. -macro _BUILDWITH_CYTHON_C_API_H(Src, Dep, Options...) { +macro _BUILDWITH_CYTHON_C_API_H(Src, Dep, Options...) { .CMD=$RUN_CYTHON_SCRIPT $CYTHON_OPTIONS ${Options} ${pre=-I:_CYTHON__INCLUDE} ${input:Src} ${input;hide:Dep} -o ${output;noext;tobindir:Src.c} ${output;hide;addincl;noext;tobindir:Src.h} ${output;hide;addincl;noext;defext=_api.h;tobindir:Src} $CYTHON_OUTPUT_INCLUDES ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p CY"} ${kv;hide:"pc yellow"} ADDINCL(FOR cython contrib/tools/cython/Cython/Includes) } @@ -6345,63 +6345,63 @@ macro _SWIG_PYTHON_C(Src, DstSubPrefix) { ADDINCL(FOR swig $_SWIG_LIBRARY/python FOR swig $_SWIG_LIBRARY) } -### @usage: BUILDWITH_RAGEL6(Src Options...) -### -### Compile .rl file using Ragel6. +### @usage: BUILDWITH_RAGEL6(Src Options...) +### +### Compile .rl file using Ragel6. macro BUILDWITH_RAGEL6(Src, Options...) { .CMD=$RUN_NO_SANITIZE ${tool:"contrib/tools/ragel6"} $RAGEL6_FLAGS ${Options} -I${ARCADIA_ROOT} -o ${output;nopath;noext;defext=.rl6.cpp:Src} ${input:Src} ${kv;hide:"p R6"} ${kv;hide:"pc yellow"} } # tag:python-processing tag:internal # TODO: use it in [.pyx] cmd -### @usage: _PY_REGISTER() # internal +### @usage: _PY_REGISTER() # internal +### +### Register Python 2.x module in internal resource file system. Arcadia Python 2.x importer will be retrieve these on import directive. ### -### Register Python 2.x module in internal resource file system. Arcadia Python 2.x importer will be retrieve these on import directive. -### ### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister macro _PY_REGISTER(Func) { - .CMD=$YMAKE_PYTHON ${input:"build/scripts/gen_py_reg.py"} $Func ${output;noauto:Func.reg.cpp} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} + .CMD=$YMAKE_PYTHON ${input:"build/scripts/gen_py_reg.py"} $Func ${output;noauto:Func.reg.cpp} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} SRCS(GLOBAL $Func.reg.cpp) } # tag:python-processing tag:internal -### @usage: _PY3_REGISTER() # internal -### -### Register Python 3.x module in internal resource file system. Arcadia Python 3.x importer will be retrieve these on import directive -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister +### @usage: _PY3_REGISTER() # internal +### +### Register Python 3.x module in internal resource file system. Arcadia Python 3.x importer will be retrieve these on import directive +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister macro _PY3_REGISTER(Func) { - .CMD=$YMAKE_PYTHON ${input:"build/scripts/gen_py3_reg.py"} $Func ${output;noauto:Func.reg3.cpp} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} - SRCS(GLOBAL $Func.reg3.cpp) + .CMD=$YMAKE_PYTHON ${input:"build/scripts/gen_py3_reg.py"} $Func ${output;noauto:Func.reg3.cpp} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} + SRCS(GLOBAL $Func.reg3.cpp) } # tag:python-processing tag:internal -### @usage: _PY_COMPILE_BYTECODE(SrcX Src) # internal -### +### @usage: _PY_COMPILE_BYTECODE(SrcX Src) # internal +### ### Compile Python 2.x .py source file into Arcadia binary form suitable for PY2_PROGRAM -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister -macro _PY_COMPILE_BYTECODE(SrcX, Src, Dst) { - .CMD=$YMAKE_PYTHON ${input:"build/scripts/py_compile.py"} $SrcX ${input:Src} ${output;noauto:Dst.yapyc} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister +macro _PY_COMPILE_BYTECODE(SrcX, Src, Dst) { + .CMD=$YMAKE_PYTHON ${input:"build/scripts/py_compile.py"} $SrcX ${input:Src} ${output;noauto:Dst.yapyc} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} } # tag:python-processing tag:internal -### @usage: _PY3_COMPILE_BYTECODE(SrcX Src) # internal -### -### Compile Python 3.x .py source file into Arcadia binary form suitable for PY3_PROGRAM -### -### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister -macro _PY3_COMPILE_BYTECODE(SrcX, Src, Dst) { - .CMD=${env:"PYTHONHASHSEED=0"} ${tool:"contrib/tools/python3/pycc"} $SrcX ${input:Src} ${output;noauto:Dst.yapyc3} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} +### @usage: _PY3_COMPILE_BYTECODE(SrcX Src) # internal +### +### Compile Python 3.x .py source file into Arcadia binary form suitable for PY3_PROGRAM +### +### Documentation: https://wiki.yandex-team.ru/devtools/commandsandvars/pysrcs/#makrospyregister +macro _PY3_COMPILE_BYTECODE(SrcX, Src, Dst) { + .CMD=${env:"PYTHONHASHSEED=0"} ${tool:"contrib/tools/python3/pycc"} $SrcX ${input:Src} ${output;noauto:Dst.yapyc3} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} } ### @usage: ARCHIVE_ASM(NAME archive_name files...) ### -### Similar to the macro ARCHIVE, but: +### Similar to the macro ARCHIVE, but: ### 1. works faster and it is better to use for large files. ### 2. Different syntax (see examples in codesearch or users/pg/tests/archive_test) -macro ARCHIVE_ASM(NAME="", DONTCOMPRESS?"-p":"", REQUIREMENTS[], Files...) { - .CMD=$ARCH_TOOL -q $DONTCOMPRESS ${input;join=\: :Files}: -o ${output;chksum;suf=$OBJ_SUF.rodata:NAME} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p AR"} ${kv;hide:"pc light-cyan"} +macro ARCHIVE_ASM(NAME="", DONTCOMPRESS?"-p":"", REQUIREMENTS[], Files...) { + .CMD=$ARCH_TOOL -q $DONTCOMPRESS ${input;join=\: :Files}: -o ${output;chksum;suf=$OBJ_SUF.rodata:NAME} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p AR"} ${kv;hide:"pc light-cyan"} } # tag:yweb-specific @@ -6416,23 +6416,23 @@ macro PIRE_INLINE(FILES...) { } } -### @usage: ARCHIVE(archive_name [DONT_COMPRESS] files...) +### @usage: ARCHIVE(archive_name [DONT_COMPRESS] files...) ### ### Add arbitrary data to a modules. Unlike RESOURCE macro the result should be futher processed by othet macros in the module. -### +### ### Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive -macro ARCHIVE(NAME="", DONTCOMPRESS?"-p":"", REQUIREMENTS[], Files...) { - .CMD=$ARCH_TOOL -q -x $DONTCOMPRESS ${input;join=\: :Files}: -o ${output;chksum;addincl;noauto:NAME} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p AR"} ${kv;hide:"pc light-red"} +macro ARCHIVE(NAME="", DONTCOMPRESS?"-p":"", REQUIREMENTS[], Files...) { + .CMD=$ARCH_TOOL -q -x $DONTCOMPRESS ${input;join=\: :Files}: -o ${output;chksum;addincl;noauto:NAME} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p AR"} ${kv;hide:"pc light-red"} } -### @usage: ARCHIVE_BY_KEYS(archive_name key [DONT_COMPRESS] files...) -### -### Add arbitrary data to a module be accessible by specified key. +### @usage: ARCHIVE_BY_KEYS(archive_name key [DONT_COMPRESS] files...) +### +### Add arbitrary data to a module be accessible by specified key. ### Unlike RESOURCE macro the result should be futher processed by othet macros in the module. -### -### Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive -macro ARCHIVE_BY_KEYS(NAME="", KEYS="", DONTCOMPRESS?"-p":"", REQUIREMENTS[], Files...) { - .CMD=$ARCH_TOOL -q -x $DONTCOMPRESS ${input:Files} -k $KEYS -o ${output;chksum;addincl;noauto:NAME} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p AR"} ${kv;hide:"pc light-red"} +### +### Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive +macro ARCHIVE_BY_KEYS(NAME="", KEYS="", DONTCOMPRESS?"-p":"", REQUIREMENTS[], Files...) { + .CMD=$ARCH_TOOL -q -x $DONTCOMPRESS ${input:Files} -k $KEYS -o ${output;chksum;addincl;noauto:NAME} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p AR"} ${kv;hide:"pc light-red"} } #scripts @@ -6464,12 +6464,12 @@ macro UPDATE_VCS_JAVA_INFO_NODEP(Jar) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/vcs_info.py"} output-java $(VCS)/vcs.json $VCS_JAVA $Jar $VCS_INFO_DISABLE_CACHE__NO_UID__ } -### @usage: CREATE_BUILDINFO_FOR(GenHdr) -### -### Creates header file to access some information about build specified via configuration variables. -### Unlike CREATE_SVNVERSION_FOR() it doesn't take revion information from VCS, it uses revision and SandboxTaskId passed via -D options to ya make +### @usage: CREATE_BUILDINFO_FOR(GenHdr) +### +### Creates header file to access some information about build specified via configuration variables. +### Unlike CREATE_SVNVERSION_FOR() it doesn't take revion information from VCS, it uses revision and SandboxTaskId passed via -D options to ya make macro CREATE_BUILDINFO_FOR(GenHdr) { - .CMD=$YIELD $CXX_COMPILER && $YIELD $CXXFLAGS && $XARGS $YMAKE_PYTHON ${input:BUILDVERSION_SCRIPT} ${output:GenHdr} ${kv;hide:"p BI"} ${kv;hide:"pc yellow"} ${hide;kv:"show_out"} $SVN_DEPENDS_CACHE__NO_UID__ + .CMD=$YIELD $CXX_COMPILER && $YIELD $CXXFLAGS && $XARGS $YMAKE_PYTHON ${input:BUILDVERSION_SCRIPT} ${output:GenHdr} ${kv;hide:"p BI"} ${kv;hide:"pc yellow"} ${hide;kv:"show_out"} $SVN_DEPENDS_CACHE__NO_UID__ } DECIMAL_MD5_SCRIPT=build/scripts/decimal_md5.py @@ -6484,18 +6484,18 @@ macro DECIMAL_MD5_LOWER_32_BITS(File, FUNCNAME="", Opts...) { } # tag:internal -### @usage $CFG_VARS # internal -### -### Mark commands that embed Configuration variables into files -macro CFG_VARS() { - .GEN_FROM_FILE=yes -} - -### @usage: CONFIGURE_FILE(from to) -### -### Copy file with the replacement of configuration variables in form of @ANY_CONF_VAR@ with their values. +### @usage $CFG_VARS # internal +### +### Mark commands that embed Configuration variables into files +macro CFG_VARS() { + .GEN_FROM_FILE=yes +} + +### @usage: CONFIGURE_FILE(from to) +### +### Copy file with the replacement of configuration variables in form of @ANY_CONF_VAR@ with their values. ### The values are collected during configure stage, while replacement itself happens during build stage. -### Used implicitly for .in-files processing. +### Used implicitly for .in-files processing. macro CONFIGURE_FILE(Src, Dst) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/configure_file.py"} ${input:Src} ${output;addincl:Dst} $CFG_VARS ${kv;hide:"p CF"} ${kv;hide:"pc yellow"} .SEM=set_vasrs ${CFG_VARS} && configure_file $S/${input;rootrel:Src} $B/${output;rootrel:Dst} @@ -6503,46 +6503,46 @@ macro CONFIGURE_FILE(Src, Dst) { ### @usage: BASE_CODEGEN(tool_path prefix) ### -### Generator ${prefix}.cpp + ${prefix}.h files based on ${prefix}.in. +### Generator ${prefix}.cpp + ${prefix}.h files based on ${prefix}.in. macro BASE_CODEGEN(Tool, Prefix, Opts...) { .CMD=${tool:Tool} ${input:Prefix.in} ${output;nopath;noauto:Prefix.cpp} ${output;nopath:Prefix.h} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc yellow"} } # tag:internal -### @usage: _SPLIT_CODEGEN_BASE(tool prefix OUTS[] OUTPUT_INCLUDES[]) # internal +### @usage: _SPLIT_CODEGEN_BASE(tool prefix OUTS[] OUTPUT_INCLUDES[]) # internal ### -### Generator of a certain number .the. cpp file + one header .h file from .in. -### This is the call of the generator. Python macro SPLIT_CODEGEN() is defined in order to properly fill command outputs from OUT_NUM argument. -macro _SPLIT_CODEGEN_BASE(Tool, Prefix, OUT[], OPTS[], OUTPUT_INCLUDES[]) { +### Generator of a certain number .the. cpp file + one header .h file from .in. +### This is the call of the generator. Python macro SPLIT_CODEGEN() is defined in order to properly fill command outputs from OUT_NUM argument. +macro _SPLIT_CODEGEN_BASE(Tool, Prefix, OUT[], OPTS[], OUTPUT_INCLUDES[]) { .CMD=${tool:Tool} ${input:Prefix.in} ${output;hide:OUT} ${output;nopath;noauto:Prefix.cpp} ${output;nopath:Prefix.h} $OPTS ${output_include;hide:OUTPUT_INCLUDES} ${kv;hide:"p SC"} ${kv;hide:"pc yellow"} } -STRUCT_CODEGEN_OUTPUT_INCLUDES=${output_include;hide:"util/generic/singleton.h"} \ -${output_include;hide:"util/generic/strbuf.h"} \ -${output_include;hide:"util/generic/vector.h"} \ -${output_include;hide:"util/generic/ptr.h"} \ -${output_include;hide:"util/generic/yexception.h"} \ -${output_include;hide:"kernel/struct_codegen/reflection/reflection.h"} \ -${output_include;hide:"kernel/struct_codegen/reflection/floats.h"} - -### @usage: STRUCT_CODEGEN(Prefix) -### A special case BASE_CODEGEN, in which the kernel/struct_codegen/codegen_tool tool is used. +STRUCT_CODEGEN_OUTPUT_INCLUDES=${output_include;hide:"util/generic/singleton.h"} \ +${output_include;hide:"util/generic/strbuf.h"} \ +${output_include;hide:"util/generic/vector.h"} \ +${output_include;hide:"util/generic/ptr.h"} \ +${output_include;hide:"util/generic/yexception.h"} \ +${output_include;hide:"kernel/struct_codegen/reflection/reflection.h"} \ +${output_include;hide:"kernel/struct_codegen/reflection/floats.h"} + +### @usage: STRUCT_CODEGEN(Prefix) +### A special case BASE_CODEGEN, in which the kernel/struct_codegen/codegen_tool tool is used. macro STRUCT_CODEGEN(Prefix) { - .CMD=$BASE_CODEGEN(kernel/struct_codegen/codegen_tool, $Prefix, $STRUCT_CODEGEN_OUTPUT_INCLUDES) + .CMD=$BASE_CODEGEN(kernel/struct_codegen/codegen_tool, $Prefix, $STRUCT_CODEGEN_OUTPUT_INCLUDES) .PEERDIR=kernel/struct_codegen/metadata kernel/struct_codegen/reflection } -### @usage: DUMPERF_CODEGEN(Prefix) -### A special case BASE_CODEGEN, in which the extsearch/images/robot/tools/dumperf/codegen tool is used +### @usage: DUMPERF_CODEGEN(Prefix) +### A special case BASE_CODEGEN, in which the extsearch/images/robot/tools/dumperf/codegen tool is used macro DUMPERF_CODEGEN(Prefix) { .CMD=$BASE_CODEGEN(extsearch/images/robot/tools/dumperf/codegen, $Prefix, ${output_include;hide:"extsearch/images/kernel/erf/erf_format.h"}) } # tag:flags -### @usage: LDFLAGS(LinkerFlags...) -### -### Add flags to the link command line of executable or shared library/dll. -### Note: LDFLAGS are always global. When set in the LIBRARY module they will affect all programs/dlls/tests the library is linked into. +### @usage: LDFLAGS(LinkerFlags...) +### +### Add flags to the link command line of executable or shared library/dll. +### Note: LDFLAGS are always global. When set in the LIBRARY module they will affect all programs/dlls/tests the library is linked into. ### Note: remember about the incompatibility of flags for gcc and cl. macro LDFLAGS(Flags...) { SET_APPEND(LDFLAGS_GLOBAL $Flags) @@ -6550,24 +6550,24 @@ macro LDFLAGS(Flags...) { # tag:flags ### @usage: CFLAGS([GLOBAL compiler_flag]* compiler_flags) -### -### Add the specified flags to the compilation command of C and C++ files. -### @params: GLOBAL - Propagates these flags to dependent projects -### Note: remember about the incompatibility flags for clang and cl (to set flags specifically for cl.exe use MSVC_FLAGS). +### +### Add the specified flags to the compilation command of C and C++ files. +### @params: GLOBAL - Propagates these flags to dependent projects +### Note: remember about the incompatibility flags for clang and cl (to set flags specifically for cl.exe use MSVC_FLAGS). macro CFLAGS(Flags...) { SET_APPEND_WITH_GLOBAL(USER_CFLAGS $Flags) } # tag:flags ### @usage: MASMFLAGS(compiler flags) -### Add the specified flags to the compilation command of .masm files. +### Add the specified flags to the compilation command of .masm files. macro MASMFLAGS(Flags...) { SET_APPEND(MASMFLAGS $Flags) } # tag:flags ### @usage: CONLYFLAGS([GLOBAL compiler_flag]* compiler_flags) -### Add the specified flags to the compilation command of .c (but not .cpp) files. +### Add the specified flags to the compilation command of .c (but not .cpp) files. ### @params: GLOBAL - Distributes these flags on dependent projects macro CONLYFLAGS(Flags...) { SET_APPEND_WITH_GLOBAL(USER_CONLYFLAGS $Flags) @@ -6575,7 +6575,7 @@ macro CONLYFLAGS(Flags...) { # tag:flags ### @usage: CXXFLAGS(compiler_flags) -### Add the specified flags to the compilation command of .cpp (but not .c) files. +### Add the specified flags to the compilation command of .cpp (but not .c) files. macro CXXFLAGS(Flags...) { SET_APPEND_WITH_GLOBAL(USER_CXXFLAGS $Flags) } @@ -6596,43 +6596,43 @@ macro NVCC_DEVICE_LINK(Srcs...) { .CMD=$NVCC $NVCC_FLAGS -o ${output;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:"devlink"} -dlink ${input;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:Srcs} ${kv;hide:"p DL"} ${kv;hide:"pc light-blue"} } -### @usage: STRIP() -### Strip debug info from a PROGRAM, DLL or TEST. -### This macro doesn't work in LIBRARY's, UNION's and PACKAGE's. +### @usage: STRIP() +### Strip debug info from a PROGRAM, DLL or TEST. +### This macro doesn't work in LIBRARY's, UNION's and PACKAGE's. macro STRIP() { ENABLE(STRIP) } -### @usage: NO_OPTIMIZE() -### Build code without any optimizations (-O0 mode). +### @usage: NO_OPTIMIZE() +### Build code without any optimizations (-O0 mode). macro NO_OPTIMIZE() { ENABLE(NO_OPTIMIZE) } -### @usage: NO_COMPILER_WARNINGS() +### @usage: NO_COMPILER_WARNINGS() ### Disable all compiler warnings in the module. -### Priorities: NO_COMPILER_WARNINGS > NO_WERROR > WERROR_MODE > WERROR. +### Priorities: NO_COMPILER_WARNINGS > NO_WERROR > WERROR_MODE > WERROR. macro NO_COMPILER_WARNINGS() { ENABLE(NO_COMPILER_WARNINGS) } ### @usage: WERROR() -### Consider warnings as errors in the current module. +### Consider warnings as errors in the current module. ### In the bright future will be removed, since WERROR is the default. -### Priorities: NO_COMPILER_WARNINGS > NO_WERROR > WERROR_MODE > WERROR. +### Priorities: NO_COMPILER_WARNINGS > NO_WERROR > WERROR_MODE > WERROR. macro WERROR() { ENABLE(WERROR) } ### @usage: NO_WERROR() -### Override WERROR() behavior -### Priorities: NO_COMPILER_WARNINGS > NO_WERROR > WERROR_MODE > WERROR. +### Override WERROR() behavior +### Priorities: NO_COMPILER_WARNINGS > NO_WERROR > WERROR_MODE > WERROR. macro NO_WERROR() { DISABLE(WERROR) } -### @usage: NO_WSHADOW() -### Disable C++ shadowing warnings. +### @usage: NO_WSHADOW() +### Disable C++ shadowing warnings. macro NO_WSHADOW() { ENABLE(NO_WSHADOW) } @@ -6640,23 +6640,23 @@ macro NO_WSHADOW() { # tag:internal ### @usage: NO_PLATFORM_RESOURCES() # internal ### Exclude dependency on platform resources libraries. -### Most probably you'll never need this. If you think you need, please contact devtools@ for assistance. +### Most probably you'll never need this. If you think you need, please contact devtools@ for assistance. macro NO_PLATFORM_RESOURCES() { ENABLE(NOPLATFORM_RESOURCES) } # tag:internal tag:codenav ### @usage: NO_CODENAVIGATION() # internal -### Disable codenaviagtion for a module. Needed to avoid PEERDIR loops in codenavigation support. -### Most probably you'll never need this. If you think you need, please contact devtools@ for assistance. +### Disable codenaviagtion for a module. Needed to avoid PEERDIR loops in codenavigation support. +### Most probably you'll never need this. If you think you need, please contact devtools@ for assistance. macro NO_CODENAVIGATION() { ENABLE(NOCODENAVIGATION) } -### @usage: NO_UTIL() -### Build module without dependency on util. -### Note: use this with care. Util most likely will be linked into executable anyway, -### so using util headers/functions/classes may not be detected at build time and may lead to unpredictable behavors at configure time. +### @usage: NO_UTIL() +### Build module without dependency on util. +### Note: use this with care. Util most likely will be linked into executable anyway, +### so using util headers/functions/classes may not be detected at build time and may lead to unpredictable behavors at configure time. macro NO_UTIL() { ENABLE(NOUTIL) } @@ -6664,10 +6664,10 @@ macro NO_UTIL() { ### @usage: NO_RUNTIME() ### ### This macro: -### 1. Sets the ENABLE(NOUTIL) + DISABLE(USE_INTERNAL_STL); -### 2. If the project that contains the macro NO_RUNTIME(), peerdir-it project does not contain NO_RUNTIME() => Warning. -### Note: use this with care. Arcadia STL most likely will be linked into executable anyway, so using STL headers/functions/classes -### may not be detected at build time and may lead to unpredictable behavors at configure time. +### 1. Sets the ENABLE(NOUTIL) + DISABLE(USE_INTERNAL_STL); +### 2. If the project that contains the macro NO_RUNTIME(), peerdir-it project does not contain NO_RUNTIME() => Warning. +### Note: use this with care. Arcadia STL most likely will be linked into executable anyway, so using STL headers/functions/classes +### may not be detected at build time and may lead to unpredictable behavors at configure time. macro NO_RUNTIME() { SET(USE_ARCADIA_LIBM no) NO_UTIL() @@ -6675,25 +6675,25 @@ macro NO_RUNTIME() { } ### @usage: NO_LIBC() -### -### Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata). -### Note: use this with care. libc most likely will be linked into executable anyway, -### so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. +### +### Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata). +### Note: use this with care. libc most likely will be linked into executable anyway, +### so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. macro NO_LIBC() { NO_RUNTIME() DISABLE(MUSL) } -### @usage: NO_PLATFORM() -### -### Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata) and set NO_PLATFORM variable for special processing. -### Note: use this with care. libc most likely will be linked into executable anyway, -### so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. -macro NO_PLATFORM() { - NO_LIBC() - ENABLE(NOPLATFORM) -} - +### @usage: NO_PLATFORM() +### +### Exclude dependencies on C++ and C runtimes (including util, musl and libeatmydata) and set NO_PLATFORM variable for special processing. +### Note: use this with care. libc most likely will be linked into executable anyway, +### so using libc headers/functions may not be detected at build time and may lead to unpredictable behavors at configure time. +macro NO_PLATFORM() { + NO_LIBC() + ENABLE(NOPLATFORM) +} + # tag:cpp-specific ### @usage: USE_CXX() ### @@ -6713,39 +6713,39 @@ macro USE_UTIL() { } # tag:deprecated -### @usage: NO_JOIN_SRC() # deprecated, does-nothing +### @usage: NO_JOIN_SRC() # deprecated, does-nothing ### This macro currently does nothing. This is default behavior which cannot be overridden at module level. macro NO_JOIN_SRC() { ENABLE(UNUSED_MACRO) } # tag:deprecated -### @usage: JOINSRC() # deprecated, does-nothing -### This macro currently does nothing. Use JOIN_SRCS and similar macros to make one file of set of sources. -macro JOINSRC() { - ENABLE(UNUSED_MACRO) -} - +### @usage: JOINSRC() # deprecated, does-nothing +### This macro currently does nothing. Use JOIN_SRCS and similar macros to make one file of set of sources. +macro JOINSRC() { + ENABLE(UNUSED_MACRO) +} + # tag:sanitize ### @usage: NO_SANITIZE() ### -### Disable all sanitizers for the module. +### Disable all sanitizers for the module. macro NO_SANITIZE() { DISABLE(SANITIZER_TYPE) } # tag:coverage tag:sanitize -### @usage: NO_SANITIZE_COVERAGE() -### -### Disable lightweight coverage (-fsanitize-coverage) for the module. +### @usage: NO_SANITIZE_COVERAGE() +### +### Disable lightweight coverage (-fsanitize-coverage) for the module. macro NO_SANITIZE_COVERAGE() { DISABLE(SANITIZE_COVERAGE) } # tag:coverage -### @usage: NO_CLANG_COVERAGE() -### -### Disable heavyweight clang coverage for the module +### @usage: NO_CLANG_COVERAGE() +### +### Disable heavyweight clang coverage for the module macro NO_CLANG_COVERAGE() { DISABLE(CLANG_COVERAGE) } @@ -6774,17 +6774,17 @@ macro NO_CYTHON_COVERAGE() { # tag:lua-specific LUAJIT_PATH=${ARCADIA_ROOT}/contrib/libs/luajit -macro _LUAJIT_OBJDUMP(Src, OUT="") { +macro _LUAJIT_OBJDUMP(Src, OUT="") { .CMD=${cwd:LUAJIT_PATH} ${tool:"contrib/libs/luajit/compiler"} -b -g ${input:Src} ${output;noauto:OUT} ${kv;hide:"p LJ"} ${kv;hide:"pc light-cyan"} } # tag:lua-specific LUAJIT_21_PATH=${ARCADIA_ROOT}/contrib/libs/luajit_21 -macro _LUAJIT_21_OBJDUMP(Src, OUT="") { +macro _LUAJIT_21_OBJDUMP(Src, OUT="") { .CMD=${cwd:LUAJIT_21_PATH} ${tool:"contrib/libs/luajit_21/compiler"} -b -g ${input:Src} ${output;noauto:OUT} ${kv;hide:"p LJ"} ${kv;hide:"pc light-cyan"} } -macro _MX_BIN_TO_INFO(Src) { +macro _MX_BIN_TO_INFO(Src) { .CMD=${tool:"tools/mx_bin2info"} ${input:Src} ${output;nopath;noext;noauto:Src.info} ${kv;hide:"p MX"} ${kv;hide:"pc yellow"} } @@ -6796,7 +6796,7 @@ ${output_include;hide:"util/generic/hash.h"} \ ${output_include;hide:"util/generic/ptr.h"} \ ${output_include;hide:"util/generic/singleton.h"} -macro _MX_GEN_TABLE(Srcs...) { +macro _MX_GEN_TABLE(Srcs...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/gen_mx_table.py"} $Srcs ${output;stdout:"mx_tables.cpp"} $MX_GEN_TABLE_INCLS ${kv;hide:"p MX"} ${kv;hide:"pc yellow"} PEERDIR(kernel/matrixnet) PEERDIR(library/cpp/archive) @@ -6804,10 +6804,10 @@ macro _MX_GEN_TABLE(Srcs...) { RELEV_FML_CODEGEN_INCLS=${output_include;hide:"kernel/relevfml/relev_fml.h"} ${output_include;hide:"library/cpp/sse/sse.h"} -### @usage: GENERATE_ENUM_SERIALIZATION(File.h) -### -### Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module. -### +### @usage: GENERATE_ENUM_SERIALIZATION(File.h) +### +### Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module. +### ### Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ macro GENERATE_ENUM_SERIALIZATION(File) { .CMD=$ENUM_PARSER_TOOL ${input:File} --include-path ${input;rootrel:File} --output ${output;chksum;suf=_serialized.cpp:File} ${output_include;hide:File} ${output_include;hide:"util/generic/serialized_enum.h"} ${kv;hide:"p EN"} ${kv;hide:"pc yellow"} @@ -6815,12 +6815,12 @@ macro GENERATE_ENUM_SERIALIZATION(File) { PEERDIR(tools/enum_parser/enum_serialization_runtime) } -### @usage: GENERATE_ENUM_SERIALIZATION_WITH_HEADER(File.h) -### -### Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module -### Provide access to serialization functions via generated header File_serialized.h -### -### Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ +### @usage: GENERATE_ENUM_SERIALIZATION_WITH_HEADER(File.h) +### +### Create serialization support for enumeration members defined in the header (String <-> Enum conversions) and compile it into the module +### Provide access to serialization functions via generated header File_serialized.h +### +### Documentation: https://wiki.yandex-team.ru/yatool/HowToWriteYaMakeFiles/ macro GENERATE_ENUM_SERIALIZATION_WITH_HEADER(File) { .CMD=$ENUM_PARSER_TOOL ${input:File} --include-path ${input;rootrel:File} --output ${output;chksum;suf=_serialized.cpp:File} --header ${output;chksum;suf=_serialized.h:File} ${output_include;hide:File} ${kv;hide:"p EN"} ${kv;hide:"pc yellow"} .SEM=generate_enum_serilization ${input:File} ${output;hide;suf=_serialized.o:File} GEN_HEADER ${output;suf=_serialized.h:File} INCLUDE_HEADERS ${input;rootrel:File} ${tool;hide:"tools/enum_parser/enum_parser/bin"} @@ -6829,70 +6829,70 @@ macro GENERATE_ENUM_SERIALIZATION_WITH_HEADER(File) { ### @usage: DEB_VERSION(File) ### -### Creates a header file DebianVersion.h define the DEBIAN_VERSION taken from the File. +### Creates a header file DebianVersion.h define the DEBIAN_VERSION taken from the File. macro DEB_VERSION(File) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/mkver.py"} ${input:File} ${output;stdout:"DebianVersion.h"} ${kv;hide:"p CL"} ${kv;hide:"pc yellow"} } -BUILD_MN_SCRIPT=build/scripts/build_mn.py - +BUILD_MN_SCRIPT=build/scripts/build_mn.py + # tag:matrixnet -### @usage: BUILD_MN([CHECK] [PTR] [MULTI] mninfo mnname) # matrixnet -### -### Generate MatrixNet data and access code using single command. -### Alternative macro BUILD_MNS() works faster and better for large files. +### @usage: BUILD_MN([CHECK] [PTR] [MULTI] mninfo mnname) # matrixnet +### +### Generate MatrixNet data and access code using single command. +### Alternative macro BUILD_MNS() works faster and better for large files. macro BUILD_MN(MnInfo, MnName, CHECK?"fml_tool=$FML_UNUSED_TOOL CHECK":"", MULTI?, PTR?, RANKING_SUFFIX="") { .CMD=$YMAKE_PYTHON ${input:BUILD_MN_SCRIPT} BuildMnF $ARCADIA_ROOT $ARCH_TOOL ${input:MnInfo} $MnName ranking_suffix=$RANKING_SUFFIX ${output;chksum;pre=mn.:MnName.cpp} ${output;hide;pre=MN_External_;suf=.rodata:MnName} ${output_include;hide:"kernel/matrixnet/mn_sse.h"} $CHECK $MULTI $PTR ${kv;hide:"p MN"} ${kv;hide:"pc yellow"} } -macro _BUILD_MNS_FILE(Input, Name, Output, Suffix, Check, Fml_tool, AsmDataName) { +macro _BUILD_MNS_FILE(Input, Name, Output, Suffix, Check, Fml_tool, AsmDataName) { .CMD=$YMAKE_PYTHON ${input:BUILD_MN_SCRIPT} BuildMnsFilesF $ARCADIA_ROOT $BINDIR $ARCH_TOOL fml_tool=$Fml_tool $Name ranking_suffix=$Suffix ${input:Input} ${output;hide:Output} ${output;hide;pre=MN_External_;suf=.rodata:AsmDataName} ${output_include;hide:"kernel/matrixnet/mn_sse.h"} ${kv;hide:"p MN"} ${kv;hide:"pc yellow"} } MNS_OUTPUT=mnmodels -macro _BUILD_MNS_CPP(NAME="", CHECK?, RANKING_SUFFIX="", Files...) { - .CMD=$YMAKE_PYTHON ${input:BUILD_MN_SCRIPT} BuildMnsCppF $NAME ranking_suffix=$RANKING_SUFFIX ${input:MNS_OUTPUT.h} ${output:MNS_OUTPUT.cpp} ${input:Files} ${output_include;hide:MNS_OUTPUT.h} ${output_include;hide:"kernel/matrixnet/mn_sse.h"} ${kv;hide:"p MN"} ${kv;hide:"pc yellow"} +macro _BUILD_MNS_CPP(NAME="", CHECK?, RANKING_SUFFIX="", Files...) { + .CMD=$YMAKE_PYTHON ${input:BUILD_MN_SCRIPT} BuildMnsCppF $NAME ranking_suffix=$RANKING_SUFFIX ${input:MNS_OUTPUT.h} ${output:MNS_OUTPUT.cpp} ${input:Files} ${output_include;hide:MNS_OUTPUT.h} ${output_include;hide:"kernel/matrixnet/mn_sse.h"} ${kv;hide:"p MN"} ${kv;hide:"pc yellow"} } -macro _BUILD_MNS_HEADER(NAME="", CHECK?, RANKING_SUFFIX="", Files...) { +macro _BUILD_MNS_HEADER(NAME="", CHECK?, RANKING_SUFFIX="", Files...) { .CMD=$YMAKE_PYTHON ${input:BUILD_MN_SCRIPT} BuildMnsHeaderF $NAME ranking_suffix=$RANKING_SUFFIX ${output:MNS_OUTPUT.h} ${input:Files} ${output_include;hide:"kernel/matrixnet/mn_sse.h"} ${output_include;hide:"kernel/matrixnet/mn_multi_categ.h"} ${kv;hide:"p MN"} ${kv;hide:"pc yellow"} } # TODO: support foreach_in and keywords simultaneous usage (look at BUILD_MNS_FILES) # tag:matrixnet -### @usage: BUILD_MNS([CHECK] NAME listname mninfos...) # matrixnet -### -### Generate MatrixNet data and access code using separate commands for support code, interface and data. -### Faster version of BUILD_MN() macro for large files. +### @usage: BUILD_MNS([CHECK] NAME listname mninfos...) # matrixnet +### +### Generate MatrixNet data and access code using separate commands for support code, interface and data. +### Faster version of BUILD_MN() macro for large files. macro BUILD_MNS(Files...) { - _BUILD_MNS_HEADER($Files) - _BUILD_MNS_CPP($Files) - _BUILD_MNS_FILES($Files) + _BUILD_MNS_HEADER($Files) + _BUILD_MNS_CPP($Files) + _BUILD_MNS_FILES($Files) } -### @usage: BUILD_PLNS(Src...) -### -### Generate interface header plnmodels.h for Relev model (PLN). -### Relev specific macro. -macro BUILD_PLNS(Src...) { - .CMD=$YMAKE_PYTHON ${input:"build/scripts/build_pln_header.py"} ${output:"plnmodels.h"} ${input:Src} $RELEV_FML_CODEGEN_INCLS ${kv;hide:"p PN"} ${kv;hide:"pc yellow"} +### @usage: BUILD_PLNS(Src...) +### +### Generate interface header plnmodels.h for Relev model (PLN). +### Relev specific macro. +macro BUILD_PLNS(Src...) { + .CMD=$YMAKE_PYTHON ${input:"build/scripts/build_pln_header.py"} ${output:"plnmodels.h"} ${input:Src} $RELEV_FML_CODEGEN_INCLS ${kv;hide:"p PN"} ${kv;hide:"pc yellow"} .PEERDIR=kernel/relevfml library/cpp/sse -} - -### @usage: COMPILE_NLG(Src...) -### -### Generate and compile .nlg templates (Jinja2-based) and interface for megamind runtime. -### -### Alice-specific macro -macro COMPILE_NLG(Src...) { - PEERDIR(alice/nlg/runtime) +} + +### @usage: COMPILE_NLG(Src...) +### +### Generate and compile .nlg templates (Jinja2-based) and interface for megamind runtime. +### +### Alice-specific macro +macro COMPILE_NLG(Src...) { + PEERDIR(alice/nlg/runtime) RUN_PROGRAM(alice/nlg/bin compile-cpp --import-dir ${ARCADIA_ROOT} --out-dir ${ARCADIA_BUILD_ROOT} --include-prefix ${MODDIR} ${Src} IN ${Src} OUT register.cpp register.h ${suf=.cpp:Src} ${suf=.h:Src} OUT_NOAUTO ${suf=.pb.txt:Src}) -} - -### @usage: NEED_CHECK() -### +} + +### @usage: NEED_CHECK() +### ### Commits to the project marked with this macro will be blocked by pre-commit check and then will be ### automatically merged to trunk only if there is no new broken build targets in check results. ### The use of this macro is disabled by default. @@ -6901,16 +6901,16 @@ macro NEED_CHECK(Flags...) { ENABLE(UNUSED_MACRO) } -### @usage: NO_NEED_CHECK() -### +### @usage: NO_NEED_CHECK() +### ### Commits to the project marked with this macro will not be affected by higher-level NEED_CHECK macro. macro NO_NEED_CHECK(Flags...) { ENABLE(UNUSED_MACRO) } # tag:deprecated -### @usage: NEED_REVIEW() # deprecated -### +### @usage: NEED_REVIEW() # deprecated +### ### Mark the project as needing review. ### Reviewers are listed in the macro OWNER. The use of this macro is disabled by default. ### Details can be found here: https://clubs.at.yandex-team.ru/arcadia/6104 @@ -6919,9 +6919,9 @@ macro NEED_REVIEW(Flags...) { ENABLE(UNUSED_MACRO) } -### @usage: VERSION(Args...) -### -### Specify version of a module. Currently unused by build system, only informative. +### @usage: VERSION(Args...) +### +### Specify version of a module. Currently unused by build system, only informative. macro VERSION(Flags...) { ENABLE(UNUSED_MACRO) } @@ -6958,18 +6958,18 @@ SCHEEME2_STRUCT_INFO_FLAGS=-f "const static ui32 RecordSig" -u "RecordSig" --gcc ### ${DATAWORK_SCHEEME_EXPORT_FLAGS}) ### ### for compatibility with C++ compiler and the external environment. -### See tools/structparser for more details. +### See tools/structparser for more details. macro GEN_SCHEEME2(ScheemeName, FromFile) { .CMD=$CXX_COMPILER $C_FLAGS_PLATFORM -c ${tmp;stdout:FromFile.cph} $SCHEEME2_CFLAGS ${input:FromFile} ${pre=-I:_C__INCLUDE} $CXXFLAGS -Wno-error && ${tool:"tools/structparser"} -o ${output:ScheemeName.inc} -n N${ScheemeName}SchemeInfo $SCHEEME2_STRUCT_INFO_FLAGS $DATAWORK_SCHEEME_EXPORT_FLAGS ${tmp:FromFile.cph} ${output;stdout;noauto:ScheemeName.inc.log} ${kv;hide:"p SH"} ${kv;hide:"pc yellow"} } -### @usage: SYMLINK(from to) +### @usage: SYMLINK(from to) ### Add symlink macro SYMLINK(From, To) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/symlink.py"} ${input;dirallowed:From} ${output;noauto:To} ${kv;hide:"p LN"} ${kv;hide:"pc light-cyan"} } -### @usage: RUN_PROGRAM(tool_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...] [REQUIREMENTS reqs]) +### @usage: RUN_PROGRAM(tool_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...] [REQUIREMENTS reqs]) ### ### Run a program from arcadia. ### These macros are similar: RUN_PROGRAM, LUA, PYTHON. @@ -6980,7 +6980,7 @@ macro SYMLINK(From, To) { ### - CWD dir - Absolute path of the working directory. ### - ENV key=value... - Environment variables. ### - TOOL tools... - Auxiliary tool directories. -### - IN inputs... - Input files +### - IN inputs... - Input files ### - OUT[_NOAUTO] outputs... - Output files. NOAUTO outputs are not automatically added to the build process. ### - STDOUT[_NOAUTO] output - Redirect the standard output to the output file. ### - OUTPUT_INCLUDES output_includes... - Includes of the output files that are needed to build them. @@ -6989,18 +6989,18 @@ macro SYMLINK(From, To) { ### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or ### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used. ### Note that Tool is always built for the host platform, so be careful to provide that tool can be built for all Arcadia major host platforms (Linux, MacOS and Windows). -macro RUN_PROGRAM(Tool, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) { - .CMD=${cwd:CWD} ${env:ENV} ${tool:Tool} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p PR"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} +macro RUN_PROGRAM(Tool, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) { + .CMD=${cwd:CWD} ${env:ENV} ${tool:Tool} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p PR"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} } # tag:lua-specific -### @usage: LUA(script_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...][ REQUIREMENTS reqs]) +### @usage: LUA(script_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...][ REQUIREMENTS reqs]) ### ### Run a lua script. ### These macros are similar: RUN_PROGRAM, LUA, PYTHON. ### ### Parameters: -### - script_path - Path to the script.3 +### - script_path - Path to the script.3 ### - args... - Program arguments. Relative paths listed in TOOL, IN, OUT, STDOUT become absolute. ### - CWD dir - Absolute path of the working directory. ### - ENV key=value... - Environment variables. @@ -7013,12 +7013,12 @@ macro RUN_PROGRAM(Tool, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{t ### ### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or ### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used. -macro LUA(ScriptPath, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) { - .CMD=${cwd:CWD} ${env:ENV} $LUA_TOOL ${input:ScriptPath} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p LU"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} +macro LUA(ScriptPath, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) { + .CMD=${cwd:CWD} ${env:ENV} $LUA_TOOL ${input:ScriptPath} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p LU"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} } # tag:python-specific -### @usage: PYTHON(script_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...] [REQUIREMENTS reqs]) +### @usage: PYTHON(script_path args... [CWD dir] [ENV key=value...] [TOOL tools...] [IN inputs...] [OUT[_NOAUTO] outputs...] [STDOUT[_NOAUTO] output] [OUTPUT_INCLUDES output_includes...] [REQUIREMENTS reqs]) ### ### Run a python script with $(PYTHON)/python built from devtools/huge_python. ### These macros are similar: RUN_PROGRAM, LUA, PYTHON. @@ -7037,76 +7037,76 @@ macro LUA(ScriptPath, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{too ### ### For absolute paths use ${ARCADIA_ROOT} and ${ARCADIA_BUILD_ROOT}, or ### ${CURDIR} and ${BINDIR} which are expanded where the outputs are used. -macro PYTHON(ScriptPath, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) { - .CMD=${cwd:CWD} ${env:ENV} $YMAKE_PYTHON ${input:ScriptPath} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} +macro PYTHON(ScriptPath, IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], TOOL{tool}[], OUTPUT_INCLUDES[], IN_DEPS[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], REQUIREMENTS[], Args...) { + .CMD=${cwd:CWD} ${env:ENV} $YMAKE_PYTHON ${input:ScriptPath} $Args ${input;hide:IN} ${input;hide:IN_DEPS} ${output_include;hide:OUTPUT_INCLUDES} ${tool;hide:TOOL} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:restricted"} ${kv;hide:"p PY"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} } # tag:java-specific -macro _RUN_JAVA(IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], TOOL[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], HIDE_OUTPUT?"stderr2stdout":"stdout2stderr", REQUIREMENTS[], Args...) { +macro _RUN_JAVA(IN{input}[], OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], TOOL[], STDOUT="", STDOUT_NOAUTO="", CWD="", ENV[], HIDE_OUTPUT?"stderr2stdout":"stdout2stderr", REQUIREMENTS[], Args...) { PEERDIR(build/platform/java/jdk $JDK_RESOURCE_PEERDIR) - .CMD=${cwd:CWD} ${env:ENV} $YMAKE_PYTHON ${input;pre=build/scripts/:HIDE_OUTPUT.py} $JDK_RESOURCE/bin/java $Args ${tool;hide:TOOL} ${input;hide:IN} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p JV"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} + .CMD=${cwd:CWD} ${env:ENV} $YMAKE_PYTHON ${input;pre=build/scripts/:HIDE_OUTPUT.py} $JDK_RESOURCE/bin/java $Args ${tool;hide:TOOL} ${input;hide:IN} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${output;stdout:STDOUT} ${output;stdout;noauto:STDOUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p JV"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} } -### @usage: FROM_SANDBOX([FILE] resource_id [AUTOUPDATED script] [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE] [OUTPUT_INCLUDES <include files>]) -### +### @usage: FROM_SANDBOX([FILE] resource_id [AUTOUPDATED script] [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE] [OUTPUT_INCLUDES <include files>]) +### ### Download the resource from the Sandbox, unpack (if not explicitly specified word FILE) and add OUT files to the build. EXECUTABLE makes them executable. ### You may specify extra dependencies that output files bring using OUTPUT_INCLUDES. The change of these may e.g. lead to recompilation of .cpp files extracted from resource. -### If there is no default processing for OUT files or you need process them specially use OUT_NOAUTO instead of OUT. -### -### It is disallowed to specify directory as OUT/OUT_NOAUTO since all outputs of commands shall be known to build system. -### +### If there is no default processing for OUT files or you need process them specially use OUT_NOAUTO instead of OUT. +### +### It is disallowed to specify directory as OUT/OUT_NOAUTO since all outputs of commands shall be known to build system. +### ### RENAME renames files to the corresponding OUT and OUT_NOAUTO outputs: ### FROM_SANDBOX(resource_id RENAME in_file1 in_file2 OUT out_file1 out_file2 out_file3) ### FROM_SANDBOX(resource_id RENAME in_file1 OUT out_file1 RENAME in_file2 OUT out_file2) ### FROM_SANDBOX(FILE resource_id RENAME resource_file OUT out_name) ### -### RENAME RESOURCE allows to rename the resource without specifying its file name. -### -### If AUTOUPDATED is specified than macro will be regularly updated according to autoupdate script. The dedicated Sandbox task scans the arcadia and +### RENAME RESOURCE allows to rename the resource without specifying its file name. +### +### If AUTOUPDATED is specified than macro will be regularly updated according to autoupdate script. The dedicated Sandbox task scans the arcadia and ### changes resource_ids in such macros if newer resource of specified type is available. Note that the task seeks AUTOUPDATED in specific position, -### so you shall place it immediately after resource_id. -macro FROM_SANDBOX(Id, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], FILE?"--copy-to-dir":"--untar-to", AUTOUPDATED="", PREFIX=".", RENAME[], EXECUTABLE?"--executable":"", SBR="sbr:", REQUIREMENTS[]) { - .CMD=${hide:SANDBOX_FAKEID} ${cwd:BINDIR} ${resource;pre=$SBR:Id} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_sandbox.py"} --resource-file $(RESOURCE_ROOT)/sbr/$Id/resource --resource-id $Id $FILE $PREFIX ${pre=--rename :RENAME} $EXECUTABLE -- $OUT $OUT_NOAUTO ${input;hide:"build/scripts/fetch_from.py"} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:full"} ${kv;hide:"p SB"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} - ADD_CHECK(check.resource $Id) +### so you shall place it immediately after resource_id. +macro FROM_SANDBOX(Id, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], FILE?"--copy-to-dir":"--untar-to", AUTOUPDATED="", PREFIX=".", RENAME[], EXECUTABLE?"--executable":"", SBR="sbr:", REQUIREMENTS[]) { + .CMD=${hide:SANDBOX_FAKEID} ${cwd:BINDIR} ${resource;pre=$SBR:Id} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_sandbox.py"} --resource-file $(RESOURCE_ROOT)/sbr/$Id/resource --resource-id $Id $FILE $PREFIX ${pre=--rename :RENAME} $EXECUTABLE -- $OUT $OUT_NOAUTO ${input;hide:"build/scripts/fetch_from.py"} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${requirements;hide:REQUIREMENTS} ${requirements;hide:"network:full"} ${kv;hide:"p SB"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} + ADD_CHECK(check.resource $Id) } ### @usage: FROM_MDS([FILE] key [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE]) -### +### ### Download resource from MDS with the specified key and process like [FROM_SANDBOX()](#macro_FROM_SANDBOX). macro FROM_MDS(Key, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], FILE?"--copy-to-dir":"--untar-to", PREFIX=".", RENAME[], EXECUTABLE?"--executable":"") { .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_mds.py"} --key $Key $FILE $PREFIX ${pre=--rename :RENAME} $EXECUTABLE -- $OUT $OUT_NOAUTO ${input;hide:"build/scripts/fetch_from.py"} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${requirements;hide:"network:full"} ${kv;hide:"p MD"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} - ADD_CHECK(check.mds $Key) + ADD_CHECK(check.mds $Key) } # tag:internal -### @usage: _FROM_EXTERNAL(ExtFile [AUTOUPDATED script] [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE]) #internal -###requirements;hide -### Use resource described as .external file as [FROM_SANDBOX()](#macro_FROM_SANDBOX)/[FROM_MDS()](#macro_FROM_MDS). -macro _FROM_EXTERNAL(File, OutFile, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], AUTOUPDATED="", PREFIX=".", RENAME[], EXECUTABLE?"--executable":"", EXT="ext:") { +### @usage: _FROM_EXTERNAL(ExtFile [AUTOUPDATED script] [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE]) #internal +###requirements;hide +### Use resource described as .external file as [FROM_SANDBOX()](#macro_FROM_SANDBOX)/[FROM_MDS()](#macro_FROM_MDS). +macro _FROM_EXTERNAL(File, OutFile, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], AUTOUPDATED="", PREFIX=".", RENAME[], EXECUTABLE?"--executable":"", EXT="ext:") { .CMD=${hide:SANDBOX_FAKEID} ${cwd:BINDIR} ${resource;pre=$EXT;suf=.external:OutFile} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_external.py"} --external-file ${input:File} --resource-file $(RESOURCE_ROOT)/ext/$OutFile --copy-to-dir $PREFIX ${pre=--rename :RENAME} $EXECUTABLE -- $OUT $OUT_NOAUTO ${input;hide:"build/scripts/fetch_from.py"} ${input;hide:"build/scripts/fetch_from_sandbox.py"} ${input;hide:"build/scripts/fetch_from_mds.py"} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${requirements;hide:"network:full"} ${kv;hide:"p XT"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} - + #FIXME: add '${resource;pre=$EXT:OutFile}' when support of the scheme is added to executors -#FIXME: add 'ADD_CHECK(check.external $File)' when proper testing is implemented -} - +#FIXME: add 'ADD_CHECK(check.external $File)' when proper testing is implemented +} + ### @usage LARGE_FILES([AUTOUPDATED] Files...) -### +### ### Use large file ether from working copy or from remote storage via placeholder <File>.external ### If <File> is present locally (and not a symlink!) it will be copied to build directory. ### Otherwise macro will try to locate <File>.external, parse it retrieve ot during build phase. macro LARGE_FILES(AUTOUPDATED?, Files...) { - # This is needed to correctly switch between remote and local modes - _GLOB($LF $Files) -} - - -### @usage: FROM_ARCHIVE(Src [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE]) -### -### Process file archive as [FROM_SANDBOX()](#macro_FROM_SANDBOX). -macro FROM_ARCHIVE(Src, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], PREFIX=".", RENAME[], EXECUTABLE?"--executable":"") { - .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_archive.py"} "--archive" ${input:Src} "--file-name" ${suf=-:Src} "--untar-to" $PREFIX ${pre=--rename :RENAME} $EXECUTABLE -- $OUT $OUT_NOAUTO ${input;hide:"build/scripts/fetch_from.py"} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${kv;hide:"p FA"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} -} - + # This is needed to correctly switch between remote and local modes + _GLOB($LF $Files) +} + + +### @usage: FROM_ARCHIVE(Src [RENAME <resource files>] OUT_[NOAUTO] <output files> [EXECUTABLE]) +### +### Process file archive as [FROM_SANDBOX()](#macro_FROM_SANDBOX). +macro FROM_ARCHIVE(Src, OUT{output}[], OUT_NOAUTO{output}[], OUTPUT_INCLUDES[], PREFIX=".", RENAME[], EXECUTABLE?"--executable":"") { + .CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_archive.py"} "--archive" ${input:Src} "--file-name" ${suf=-:Src} "--untar-to" $PREFIX ${pre=--rename :RENAME} $EXECUTABLE -- $OUT $OUT_NOAUTO ${input;hide:"build/scripts/fetch_from.py"} ${output_include;hide:OUTPUT_INCLUDES} ${output;hide:OUT} ${output;noauto;hide:OUT_NOAUTO} ${kv;hide:"p FA"} ${kv;hide:"pc yellow"} ${kv;hide:"show_out"} +} + when ($MSVC == "yes") { C_AS_CXX_FLAGS=/TP /std:c++17 } @@ -7115,25 +7115,25 @@ otherwise { } # tag:cpp-specific -### @usage: COMPILE_C_AS_CXX() -### -### Compile .c files as .cpp ones within a module. +### @usage: COMPILE_C_AS_CXX() +### +### Compile .c files as .cpp ones within a module. macro COMPILE_C_AS_CXX() { SET(EXTRA_C_FLAGS $C_AS_CXX_FLAGS) } -### @usage: NO_DEBUG_INFO() -### -### Compile files without debug info collection. +### @usage: NO_DEBUG_INFO() +### +### Compile files without debug info collection. macro NO_DEBUG_INFO() { SET(NO_DEBUGINFO yes) } -### @usage: CTEMPLATE_VARNAMES(File) -### -### Generate File.varnames.h using contrib/libs/ctemplate/make_tpl_varnames_h -### -### Documentation: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/ctemplate/README.md +### @usage: CTEMPLATE_VARNAMES(File) +### +### Generate File.varnames.h using contrib/libs/ctemplate/make_tpl_varnames_h +### +### Documentation: https://a.yandex-team.ru/arc/trunk/arcadia/contrib/libs/ctemplate/README.md macro CTEMPLATE_VARNAMES(File) { .CMD=${tool:"contrib/libs/ctemplate/make_tpl_varnames_h"} -f ${output;addincl;nopath;noallext:File.varnames.h} ${input:File} } @@ -7143,8 +7143,8 @@ CLANG_ROOT=$CLANG_RESOURCE_GLOBAL ### @usage: GENERATED_SRCS(srcs... PARSE_META_FROM cpp_srcs... [OUTPUT_INCLUDES output_includes...] [OPTIONS]) ### -### Generate sources using Jinja 2 template engine. -### +### Generate sources using Jinja 2 template engine. +### ### srcs... - list of text files which will be generated during build time by templates. Each template must be ### placed to the place in source tree where corresponding source file should be generated. Name of ### template must be "<name_of_src_file>.markettemplate". For example if you want to generate file "example.cpp" @@ -7168,28 +7168,28 @@ macro GENERATED_SRCS(PARSE_META_FROM{input}[], OUTPUT_INCLUDES[], OPTIONS[], TEM PEERDIR(build/platform/clang) } -### @usage: CLANG_EMIT_AST_CXX(Input Output Opts...) -### +### @usage: CLANG_EMIT_AST_CXX(Input Output Opts...) +### ### Emit Clang AST from .cpp file. CXXFLAGS and LLVM_OPTS are passed in, while CFLAGS and C_FLAGS_PLATFORM are not. -### Note: Output name is used as is, no extension added. -macro CLANG_EMIT_AST_CXX(Input, Output, Opts...) { +### Note: Output name is used as is, no extension added. +macro CLANG_EMIT_AST_CXX(Input, Output, Opts...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $CLANG_ROOT/bin/clang++ ${pre=-I:_C__INCLUDE} $CXXFLAGS -Wno-unknown-warning-option $LLVM_OPTS -std=c++17 -fno-lto -emit-ast -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p ST"} ${kv;hide:"pc light-green"} PEERDIR(build/platform/clang) -} - -### @usage: LLVM_COMPILE_CXX(Input Output Opts...) -### +} + +### @usage: LLVM_COMPILE_CXX(Input Output Opts...) +### ### Emit LLVM bytecode from .cpp file. BC_CXXFLAGS, LLVM_OPTS and C_FLAGS_PLATFORM are passed in, while CFLAGS are not. -### Note: Output name is used as is, no extension added. +### Note: Output name is used as is, no extension added. macro LLVM_COMPILE_CXX(Input, Output, Opts...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $CLANG_ROOT/bin/clang++ ${pre=-I:_C__INCLUDE} $BC_CXXFLAGS $C_FLAGS_PLATFORM -Wno-unknown-warning-option $LLVM_OPTS -std=c++17 -fno-lto -emit-llvm -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc light-green"} PEERDIR(build/platform/clang) } -### @usage: LLVM_COMPILE_C(Input Output Opts...) -### +### @usage: LLVM_COMPILE_C(Input Output Opts...) +### ### Emit LLVM bytecode from .c file. BC_CFLAGS, LLVM_OPTS and C_FLAGS_PLATFORM are passed in, while CFLAGS are not. -### Note: Output name is used as is, no extension added. +### Note: Output name is used as is, no extension added. macro LLVM_COMPILE_C(Input, Output, Opts...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $CLANG_ROOT/bin/clang ${pre=-I:_C__INCLUDE} $BC_CFLAGS $C_FLAGS_PLATFORM $LLVM_OPTS -fno-lto -emit-llvm -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc light-green"} PEERDIR(build/platform/clang) @@ -7213,28 +7213,28 @@ macro BPF_STATIC(Input, Output, Opts...) { PEERDIR(build/platform/clang build/platform/lld) } -### @usage: LLVM_COMPILE_LL(Input Output Opts...) -### -### Compile LLVM bytecode to object representation. -### Note: Output name is used as is, no extension added. +### @usage: LLVM_COMPILE_LL(Input Output Opts...) +### +### Compile LLVM bytecode to object representation. +### Note: Output name is used as is, no extension added. macro LLVM_COMPILE_LL(Input, Output, Opts...) { .CMD=$CLANG_ROOT/bin/llvm-as ${input:Input} -o ${output;noauto:Output} ${kv;hide:"p BC"} ${kv;hide:"pc light-green"} PEERDIR(build/platform/clang) } -### @usage: LLVM_LINK(Output Inputs...) -### -### Call llvm-link on set of Inputs to produce Output. -### Note: Unlike many other macros output argument goes first. Output name is used as is, no extension added. +### @usage: LLVM_LINK(Output Inputs...) +### +### Call llvm-link on set of Inputs to produce Output. +### Note: Unlike many other macros output argument goes first. Output name is used as is, no extension added. macro LLVM_LINK(Output, Inputs...) { - .CMD=$CLANG_ROOT/bin/llvm-link ${input:Inputs} -o ${output;noauto:Output} ${kv;hide:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-red"} + .CMD=$CLANG_ROOT/bin/llvm-link ${input:Inputs} -o ${output;noauto:Output} ${kv;hide:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-red"} PEERDIR(build/platform/clang) } -### @usage: LLVM_OPT(Input Output Opts...) -### -### Call llvm-opt with set of Opts on Input to produce Output. -### Note: Output name is used as is, no extension added. +### @usage: LLVM_OPT(Input Output Opts...) +### +### Call llvm-opt with set of Opts on Input to produce Output. +### Note: Output name is used as is, no extension added. macro LLVM_OPT(Input, Output, Opts...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/llvm_opt_wrapper.py"} $CLANG_ROOT/bin/opt ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p OP"} ${kv;hide:"pc yellow"} PEERDIR(build/platform/clang) @@ -7250,17 +7250,17 @@ when ($CLANG && $DEBUGINFO_LINES_ONLY == "yes" && $NO_DEBUGINFO != "yes") { # TODO: configurable tar and touch PACK_TGZ=${cwd:ARCADIA_BUILD_ROOT} tar -czf ${rootrel:OUTPUT} ${rootrel:INPUT} ${kv;hide:"p AR"} ${kv;hide:"pc light-red"} - + # tag:internal -### @usage TOUCH(Outputs...) # internal +### @usage TOUCH(Outputs...) # internal ### Just introduce outputs macro TOUCH(Outputs...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/touch.py"} ${output:Outputs} } TOUCH_UNIT=$YMAKE_PYTHON ${input:"build/scripts/touch.py"} ${kv;hide:"p UN"} ${kv;hide:"pc light-cyan"} $TARGET -TOUCH_PACKAGE=$YMAKE_PYTHON ${input:"build/scripts/touch.py"} ${kv;hide:"pc light-red"} $TARGET && $YMAKE_PYTHON ${input:"build/scripts/copy_to_dir.py"} --dest-dir $BINDIR --build-root $ARCADIA_BUILD_ROOT $PACKED_PACKAGE_ARGS $SRCS_GLOBAL $PEERS -_P_PK=${kv;hide:"p PK"} -TOUCH_PACKAGE_MF=$GENERATE_MF && $TOUCH_PACKAGE $_P_PK +TOUCH_PACKAGE=$YMAKE_PYTHON ${input:"build/scripts/touch.py"} ${kv;hide:"pc light-red"} $TARGET && $YMAKE_PYTHON ${input:"build/scripts/copy_to_dir.py"} --dest-dir $BINDIR --build-root $ARCADIA_BUILD_ROOT $PACKED_PACKAGE_ARGS $SRCS_GLOBAL $PEERS +_P_PK=${kv;hide:"p PK"} +TOUCH_PACKAGE_MF=$GENERATE_MF && $TOUCH_PACKAGE $_P_PK TOUCH_JAVA_UNIT=$YMAKE_PYTHON ${input:"build/scripts/touch.py"} ${kv;hide:"java $CURDIR"} $TARGET NO_CHECK_IMPORTS_FOR_VALUE=None @@ -7272,7 +7272,7 @@ macro NO_CHECK_IMPORTS(Masks...) { SET(NO_CHECK_IMPORTS_FOR_VALUE $Masks) } - + # tag:yasm-specific _YASM_FMT_VALUE= _YASM_PLATFORM_FLAGS_VALUE= @@ -7308,21 +7308,21 @@ YASM_PREINCLUDES_VALUE= # tag:yasm-specific macro _SRC_yasm(SRC, PREINCLUDES[], SRCFLAGS...) { - .CMD=${tool:"contrib/tools/yasm"} -f ${_YASM_FMT_VALUE}${HARDWARE_ARCH} $_YASM_PLATFORM_FLAGS_VALUE $YASM_DEBUG_INFO $YASM_DEBUG_INFO_DISABLE_CACHE__NO_UID__ -D ${pre=_;suf=_:HARDWARE_TYPE} -D_YASM_ $ASM_PREFIX_VALUE $_YASM_PREDEFINED_FLAGS_VALUE $YASM_FLAGS ${pre=-I :_ASM__INCLUDE} $SRCFLAGS -o ${output;noext;suf=${OBJECT_SUF}:SRC} ${pre=-P :PREINCLUDES} ${input;hide:PREINCLUDES} ${input:SRC} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p AS"} ${kv;hide:"pc light-green"} + .CMD=${tool:"contrib/tools/yasm"} -f ${_YASM_FMT_VALUE}${HARDWARE_ARCH} $_YASM_PLATFORM_FLAGS_VALUE $YASM_DEBUG_INFO $YASM_DEBUG_INFO_DISABLE_CACHE__NO_UID__ -D ${pre=_;suf=_:HARDWARE_TYPE} -D_YASM_ $ASM_PREFIX_VALUE $_YASM_PREDEFINED_FLAGS_VALUE $YASM_FLAGS ${pre=-I :_ASM__INCLUDE} $SRCFLAGS -o ${output;noext;suf=${OBJECT_SUF}:SRC} ${pre=-P :PREINCLUDES} ${input;hide:PREINCLUDES} ${input:SRC} ${requirements;hide:PY_REQUIREMENTS} ${kv;hide:"p AS"} ${kv;hide:"pc light-green"} } - -### @usage: ASM_PREINCLUDE(AsmFiles...) -### -### Supply additional .asm files to all assembler calls within a module + +### @usage: ASM_PREINCLUDE(AsmFiles...) +### +### Supply additional .asm files to all assembler calls within a module macro ASM_PREINCLUDE(PREINCLUDES...) { SET_APPEND(YASM_PREINCLUDES_VALUE $PREINCLUDES) } # tag:python-specific -### @usage: RUN_PYTHON(Args...) -### -### Version of RUN() macro to invoke Python scripts -### @see: [RUN()](#macro_RUN) +### @usage: RUN_PYTHON(Args...) +### +### Version of RUN() macro to invoke Python scripts +### @see: [RUN()](#macro_RUN) macro RUN_PYTHON(Args...) { SETUP_RUN_PYTHON() RUN(${PYTHON_BIN} $Args) @@ -7331,17 +7331,17 @@ macro RUN_PYTHON(Args...) { ### @usage: RUN_ANTLR(Args...) ### ### Macro to invoke ANTLR3 generator (general case) -macro RUN_ANTLR(IN[], OUT[], OUT_NOAUTO[], OUTPUT_INCLUDES[], REQUIREMENTS[], CWD="", Args...) { +macro RUN_ANTLR(IN[], OUT[], OUT_NOAUTO[], OUTPUT_INCLUDES[], REQUIREMENTS[], CWD="", Args...) { PEERDIR(build/external_resources/antlr3) - _RUN_JAVA(-jar $ANTLR3_RESOURCE_GLOBAL/antlr-3.5.2-complete-no-st3.jar $Args IN $IN OUT $OUT OUT_NOAUTO $OUT_NOAUTO OUTPUT_INCLUDES $OUTPUT_INCLUDES REQUIREMENTS $REQUIREMENTS ${pre=CWD :CWD}) + _RUN_JAVA(-jar $ANTLR3_RESOURCE_GLOBAL/antlr-3.5.2-complete-no-st3.jar $Args IN $IN OUT $OUT OUT_NOAUTO $OUT_NOAUTO OUTPUT_INCLUDES $OUTPUT_INCLUDES REQUIREMENTS $REQUIREMENTS ${pre=CWD :CWD}) } ### @usage: RUN_ANTLR4(Args...) ### ### Macro to invoke ANTLR4 generator (general case) -macro RUN_ANTLR4(IN[], OUT[], OUT_NOAUTO[], OUTPUT_INCLUDES[], REQUIREMENTS[], CWD="", Args...) { +macro RUN_ANTLR4(IN[], OUT[], OUT_NOAUTO[], OUTPUT_INCLUDES[], REQUIREMENTS[], CWD="", Args...) { PEERDIR(build/external_resources/antlr4) - _RUN_JAVA(-jar $ANTLR4_RESOURCE_GLOBAL/antlr-4.9-complete.jar $Args IN $IN OUT $OUT OUT_NOAUTO $OUT_NOAUTO OUTPUT_INCLUDES $OUTPUT_INCLUDES REQUIREMENTS $REQUIREMENTS ${pre=CWD :CWD}) + _RUN_JAVA(-jar $ANTLR4_RESOURCE_GLOBAL/antlr-4.9-complete.jar $Args IN $IN OUT $OUT OUT_NOAUTO $OUT_NOAUTO OUTPUT_INCLUDES $OUTPUT_INCLUDES REQUIREMENTS $REQUIREMENTS ${pre=CWD :CWD}) } _ANTLR4_LISTENER_GRAMMAR=-listener @@ -7384,10 +7384,10 @@ macro TASKLET() { PEERDIR(tasklet/api) # CPP - CPP_PROTO_PLUGIN(tasklet_cpp tasklet/gen/cpp .tasklet.h) + CPP_PROTO_PLUGIN(tasklet_cpp tasklet/gen/cpp .tasklet.h) # Python - PY_PROTO_PLUGIN2(tasklet_py _tasklet.py _sbtask.py tasklet/gen/python DEPS tasklet/domain/sandbox tasklet/runtime sandbox/sdk2) + PY_PROTO_PLUGIN2(tasklet_py _tasklet.py _sbtask.py tasklet/gen/python DEPS tasklet/domain/sandbox tasklet/runtime sandbox/sdk2) #Java JAVA_PROTO_PLUGIN(tasket_java tasklet/gen/java DEPS tasklet/runtime/java/lib $JAVA_GRPC_STUB $JAVA_GRPC_PROTOBUF) @@ -7444,51 +7444,51 @@ macro EXPOSE(Args...) { .CMD=$YMAKE_PYTHON ${input:"build/scripts/touch.py"} ${output;suf=$_HASH_HELPER($Args).cpp:"empty_"} ${input;hide:Args} } - + # tag:proto -macro _PROTO_DESC_CMD(File) { - .CMD=${cwd;rootdir;input:File} $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_PATH --descriptor_set_out=${output;suf=.desc:File} --include_source_info ${input;rootrel:File} -} - -_PROTO_DESC_MERGE_CMD=$YMAKE_PYTHON ${input:"build/scripts/merge_files.py"} $TARGET $AUTO_INPUT ${kv;hide:"p PD"} ${kv;hide:"pc light-cyan"} -_PROTO_DESC_MERGE_PEERS_CMD=$YMAKE_PYTHON ${input:"build/scripts/merge_files.py"} $TARGET $PEERS $SRCS_GLOBAL ${kv;hide:"p PD"} ${kv;hide:"pc light-cyan"} - -NEED_GOOGLE_PROTO_PEERDIRS=yes - +macro _PROTO_DESC_CMD(File) { + .CMD=${cwd;rootdir;input:File} $PROTOC -I=./$PROTO_NAMESPACE -I=$ARCADIA_ROOT/$PROTO_NAMESPACE ${pre=-I=:_PROTO__INCLUDE} -I=$ARCADIA_BUILD_ROOT -I=$PROTOBUF_PATH --descriptor_set_out=${output;suf=.desc:File} --include_source_info ${input;rootrel:File} +} + +_PROTO_DESC_MERGE_CMD=$YMAKE_PYTHON ${input:"build/scripts/merge_files.py"} $TARGET $AUTO_INPUT ${kv;hide:"p PD"} ${kv;hide:"pc light-cyan"} +_PROTO_DESC_MERGE_PEERS_CMD=$YMAKE_PYTHON ${input:"build/scripts/merge_files.py"} $TARGET $PEERS $SRCS_GLOBAL ${kv;hide:"p PD"} ${kv;hide:"pc light-cyan"} + +NEED_GOOGLE_PROTO_PEERDIRS=yes + PROTO_LIBRARY_SEM=$CPP_LIBRARY_SEM && target_proto_plugin cpp_styleguide ${tool:"contrib/tools/protoc/plugins/cpp_styleguide"} -# tag:proto -### @usage: PROTO_LIBRARY() -### -### Build some varian of protocol buffers library. -### -### The particular variant is selected based on where PEERDIR to PROTO_LIBRARY comes from. -### -### Now supported 5 variants: C++, Java, Python 2.x, Python 3.x and Go. -### When PEERDIR comes from module for particular language appropriate variant is selected. -### PROTO_LIBRARY also supports emission of GRPC code if GRPC() macro is specified. -### Notes: -### - Python versions emit C++ code in addition to Python as optimization. -### - In some PROTO_LIBRARY-es Java or Python versions are excluded via EXCLUDE_TAGS macros due to incompatibilities. -### - Use from DEPENDS or BUNDLE is not allowed -### -### Documentation: https://wiki.yandex-team.ru/yatool/proto_library/ -### -### See: [GRPC()](#macro_GRPC), [OPTIMIZE_PY_PROTOS()](#macro_OPTIMIZE_PY_PROTOS), [INCLUDE_TAGS()](#macro_INCLUDE_TAGS), [EXCLUDE_TAGS()](#macro_EXCLUDE_TAGS) -multimodule PROTO_LIBRARY { - module CPP_PROTO : LIBRARY { +# tag:proto +### @usage: PROTO_LIBRARY() +### +### Build some varian of protocol buffers library. +### +### The particular variant is selected based on where PEERDIR to PROTO_LIBRARY comes from. +### +### Now supported 5 variants: C++, Java, Python 2.x, Python 3.x and Go. +### When PEERDIR comes from module for particular language appropriate variant is selected. +### PROTO_LIBRARY also supports emission of GRPC code if GRPC() macro is specified. +### Notes: +### - Python versions emit C++ code in addition to Python as optimization. +### - In some PROTO_LIBRARY-es Java or Python versions are excluded via EXCLUDE_TAGS macros due to incompatibilities. +### - Use from DEPENDS or BUNDLE is not allowed +### +### Documentation: https://wiki.yandex-team.ru/yatool/proto_library/ +### +### See: [GRPC()](#macro_GRPC), [OPTIMIZE_PY_PROTOS()](#macro_OPTIMIZE_PY_PROTOS), [INCLUDE_TAGS()](#macro_INCLUDE_TAGS), [EXCLUDE_TAGS()](#macro_EXCLUDE_TAGS) +multimodule PROTO_LIBRARY { + module CPP_PROTO : LIBRARY { .ALLOWED=EXPOSE # TODO(svidyuk): think about marker which forces semantics inheritance .SEM=PROTO_LIBRARY_SEM ENABLE(CPP_PROTO) ENABLE(GEN_PROTO) NO_CLANG_TIDY() - SET(PEERDIR_TAGS CPP_PROTO) - - when ($BUILD_PROTO_AS_EVLOG == "yes" && $USE_VANILLA_PROTOC == "yes") { - _OK=no - } - ASSERT(_OK BUILD_PROTO_AS_EVLOG and USE_VANILLA_PROTOC are incompatible yet) + SET(PEERDIR_TAGS CPP_PROTO) + + when ($BUILD_PROTO_AS_EVLOG == "yes" && $USE_VANILLA_PROTOC == "yes") { + _OK=no + } + ASSERT(_OK BUILD_PROTO_AS_EVLOG and USE_VANILLA_PROTOC are incompatible yet) MODULE_SUFFIX=$_CPP_PROTO_MODULE_SUFFIX MODULE_PREFIX=$_CPP_PROTO_MODULE_PREFIX @@ -7496,31 +7496,31 @@ multimodule PROTO_LIBRARY { when ($_COMMON_GOOGLE_APIS != "None") { PEERDIR += contrib/libs/googleapis-common-protos } - } - - module JAVA_PROTO: EXTERNAL_JAVA_LIBRARY { - .EXTS=.jsrc - .ALLOWED=GRPC + } + + module JAVA_PROTO: EXTERNAL_JAVA_LIBRARY { + .EXTS=.jsrc + .ALLOWED=GRPC .SEM=ignored - SET(PEERDIR_TAGS JAVA_PROTO) + SET(PEERDIR_TAGS JAVA_PROTO) ENABLE(JAVA_PROTO) PEERDIR+=$JAVA_PROTOBUF_PEERS contrib/java/javax/annotation/javax.annotation-api/1.3.1 .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER USE_SKIFF CPP_PROTO_PLUGIN2 PY_PROTO_PLUGIN YMAPS_SPROTO RESOURCE - ADDINCL(FOR proto $PROTOBUF_PATH) + ADDINCL(FOR proto $PROTOBUF_PATH) when ($_COMMON_GOOGLE_APIS != "None") { PEERDIR += contrib/java/com/google/api/grpc/proto-google-common-protos/${JAVA_PROTO_COMMON_VERSION} ADDINCL += FOR proto ${ARCADIA_ROOT}/contrib/libs/googleapis-common-protos } - } - + } + module PY_PROTO: PY2_LIBRARY { - .ALIASES=SRCS=PY_SRCS + .ALIASES=SRCS=PY_SRCS .ALLOWED=OPTIMIZE_PY_PROTOS NO_OPTIMIZE_PY_PROTOS .PEERDIRSELF=CPP_PROTO .SEM=ignored - SET(PEERDIR_TAGS PY2 PY_PROTO) + SET(PEERDIR_TAGS PY2 PY_PROTO) ENABLE(PY_PROTO) OPTIMIZE_PY_PROTOS() OBJ_SUF=.py2 @@ -7537,22 +7537,22 @@ multimodule PROTO_LIBRARY { _IGNORE_PEERDIRSELF=CPP_PROTO } SET_APPEND(_WHOLE_ARCHIVE_LIBS_VALUE_GLOBAL $_CPP_PROTO_LIBRARY) - } - - module PY3_PROTO: PY3_LIBRARY { + } + + module PY3_PROTO: PY3_LIBRARY { .ALIASES=SRCS=PY_SRCS .ALLOWED=OPTIMIZE_PY_PROTOS NO_OPTIMIZE_PY_PROTOS .PEERDIRSELF=CPP_PROTO .SEM=ignored - SET(PEERDIR_TAGS PY3 PY3_PROTO) + SET(PEERDIR_TAGS PY3 PY3_PROTO) ENABLE(PY3_PROTO) OPTIMIZE_PY_PROTOS() - when ($MSVC == "yes" || $CYGWIN == "yes") { - MODULE_PREFIX=py3 - } - otherwise { - MODULE_PREFIX=libpy3 - } + when ($MSVC == "yes" || $CYGWIN == "yes") { + MODULE_PREFIX=py3 + } + otherwise { + MODULE_PREFIX=libpy3 + } OBJ_SUF=.py3 # Can not use NO_LINT(), because is not allowed outside of contrib directory SET(LINT_LEVEL_VALUE none_internal) @@ -7567,10 +7567,10 @@ multimodule PROTO_LIBRARY { _IGNORE_PEERDIRSELF=CPP_PROTO } SET_APPEND(_WHOLE_ARCHIVE_LIBS_VALUE_GLOBAL $_CPP_PROTO_LIBRARY) - } + } module GO_PROTO: GO_LIBRARY { - .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER YMAPS_SPROTO + .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER YMAPS_SPROTO .SEM=ignored SET(PEERDIR_TAGS GO GO_PROTO) ENABLE(GO_PROTO) @@ -7587,7 +7587,7 @@ multimodule PROTO_LIBRARY { } } - module EXT_PROTO: _BARE_UNIT { + module EXT_PROTO: _BARE_UNIT { .ALIASES=SRCS=_RAW_PROTO_SRCS .CMD=TOUCH_UNIT_MF .SEM=ignored @@ -7605,35 +7605,35 @@ multimodule PROTO_LIBRARY { SET(CREDITS_FILE_EXTRA_EXT .ext_proto) } - module DESC_PROTO: _BARE_UNIT { - .CMD=_PROTO_DESC_MERGE_CMD + module DESC_PROTO: _BARE_UNIT { + .CMD=_PROTO_DESC_MERGE_CMD .SEM=ignored - .EXTS=.desc - .NODE_TYPE=Library - .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER YMAPS_SPROTO RESOURCE GO_PROTO_PLUGIN GRPC - - SET(PEERDIR_TAGS DESC_PROTO) - ENABLE(DESC_PROTO) - MODULE_SUFFIX=.self.protodesc - SET(MODULE_TYPE LIBRARY) - - MACRO_ALIAS(EVLOG_CMD _PROTO_DESC_CMD) - MACRO_ALIAS(PROTO_CMD _PROTO_DESC_CMD) - - when ($_COMMON_GOOGLE_APIS != "None") { - PEERDIR += contrib/libs/googleapis-common-protos - } - - when ($NEED_GOOGLE_PROTO_PEERDIRS == "yes") { - when ($USE_VANILLA_PROTOC == "yes") { - PEERDIR += contrib/libs/protobuf_std/builtin_proto/protos_from_protobuf - } - otherwise { - PEERDIR += contrib/libs/protobuf/builtin_proto/protos_from_protoc - } - } - } - + .EXTS=.desc + .NODE_TYPE=Library + .IGNORED=GENERATE_ENUM_SERIALIZATION GENERATE_ENUM_SERIALIZATION_WITH_HEADER YMAPS_SPROTO RESOURCE GO_PROTO_PLUGIN GRPC + + SET(PEERDIR_TAGS DESC_PROTO) + ENABLE(DESC_PROTO) + MODULE_SUFFIX=.self.protodesc + SET(MODULE_TYPE LIBRARY) + + MACRO_ALIAS(EVLOG_CMD _PROTO_DESC_CMD) + MACRO_ALIAS(PROTO_CMD _PROTO_DESC_CMD) + + when ($_COMMON_GOOGLE_APIS != "None") { + PEERDIR += contrib/libs/googleapis-common-protos + } + + when ($NEED_GOOGLE_PROTO_PEERDIRS == "yes") { + when ($USE_VANILLA_PROTOC == "yes") { + PEERDIR += contrib/libs/protobuf_std/builtin_proto/protos_from_protobuf + } + otherwise { + PEERDIR += contrib/libs/protobuf/builtin_proto/protos_from_protoc + } + } + } + module PB_PY_PROTO: _PY_PACKAGE { .INCLUDE_TAG=no .PROXY=yes @@ -7645,7 +7645,7 @@ multimodule PROTO_LIBRARY { # _COMMON_GOOGLE_APIS aren't handled intentionally. # PB_PY_PROTO is a legacy module type, stop using it. } -} +} # tag:proto _EXT_PROTO_DIR=_RAW_ @@ -7681,21 +7681,21 @@ macro _RAW_PROTO_SRCS(FILES...) { } module PROTO_DESCRIPTIONS: _BARE_UNIT { - .CMD=_PROTO_DESC_MERGE_PEERS_CMD - .PEERDIR_POLICY=as_build_from - .NODE_TYPE=Library - .RESTRICTED=SRCS - .FINAL_TARGET=yes - - SET(PEERDIR_TAGS DESC_PROTO) - SET(MODULE_SUFFIX .protodesc) + .CMD=_PROTO_DESC_MERGE_PEERS_CMD + .PEERDIR_POLICY=as_build_from + .NODE_TYPE=Library + .RESTRICTED=SRCS + .FINAL_TARGET=yes + + SET(PEERDIR_TAGS DESC_PROTO) + SET(MODULE_SUFFIX .protodesc) SET(MODULE_TYPE PROTO_DESCRIPTIONS) } module PROTO_REGISTRY: PROTO_DESCRIPTIONS { - SET(MODULE_TYPE PROTO_REGISTRY) -} - + SET(MODULE_TYPE PROTO_REGISTRY) +} + # tag:fbs _FBS_NAMESPACE_MAP_GLOBAL= @@ -7768,14 +7768,14 @@ multimodule FBS_LIBRARY { } # tag:java-specific -_COMPILE_JSRC=${cwd:ARCADIA_BUILD_ROOT} $YMAKE_PYTHON ${input:"build/scripts/compile_jsrc.py"} --input $AUTO_INPUT --output $TARGET --prefix $BINDIR ${requirements;hide:JAVA_REQUIREMENTS} ${kv;hide:"p JC"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} +_COMPILE_JSRC=${cwd:ARCADIA_BUILD_ROOT} $YMAKE_PYTHON ${input:"build/scripts/compile_jsrc.py"} --input $AUTO_INPUT --output $TARGET --prefix $BINDIR ${requirements;hide:JAVA_REQUIREMENTS} ${kv;hide:"p JC"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} # tag:java-specific COMPILE_JSRC_MF=$_COMPILE_JSRC && $GENERATE_MF # tag:java-specific tag:internal ### @usage: JSRC_LIBRARY() # internal -module JSRC_LIBRARY: _BARE_UNIT { +module JSRC_LIBRARY: _BARE_UNIT { .CMD=COMPILE_JSRC_MF .EXTS=.java .ALL_INS_TO_OUT=no @@ -7836,7 +7836,7 @@ module DLL_PROXY_LIBRARY: _PROXY_LIBRARY { .CMD=_DLL_PROXY_LIBRARY_CMD } -_PREBUILT_PROGRAM_CMD=$GENERATE_MF && $COPY_CMD $_PRIMARY_OUTPUT_VALUE ${TARGET} ${kv;hide:"p ld"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} +_PREBUILT_PROGRAM_CMD=$GENERATE_MF && $COPY_CMD $_PRIMARY_OUTPUT_VALUE ${TARGET} ${kv;hide:"p ld"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} # tag:internal ### @usage: PREBUILT_PROGRAM([programname]) # internal @@ -8057,30 +8057,30 @@ macro _GO_COMPILE_SYMABIS(FLAGS[], ASM_FILES...) { } # tag:go-specific -macro _GO_COMPILE_CGO1(NAME, FLAGS[], FILES...) { +macro _GO_COMPILE_CGO1(NAME, FLAGS[], FILES...) { .CMD=${hide:_GO_FAKEID} ${cwd:ARCADIA_ROOT} $YMAKE_PYTHON ${input:"build/scripts/cgo1_wrapper.py"} $_GO_CGO1_WRAPPER_FLAGS --build-root ${ARCADIA_BUILD_ROOT} --source-root ${ARCADIA_ROOT} --cgo1-files ${output;noext:FILES.cgo1.go} --cgo2-files ${output;noauto;noext:FILES.cgo2.c} -- ${GO_TOOLS_ROOT}/pkg/tool/${GO_HOST_OS}_${GO_HOST_ARCH}/cgo -objdir $BINDIR -importpath $NAME $GO_CGO1_FLAGS_VALUE $FLAGS -- $C_FLAGS_PLATFORM ${pre=-I:_C__INCLUDE} ${CGO_CFLAGS_VALUE} ${input:FILES} ${output;hide:"_cgo_export.h"} ${output;hide:"_cgo_export.c"} ${output;hide:"_cgo_gotypes.go"} ${output;noauto;hide:"_cgo_main.c"} ${output;noauto;hide:"_cgo_flags"} $GO_TOOLCHAIN_ENV ${kv;hide:"p go"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} } # tag:go-specific macro _GO_COMPILE_CGO2(NAME, C_FILES[], S_FILES[], OBJ_FILES[], FILES...) { - .CMD=${hide:_GO_FAKEID} $C_COMPILER $C_FLAGS_PLATFORM ${pre=-I:_C__INCLUDE} $CGO_CFLAGS_VALUE ${input;tobindir:"_cgo_main.c"} -c -o ${tmp;noauto;suf=${OBJECT_SUF}:"_cgo_main.c"} && $C_COMPILER $C_FLAGS_PLATFORM ${pre=-I:_C__INCLUDE} -o ${tmp;noauto;suf=${OBJECT_SUF}:"_cgo_"} $LDFLAGS $LDFLAGS_GLOBAL $CGO2_LDFLAGS_VALUE ${input;hide:"_cgo_export.h"} ${tmp;noauto;suf=${OBJECT_SUF}:"_cgo_main.c"} ${input;suf=${OBJECT_SUF}:"_cgo_export.c"} ${input;nopath;noext;suf=.cgo2.c${OBJECT_SUF}:FILES} ${input;suf=${OBJECT_SUF}:C_FILES} ${input;suf=.o:S_FILES} ${input:OBJ_FILES} $CGO_LDFLAGS_VALUE && ${GO_TOOLS_ROOT}/pkg/tool/${GO_HOST_OS}_${GO_HOST_ARCH}/cgo -dynpackage $NAME -dynimport ${tmp;noauto;suf=${OBJECT_SUF}:"_cgo_"} -dynout ${output:"_cgo_import.go"} -dynlinker $GO_CGO2_FLAGS_VALUE $GO_TOOLCHAIN_ENV ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p go"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} + .CMD=${hide:_GO_FAKEID} $C_COMPILER $C_FLAGS_PLATFORM ${pre=-I:_C__INCLUDE} $CGO_CFLAGS_VALUE ${input;tobindir:"_cgo_main.c"} -c -o ${tmp;noauto;suf=${OBJECT_SUF}:"_cgo_main.c"} && $C_COMPILER $C_FLAGS_PLATFORM ${pre=-I:_C__INCLUDE} -o ${tmp;noauto;suf=${OBJECT_SUF}:"_cgo_"} $LDFLAGS $LDFLAGS_GLOBAL $CGO2_LDFLAGS_VALUE ${input;hide:"_cgo_export.h"} ${tmp;noauto;suf=${OBJECT_SUF}:"_cgo_main.c"} ${input;suf=${OBJECT_SUF}:"_cgo_export.c"} ${input;nopath;noext;suf=.cgo2.c${OBJECT_SUF}:FILES} ${input;suf=${OBJECT_SUF}:C_FILES} ${input;suf=.o:S_FILES} ${input:OBJ_FILES} $CGO_LDFLAGS_VALUE && ${GO_TOOLS_ROOT}/pkg/tool/${GO_HOST_OS}_${GO_HOST_ARCH}/cgo -dynpackage $NAME -dynimport ${tmp;noauto;suf=${OBJECT_SUF}:"_cgo_"} -dynout ${output:"_cgo_import.go"} -dynlinker $GO_CGO2_FLAGS_VALUE $GO_TOOLCHAIN_ENV ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p go"} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"} _USE_LINKER() } # tag:go-specific macro _GO_LINK_LIB_IMPL(CGO_FILES[], EXTRA_INPUTS[], GO_FILES...) { - .CMD=${hide:_GO_FAKEID} $YMAKE_PYTHON ${input:"build/scripts/go_tool.py"} ${hide;input:EXTRA_INPUTS} --ya-start-command-file $_GO_TOOL_COMMON_FLAGS ++peers ${rootrel;tags_in=local,GO|local,GO_PROTO|local,GO_FBS:PEERS} --ya-end-command-file ${requirements;hide:LIB_REQUIREMENTS} ${kv;hide:"p GO"} ${kv;hide:"pc light-red"} ${kv;hide:"show_out"} + .CMD=${hide:_GO_FAKEID} $YMAKE_PYTHON ${input:"build/scripts/go_tool.py"} ${hide;input:EXTRA_INPUTS} --ya-start-command-file $_GO_TOOL_COMMON_FLAGS ++peers ${rootrel;tags_in=local,GO|local,GO_PROTO|local,GO_FBS:PEERS} --ya-end-command-file ${requirements;hide:LIB_REQUIREMENTS} ${kv;hide:"p GO"} ${kv;hide:"pc light-red"} ${kv;hide:"show_out"} } # tag:go-specific macro _GO_LINK_EXE_IMPL(CGO_FILES[], EXTRA_INPUTS[], GO_FILES...) { - .CMD=${hide:_GO_FAKEID} $YMAKE_PYTHON ${input:"build/scripts/go_tool.py"} ${hide;input:EXTRA_INPUTS} --ya-start-command-file $_GO_TOOL_COMMON_FLAGS ++vcs $VCS_GO $GO_WITH_MUSL $GO_EXTLD ++peers ${rootrel;tags_in=local,GO|local,GO_PROTO|local,GO_FBS:PEERS} ++non-local-peers ${rootrel;tags_in=GO|GO_PROTO|GO_FBS;tags_out=local:PEERS} ++cgo-peers ${VCS_C_OBJ_RR} ${rootrel;tags_out=GO|GO_PROTO|GO_FBS:PEERS} --ya-end-command-file ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"p LD"} ${kv;hide:"pc light-red"} ${kv;hide:"show_out"} $_GO_LINK_EXE_EXT_CMD + .CMD=${hide:_GO_FAKEID} $YMAKE_PYTHON ${input:"build/scripts/go_tool.py"} ${hide;input:EXTRA_INPUTS} --ya-start-command-file $_GO_TOOL_COMMON_FLAGS ++vcs $VCS_GO $GO_WITH_MUSL $GO_EXTLD ++peers ${rootrel;tags_in=local,GO|local,GO_PROTO|local,GO_FBS:PEERS} ++non-local-peers ${rootrel;tags_in=GO|GO_PROTO|GO_FBS;tags_out=local:PEERS} ++cgo-peers ${VCS_C_OBJ_RR} ${rootrel;tags_out=GO|GO_PROTO|GO_FBS:PEERS} --ya-end-command-file ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"p LD"} ${kv;hide:"pc light-red"} ${kv;hide:"show_out"} $_GO_LINK_EXE_EXT_CMD } # tag:go-specific macro _GO_LINK_TEST_IMPL(CGO_FILES[], EXTRA_INPUTS[], GO_TEST_FILES[], GO_XTEST_FILES[], GO_FILES...) { - .CMD=${hide:_GO_FAKEID} $YMAKE_PYTHON ${input:"build/scripts/go_tool.py"} ${hide;input:EXTRA_INPUTS} --ya-start-command-file $_GO_TOOL_COMMON_FLAGS ++vcs $VCS_GO $GO_WITH_MUSL $GO_EXTLD ++test-miner $GO_TEST_MINER ++test-import-path $GO_TEST_IMPORT_PATH ++peers ${rootrel;tags_in=local,GO|local,GO_PROTO|local,GO_FBS:PEERS} ++non-local-peers ${rootrel;tags_in=GO|GO_PROTO|GO_FBS;tags_out=local:PEERS} ++cgo-peers ${VCS_C_OBJ_RR} ${rootrel;tags_out=GO|GO_PROTO|GO_FBS:PEERS} ++test_srcs ${input:GO_TEST_FILES} ++xtest_srcs ${input:GO_XTEST_FILES} ++cover_info $GO_COVER_INFO_VALUE ++skip-tests $_GO_SKIP_TEST_VALUE --ya-end-command-file ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"p GO"} ${kv;hide:"pc light-red"} ${kv;hide:"show_out"} + .CMD=${hide:_GO_FAKEID} $YMAKE_PYTHON ${input:"build/scripts/go_tool.py"} ${hide;input:EXTRA_INPUTS} --ya-start-command-file $_GO_TOOL_COMMON_FLAGS ++vcs $VCS_GO $GO_WITH_MUSL $GO_EXTLD ++test-miner $GO_TEST_MINER ++test-import-path $GO_TEST_IMPORT_PATH ++peers ${rootrel;tags_in=local,GO|local,GO_PROTO|local,GO_FBS:PEERS} ++non-local-peers ${rootrel;tags_in=GO|GO_PROTO|GO_FBS;tags_out=local:PEERS} ++cgo-peers ${VCS_C_OBJ_RR} ${rootrel;tags_out=GO|GO_PROTO|GO_FBS:PEERS} ++test_srcs ${input:GO_TEST_FILES} ++xtest_srcs ${input:GO_XTEST_FILES} ++cover_info $GO_COVER_INFO_VALUE ++skip-tests $_GO_SKIP_TEST_VALUE --ya-end-command-file ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"p GO"} ${kv;hide:"pc light-red"} ${kv;hide:"show_out"} } # tag:go-specific @@ -8097,8 +8097,8 @@ when ($OS_WINDOWS == "yes" || $SANITIZER_TYPE && $SANITIZER_TYPE != "no") { # tag:go-specific GO_PACKAGE_VALUE= -### @usage: GO_PACKAGE_NAME(Name) -### Override name of a Go package. +### @usage: GO_PACKAGE_NAME(Name) +### Override name of a Go package. macro GO_PACKAGE_NAME(NAME) { SET(GO_PACKAGE_VALUE $NAME) } @@ -8106,40 +8106,40 @@ macro GO_PACKAGE_NAME(NAME) { # tag:go-specific tag:internal _GO_SRCS_VALUE= ### @usage: _GO_SRCS(Files...) # internal -### This macro shouldn't be used in ya.make files, use SRCS() instead. -### This is internal macro collecting .go sources for processing within Go modules (GO_PROGRAM and GO_LIBRARY) +### This macro shouldn't be used in ya.make files, use SRCS() instead. +### This is internal macro collecting .go sources for processing within Go modules (GO_PROGRAM and GO_LIBRARY) macro _GO_SRCS(FILES...) { - GO_FAKE_OUTPUT($FILES) + GO_FAKE_OUTPUT($FILES) SET_APPEND(_GO_SRCS_VALUE $FILES) } # tag:go-specific _GO_TEST_SRCS_VALUE= -### @usage: GO_TEST_SRCS(Files...) -### .go sources for internal tests of a module +### @usage: GO_TEST_SRCS(Files...) +### .go sources for internal tests of a module macro GO_TEST_SRCS(FILES...) { - GO_FAKE_OUTPUT($FILES) + GO_FAKE_OUTPUT($FILES) SET_APPEND(_GO_TEST_SRCS_VALUE $FILES) } # tag:go-specific _GO_XTEST_SRCS_VALUE= -### @usage: GO_XTEST_SRCS(Files...) -### .go sources for external tests of a module +### @usage: GO_XTEST_SRCS(Files...) +### .go sources for external tests of a module macro GO_XTEST_SRCS(FILES...) { - GO_FAKE_OUTPUT($FILES) + GO_FAKE_OUTPUT($FILES) SET_APPEND(_GO_XTEST_SRCS_VALUE $FILES) } # tag:go-specific -macro _GO_UNUSED_SRCS(FLAGS...) { +macro _GO_UNUSED_SRCS(FLAGS...) { ENABLE(UNUSED_MACRO) } # tag:go-specific _CGO_SRCS_VALUE= -### @usage: CGO_SRCS(Files...) -### .go sources to be built with CGO +### @usage: CGO_SRCS(Files...) +### .go sources to be built with CGO macro CGO_SRCS(FILES...) { SET_APPEND(_CGO_SRCS_VALUE $FILES) PEERDIR(${GOSTD}/syscall) @@ -8147,16 +8147,16 @@ macro CGO_SRCS(FILES...) { # tag:go-specific GO_LDFLAGS_GLOBAL= -### @usage: GO_LDFLAGS(Flags...) -### Link flags for GO_PROGRAM linking from .go sources +### @usage: GO_LDFLAGS(Flags...) +### Link flags for GO_PROGRAM linking from .go sources macro GO_LDFLAGS(FLAGS...) { SET_APPEND(GO_LDFLAGS_GLOBAL $FLAGS) } # tag:go-specific CGO_CFLAGS_VALUE= -### @usage: CGO_CFLAGS(Flags...) -### Compiler flags specific to CGO compilation +### @usage: CGO_CFLAGS(Flags...) +### Compiler flags specific to CGO compilation macro CGO_CFLAGS(FLAGS...) { SET_APPEND(CGO_CFLAGS_VALUE $FLAGS) CFLAGS($FLAGS) @@ -8164,8 +8164,8 @@ macro CGO_CFLAGS(FLAGS...) { # tag:go-specific CGO_LDFLAGS_VALUE= -### @usage: CGO_LDFLAGS(Files...) -### Linker flags specific to CGO linking +### @usage: CGO_LDFLAGS(Files...) +### Linker flags specific to CGO linking macro CGO_LDFLAGS(FLAGS...) { SET_APPEND(CGO_LDFLAGS_VALUE $FLAGS) GO_LDFLAGS($FLAGS) @@ -8293,13 +8293,13 @@ _GO_GRPC_WELLKNOWN=\ vendor/google.golang.org/grpc/status # tag:go-specific -macro _GO_GRPC() { +macro _GO_GRPC() { SET(GO_PROTO_GEN_PLUGINS grpc) PEERDIR(${GOSTD}/context ${_GO_GRPC_WELLKNOWN}) } # tag:go-specific -### @usage: GO_GRPC_GATEWAY_SRCS() +### @usage: GO_GRPC_GATEWAY_SRCS() ### ### Use of grpc-gateway plugin (Supported for Go only). macro GO_GRPC_GATEWAY_SRCS(FILE...) { @@ -8307,21 +8307,21 @@ macro GO_GRPC_GATEWAY_SRCS(FILE...) { } # tag:go-specific -### @usage: GO_GRPC_GATEWAY_SWAGGER_SRCS() -### -### Use of grpc-gateway plugin w/ swagger emission (Supported for Go only). -macro GO_GRPC_GATEWAY_SWAGGER_SRCS(FILE...) { - PEERDIR(vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options) -} - +### @usage: GO_GRPC_GATEWAY_SWAGGER_SRCS() +### +### Use of grpc-gateway plugin w/ swagger emission (Supported for Go only). +macro GO_GRPC_GATEWAY_SWAGGER_SRCS(FILE...) { + PEERDIR(vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options) +} + # tag:go-specific _GO_PROTO_GRPC_GATEWAY_OPTS= _GO_PROTO_GRPC_GATEWAY_OUTS= # tag:go-specific -macro _GO_GRPC_GATEWAY_SRCS_IMPL(Files...) { +macro _GO_GRPC_GATEWAY_SRCS_IMPL(Files...) { foreach (File : $Files) { - [.proto]=$_GO_PROTO_CMD_IMPL($File OPTS $_GO_PROTO_GRPC_GATEWAY_OPTS OUTS $_GO_PROTO_GRPC_GATEWAY_OUTS) + [.proto]=$_GO_PROTO_CMD_IMPL($File OPTS $_GO_PROTO_GRPC_GATEWAY_OPTS OUTS $_GO_PROTO_GRPC_GATEWAY_OUTS) } PEERDIR(${GOSTD}/context ${GOSTD}/io ${GOSTD}/net/http) @@ -8332,27 +8332,27 @@ macro _GO_GRPC_GATEWAY_SRCS_IMPL(Files...) { } # tag:go-specific -macro _SETUP_GO_GRPC_GATEWAY() { +macro _SETUP_GO_GRPC_GATEWAY() { SET(_GO_PROTO_GRPC_GATEWAY_OPTS $_PROTO_PLUGIN_ARGS_BASE(go_grpc_gw vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway allow_repeated_fields_in_body=true:)) - SET(_GO_PROTO_GRPC_GATEWAY_OUTS \${output;hide;norel;nopath;noext;suf=.pb.gw.go:File}) -} - + SET(_GO_PROTO_GRPC_GATEWAY_OUTS \${output;hide;norel;nopath;noext;suf=.pb.gw.go:File}) +} + # tag:go-specific -macro _GO_GRPC_GATEWAY_SRCS(Files...) { - _SETUP_GO_GRPC_GATEWAY() - _GO_GRPC_GATEWAY_SRCS_IMPL($Files) -} - +macro _GO_GRPC_GATEWAY_SRCS(Files...) { + _SETUP_GO_GRPC_GATEWAY() + _GO_GRPC_GATEWAY_SRCS_IMPL($Files) +} + # tag:go-specific -macro _GO_GRPC_GATEWAY_SWAGGER_SRCS(Files...) { - _SETUP_GO_GRPC_GATEWAY() - SET_APPEND(_GO_PROTO_GRPC_GATEWAY_OPTS $_PROTO_PLUGIN_ARGS_BASE(swagger vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger logtostderr=true:)) - SET_APPEND(_GO_PROTO_GRPC_GATEWAY_OUTS \${output;hide;norel;noauto;nopath;noext;suf=.swagger.json:File}) - - _GO_GRPC_GATEWAY_SRCS_IMPL($Files) - PEERDIR(vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options) -} - +macro _GO_GRPC_GATEWAY_SWAGGER_SRCS(Files...) { + _SETUP_GO_GRPC_GATEWAY() + SET_APPEND(_GO_PROTO_GRPC_GATEWAY_OPTS $_PROTO_PLUGIN_ARGS_BASE(swagger vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger logtostderr=true:)) + SET_APPEND(_GO_PROTO_GRPC_GATEWAY_OUTS \${output;hide;norel;noauto;nopath;noext;suf=.swagger.json:File}) + + _GO_GRPC_GATEWAY_SRCS_IMPL($Files) + PEERDIR(vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options) +} + # tag:go-specific when ($MUSL == "yes") { _GO_DEFAULT_ALLOCATOR=$DEFAULT_ALLOCATOR @@ -8360,12 +8360,12 @@ when ($MUSL == "yes") { otherwise { _GO_DEFAULT_ALLOCATOR=FAKE } - + # tag:go-specific tag:internal -### @usage _GO_BASE_UNIT # internal -### +### @usage _GO_BASE_UNIT # internal +### ### The base module of all golang modules. Defines common properties, dependencies and rules for go build. -module _GO_BASE_UNIT: _BASE_UNIT { +module _GO_BASE_UNIT: _BASE_UNIT { .EXTS=.go .gosrc .o .obj .a .symabis .mf .CMD=TOUCH_UNIT .NODE_TYPE=Bundle @@ -8373,7 +8373,7 @@ module _GO_BASE_UNIT: _BASE_UNIT { .PEERDIR_POLICY=as_build_from .ALIASES=SRCS=_GO_SRCS RESOURCE=_GO_RESOURCE GO_TEST_SRCS=_GO_UNUSED_SRCS GO_XTEST_SRCS=_GO_UNUSED_SRCS GRPC=_GO_GRPC GO_GRPC_GATEWAY_SRCS=_GO_GRPC_GATEWAY_SRCS GO_GRPC_GATEWAY_SWAGGER_SRCS=_GO_GRPC_GATEWAY_SWAGGER_SRCS CFLAGS=CGO_CFLAGS GO_TEST_EMBED_PATTERN=_GO_UNUSED_SRCS GO_XTEST_EMBED_PATTERN=_GO_UNUSED_SRCS GO_TEST_EMBED_DIR=_GO_UNUSED_SRCS GO_XTEST_EMBED_DIR=_GO_UNUSED_SRCS .ALLOWED=GO_PROTO_PLUGIN USE_CXX USE_UTIL RESOURCE_FILES - .IGNORED=GO_SKIP_TESTS USE_SKIFF + .IGNORED=GO_SKIP_TESTS USE_SKIFF ENABLE(_GO_MODULE) SET(MODULE_TAG GO) @@ -8524,16 +8524,16 @@ module _GO_BASE_UNIT: _BASE_UNIT { } # tag:go-specific -### @usage: GO_LIBRARY([name]) -### -### Go library module definition. -### Compile Go module as a library suitable for PEERDIR from other Go modules. -### Will select Go implementation on PEERDIR to PROTO_LIBRARY. -module GO_LIBRARY: _GO_BASE_UNIT { +### @usage: GO_LIBRARY([name]) +### +### Go library module definition. +### Compile Go module as a library suitable for PEERDIR from other Go modules. +### Will select Go implementation on PEERDIR to PROTO_LIBRARY. +module GO_LIBRARY: _GO_BASE_UNIT { .CMD=GO_LINK_LIB .NODE_TYPE=Bundle - .FINAL_TARGET=no - .ALIASES=GO_REQUIREMENTS=LIB_REQUIREMENTS + .FINAL_TARGET=no + .ALIASES=GO_REQUIREMENTS=LIB_REQUIREMENTS SET(_GO_TOOL_MODE lib) SET(MODULE_TYPE LIBRARY) _REQUIRE_EXPLICIT_LICENSE(vendor) @@ -8542,25 +8542,25 @@ module GO_LIBRARY: _GO_BASE_UNIT { } # tag:go-specific -### @usage: GO_PROGRAM([name]) -### -### Go program module definition. -### Compile and link Go module to an executable program. -### Will select Go implementation on PEERDIR to PROTO_LIBRARY. -module GO_PROGRAM: _GO_BASE_UNIT { +### @usage: GO_PROGRAM([name]) +### +### Go program module definition. +### Compile and link Go module to an executable program. +### Will select Go implementation on PEERDIR to PROTO_LIBRARY. +module GO_PROGRAM: _GO_BASE_UNIT { .CMD=GO_LINK_EXE .NODE_TYPE=Bundle .SYMLINK_POLICY=EXE .ALLOWED=INDUCED_DEPS - .FINAL_TARGET=yes - .ALIASES=GO_REQUIREMENTS=LD_REQUIREMENTS + .FINAL_TARGET=yes + .ALIASES=GO_REQUIREMENTS=LD_REQUIREMENTS SET(_GO_TOOL_MODE exe) SET(MODULE_TYPE PROGRAM) SET(GO_VET_OUTPUT_INFO) ALLOCATOR($_GO_DEFAULT_ALLOCATOR) - _USE_LINKER() + _USE_LINKER() ENABLE(COMMON_LINK_SETTINGS) @@ -8640,17 +8640,17 @@ macro GO_BENCH_TIMEOUT(bench_timeout) { } # tag:go-specific tag:test -### @usage: GO_TEST([name]) -### -### Go test module definition. -### Compile and link Go module as a test suitable for running with Arcadia testing support. -### All usual testing support macros like DATA, DEPENDS, SIZE, REQUIREMENTS etc. are supported. -### Will select Go implementation on PEERDIR to PROTO_LIBRARY. +### @usage: GO_TEST([name]) +### +### Go test module definition. +### Compile and link Go module as a test suitable for running with Arcadia testing support. +### All usual testing support macros like DATA, DEPENDS, SIZE, REQUIREMENTS etc. are supported. +### Will select Go implementation on PEERDIR to PROTO_LIBRARY. module GO_TEST: GO_PROGRAM { .CMD=GO_LINK_TEST .ALIASES=GO_TEST_SRCS=GO_TEST_SRCS GO_XTEST_SRCS=GO_XTEST_SRCS GO_TEST_EMBED_PATTERN=GO_TEST_EMBED_PATTERN GO_XTEST_EMBED_PATTERN=GO_XTEST_EMBED_PATTERN GO_TEST_EMBED_DIR=GO_TEST_EMBED_DIR GO_XTEST_EMBED_DIR=GO_XTEST_EMBED_DIR .ALLOWED=GO_SKIP_TESTS YT_SPEC - .FINAL_TARGET=no + .FINAL_TARGET=no SET(_GO_TOOL_MODE test) SET(MODULE_TYPE PROGRAM) ENABLE(GO_TEST_MODULE) @@ -8663,8 +8663,8 @@ module GO_TEST: GO_PROGRAM { PEERDIR(${GOSTD}/testing/internal/testdeps) PEERDIR(${GOSTD}/testing) - ADD_YTEST($MODULE_PREFIX$REALPRJNAME go.test) - ADD_YTEST($MODULE_PREFIX$REALPRJNAME go.bench) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME go.test) + ADD_YTEST($MODULE_PREFIX$REALPRJNAME go.bench) SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/result.json) } @@ -8711,63 +8711,63 @@ macro JAVA_IGNORE_CLASSPATH_CLASH_FOR(Args...) { } # tag:python-specific -### @usage: PY_SRCS({| CYTHON_C} { | TOP_LEVEL | NAMESPACE ns} Files...) -### +### @usage: PY_SRCS({| CYTHON_C} { | TOP_LEVEL | NAMESPACE ns} Files...) +### ### Build specified Python sources according to Arcadia binary Python build. Basically creates precompiled and source resources keyed with module paths. -### The resources eventually are linked into final program and can be accessed as regular Python modules. +### The resources eventually are linked into final program and can be accessed as regular Python modules. ### This custom loader linked into the program will add them to sys.meta_path. -### -### PY_SRCS also support .proto, .ev, .pyx and .swg files. The .proto and .ev are compiled to .py-code by protoc and than handled as usual .py files. -### .pyx and .swg lead to C/C++ Python extensions generation, that are automatically registered in Python as built-in modules. -### -### By default .pyx files are built as C++-extensions. Use CYTHON_C to build them as C (similar to BUILDWITH_CYTHON_C, but with the ability to specify namespace). -### -### __init__.py never required, but if present (and specified in PY_SRCS), it will be imported when you import package modules with __init__.py Oh. -### -### @example -### +### +### PY_SRCS also support .proto, .ev, .pyx and .swg files. The .proto and .ev are compiled to .py-code by protoc and than handled as usual .py files. +### .pyx and .swg lead to C/C++ Python extensions generation, that are automatically registered in Python as built-in modules. +### +### By default .pyx files are built as C++-extensions. Use CYTHON_C to build them as C (similar to BUILDWITH_CYTHON_C, but with the ability to specify namespace). +### +### __init__.py never required, but if present (and specified in PY_SRCS), it will be imported when you import package modules with __init__.py Oh. +### +### @example +### ### PY2_LIBRARY(mymodule) -### PY_SRCS(a.py sub/dir/b.py e.proto sub/dir/f.proto c.pyx sub/dir/d.pyx g.swg sub/dir/h.swg) -### END() -### -### PY_SRCS honors Python2 and Python3 differences and adjusts itself to Python version of a current module. +### PY_SRCS(a.py sub/dir/b.py e.proto sub/dir/f.proto c.pyx sub/dir/d.pyx g.swg sub/dir/h.swg) +### END() +### +### PY_SRCS honors Python2 and Python3 differences and adjusts itself to Python version of a current module. ### PY_SRCS can be used in any Arcadia Python build modules like PY*_LIBRARY, PY*_PROGRAM, PY*TEST. ### PY_SRCS in LIBRARY or PROGRAM effectively converts these into PY2_LIBRARY and PY2_PROGRAM respectively. -### It is strongly advised to make this conversion explicit. Never use PY_SRCS in a LIBRARY if you plan to use it from external Python extension module. -### -### Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipylibrarypy3libraryimakrospysrcs -macro PY_SRCS() { - DEFAULT(MODULE_TAG PY2) - DEFAULT(PYTHON2 yes) - DEFAULT(PYTHON3 no) -} - +### It is strongly advised to make this conversion explicit. Never use PY_SRCS in a LIBRARY if you plan to use it from external Python extension module. +### +### Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs/#modulipylibrarypy3libraryimakrospysrcs +macro PY_SRCS() { + DEFAULT(MODULE_TAG PY2) + DEFAULT(PYTHON2 yes) + DEFAULT(PYTHON3 no) +} + # tag:python-specific -_ALL_PY_FILES= - +_ALL_PY_FILES= + # tag:python-specific -macro _ALL_PY_SRCS2(TOP_LEVEL?"TOP_LEVEL":"", RECURSIVE?"/**":"", NAMESPACE[], REST[]) { - _GLOB(_ALL_PY_FILES ${suf=${RECURSIVE}/*.py:REST} ${suf=${RECURSIVE}/ya.make:REST} EXCLUDE ya.make) - PY_SRCS(_MR ${pre=NAMESPACE :NAMESPACE} ${TOP_LEVEL} $_ALL_PY_FILES) -} - +macro _ALL_PY_SRCS2(TOP_LEVEL?"TOP_LEVEL":"", RECURSIVE?"/**":"", NAMESPACE[], REST[]) { + _GLOB(_ALL_PY_FILES ${suf=${RECURSIVE}/*.py:REST} ${suf=${RECURSIVE}/ya.make:REST} EXCLUDE ya.make) + PY_SRCS(_MR ${pre=NAMESPACE :NAMESPACE} ${TOP_LEVEL} $_ALL_PY_FILES) +} + # tag:python-specific -### @usage: ALL_PY_SRCS([RECURSIVE] { | TOP_LEVEL | NAMESPACE ns} [Dirs...]) -### -### Puts all .py-files from given Dirs (relative to projects') into PY_SRCS of the current module. -### If Dirs is ommitted project directory is used -### -### `RECURSIVE` makes lookup recursive with resprect to Dirs -### `TOP_LEVEL` and `NAMESPACE` are forwarded to `PY_SRCS` -### -### Note: Only one such macro per module is allowed -### Note: Macro is designed to reject any ya.make files in Dirs except current one -### -### @see [PY_SRCS()](#macro_PY_SRCS) -macro ALL_PY_SRCS(TOP_LEVEL?"TOP_LEVEL":"", NAMESPACE="", RECURSIVE?"RECURSIVE":"", Files...) { - _ALL_PY_SRCS2(${pre=NAMESPACE :NAMESPACE} ${TOP_LEVEL} ${RECURSIVE} REST .${pre=/:Files}) -} - +### @usage: ALL_PY_SRCS([RECURSIVE] { | TOP_LEVEL | NAMESPACE ns} [Dirs...]) +### +### Puts all .py-files from given Dirs (relative to projects') into PY_SRCS of the current module. +### If Dirs is ommitted project directory is used +### +### `RECURSIVE` makes lookup recursive with resprect to Dirs +### `TOP_LEVEL` and `NAMESPACE` are forwarded to `PY_SRCS` +### +### Note: Only one such macro per module is allowed +### Note: Macro is designed to reject any ya.make files in Dirs except current one +### +### @see [PY_SRCS()](#macro_PY_SRCS) +macro ALL_PY_SRCS(TOP_LEVEL?"TOP_LEVEL":"", NAMESPACE="", RECURSIVE?"RECURSIVE":"", Files...) { + _ALL_PY_SRCS2(${pre=NAMESPACE :NAMESPACE} ${TOP_LEVEL} ${RECURSIVE} REST .${pre=/:Files}) +} + # tag:python-specific _PY_EXTRA_LINT_FILES_VALUE= ### @usage: PY_EXTRA_LINT_FILES(files...) @@ -8779,46 +8779,46 @@ macro PY_EXTRA_LINT_FILES(FILES...) { } # tag:python-specific -### @usage: PY23_LIBRARY([name]) -### +### @usage: PY23_LIBRARY([name]) +### ### Build PY2_LIBRARY or PY3_LIBRARY depending on incoming PEERDIR. -### Direct build or build by RECURSE creates both variants. -### This multimodule doesn't define any final targets, so use from DEPENDS or BUNDLE is not allowed. -### -### Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs -multimodule PY23_LIBRARY { +### Direct build or build by RECURSE creates both variants. +### This multimodule doesn't define any final targets, so use from DEPENDS or BUNDLE is not allowed. +### +### Documentation: https://wiki.yandex-team.ru/arcadia/python/pysrcs +multimodule PY23_LIBRARY { module PY2: PY2_LIBRARY { - OBJ_SUF=.py2 + OBJ_SUF=.py2 RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT - } - module PY3: PY3_LIBRARY { + } + module PY3: PY3_LIBRARY { RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT - when ($MSVC == "yes" || $CYGWIN == "yes") { - MODULE_PREFIX=py3 - } - otherwise { - MODULE_PREFIX=libpy3 - } - OBJ_SUF=.py3 - } -} + when ($MSVC == "yes" || $CYGWIN == "yes") { + MODULE_PREFIX=py3 + } + otherwise { + MODULE_PREFIX=libpy3 + } + OBJ_SUF=.py3 + } +} # tag:python-specific -### @usage: PY23_NATIVE_LIBRARY([name]) -### +### @usage: PY23_NATIVE_LIBRARY([name]) +### ### Build LIBRARY compatible with either Python 2.x or Python 3.x depending on incoming PEERDIR. -### +### ### This multimodule doesn't depend on Arcadia Python binary build. It is intended only for C++ code and cannot contain PY_SRCS and USE_PYTHON2 macros. ### Use these multimodule instead of PY23_LIBRARY if the C++ extension defined in it will be used in PY2MODULE. ### While it doesn't bring Arcadia Python dependency itself, it is still compatible with Arcadia Python build and can be PEERDIR-ed from PY2_LIBRARY and alikes. -### Proper version will be selected according to Python version of the module PEERDIR comes from. -### -### This mulrtimodule doesn't define any final targets so cannot be used from DEPENDS or BUNDLE macros. -### -### For more information read https://wiki.yandex-team.ru/arcadia/python/pysrcs/#pysrcssrcsipy23nativelibrary -### +### Proper version will be selected according to Python version of the module PEERDIR comes from. +### +### This mulrtimodule doesn't define any final targets so cannot be used from DEPENDS or BUNDLE macros. +### +### For more information read https://wiki.yandex-team.ru/arcadia/python/pysrcs/#pysrcssrcsipy23nativelibrary +### ### @see [LIBRARY()](#module_LIBRARY), [PY2MODULE()](#module_PY2MODULE) -multimodule PY23_NATIVE_LIBRARY { +multimodule PY23_NATIVE_LIBRARY { module PY2: LIBRARY { .RESTRICTED=PY_SRCS USE_PYTHON2 USE_PYTHON3 PYTHON3_ADDINCL OBJ_SUF=.py2 @@ -8854,7 +8854,7 @@ macro _SRC("xib", SRC, SRCFLAGS...) { ACTOOL_PATH=$XCODE_TOOLS_ROOT_RESOURCE_GLOBAL/Xcode/Contents/Developer/usr/bin/ibtool # tag:ios-specific -ASSETS_FLAGS=--output-format human-readable-text --notices --warnings +ASSETS_FLAGS=--output-format human-readable-text --notices --warnings macro _IOS_ASSETS(AssetsDir, Content...) { .CMD=$FS_TOOLS md $BINDIR/$REALPRJNAME && $ACTOOL_PATH $ASSETS_FLAGS --export-dependency-info $BINDIR/assetcatalog_dependencies --output-partial-info-plist ${output:"assetcatalog_generated_info.partial_plist"} --product-type com.apple.product-type.application --compile $BINDIR/$REALPRJNAME $AssetsDir ${input;hide:Content} && ${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/tar_directory.py"} ${output;suf=_assetes.resource_tar:REALPRJNAME} $REALPRJNAME $REALPRJNAME } @@ -8883,7 +8883,7 @@ DELIM=__DELIM__ PACK_IOS_ARCHIVE=$GENERATE_MF && $YMAKE_PYTHON ${input:"build/scripts/ios_wrapper.py"} bin $IBTOOL_PATH $TARGET $REALPRJNAME $BINDIR $DELIM $AUTO_INPUT $DELIM $STORYBOARD_FLAGS ### @usage: IOS_INTERFACE() ### iOS GUI module definition -module IOS_INTERFACE: _BARE_UNIT { +module IOS_INTERFACE: _BARE_UNIT { .CMD=PACK_IOS_ARCHIVE .EXTS=.compiled_storyboard_tar .partial_plist .plist .xcent .nib .resource_tar .signed_resource_tar .strings_tar .plist_json .NODE_TYPE=Library @@ -8964,7 +8964,7 @@ otherwise { ### ### Recursively collect files with typical frontend extensions from Dir and save the result into variable Varname macro COLLECT_FRONTEND_FILES(Varname, Dir) { - _GLOB($Varname $Dir/**/*.(css|ejs|jpg|js|jsx|png|styl|svg|ts|tsx|json|html)) + _GLOB($Varname $Dir/**/*.(css|ejs|jpg|js|jsx|png|styl|svg|ts|tsx|json|html)) } # tag:java-specific @@ -9016,7 +9016,7 @@ when ($OPENGL_REQUIRED) { # tag:python-specific multimodule PY23_TEST { - module PY2 : PYTEST_BIN { + module PY2 : PYTEST_BIN { MODULE_PREFIX=py2_ OBJ_SUF=.py2 CANONIZE_SUB_PATH=py2test @@ -9029,7 +9029,7 @@ multimodule PY23_TEST { RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT } - module PY3TEST_LIBRARY: _PY3_LIBRARY { + module PY3TEST_LIBRARY: _PY3_LIBRARY { PEERDIR+=library/python/pytest _REQUIRE_EXPLICIT_LICENSE() RUN_CYTHON_SCRIPT=$YMAKE_PYTHON $CYTHON_SCRIPT @@ -9146,14 +9146,14 @@ CONTAINER_LAYER_CMD=$YMAKE_PYTHON ${input:"devtools/experimental/solar/selfconta CONTAINER_CMD=$YMAKE_PYTHON ${input:"devtools/experimental/solar/selfcontainer/scripts/make_container.py"} -o $TARGET ${rootrel:PEERS} ${cwd:ARCADIA_BUILD_ROOT} ${kv;hide:"p CN"} ${kv;hide:"pc blue"} # tag:external-build -module CONTAINER_LAYER: _BARE_UNIT { +module CONTAINER_LAYER: _BARE_UNIT { .CMD=CONTAINER_LAYER_CMD MODULE_SUFFIX=.container_layer } # tag:external-build -module CONTAINER: _BARE_UNIT { +module CONTAINER: _BARE_UNIT { .NODE_TYPE=Bundle .PEERDIR_POLICY=as_build_from .FINAL_TARGET=yes @@ -9241,14 +9241,14 @@ MCU_LINK_EXE=$LINK_EXE && $_MCU_CONVERT($MODULE_PREFIX$REALPRJNAME) module MCU_PROGRAM: PROGRAM { .CMD=MCU_LINK_EXE } - + # tag:deprecated -### @usage: METAQUERYFILES(filenames...) #deprecated -### -### This macro does nothing and will be removed -macro METAQUERYFILES(Files...) { - ENABLE(UNUSED_MACRO) -} +### @usage: METAQUERYFILES(filenames...) #deprecated +### +### This macro does nothing and will be removed +macro METAQUERYFILES(Files...) { + ENABLE(UNUSED_MACRO) +} # tag:flags tag:internal tag:windows-specific ### @usage: _MSVC_FLAGS_WINDOWS_IMPL(target_platform compiler_flags) # internal @@ -9266,13 +9266,13 @@ macro _MSVC_FLAGS_WINDOWS_IMPL(WINDOWS[], FLAGS...) { macro MSVC_FLAGS(FLAGS...) { _MSVC_FLAGS_WINDOWS_IMPL($TARGET_PLATFORM $FLAGS) } - -### @usage: COLLECT_YDB_API_SPECS_LEGACY(VarName Paths...) #deprecated -### + +### @usage: COLLECT_YDB_API_SPECS_LEGACY(VarName Paths...) #deprecated +### ### This macro is ugly hack for legacy YDB go API codegen, any other uses are prohibited -macro COLLECT_YDB_API_SPECS_LEGACY(FILES_VAR, PATHS...) { - _GLOB($FILES_VAR ${suf=/*.proto:PATHS}) - RESTRICT_PATH(kikimr/public/sdk/go/ydb/api MSG This is ugly hack for legacy YDB go API codegen, any other uses are probibited) -} - - +macro COLLECT_YDB_API_SPECS_LEGACY(FILES_VAR, PATHS...) { + _GLOB($FILES_VAR ${suf=/*.proto:PATHS}) + RESTRICT_PATH(kikimr/public/sdk/go/ydb/api MSG This is ugly hack for legacy YDB go API codegen, any other uses are probibited) +} + + diff --git a/build/ymake_conf.py b/build/ymake_conf.py index 7acdbd2e73..30219eb85e 100755 --- a/build/ymake_conf.py +++ b/build/ymake_conf.py @@ -647,13 +647,13 @@ class Build(object): def find_svn(): for i in range(0, 3): for path in (['.svn', 'wc.db'], ['.svn', 'entries'], ['.git', 'logs', 'HEAD']): - path_parts = [os.pardir] * i + path - full_path = os.path.join(self.arcadia.root, *path_parts) + path_parts = [os.pardir] * i + path + full_path = os.path.join(self.arcadia.root, *path_parts) # HACK(somov): No "normpath" here. ymake fails with the "source file name is outside the build tree" error # when .svn/wc.db found in "trunk" instead of "arcadia". But $ARCADIA_ROOT/../.svn/wc.db is ok. if os.path.exists(full_path): - out_path = os.path.join('${ARCADIA_ROOT}', *path_parts) - return '${input;hide:"%s"}' % out_path + out_path = os.path.join('${ARCADIA_ROOT}', *path_parts) + return '${input;hide:"%s"}' % out_path # Special processing for arc repository since .arc may be a symlink. dot_arc = os.path.realpath(os.path.join(self.arcadia.root, '.arc')) @@ -1664,7 +1664,7 @@ class GnuCompiler(Compiler): append('EXTRA_OUTPUT') - style = ['${requirements;hide:CC_REQUIREMENTS} ${hide;kv:"p CC"} ${hide;kv:"pc green"}'] + style = ['${requirements;hide:CC_REQUIREMENTS} ${hide;kv:"p CC"} ${hide;kv:"pc green"}'] cxx_args = [ '$CLANG_TIDY_ARGS', '$YNDEXER_ARGS', @@ -2042,16 +2042,16 @@ class LD(Linker): '$C_LIBRARY_PATH $C_SYSTEM_LIBRARIES_INTERCEPT $C_SYSTEM_LIBRARIES $STRIP_FLAG $DCE_FLAG $ICF_FLAG $LINKER_TIME_TRACE_FLAG'] arch_flag = '--arch={arch}'.format(arch=self.target.os_compat) - soname_flag = '-Wl,{option},${{_SONAME}}'.format(option=self.soname_option) + soname_flag = '-Wl,{option},${{_SONAME}}'.format(option=self.soname_option) shared_flag = '-shared' - exec_shared_flag = '-pie -fPIE -Wl,--unresolved-symbols=ignore-all -rdynamic' if self.target.is_linux else '' + exec_shared_flag = '-pie -fPIE -Wl,--unresolved-symbols=ignore-all -rdynamic' if self.target.is_linux else '' if self.whole_archive: srcs_globals = self.whole_archive + ' ${rootrel;ext=.a:SRCS_GLOBAL} ' + self.no_whole_archive \ + ' ${rootrel;ext=.o:SRCS_GLOBAL} ${rootrel;ext=.supp:SRCS_GLOBAL}' else: srcs_globals = '--start-wa ${rootrel;ext=.a:SRCS_GLOBAL} --end-wa ${rootrel;ext=.o:SRCS_GLOBAL} ${rootrel;ext=.supp:SRCS_GLOBAL}' - ld_env_style = '${cwd:ARCADIA_BUILD_ROOT} $TOOLCHAIN_ENV ${kv;hide:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"}' + ld_env_style = '${cwd:ARCADIA_BUILD_ROOT} $TOOLCHAIN_ENV ${kv;hide:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"}' # Program emit( @@ -2114,15 +2114,15 @@ class LD(Linker): emit('LINK_DYN_LIB_FLAGS') emit('REAL_LINK_DYN_LIB_CMDLINE', '$YMAKE_PYTHON ${input:"build/scripts/link_dyn_lib.py"}', - '--target $TARGET', - '--linker-output ${output;pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX$MODULE_VERSION.linker.txt:REALPRJNAME}' if self.save_linker_output else '', + '--target $TARGET', + '--linker-output ${output;pre=$MODULE_PREFIX;suf=$MODULE_SUFFIX$MODULE_VERSION.linker.txt:REALPRJNAME}' if self.save_linker_output else '', '${pre=--whole-archive-peers :WHOLE_ARCHIVE_PEERS}', '${pre=--whole-archive-libs :_WHOLE_ARCHIVE_LIBS_VALUE_GLOBAL}', arch_flag, '$LINK_DYN_LIB_FLAGS', '$CXX_COMPILER', srcs_globals, - '$VCS_C_OBJ $AUTO_INPUT -o $TARGET', + '$VCS_C_OBJ $AUTO_INPUT -o $TARGET', shared_flag, soname_flag, exe_flags, @@ -2144,7 +2144,7 @@ class LD(Linker): emit('LINK_EXEC_DYN_LIB', '$GENERATE_MF && $GENERATE_VCS_C_INFO_NODEP && $REAL_LINK_EXEC_DYN_LIB && $DWARF_COMMAND && $LINK_ADDITIONAL_SECTIONS_COMMAND') emit('SWIG_DLL_JAR_CMD', '$GENERATE_MF && $GENERATE_VCS_C_INFO_NODEP && $REAL_SWIG_DLL_JAR_CMD && $DWARF_COMMAND') - tail_link_lib = '$AUTO_INPUT ${requirements;hide:LIB_REQUIREMENTS} ${kv;hide:"p AR"} $TOOLCHAIN_ENV ${kv;hide:"pc light-red"} ${kv;hide:"show_out"}' + tail_link_lib = '$AUTO_INPUT ${requirements;hide:LIB_REQUIREMENTS} ${kv;hide:"p AR"} $TOOLCHAIN_ENV ${kv;hide:"pc light-red"} ${kv;hide:"show_out"}' if is_positive("TIDY"): archiver = '$YMAKE_PYTHON ${input:"build/scripts/clang_tidy_arch.py"} --source-root $ARCADIA_ROOT --build-root $ARCADIA_BUILD_ROOT --output-file' emit('LINK_LIB', archiver, "$TARGET", tail_link_lib) @@ -2162,7 +2162,7 @@ class LD(Linker): suffix = [arch_flag, '-Ya,input $AUTO_INPUT $VCS_C_OBJ -Ya,global_srcs', globals_libs, '-Ya,peers $PEERS', '-Ya,linker $CXX_COMPILER $LDFLAGS_GLOBAL $C_FLAGS_PLATFORM', self.ld_sdk, '-Ya,archiver', archiver, - '$TOOLCHAIN_ENV ${kv;hide:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"}'] + '$TOOLCHAIN_ENV ${kv;hide:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"}'] emit(cmd_name, *(prefix + list(extended_flags) + suffix)) # TODO(somov): Проверить, не нужны ли здесь все остальные флаги компоновки (LDFLAGS и т. д.). @@ -2613,22 +2613,22 @@ class MSVCCompiler(MSVC, Compiler): emit('_SRC_C_NODEPS_CMD', '${TOOLCHAIN_ENV} ${CL_WRAPPER} ${C_COMPILER} /c /Fo${OUTFILE} ${SRC} ${EXTRA_C_FLAGS} ${pre=/I :INC} ' - '${CFLAGS} ${requirements;hide:CC_REQUIREMENTS} ${hide;kv:"soe"} ${hide;kv:"p CC"} ${hide;kv:"pc yellow"}' + '${CFLAGS} ${requirements;hide:CC_REQUIREMENTS} ${hide;kv:"soe"} ${hide;kv:"p CC"} ${hide;kv:"pc yellow"}' ) emit('_SRC_CPP_CMD', '${TOOLCHAIN_ENV} ${CL_WRAPPER} ${CXX_COMPILER} /c /Fo$_COMPILE_OUTPUTS ${input;msvs_source:SRC} ' '${EXTRA_C_FLAGS} ${pre=/I :_C__INCLUDE} ${CXXFLAGS} ${SRCFLAGS} ${_LANG_CFLAGS_VALUE} ${requirements;hide:CC_REQUIREMENTS} ' - '${hide;kv:"soe"} ${hide;kv:"p CC"} ${hide;kv:"pc yellow"}' + '${hide;kv:"soe"} ${hide;kv:"p CC"} ${hide;kv:"pc yellow"}' ) emit('_SRC_C_CMD', '${TOOLCHAIN_ENV} ${CL_WRAPPER} ${C_COMPILER} /c /Fo$_COMPILE_OUTPUTS ${input;msvs_source:SRC} ' - '${EXTRA_C_FLAGS} ${pre=/I :_C__INCLUDE} ${CFLAGS} ${CONLYFLAGS} ${SRCFLAGS} ${requirements;hide:CC_REQUIREMENTS} ' - '${hide;kv:"soe"} ${hide;kv:"p CC"} ${hide;kv:"pc yellow"}' + '${EXTRA_C_FLAGS} ${pre=/I :_C__INCLUDE} ${CFLAGS} ${CONLYFLAGS} ${SRCFLAGS} ${requirements;hide:CC_REQUIREMENTS} ' + '${hide;kv:"soe"} ${hide;kv:"p CC"} ${hide;kv:"pc yellow"}' ) emit('_SRC_M_CMD', '$_EMPTY_CMD') emit('_SRC_MASM_CMD', '${cwd:ARCADIA_BUILD_ROOT} ${TOOLCHAIN_ENV} ${ML_WRAPPER} ${MASM_COMPILER} ${MASMFLAGS} ${SRCFLAGS} ' + - masm_io + '${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p AS"} ${kv;hide:"pc yellow"}' + masm_io + '${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p AS"} ${kv;hide:"pc yellow"}' ) @@ -2740,7 +2740,7 @@ class MSVCLinker(MSVC, Linker): emit('LINK_EXE_FLAGS', '$LINK_EXE_FLAGS_PER_TYPE') emit('LINK_IMPLIB_VALUE') - emit('LINK_IMPLIB', '/IMPLIB:${output;noext;rootrel;pre=$MODULE_PREFIX:REALPRJNAME.lib}') + emit('LINK_IMPLIB', '/IMPLIB:${output;noext;rootrel;pre=$MODULE_PREFIX:REALPRJNAME.lib}') if is_negative_str(preset('NO_DEBUGINFO', 'no')): emit('LINK_EXTRA_OUTPUT', '/PDB:${output;noext;rootrel;pre=$MODULE_PREFIX:REALPRJNAME.pdb}') else: @@ -2776,15 +2776,15 @@ class MSVCLinker(MSVC, Linker): ${LINK_IMPLIB_VALUE} /DLL /OUT:${qe;rootrel:TARGET} ${LINK_EXTRA_OUTPUT} ${EXPORTS_VALUE} \ ${pre=--whole-archive-peers :WHOLE_ARCHIVE_PEERS} \ ${pre=--whole-archive-libs :_WHOLE_ARCHIVE_LIBS_VALUE_GLOBAL}', - srcs_globals, '--ya-start-command-file ${VCS_C_OBJ_RR} ${qe;rootrel:AUTO_INPUT} ${qe;rootrel;ext=.lib:PEERS} ${qe;rootrel;ext=.dll;noext;suf=.lib:PEERS} \ + srcs_globals, '--ya-start-command-file ${VCS_C_OBJ_RR} ${qe;rootrel:AUTO_INPUT} ${qe;rootrel;ext=.lib:PEERS} ${qe;rootrel;ext=.dll;noext;suf=.lib:PEERS} \ $LINK_EXE_FLAGS $LINK_STDLIBS $LDFLAGS $LDFLAGS_GLOBAL $OBJADDE --ya-end-command-file') emit('REAL_LINK_DYN_LIB', '$REAL_LINK_DYN_LIB_IMPL($_WHOLE_ARCHIVE_PEERS_VALUE)') emit('SWIG_DLL_JAR_CMD', '$GENERATE_MF && $GENERATE_VCS_C_INFO_NODEP && $REAL_SWIG_DLL_JAR_CMD') head_link_lib = '${TOOLCHAIN_ENV} ${cwd:ARCADIA_BUILD_ROOT} ${LIB_WRAPPER} ${LINK_LIB_CMD}' - tail_link_lib = '--ya-start-command-file ${qe;rootrel:AUTO_INPUT} $LINK_LIB_FLAGS --ya-end-command-file \ - ${requirements;hide:LIB_REQUIREMENTS} ${hide;kv:"soe"} ${hide;kv:"p AR"} ${hide;kv:"pc light-red"}' + tail_link_lib = '--ya-start-command-file ${qe;rootrel:AUTO_INPUT} $LINK_LIB_FLAGS --ya-end-command-file \ + ${requirements;hide:LIB_REQUIREMENTS} ${hide;kv:"soe"} ${hide;kv:"p AR"} ${hide;kv:"pc light-red"}' emit('LINK_LIB', '${GENERATE_MF} &&', head_link_lib, '/OUT:${qe;rootrel:TARGET}', tail_link_lib) emit('GLOBAL_LINK_LIB', head_link_lib, '/OUT:${qe;rootrel:GLOBAL_TARGET}', tail_link_lib) @@ -2793,26 +2793,26 @@ class MSVCLinker(MSVC, Linker): ${pre=--whole-archive-peers :WHOLE_ARCHIVE_PEERS} \ ${pre=--whole-archive-libs :_WHOLE_ARCHIVE_LIBS_VALUE_GLOBAL} ', '${LINK_EXTRA_OUTPUT}', srcs_globals, '--ya-start-command-file ${VCS_C_OBJ_RR} ${qe;rootrel:AUTO_INPUT} $LINK_EXE_FLAGS $LINK_STDLIBS $LDFLAGS $LDFLAGS_GLOBAL $OBJADDE \ - ${qe;rootrel;ext=.lib:PEERS} ${qe;rootrel;ext=.dll;noext;suf=.lib:PEERS} --ya-end-command-file \ - ${hide;kv:"soe"} ${hide;kv:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${hide;kv:"pc blue"}') + ${qe;rootrel;ext=.lib:PEERS} ${qe;rootrel;ext=.dll;noext;suf=.lib:PEERS} --ya-end-command-file \ + ${hide;kv:"soe"} ${hide;kv:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${hide;kv:"pc blue"}') emit('LINK_EXE', '$LINK_EXE_IMPL($_WHOLE_ARCHIVE_PEERS_VALUE)') - emit('LINK_DYN_LIB', '${GENERATE_MF} && $GENERATE_VCS_C_INFO_NODEP && $REAL_LINK_DYN_LIB ${hide;kv:"soe"} ${hide;kv:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${hide;kv:"pc blue"}') + emit('LINK_DYN_LIB', '${GENERATE_MF} && $GENERATE_VCS_C_INFO_NODEP && $REAL_LINK_DYN_LIB ${hide;kv:"soe"} ${hide;kv:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${hide;kv:"pc blue"}') emit('LINK_EXEC_DYN_LIB_CMDLINE', '${GENERATE_MF} && $GENERATE_VCS_C_INFO_NODEP && ${TOOLCHAIN_ENV} ${cwd:ARCADIA_BUILD_ROOT} ${LINK_WRAPPER} ${LINK_WRAPPER_DYNLIB} ${LINK_EXE_CMD} \ /OUT:${qe;rootrel:TARGET} ${LINK_EXTRA_OUTPUT} ${EXPORTS_VALUE} \ ${pre=--whole-archive-peers :WHOLE_ARCHIVE_PEERS} \ ${pre=--whole-archive-libs :_WHOLE_ARCHIVE_LIBS_VALUE_GLOBAL}', srcs_globals, - '--ya-start-command-file ${VCS_C_OBJ_RR} ${qe;rootrel:AUTO_INPUT} ${qe;rootrel;ext=.lib:PEERS} ${qe;rootrel;ext=.dll;noext;suf=.lib:PEERS} \ - $LINK_EXE_FLAGS $LINK_STDLIBS $LDFLAGS $LDFLAGS_GLOBAL $OBJADDE --ya-end-command-file \ - ${hide;kv:"soe"} ${hide;kv:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${hide;kv:"pc blue"}') + '--ya-start-command-file ${VCS_C_OBJ_RR} ${qe;rootrel:AUTO_INPUT} ${qe;rootrel;ext=.lib:PEERS} ${qe;rootrel;ext=.dll;noext;suf=.lib:PEERS} \ + $LINK_EXE_FLAGS $LINK_STDLIBS $LDFLAGS $LDFLAGS_GLOBAL $OBJADDE --ya-end-command-file \ + ${hide;kv:"soe"} ${hide;kv:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${hide;kv:"pc blue"}') emit('LINK_EXEC_DYN_LIB', '$LINK_EXEC_DYN_LIB_IMPL($_WHOLE_ARCHIVE_PEERS_VALUE)') emit('LINK_GLOBAL_FAT_OBJECT', '${TOOLCHAIN_ENV} ${cwd:ARCADIA_BUILD_ROOT} ${LIB_WRAPPER} ${LINK_LIB_CMD} /OUT:${qe;rootrel:TARGET} \ --ya-start-command-file ${qe;rootrel;ext=.lib:SRCS_GLOBAL} ${qe;rootrel;ext=.obj:SRCS_GLOBAL} ${qe;rootrel:AUTO_INPUT} $LINK_LIB_FLAGS --ya-end-command-file') emit('LINK_PEERS_FAT_OBJECT', '${TOOLCHAIN_ENV} ${cwd:ARCADIA_BUILD_ROOT} ${LIB_WRAPPER} ${LINK_LIB_CMD} /OUT:${qe;rootrel;output:REALPRJNAME.lib} \ --ya-start-command-file ${qe;rootrel:PEERS} $LINK_LIB_FLAGS --ya-end-command-file') - emit('LINK_FAT_OBJECT', '${GENERATE_MF} && $GENERATE_VCS_C_INFO_NODEP && $LINK_GLOBAL_FAT_OBJECT && $LINK_PEERS_FAT_OBJECT ${kv;hide:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"}') # noqa E501 + emit('LINK_FAT_OBJECT', '${GENERATE_MF} && $GENERATE_VCS_C_INFO_NODEP && $LINK_GLOBAL_FAT_OBJECT && $LINK_PEERS_FAT_OBJECT ${kv;hide:"p LD"} ${requirements;hide:LD_REQUIREMENTS} ${kv;hide:"pc light-blue"} ${kv;hide:"show_out"}') # noqa E501 # TODO(somov): Rename! @@ -3055,9 +3055,9 @@ class Cuda(object): def print_macros(self): if not self.cuda_use_clang.value: - cmd = '$YMAKE_PYTHON ${input:"build/scripts/compile_cuda.py"} ${tool:"tools/mtime0"} $NVCC $NVCC_FLAGS -c ${input:SRC} -o ${output;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:SRC} ${pre=-I:_C__INCLUDE} --cflags $C_FLAGS_PLATFORM $CXXFLAGS $NVCC_STD $SRCFLAGS ${input;hide:"build/platform/cuda/cuda_runtime_include.h"} $CUDA_HOST_COMPILER_ENV ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p CC"} ${kv;hide:"pc light-green"}' # noqa E501 + cmd = '$YMAKE_PYTHON ${input:"build/scripts/compile_cuda.py"} ${tool:"tools/mtime0"} $NVCC $NVCC_FLAGS -c ${input:SRC} -o ${output;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:SRC} ${pre=-I:_C__INCLUDE} --cflags $C_FLAGS_PLATFORM $CXXFLAGS $NVCC_STD $SRCFLAGS ${input;hide:"build/platform/cuda/cuda_runtime_include.h"} $CUDA_HOST_COMPILER_ENV ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p CC"} ${kv;hide:"pc light-green"}' # noqa E501 else: - cmd = '$CXX_COMPILER --cuda-path=$CUDA_ROOT $C_FLAGS_PLATFORM -c ${input:SRC} -o ${output;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:SRC} ${pre=-I:_C__INCLUDE} $CXXFLAGS $SRCFLAGS $TOOLCHAIN_ENV ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p CU"} ${kv;hide:"pc green"}' # noqa E501 + cmd = '$CXX_COMPILER --cuda-path=$CUDA_ROOT $C_FLAGS_PLATFORM -c ${input:SRC} -o ${output;suf=${OBJ_SUF}${NVCC_OBJ_EXT}:SRC} ${pre=-I:_C__INCLUDE} $CXXFLAGS $SRCFLAGS $TOOLCHAIN_ENV ${requirements;hide:CC_REQUIREMENTS} ${kv;hide:"p CU"} ${kv;hide:"pc green"}' # noqa E501 emit('_SRC_CU_CMD', cmd) emit('_SRC_CU_PEERDIR', ' '.join(sorted(self.peerdirs))) diff --git a/contrib/libs/crcutil/multiword_64_64_gcc_i386_mmx.cc b/contrib/libs/crcutil/multiword_64_64_gcc_i386_mmx.cc index ee3804ad42..6bd4ead5bd 100644 --- a/contrib/libs/crcutil/multiword_64_64_gcc_i386_mmx.cc +++ b/contrib/libs/crcutil/multiword_64_64_gcc_i386_mmx.cc @@ -95,7 +95,7 @@ template<> uint64 GenericCrc<uint64, uint64, uint64, 4>::CrcMultiwordI386Mmx( const uint64 *table_word = &this->crc_word_[0][0]; asm( - "subl $2*4*8 - 1, %[end]\n" + "subl $2*4*8 - 1, %[end]\n" "cmpl %[src], %[end]\n" "jbe 2f\n" @@ -201,7 +201,7 @@ template<> uint64 GenericCrc<uint64, uint64, uint64, 4>::CrcMultiwordI386Mmx( "2:\n" "movl %[table_word], %[table]\n" - "addl $2*4*8 - 8, %[end]\n" + "addl $2*4*8 - 8, %[end]\n" "cmpl %[src], %[end]\n" "jbe 4f\n" "3:\n" @@ -211,7 +211,7 @@ template<> uint64 GenericCrc<uint64, uint64, uint64, 4>::CrcMultiwordI386Mmx( "cmpl %[src], %[end]\n" "ja 3b\n" "4:\n" - "addl $7, %[end]\n" + "addl $7, %[end]\n" "cmpl %[src], %[end]\n" "jbe 6f\n" diff --git a/contrib/libs/crcutil/ya.make b/contrib/libs/crcutil/ya.make index 3f46fa001c..2da8ef940f 100644 --- a/contrib/libs/crcutil/ya.make +++ b/contrib/libs/crcutil/ya.make @@ -23,25 +23,25 @@ ENDIF() IF (ARCH_I386 OR ARCH_X86_64) IF (OS_WINDOWS) - SRCS( - multiword_64_64_cl_i386_mmx.cc - ) + SRCS( + multiword_64_64_cl_i386_mmx.cc + ) ELSEIF (OS_ANDROID AND ARCH_I386) # 32-bit Android has some problems with register allocation, so we fall back to default implementation ELSE() IF (CLANG) CFLAGS(-DCRCUTIL_USE_MM_CRC32=1) - IF (ARCH_I386) - # clang doesn't support this as optimization attribute and has problems with register allocation + IF (ARCH_I386) + # clang doesn't support this as optimization attribute and has problems with register allocation SRC( multiword_64_64_gcc_i386_mmx.cc -fomit-frame-pointer ) - ELSE() + ELSE() SRCS( multiword_64_64_gcc_i386_mmx.cc ) - ENDIF() + ENDIF() ELSE() CFLAGS( -mcrc32 diff --git a/contrib/libs/cxxsupp/openmp/kmp_utility.c b/contrib/libs/cxxsupp/openmp/kmp_utility.c index 860111cc66..c777d7dc0c 100644 --- a/contrib/libs/cxxsupp/openmp/kmp_utility.c +++ b/contrib/libs/cxxsupp/openmp/kmp_utility.c @@ -19,10 +19,10 @@ #include <float.h> #include "kmp_i18n.h" -#include <util/system/types.h> - -const char* CpuBrand(ui32 store[12]) noexcept; //defined in <util/system/cpu_id.h> - +#include <util/system/types.h> + +const char* CpuBrand(ui32 store[12]) noexcept; //defined in <util/system/cpu_id.h> + /* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */ diff --git a/contrib/libs/cxxsupp/openmp/ya.make b/contrib/libs/cxxsupp/openmp/ya.make index 969a4f4825..2c64468375 100644 --- a/contrib/libs/cxxsupp/openmp/ya.make +++ b/contrib/libs/cxxsupp/openmp/ya.make @@ -39,8 +39,8 @@ COMPILE_C_AS_CXX() CXXFLAGS(-fno-exceptions) -SET_APPEND(CFLAGS -fno-lto) - +SET_APPEND(CFLAGS -fno-lto) + ADDINCL( GLOBAL contrib/libs/cxxsupp/openmp ) diff --git a/contrib/libs/grpc/python/ya.make b/contrib/libs/grpc/python/ya.make index 1160c76ed2..f22d3393fc 100644 --- a/contrib/libs/grpc/python/ya.make +++ b/contrib/libs/grpc/python/ya.make @@ -1,4 +1,4 @@ -PY23_LIBRARY() +PY23_LIBRARY() WITHOUT_LICENSE_TEXTS() diff --git a/contrib/libs/grpc/src/python/grpcio/ya.make b/contrib/libs/grpc/src/python/grpcio/ya.make index 65766500ed..5cdb0230c4 100644 --- a/contrib/libs/grpc/src/python/grpcio/ya.make +++ b/contrib/libs/grpc/src/python/grpcio/ya.make @@ -1,4 +1,4 @@ -PY23_LIBRARY() +PY23_LIBRARY() LICENSE(Apache-2.0) @@ -15,13 +15,13 @@ PEERDIR( contrib/python/six ) -IF (PYTHON2) - PEERDIR( - contrib/python/enum34 - contrib/python/futures - ) -ENDIF() - +IF (PYTHON2) + PEERDIR( + contrib/python/enum34 + contrib/python/futures + ) +ENDIF() + ADDINCL( ${ARCADIA_BUILD_ROOT}/contrib/libs/grpc contrib/libs/grpc diff --git a/contrib/libs/libaio/dynamic/libaio.exports b/contrib/libs/libaio/dynamic/libaio.exports index 9de59b0572..c38b5ae9c7 100644 --- a/contrib/libs/libaio/dynamic/libaio.exports +++ b/contrib/libs/libaio/dynamic/libaio.exports @@ -1,9 +1,9 @@ -C io_queue_init -C io_queue_release -C io_queue_run -C io_setup -C io_destroy -C io_submit -C io_cancel -C io_getevents - +C io_queue_init +C io_queue_release +C io_queue_run +C io_setup +C io_destroy +C io_submit +C io_cancel +C io_getevents + diff --git a/contrib/libs/libaio/dynamic/ya.make b/contrib/libs/libaio/dynamic/ya.make index ea2335a5f0..fd2096f7aa 100644 --- a/contrib/libs/libaio/dynamic/ya.make +++ b/contrib/libs/libaio/dynamic/ya.make @@ -1,10 +1,10 @@ -DYNAMIC_LIBRARY(aio) - -OWNER( - g:contrib - g:cpp-contrib -) - +DYNAMIC_LIBRARY(aio) + +OWNER( + g:contrib + g:cpp-contrib +) + IF (ARCH_ARMV7 OR ARCH_ARM64) LICENSE( GPL-2.0-only AND @@ -17,15 +17,15 @@ ELSE() LGPL-2.1-only ) ENDIF() - + LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -EXPORTS_SCRIPT(libaio.exports) - -NO_RUNTIME() - -PROVIDES(libaio) - -DYNAMIC_LIBRARY_FROM(contrib/libs/libaio/static) - -END() +EXPORTS_SCRIPT(libaio.exports) + +NO_RUNTIME() + +PROVIDES(libaio) + +DYNAMIC_LIBRARY_FROM(contrib/libs/libaio/static) + +END() diff --git a/contrib/libs/libaio/static/ya.make b/contrib/libs/libaio/static/ya.make index 48dc53244e..c4a7e200bb 100644 --- a/contrib/libs/libaio/static/ya.make +++ b/contrib/libs/libaio/static/ya.make @@ -26,14 +26,14 @@ NO_UTIL() NO_RUNTIME() -PROVIDES(libaio) - -SRCDIR(contrib/libs/libaio) +PROVIDES(libaio) + +SRCDIR(contrib/libs/libaio) ADDINCL( contrib/libs/libaio ) - + SRCS( io_cancel.c io_destroy.c diff --git a/contrib/libs/libaio/ya.make b/contrib/libs/libaio/ya.make index ef27ed040a..3eb09b549b 100644 --- a/contrib/libs/libaio/ya.make +++ b/contrib/libs/libaio/ya.make @@ -10,25 +10,25 @@ WITHOUT_LICENSE_TEXTS() VERSION(2015-07-01-5a546a834c36070648158d19dd564762d59f8eb8) OWNER( - g:contrib - g:cpp-contrib + g:contrib + g:cpp-contrib ) NO_RUNTIME() -IF (USE_DYNAMIC_AIO) - PEERDIR( - contrib/libs/libaio/dynamic - ) -ELSE() - PEERDIR( - contrib/libs/libaio/static - ) -ENDIF() +IF (USE_DYNAMIC_AIO) + PEERDIR( + contrib/libs/libaio/dynamic + ) +ELSE() + PEERDIR( + contrib/libs/libaio/static + ) +ENDIF() END() - -RECURSE( - dynamic - static -) + +RECURSE( + dynamic + static +) diff --git a/contrib/libs/libiconv/dynamic/ya.make b/contrib/libs/libiconv/dynamic/ya.make index 8e7d7b49e2..f3a979206c 100644 --- a/contrib/libs/libiconv/dynamic/ya.make +++ b/contrib/libs/libiconv/dynamic/ya.make @@ -1,4 +1,4 @@ -DYNAMIC_LIBRARY(iconv) +DYNAMIC_LIBRARY(iconv) OWNER( g:contrib g:cpp-contrib @@ -13,12 +13,12 @@ LICENSE( LICENSE_TEXTS(../.yandex_meta/licenses.list.txt) -PROVIDES(libiconv) - +PROVIDES(libiconv) + NO_RUNTIME() -EXPORTS_SCRIPT(libiconv.exports) +EXPORTS_SCRIPT(libiconv.exports) + +DYNAMIC_LIBRARY_FROM(contrib/libs/libiconv/static) -DYNAMIC_LIBRARY_FROM(contrib/libs/libiconv/static) - END() diff --git a/contrib/libs/libiconv/static/ya.make b/contrib/libs/libiconv/static/ya.make index 13b69884c3..83009f7ed9 100644 --- a/contrib/libs/libiconv/static/ya.make +++ b/contrib/libs/libiconv/static/ya.make @@ -14,8 +14,8 @@ LICENSE( LICENSE_TEXTS(../.yandex_meta/licenses.list.txt) -PROVIDES(libiconv) - +PROVIDES(libiconv) + NO_RUNTIME() NO_COMPILER_WARNINGS() diff --git a/contrib/libs/libidn/dynamic/libidn.exports b/contrib/libs/libidn/dynamic/libidn.exports index 394421b879..586b60a0f8 100644 --- a/contrib/libs/libidn/dynamic/libidn.exports +++ b/contrib/libs/libidn/dynamic/libidn.exports @@ -1,7 +1,7 @@ C idna_to_ascii_4i C idna_to_unicode_44i -C idna_to_ascii_4z -C idna_to_unicode_44z +C idna_to_ascii_4z +C idna_to_unicode_44z C punycode_encode C punycode_strerror C punycode_decode diff --git a/contrib/libs/libidn/dynamic/ya.make b/contrib/libs/libidn/dynamic/ya.make index 9c1469e0e9..c307c1950f 100644 --- a/contrib/libs/libidn/dynamic/ya.make +++ b/contrib/libs/libidn/dynamic/ya.make @@ -1,12 +1,12 @@ OWNER( - g:contrib - g:cpp-contrib + g:contrib + g:cpp-contrib ) - -DYNAMIC_LIBRARY(idn) -VERSION(1.9) - +DYNAMIC_LIBRARY(idn) + +VERSION(1.9) + LICENSE( Custom-Punycode Ietf @@ -14,17 +14,17 @@ LICENSE( LGPL-2.1-only LGPL-2.1-or-later ) - + LICENSE_TEXTS(../.yandex_meta/licenses.list.txt) -VERSION(1.9) - -PROVIDES(libidn) - -NO_RUNTIME() - -EXPORTS_SCRIPT(libidn.exports) - -DYNAMIC_LIBRARY_FROM(contrib/libs/libidn/static) - -END() +VERSION(1.9) + +PROVIDES(libidn) + +NO_RUNTIME() + +EXPORTS_SCRIPT(libidn.exports) + +DYNAMIC_LIBRARY_FROM(contrib/libs/libidn/static) + +END() diff --git a/contrib/libs/libidn/static/ya.make b/contrib/libs/libidn/static/ya.make index cc7893a1aa..a927d7918e 100644 --- a/contrib/libs/libidn/static/ya.make +++ b/contrib/libs/libidn/static/ya.make @@ -17,8 +17,8 @@ LICENSE_TEXTS(../.yandex_meta/licenses.list.txt) VERSION(1.9) -PROVIDES(libidn) - +PROVIDES(libidn) + NO_RUNTIME() NO_COMPILER_WARNINGS() diff --git a/contrib/libs/protobuf/builtin_proto/protos_from_protobuf/ya.make b/contrib/libs/protobuf/builtin_proto/protos_from_protobuf/ya.make index 739efa8d9d..67c9827f57 100644 --- a/contrib/libs/protobuf/builtin_proto/protos_from_protobuf/ya.make +++ b/contrib/libs/protobuf/builtin_proto/protos_from_protobuf/ya.make @@ -1,4 +1,4 @@ -PROTO_LIBRARY() +PROTO_LIBRARY() WITHOUT_LICENSE_TEXTS() @@ -6,27 +6,27 @@ LICENSE(BSD-3-Clause) OWNER(g:yatool) -EXCLUDE_TAGS( - CPP_PROTO - GO_PROTO -) - -NO_MYPY() - -NO_OPTIMIZE_PY_PROTOS() - -DISABLE(NEED_GOOGLE_PROTO_PEERDIRS) - +EXCLUDE_TAGS( + CPP_PROTO + GO_PROTO +) + +NO_MYPY() + +NO_OPTIMIZE_PY_PROTOS() + +DISABLE(NEED_GOOGLE_PROTO_PEERDIRS) + PY_NAMESPACE(.) -PROTO_NAMESPACE( - GLOBAL - contrib/libs/protobuf/src -) +PROTO_NAMESPACE( + GLOBAL + contrib/libs/protobuf/src +) SRCDIR(contrib/libs/protobuf/src) -SRCS( +SRCS( google/protobuf/any.proto google/protobuf/api.proto google/protobuf/descriptor.proto diff --git a/contrib/libs/protobuf/builtin_proto/protos_from_protoc/ya.make b/contrib/libs/protobuf/builtin_proto/protos_from_protoc/ya.make index 62c1a66a7c..5c8bbc335e 100644 --- a/contrib/libs/protobuf/builtin_proto/protos_from_protoc/ya.make +++ b/contrib/libs/protobuf/builtin_proto/protos_from_protoc/ya.make @@ -1,4 +1,4 @@ -PROTO_LIBRARY() +PROTO_LIBRARY() WITHOUT_LICENSE_TEXTS() @@ -6,17 +6,17 @@ LICENSE(BSD-3-Clause) OWNER(g:yatool) -EXCLUDE_TAGS( - CPP_PROTO - GO_PROTO +EXCLUDE_TAGS( + CPP_PROTO + GO_PROTO ) -NO_MYPY() - -NO_OPTIMIZE_PY_PROTOS() - -DISABLE(NEED_GOOGLE_PROTO_PEERDIRS) - +NO_MYPY() + +NO_OPTIMIZE_PY_PROTOS() + +DISABLE(NEED_GOOGLE_PROTO_PEERDIRS) + PY_NAMESPACE(.) PROTO_NAMESPACE( @@ -26,12 +26,12 @@ PROTO_NAMESPACE( SRCDIR(contrib/libs/protoc/src) -PEERDIR( - contrib/libs/protobuf/builtin_proto/protos_from_protobuf -) +PEERDIR( + contrib/libs/protobuf/builtin_proto/protos_from_protobuf +) + +SRCS( + google/protobuf/compiler/plugin.proto +) -SRCS( - google/protobuf/compiler/plugin.proto -) - END() diff --git a/contrib/libs/protobuf/builtin_proto/ya.make b/contrib/libs/protobuf/builtin_proto/ya.make index 14d03b6aab..6ef4f74f34 100644 --- a/contrib/libs/protobuf/builtin_proto/ya.make +++ b/contrib/libs/protobuf/builtin_proto/ya.make @@ -1,8 +1,8 @@ -OWNER( - g:yatool -) - -RECURSE( - protos_from_protobuf - protos_from_protoc -) +OWNER( + g:yatool +) + +RECURSE( + protos_from_protobuf + protos_from_protoc +) diff --git a/contrib/libs/protobuf/ya.make b/contrib/libs/protobuf/ya.make index 6addc6e8d2..044e24badd 100644 --- a/contrib/libs/protobuf/ya.make +++ b/contrib/libs/protobuf/ya.make @@ -143,7 +143,7 @@ FILES( ) END() - -RECURSE( - builtin_proto -) + +RECURSE( + builtin_proto +) diff --git a/contrib/libs/python/Include/Python-ast.h b/contrib/libs/python/Include/Python-ast.h index eb8881242c..7628fd5a2a 100644 --- a/contrib/libs/python/Include/Python-ast.h +++ b/contrib/libs/python/Include/Python-ast.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/Python-ast.h> -#else -#include <contrib/tools/python/src/Include/Python-ast.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/Python-ast.h> +#else +#include <contrib/tools/python/src/Include/Python-ast.h> +#endif diff --git a/contrib/libs/python/Include/Python.h b/contrib/libs/python/Include/Python.h index 2b2099e943..5aa4c0b515 100644 --- a/contrib/libs/python/Include/Python.h +++ b/contrib/libs/python/Include/Python.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/Python.h> -#else -#include <contrib/tools/python/src/Include/Python.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/Python.h> +#else +#include <contrib/tools/python/src/Include/Python.h> +#endif diff --git a/contrib/libs/python/Include/abstract.h b/contrib/libs/python/Include/abstract.h index a41ac2b272..3073b25e25 100644 --- a/contrib/libs/python/Include/abstract.h +++ b/contrib/libs/python/Include/abstract.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/abstract.h> -#else -#include <contrib/tools/python/src/Include/abstract.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/abstract.h> +#else +#include <contrib/tools/python/src/Include/abstract.h> +#endif diff --git a/contrib/libs/python/Include/accu.h b/contrib/libs/python/Include/accu.h index 1e4a913828..acd0f68a6a 100644 --- a/contrib/libs/python/Include/accu.h +++ b/contrib/libs/python/Include/accu.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/accu.h> -#else -#error "No <accu.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/accu.h> +#else +#error "No <accu.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/asdl.h b/contrib/libs/python/Include/asdl.h index 9e6e361386..2f73d8ca48 100644 --- a/contrib/libs/python/Include/asdl.h +++ b/contrib/libs/python/Include/asdl.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/asdl.h> -#else -#include <contrib/tools/python/src/Include/asdl.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/asdl.h> +#else +#include <contrib/tools/python/src/Include/asdl.h> +#endif diff --git a/contrib/libs/python/Include/ast.h b/contrib/libs/python/Include/ast.h index 283cbbd86b..124a7c1497 100644 --- a/contrib/libs/python/Include/ast.h +++ b/contrib/libs/python/Include/ast.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/ast.h> -#else -#include <contrib/tools/python/src/Include/ast.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/ast.h> +#else +#include <contrib/tools/python/src/Include/ast.h> +#endif diff --git a/contrib/libs/python/Include/bitset.h b/contrib/libs/python/Include/bitset.h index a4e3fbd059..7e7a26c769 100644 --- a/contrib/libs/python/Include/bitset.h +++ b/contrib/libs/python/Include/bitset.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/bitset.h> -#else -#include <contrib/tools/python/src/Include/bitset.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/bitset.h> +#else +#include <contrib/tools/python/src/Include/bitset.h> +#endif diff --git a/contrib/libs/python/Include/bltinmodule.h b/contrib/libs/python/Include/bltinmodule.h index 3abe078c86..0cd2a7ac76 100644 --- a/contrib/libs/python/Include/bltinmodule.h +++ b/contrib/libs/python/Include/bltinmodule.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/bltinmodule.h> -#else -#error "No <bltinmodule.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/bltinmodule.h> +#else +#error "No <bltinmodule.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/boolobject.h b/contrib/libs/python/Include/boolobject.h index 59a6c1814d..9ab8bbe43c 100644 --- a/contrib/libs/python/Include/boolobject.h +++ b/contrib/libs/python/Include/boolobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/boolobject.h> -#else -#include <contrib/tools/python/src/Include/boolobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/boolobject.h> +#else +#include <contrib/tools/python/src/Include/boolobject.h> +#endif diff --git a/contrib/libs/python/Include/bufferobject.h b/contrib/libs/python/Include/bufferobject.h index 8218812e79..aed38f50a9 100644 --- a/contrib/libs/python/Include/bufferobject.h +++ b/contrib/libs/python/Include/bufferobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <bufferobject.h> in Python3" -#else -#include <contrib/tools/python/src/Include/bufferobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <bufferobject.h> in Python3" +#else +#include <contrib/tools/python/src/Include/bufferobject.h> +#endif diff --git a/contrib/libs/python/Include/bytearrayobject.h b/contrib/libs/python/Include/bytearrayobject.h index 463569e394..0e69010be7 100644 --- a/contrib/libs/python/Include/bytearrayobject.h +++ b/contrib/libs/python/Include/bytearrayobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/bytearrayobject.h> -#else -#include <contrib/tools/python/src/Include/bytearrayobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/bytearrayobject.h> +#else +#include <contrib/tools/python/src/Include/bytearrayobject.h> +#endif diff --git a/contrib/libs/python/Include/bytes_methods.h b/contrib/libs/python/Include/bytes_methods.h index 7468e1e129..f74e146029 100644 --- a/contrib/libs/python/Include/bytes_methods.h +++ b/contrib/libs/python/Include/bytes_methods.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <bytes_methods.h> in Python3" -#else -#include <contrib/tools/python/src/Include/bytes_methods.h> -#endif +#else +#include <contrib/tools/python/src/Include/bytes_methods.h> +#endif diff --git a/contrib/libs/python/Include/bytesobject.h b/contrib/libs/python/Include/bytesobject.h index 307c6b432d..ca972c3df2 100644 --- a/contrib/libs/python/Include/bytesobject.h +++ b/contrib/libs/python/Include/bytesobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/bytesobject.h> -#else -#include <contrib/tools/python/src/Include/bytesobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/bytesobject.h> +#else +#include <contrib/tools/python/src/Include/bytesobject.h> +#endif diff --git a/contrib/libs/python/Include/cStringIO.h b/contrib/libs/python/Include/cStringIO.h index 07c32840e1..3a8a908d56 100644 --- a/contrib/libs/python/Include/cStringIO.h +++ b/contrib/libs/python/Include/cStringIO.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <cStringIO.h> in Python3" -#else -#include <contrib/tools/python/src/Include/cStringIO.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <cStringIO.h> in Python3" +#else +#include <contrib/tools/python/src/Include/cStringIO.h> +#endif diff --git a/contrib/libs/python/Include/cellobject.h b/contrib/libs/python/Include/cellobject.h index 95fb27e553..3345daa7fd 100644 --- a/contrib/libs/python/Include/cellobject.h +++ b/contrib/libs/python/Include/cellobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/cellobject.h> -#else -#include <contrib/tools/python/src/Include/cellobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/cellobject.h> +#else +#include <contrib/tools/python/src/Include/cellobject.h> +#endif diff --git a/contrib/libs/python/Include/ceval.h b/contrib/libs/python/Include/ceval.h index 6f630d1f9f..f169fdbe79 100644 --- a/contrib/libs/python/Include/ceval.h +++ b/contrib/libs/python/Include/ceval.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/ceval.h> -#else -#include <contrib/tools/python/src/Include/ceval.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/ceval.h> +#else +#include <contrib/tools/python/src/Include/ceval.h> +#endif diff --git a/contrib/libs/python/Include/classobject.h b/contrib/libs/python/Include/classobject.h index 1f407b3a44..6f7a4f5e6e 100644 --- a/contrib/libs/python/Include/classobject.h +++ b/contrib/libs/python/Include/classobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/classobject.h> -#else -#include <contrib/tools/python/src/Include/classobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/classobject.h> +#else +#include <contrib/tools/python/src/Include/classobject.h> +#endif diff --git a/contrib/libs/python/Include/cobject.h b/contrib/libs/python/Include/cobject.h index d12c552e7e..8fd2754e01 100644 --- a/contrib/libs/python/Include/cobject.h +++ b/contrib/libs/python/Include/cobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <cobject.h> in Python3" -#else -#include <contrib/tools/python/src/Include/cobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <cobject.h> in Python3" +#else +#include <contrib/tools/python/src/Include/cobject.h> +#endif diff --git a/contrib/libs/python/Include/code.h b/contrib/libs/python/Include/code.h index 863de6b03b..e21d9c3ce3 100644 --- a/contrib/libs/python/Include/code.h +++ b/contrib/libs/python/Include/code.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/code.h> -#else -#include <contrib/tools/python/src/Include/code.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/code.h> +#else +#include <contrib/tools/python/src/Include/code.h> +#endif diff --git a/contrib/libs/python/Include/codecs.h b/contrib/libs/python/Include/codecs.h index 3494dda4bd..52f76040fb 100644 --- a/contrib/libs/python/Include/codecs.h +++ b/contrib/libs/python/Include/codecs.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/codecs.h> -#else -#include <contrib/tools/python/src/Include/codecs.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/codecs.h> +#else +#include <contrib/tools/python/src/Include/codecs.h> +#endif diff --git a/contrib/libs/python/Include/compile.h b/contrib/libs/python/Include/compile.h index 78c2ea1129..eb3595aab0 100644 --- a/contrib/libs/python/Include/compile.h +++ b/contrib/libs/python/Include/compile.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/compile.h> -#else -#include <contrib/tools/python/src/Include/compile.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/compile.h> +#else +#include <contrib/tools/python/src/Include/compile.h> +#endif diff --git a/contrib/libs/python/Include/complexobject.h b/contrib/libs/python/Include/complexobject.h index 10ce9a2c9c..2c510c47f4 100644 --- a/contrib/libs/python/Include/complexobject.h +++ b/contrib/libs/python/Include/complexobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/complexobject.h> -#else -#include <contrib/tools/python/src/Include/complexobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/complexobject.h> +#else +#include <contrib/tools/python/src/Include/complexobject.h> +#endif diff --git a/contrib/libs/python/Include/config_platform.h b/contrib/libs/python/Include/config_platform.h index a424d09fe0..afd9bf5123 100644 --- a/contrib/libs/python/Include/config_platform.h +++ b/contrib/libs/python/Include/config_platform.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <config_platform.h> in Python3" -#else -#include <contrib/tools/python/src/Include/config_platform.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <config_platform.h> in Python3" +#else +#include <contrib/tools/python/src/Include/config_platform.h> +#endif diff --git a/contrib/libs/python/Include/datetime.h b/contrib/libs/python/Include/datetime.h index 33ee394fd4..b24acd5638 100644 --- a/contrib/libs/python/Include/datetime.h +++ b/contrib/libs/python/Include/datetime.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/datetime.h> -#else -#include <contrib/tools/python/src/Include/datetime.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/datetime.h> +#else +#include <contrib/tools/python/src/Include/datetime.h> +#endif diff --git a/contrib/libs/python/Include/descrobject.h b/contrib/libs/python/Include/descrobject.h index e5dc606093..5d450cf256 100644 --- a/contrib/libs/python/Include/descrobject.h +++ b/contrib/libs/python/Include/descrobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/descrobject.h> -#else -#include <contrib/tools/python/src/Include/descrobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/descrobject.h> +#else +#include <contrib/tools/python/src/Include/descrobject.h> +#endif diff --git a/contrib/libs/python/Include/dictobject.h b/contrib/libs/python/Include/dictobject.h index 4364a043c6..36026b4962 100644 --- a/contrib/libs/python/Include/dictobject.h +++ b/contrib/libs/python/Include/dictobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/dictobject.h> -#else -#include <contrib/tools/python/src/Include/dictobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/dictobject.h> +#else +#include <contrib/tools/python/src/Include/dictobject.h> +#endif diff --git a/contrib/libs/python/Include/dtoa.h b/contrib/libs/python/Include/dtoa.h index 4cc8661c6d..d8c51a71f4 100644 --- a/contrib/libs/python/Include/dtoa.h +++ b/contrib/libs/python/Include/dtoa.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <dtoa.h> in Python3" -#else -#include <contrib/tools/python/src/Include/dtoa.h> -#endif +#else +#include <contrib/tools/python/src/Include/dtoa.h> +#endif diff --git a/contrib/libs/python/Include/dynamic_annotations.h b/contrib/libs/python/Include/dynamic_annotations.h index 093fc3bcc8..0ffe86e787 100644 --- a/contrib/libs/python/Include/dynamic_annotations.h +++ b/contrib/libs/python/Include/dynamic_annotations.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/dynamic_annotations.h> -#else -#error "No <dynamic_annotations.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/dynamic_annotations.h> +#else +#error "No <dynamic_annotations.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/enumobject.h b/contrib/libs/python/Include/enumobject.h index 42953d0037..08d7a42ee4 100644 --- a/contrib/libs/python/Include/enumobject.h +++ b/contrib/libs/python/Include/enumobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/enumobject.h> -#else -#include <contrib/tools/python/src/Include/enumobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/enumobject.h> +#else +#include <contrib/tools/python/src/Include/enumobject.h> +#endif diff --git a/contrib/libs/python/Include/errcode.h b/contrib/libs/python/Include/errcode.h index 94f0ec5cf5..69259ee2f5 100644 --- a/contrib/libs/python/Include/errcode.h +++ b/contrib/libs/python/Include/errcode.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/errcode.h> -#else -#include <contrib/tools/python/src/Include/errcode.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/errcode.h> +#else +#include <contrib/tools/python/src/Include/errcode.h> +#endif diff --git a/contrib/libs/python/Include/eval.h b/contrib/libs/python/Include/eval.h index 62dec98d37..cc8c657b1e 100644 --- a/contrib/libs/python/Include/eval.h +++ b/contrib/libs/python/Include/eval.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/eval.h> -#else -#include <contrib/tools/python/src/Include/eval.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/eval.h> +#else +#include <contrib/tools/python/src/Include/eval.h> +#endif diff --git a/contrib/libs/python/Include/fileobject.h b/contrib/libs/python/Include/fileobject.h index 2eb3acf63d..ac3aa4c7a2 100644 --- a/contrib/libs/python/Include/fileobject.h +++ b/contrib/libs/python/Include/fileobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/fileobject.h> -#else -#include <contrib/tools/python/src/Include/fileobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/fileobject.h> +#else +#include <contrib/tools/python/src/Include/fileobject.h> +#endif diff --git a/contrib/libs/python/Include/fileutils.h b/contrib/libs/python/Include/fileutils.h index 814ac94a0c..86ca07a109 100644 --- a/contrib/libs/python/Include/fileutils.h +++ b/contrib/libs/python/Include/fileutils.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/fileutils.h> -#else -#error "No <fileutils.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/fileutils.h> +#else +#error "No <fileutils.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/floatobject.h b/contrib/libs/python/Include/floatobject.h index 32b171c404..d08083f632 100644 --- a/contrib/libs/python/Include/floatobject.h +++ b/contrib/libs/python/Include/floatobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/floatobject.h> -#else -#include <contrib/tools/python/src/Include/floatobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/floatobject.h> +#else +#include <contrib/tools/python/src/Include/floatobject.h> +#endif diff --git a/contrib/libs/python/Include/frameobject.h b/contrib/libs/python/Include/frameobject.h index ab94da0925..50168e372a 100644 --- a/contrib/libs/python/Include/frameobject.h +++ b/contrib/libs/python/Include/frameobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/frameobject.h> -#else -#include <contrib/tools/python/src/Include/frameobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/frameobject.h> +#else +#include <contrib/tools/python/src/Include/frameobject.h> +#endif diff --git a/contrib/libs/python/Include/funcobject.h b/contrib/libs/python/Include/funcobject.h index 012fd11af5..d0bde3deb4 100644 --- a/contrib/libs/python/Include/funcobject.h +++ b/contrib/libs/python/Include/funcobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/funcobject.h> -#else -#include <contrib/tools/python/src/Include/funcobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/funcobject.h> +#else +#include <contrib/tools/python/src/Include/funcobject.h> +#endif diff --git a/contrib/libs/python/Include/genobject.h b/contrib/libs/python/Include/genobject.h index 94cc9e0a89..78ce06ddc0 100644 --- a/contrib/libs/python/Include/genobject.h +++ b/contrib/libs/python/Include/genobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/genobject.h> -#else -#include <contrib/tools/python/src/Include/genobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/genobject.h> +#else +#include <contrib/tools/python/src/Include/genobject.h> +#endif diff --git a/contrib/libs/python/Include/graminit.h b/contrib/libs/python/Include/graminit.h index 31e5d90551..4b0a5e1a38 100644 --- a/contrib/libs/python/Include/graminit.h +++ b/contrib/libs/python/Include/graminit.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/graminit.h> -#else -#include <contrib/tools/python/src/Include/graminit.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/graminit.h> +#else +#include <contrib/tools/python/src/Include/graminit.h> +#endif diff --git a/contrib/libs/python/Include/grammar.h b/contrib/libs/python/Include/grammar.h index 37f32c08d3..d425d1bd75 100644 --- a/contrib/libs/python/Include/grammar.h +++ b/contrib/libs/python/Include/grammar.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/grammar.h> -#else -#include <contrib/tools/python/src/Include/grammar.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/grammar.h> +#else +#include <contrib/tools/python/src/Include/grammar.h> +#endif diff --git a/contrib/libs/python/Include/import.h b/contrib/libs/python/Include/import.h index a1c7f6e9d7..cfa6515cdf 100644 --- a/contrib/libs/python/Include/import.h +++ b/contrib/libs/python/Include/import.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/import.h> -#else -#include <contrib/tools/python/src/Include/import.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/import.h> +#else +#include <contrib/tools/python/src/Include/import.h> +#endif diff --git a/contrib/libs/python/Include/intobject.h b/contrib/libs/python/Include/intobject.h index 6696f97641..4ec1b915df 100644 --- a/contrib/libs/python/Include/intobject.h +++ b/contrib/libs/python/Include/intobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <intobject.h> in Python3" -#else -#include <contrib/tools/python/src/Include/intobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <intobject.h> in Python3" +#else +#include <contrib/tools/python/src/Include/intobject.h> +#endif diff --git a/contrib/libs/python/Include/intrcheck.h b/contrib/libs/python/Include/intrcheck.h index 2ed18eb7e4..68aabf6d48 100644 --- a/contrib/libs/python/Include/intrcheck.h +++ b/contrib/libs/python/Include/intrcheck.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/intrcheck.h> -#else -#include <contrib/tools/python/src/Include/intrcheck.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/intrcheck.h> +#else +#include <contrib/tools/python/src/Include/intrcheck.h> +#endif diff --git a/contrib/libs/python/Include/iterobject.h b/contrib/libs/python/Include/iterobject.h index 489c5b1323..19b24e317a 100644 --- a/contrib/libs/python/Include/iterobject.h +++ b/contrib/libs/python/Include/iterobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/iterobject.h> -#else -#include <contrib/tools/python/src/Include/iterobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/iterobject.h> +#else +#include <contrib/tools/python/src/Include/iterobject.h> +#endif diff --git a/contrib/libs/python/Include/listobject.h b/contrib/libs/python/Include/listobject.h index d119dd9195..e16f38f988 100644 --- a/contrib/libs/python/Include/listobject.h +++ b/contrib/libs/python/Include/listobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/listobject.h> -#else -#include <contrib/tools/python/src/Include/listobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/listobject.h> +#else +#include <contrib/tools/python/src/Include/listobject.h> +#endif diff --git a/contrib/libs/python/Include/longintrepr.h b/contrib/libs/python/Include/longintrepr.h index 4c6441dad2..01a8c7a79f 100644 --- a/contrib/libs/python/Include/longintrepr.h +++ b/contrib/libs/python/Include/longintrepr.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/longintrepr.h> -#else -#include <contrib/tools/python/src/Include/longintrepr.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/longintrepr.h> +#else +#include <contrib/tools/python/src/Include/longintrepr.h> +#endif diff --git a/contrib/libs/python/Include/longobject.h b/contrib/libs/python/Include/longobject.h index a2ab1329a4..18760d63cc 100644 --- a/contrib/libs/python/Include/longobject.h +++ b/contrib/libs/python/Include/longobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/longobject.h> -#else -#include <contrib/tools/python/src/Include/longobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/longobject.h> +#else +#include <contrib/tools/python/src/Include/longobject.h> +#endif diff --git a/contrib/libs/python/Include/marshal.h b/contrib/libs/python/Include/marshal.h index cb6129fbc2..536238ca04 100644 --- a/contrib/libs/python/Include/marshal.h +++ b/contrib/libs/python/Include/marshal.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/marshal.h> -#else -#include <contrib/tools/python/src/Include/marshal.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/marshal.h> +#else +#include <contrib/tools/python/src/Include/marshal.h> +#endif diff --git a/contrib/libs/python/Include/memoryobject.h b/contrib/libs/python/Include/memoryobject.h index b332d449a3..c9941a3962 100644 --- a/contrib/libs/python/Include/memoryobject.h +++ b/contrib/libs/python/Include/memoryobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/memoryobject.h> -#else -#include <contrib/tools/python/src/Include/memoryobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/memoryobject.h> +#else +#include <contrib/tools/python/src/Include/memoryobject.h> +#endif diff --git a/contrib/libs/python/Include/metagrammar.h b/contrib/libs/python/Include/metagrammar.h index 8aa671542a..ab897e3820 100644 --- a/contrib/libs/python/Include/metagrammar.h +++ b/contrib/libs/python/Include/metagrammar.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <metagrammar.h> in Python3" -#else -#include <contrib/tools/python/src/Include/metagrammar.h> -#endif +#else +#include <contrib/tools/python/src/Include/metagrammar.h> +#endif diff --git a/contrib/libs/python/Include/methodobject.h b/contrib/libs/python/Include/methodobject.h index f0d63ca0ec..12ff79b2e2 100644 --- a/contrib/libs/python/Include/methodobject.h +++ b/contrib/libs/python/Include/methodobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/methodobject.h> -#else -#include <contrib/tools/python/src/Include/methodobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/methodobject.h> +#else +#include <contrib/tools/python/src/Include/methodobject.h> +#endif diff --git a/contrib/libs/python/Include/modsupport.h b/contrib/libs/python/Include/modsupport.h index e44e9b9c95..61dae25ba3 100644 --- a/contrib/libs/python/Include/modsupport.h +++ b/contrib/libs/python/Include/modsupport.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/modsupport.h> -#else -#include <contrib/tools/python/src/Include/modsupport.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/modsupport.h> +#else +#include <contrib/tools/python/src/Include/modsupport.h> +#endif diff --git a/contrib/libs/python/Include/moduleobject.h b/contrib/libs/python/Include/moduleobject.h index 983204866c..d138ab73ca 100644 --- a/contrib/libs/python/Include/moduleobject.h +++ b/contrib/libs/python/Include/moduleobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/moduleobject.h> -#else -#include <contrib/tools/python/src/Include/moduleobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/moduleobject.h> +#else +#include <contrib/tools/python/src/Include/moduleobject.h> +#endif diff --git a/contrib/libs/python/Include/namespaceobject.h b/contrib/libs/python/Include/namespaceobject.h index 2481dc0f66..5f4c77c8a4 100644 --- a/contrib/libs/python/Include/namespaceobject.h +++ b/contrib/libs/python/Include/namespaceobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/namespaceobject.h> -#else -#error "No <namespaceobject.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/namespaceobject.h> +#else +#error "No <namespaceobject.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/node.h b/contrib/libs/python/Include/node.h index 08fcf38b4b..0f859f8f9e 100644 --- a/contrib/libs/python/Include/node.h +++ b/contrib/libs/python/Include/node.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/node.h> -#else -#include <contrib/tools/python/src/Include/node.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/node.h> +#else +#include <contrib/tools/python/src/Include/node.h> +#endif diff --git a/contrib/libs/python/Include/object.h b/contrib/libs/python/Include/object.h index c26d54c2ff..1a7e8a96bd 100644 --- a/contrib/libs/python/Include/object.h +++ b/contrib/libs/python/Include/object.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/object.h> -#else -#include <contrib/tools/python/src/Include/object.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/object.h> +#else +#include <contrib/tools/python/src/Include/object.h> +#endif diff --git a/contrib/libs/python/Include/objimpl.h b/contrib/libs/python/Include/objimpl.h index 1ab93938d4..d33a4815a5 100644 --- a/contrib/libs/python/Include/objimpl.h +++ b/contrib/libs/python/Include/objimpl.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/objimpl.h> -#else -#include <contrib/tools/python/src/Include/objimpl.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/objimpl.h> +#else +#include <contrib/tools/python/src/Include/objimpl.h> +#endif diff --git a/contrib/libs/python/Include/odictobject.h b/contrib/libs/python/Include/odictobject.h index 01ca23838d..a3e7994c12 100644 --- a/contrib/libs/python/Include/odictobject.h +++ b/contrib/libs/python/Include/odictobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/odictobject.h> -#else -#error "No <odictobject.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/odictobject.h> +#else +#error "No <odictobject.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/opcode.h b/contrib/libs/python/Include/opcode.h index f09d32e146..add566d1ce 100644 --- a/contrib/libs/python/Include/opcode.h +++ b/contrib/libs/python/Include/opcode.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/opcode.h> -#else -#include <contrib/tools/python/src/Include/opcode.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/opcode.h> +#else +#include <contrib/tools/python/src/Include/opcode.h> +#endif diff --git a/contrib/libs/python/Include/osdefs.h b/contrib/libs/python/Include/osdefs.h index 901d1809f1..030e1cb429 100644 --- a/contrib/libs/python/Include/osdefs.h +++ b/contrib/libs/python/Include/osdefs.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/osdefs.h> -#else -#include <contrib/tools/python/src/Include/osdefs.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/osdefs.h> +#else +#include <contrib/tools/python/src/Include/osdefs.h> +#endif diff --git a/contrib/libs/python/Include/osmodule.h b/contrib/libs/python/Include/osmodule.h index d6310d29f1..0851f3d7f7 100644 --- a/contrib/libs/python/Include/osmodule.h +++ b/contrib/libs/python/Include/osmodule.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/osmodule.h> -#else -#error "No <osmodule.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/osmodule.h> +#else +#error "No <osmodule.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/parsetok.h b/contrib/libs/python/Include/parsetok.h index 6e49d9f394..5bf491e907 100644 --- a/contrib/libs/python/Include/parsetok.h +++ b/contrib/libs/python/Include/parsetok.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/parsetok.h> -#else -#include <contrib/tools/python/src/Include/parsetok.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/parsetok.h> +#else +#include <contrib/tools/python/src/Include/parsetok.h> +#endif diff --git a/contrib/libs/python/Include/patchlevel.h b/contrib/libs/python/Include/patchlevel.h index d831605341..75ce0b8f9a 100644 --- a/contrib/libs/python/Include/patchlevel.h +++ b/contrib/libs/python/Include/patchlevel.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/patchlevel.h> -#else -#include <contrib/tools/python/src/Include/patchlevel.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/patchlevel.h> +#else +#include <contrib/tools/python/src/Include/patchlevel.h> +#endif diff --git a/contrib/libs/python/Include/pgen.h b/contrib/libs/python/Include/pgen.h index 41a354cc94..b4a3a7dc8d 100644 --- a/contrib/libs/python/Include/pgen.h +++ b/contrib/libs/python/Include/pgen.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <pgen.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pgen.h> -#endif +#else +#include <contrib/tools/python/src/Include/pgen.h> +#endif diff --git a/contrib/libs/python/Include/pgenheaders.h b/contrib/libs/python/Include/pgenheaders.h index 5ff3c27b26..1f859aebad 100644 --- a/contrib/libs/python/Include/pgenheaders.h +++ b/contrib/libs/python/Include/pgenheaders.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <pgenheaders.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pgenheaders.h> -#endif +#else +#include <contrib/tools/python/src/Include/pgenheaders.h> +#endif diff --git a/contrib/libs/python/Include/py_curses.h b/contrib/libs/python/Include/py_curses.h index 1643343799..1cea7240fa 100644 --- a/contrib/libs/python/Include/py_curses.h +++ b/contrib/libs/python/Include/py_curses.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/py_curses.h> -#else -#include <contrib/tools/python/src/Include/py_curses.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/py_curses.h> +#else +#include <contrib/tools/python/src/Include/py_curses.h> +#endif diff --git a/contrib/libs/python/Include/pyarena.h b/contrib/libs/python/Include/pyarena.h index 5bbbf2b69e..79e39eba83 100644 --- a/contrib/libs/python/Include/pyarena.h +++ b/contrib/libs/python/Include/pyarena.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyarena.h> -#else -#include <contrib/tools/python/src/Include/pyarena.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyarena.h> +#else +#include <contrib/tools/python/src/Include/pyarena.h> +#endif diff --git a/contrib/libs/python/Include/pyatomic.h b/contrib/libs/python/Include/pyatomic.h index ed6243fd5f..36ea5383e2 100644 --- a/contrib/libs/python/Include/pyatomic.h +++ b/contrib/libs/python/Include/pyatomic.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyatomic.h> -#else -#error "No <pyatomic.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyatomic.h> +#else +#error "No <pyatomic.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pycapsule.h b/contrib/libs/python/Include/pycapsule.h index 4ac52382b4..7f303ed361 100644 --- a/contrib/libs/python/Include/pycapsule.h +++ b/contrib/libs/python/Include/pycapsule.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pycapsule.h> -#else -#include <contrib/tools/python/src/Include/pycapsule.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pycapsule.h> +#else +#include <contrib/tools/python/src/Include/pycapsule.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig-linux.h b/contrib/libs/python/Include/pyconfig-linux.h index d9d9df2112..de1803b710 100644 --- a/contrib/libs/python/Include/pyconfig-linux.h +++ b/contrib/libs/python/Include/pyconfig-linux.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyconfig-linux.h> -#else -#error "No <pyconfig-linux.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyconfig-linux.h> +#else +#error "No <pyconfig-linux.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pyconfig-musl.h b/contrib/libs/python/Include/pyconfig-musl.h index 98e5dfbfd0..66e1339bac 100644 --- a/contrib/libs/python/Include/pyconfig-musl.h +++ b/contrib/libs/python/Include/pyconfig-musl.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyconfig-musl.h> -#else -#error "No <pyconfig-musl.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyconfig-musl.h> +#else +#error "No <pyconfig-musl.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pyconfig-osx.h b/contrib/libs/python/Include/pyconfig-osx.h index c4b1b8574b..8ee6b6de2b 100644 --- a/contrib/libs/python/Include/pyconfig-osx.h +++ b/contrib/libs/python/Include/pyconfig-osx.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyconfig-osx.h> -#else -#error "No <pyconfig-osx.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyconfig-osx.h> +#else +#error "No <pyconfig-osx.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pyconfig.cygwin.h b/contrib/libs/python/Include/pyconfig.cygwin.h index 19756b748e..930901d89b 100644 --- a/contrib/libs/python/Include/pyconfig.cygwin.h +++ b/contrib/libs/python/Include/pyconfig.cygwin.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.cygwin.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.cygwin.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.cygwin.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.cygwin.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.darwin.h b/contrib/libs/python/Include/pyconfig.darwin.h index 0b7c6a87b5..eeb58178bf 100644 --- a/contrib/libs/python/Include/pyconfig.darwin.h +++ b/contrib/libs/python/Include/pyconfig.darwin.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.darwin.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.darwin.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.darwin.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.darwin.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.freebsd.h b/contrib/libs/python/Include/pyconfig.freebsd.h index 0a0c30f6a6..e6d5961435 100644 --- a/contrib/libs/python/Include/pyconfig.freebsd.h +++ b/contrib/libs/python/Include/pyconfig.freebsd.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.freebsd.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.freebsd.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.freebsd.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.freebsd.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.h b/contrib/libs/python/Include/pyconfig.h index d24d4b4535..3b13edb2ee 100644 --- a/contrib/libs/python/Include/pyconfig.h +++ b/contrib/libs/python/Include/pyconfig.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyconfig.h> -#else -#include <contrib/tools/python/src/Include/pyconfig.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyconfig.h> +#else +#include <contrib/tools/python/src/Include/pyconfig.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.ios.arm64.h b/contrib/libs/python/Include/pyconfig.ios.arm64.h index 5adb42c762..0dac2ee7ac 100644 --- a/contrib/libs/python/Include/pyconfig.ios.arm64.h +++ b/contrib/libs/python/Include/pyconfig.ios.arm64.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.ios.arm64.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.ios.arm64.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.ios.arm64.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.ios.arm64.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.ios.armv7.h b/contrib/libs/python/Include/pyconfig.ios.armv7.h index fcbe6a71e7..ec08c5eca5 100644 --- a/contrib/libs/python/Include/pyconfig.ios.armv7.h +++ b/contrib/libs/python/Include/pyconfig.ios.armv7.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.ios.armv7.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.ios.armv7.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.ios.armv7.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.ios.armv7.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.ios.i386.h b/contrib/libs/python/Include/pyconfig.ios.i386.h index eaba479035..98649c420f 100644 --- a/contrib/libs/python/Include/pyconfig.ios.i386.h +++ b/contrib/libs/python/Include/pyconfig.ios.i386.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.ios.i386.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.ios.i386.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.ios.i386.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.ios.i386.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.ios.x86_64.h b/contrib/libs/python/Include/pyconfig.ios.x86_64.h index 45727828d4..dc87f0ed86 100644 --- a/contrib/libs/python/Include/pyconfig.ios.x86_64.h +++ b/contrib/libs/python/Include/pyconfig.ios.x86_64.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.ios.x86_64.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.ios.x86_64.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.ios.x86_64.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.ios.x86_64.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.linux.h b/contrib/libs/python/Include/pyconfig.linux.h index 9d20ea3657..18ebf9c48c 100644 --- a/contrib/libs/python/Include/pyconfig.linux.h +++ b/contrib/libs/python/Include/pyconfig.linux.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.linux.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.linux.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.linux.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.linux.h> +#endif diff --git a/contrib/libs/python/Include/pyconfig.win32.h b/contrib/libs/python/Include/pyconfig.win32.h index 3936c2b2ab..6c5c5ae32e 100644 --- a/contrib/libs/python/Include/pyconfig.win32.h +++ b/contrib/libs/python/Include/pyconfig.win32.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pyconfig.win32.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pyconfig.win32.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pyconfig.win32.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pyconfig.win32.h> +#endif diff --git a/contrib/libs/python/Include/pyctype.h b/contrib/libs/python/Include/pyctype.h index bb5181894a..8b25c6e4ee 100644 --- a/contrib/libs/python/Include/pyctype.h +++ b/contrib/libs/python/Include/pyctype.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyctype.h> -#else -#include <contrib/tools/python/src/Include/pyctype.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyctype.h> +#else +#include <contrib/tools/python/src/Include/pyctype.h> +#endif diff --git a/contrib/libs/python/Include/pydebug.h b/contrib/libs/python/Include/pydebug.h index 29e47a4091..5619b0b907 100644 --- a/contrib/libs/python/Include/pydebug.h +++ b/contrib/libs/python/Include/pydebug.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pydebug.h> -#else -#include <contrib/tools/python/src/Include/pydebug.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pydebug.h> +#else +#include <contrib/tools/python/src/Include/pydebug.h> +#endif diff --git a/contrib/libs/python/Include/pydtrace.h b/contrib/libs/python/Include/pydtrace.h index e517c2ee4f..170d5e0ca2 100644 --- a/contrib/libs/python/Include/pydtrace.h +++ b/contrib/libs/python/Include/pydtrace.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pydtrace.h> -#else -#error "No <pydtrace.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pydtrace.h> +#else +#error "No <pydtrace.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pyerrors.h b/contrib/libs/python/Include/pyerrors.h index fd0638e07d..587690a2b2 100644 --- a/contrib/libs/python/Include/pyerrors.h +++ b/contrib/libs/python/Include/pyerrors.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyerrors.h> -#else -#include <contrib/tools/python/src/Include/pyerrors.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyerrors.h> +#else +#include <contrib/tools/python/src/Include/pyerrors.h> +#endif diff --git a/contrib/libs/python/Include/pyexpat.h b/contrib/libs/python/Include/pyexpat.h index 5812a8fd32..e9021bf070 100644 --- a/contrib/libs/python/Include/pyexpat.h +++ b/contrib/libs/python/Include/pyexpat.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyexpat.h> -#else -#include <contrib/tools/python/src/Include/pyexpat.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyexpat.h> +#else +#include <contrib/tools/python/src/Include/pyexpat.h> +#endif diff --git a/contrib/libs/python/Include/pyfpe.h b/contrib/libs/python/Include/pyfpe.h index 41a49db7f3..b9ee7aa43f 100644 --- a/contrib/libs/python/Include/pyfpe.h +++ b/contrib/libs/python/Include/pyfpe.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyfpe.h> -#else -#include <contrib/tools/python/src/Include/pyfpe.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyfpe.h> +#else +#include <contrib/tools/python/src/Include/pyfpe.h> +#endif diff --git a/contrib/libs/python/Include/pygetopt.h b/contrib/libs/python/Include/pygetopt.h index 06ee570cd0..3e591b03ce 100644 --- a/contrib/libs/python/Include/pygetopt.h +++ b/contrib/libs/python/Include/pygetopt.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 +#pragma once + +#ifdef USE_PYTHON3 #error "No <pygetopt.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pygetopt.h> -#endif +#else +#include <contrib/tools/python/src/Include/pygetopt.h> +#endif diff --git a/contrib/libs/python/Include/pyhash.h b/contrib/libs/python/Include/pyhash.h index 7a9690a589..847428d568 100644 --- a/contrib/libs/python/Include/pyhash.h +++ b/contrib/libs/python/Include/pyhash.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyhash.h> -#else -#error "No <pyhash.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyhash.h> +#else +#error "No <pyhash.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pylifecycle.h b/contrib/libs/python/Include/pylifecycle.h index b5f3cac8a5..7cffd7cc74 100644 --- a/contrib/libs/python/Include/pylifecycle.h +++ b/contrib/libs/python/Include/pylifecycle.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pylifecycle.h> -#else -#error "No <pylifecycle.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pylifecycle.h> +#else +#error "No <pylifecycle.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pymacconfig.h b/contrib/libs/python/Include/pymacconfig.h index fcdddc1ca4..452a8db249 100644 --- a/contrib/libs/python/Include/pymacconfig.h +++ b/contrib/libs/python/Include/pymacconfig.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pymacconfig.h> -#else -#include <contrib/tools/python/src/Include/pymacconfig.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pymacconfig.h> +#else +#include <contrib/tools/python/src/Include/pymacconfig.h> +#endif diff --git a/contrib/libs/python/Include/pymacro.h b/contrib/libs/python/Include/pymacro.h index 0b35bdf68e..ba64609d32 100644 --- a/contrib/libs/python/Include/pymacro.h +++ b/contrib/libs/python/Include/pymacro.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pymacro.h> -#else -#error "No <pymacro.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pymacro.h> +#else +#error "No <pymacro.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pymactoolbox.h b/contrib/libs/python/Include/pymactoolbox.h index e735deff8a..320a4920a4 100644 --- a/contrib/libs/python/Include/pymactoolbox.h +++ b/contrib/libs/python/Include/pymactoolbox.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <pymactoolbox.h> in Python3" -#else -#include <contrib/tools/python/src/Include/pymactoolbox.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <pymactoolbox.h> in Python3" +#else +#include <contrib/tools/python/src/Include/pymactoolbox.h> +#endif diff --git a/contrib/libs/python/Include/pymath.h b/contrib/libs/python/Include/pymath.h index 952b86c6e4..a83f248550 100644 --- a/contrib/libs/python/Include/pymath.h +++ b/contrib/libs/python/Include/pymath.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pymath.h> -#else -#include <contrib/tools/python/src/Include/pymath.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pymath.h> +#else +#include <contrib/tools/python/src/Include/pymath.h> +#endif diff --git a/contrib/libs/python/Include/pymem.h b/contrib/libs/python/Include/pymem.h index d17ba80627..780aa553e1 100644 --- a/contrib/libs/python/Include/pymem.h +++ b/contrib/libs/python/Include/pymem.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pymem.h> -#else -#include <contrib/tools/python/src/Include/pymem.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pymem.h> +#else +#include <contrib/tools/python/src/Include/pymem.h> +#endif diff --git a/contrib/libs/python/Include/pyport.h b/contrib/libs/python/Include/pyport.h index 9f75a32106..a32beac0c1 100644 --- a/contrib/libs/python/Include/pyport.h +++ b/contrib/libs/python/Include/pyport.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pyport.h> -#else -#include <contrib/tools/python/src/Include/pyport.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pyport.h> +#else +#include <contrib/tools/python/src/Include/pyport.h> +#endif diff --git a/contrib/libs/python/Include/pystate.h b/contrib/libs/python/Include/pystate.h index 5f1ad1d4e7..6601f2591b 100644 --- a/contrib/libs/python/Include/pystate.h +++ b/contrib/libs/python/Include/pystate.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pystate.h> -#else -#include <contrib/tools/python/src/Include/pystate.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pystate.h> +#else +#include <contrib/tools/python/src/Include/pystate.h> +#endif diff --git a/contrib/libs/python/Include/pystrcmp.h b/contrib/libs/python/Include/pystrcmp.h index 38dead26dd..748b61d534 100644 --- a/contrib/libs/python/Include/pystrcmp.h +++ b/contrib/libs/python/Include/pystrcmp.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pystrcmp.h> -#else -#include <contrib/tools/python/src/Include/pystrcmp.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pystrcmp.h> +#else +#include <contrib/tools/python/src/Include/pystrcmp.h> +#endif diff --git a/contrib/libs/python/Include/pystrhex.h b/contrib/libs/python/Include/pystrhex.h index f17fb48e45..a8a41a1b56 100644 --- a/contrib/libs/python/Include/pystrhex.h +++ b/contrib/libs/python/Include/pystrhex.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pystrhex.h> -#else -#error "No <pystrhex.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pystrhex.h> +#else +#error "No <pystrhex.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/pystrtod.h b/contrib/libs/python/Include/pystrtod.h index 7494b5abe0..70d9aa343e 100644 --- a/contrib/libs/python/Include/pystrtod.h +++ b/contrib/libs/python/Include/pystrtod.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pystrtod.h> -#else -#include <contrib/tools/python/src/Include/pystrtod.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pystrtod.h> +#else +#include <contrib/tools/python/src/Include/pystrtod.h> +#endif diff --git a/contrib/libs/python/Include/pythonrun.h b/contrib/libs/python/Include/pythonrun.h index 896d1b3978..381610c54e 100644 --- a/contrib/libs/python/Include/pythonrun.h +++ b/contrib/libs/python/Include/pythonrun.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pythonrun.h> -#else -#include <contrib/tools/python/src/Include/pythonrun.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pythonrun.h> +#else +#include <contrib/tools/python/src/Include/pythonrun.h> +#endif diff --git a/contrib/libs/python/Include/pythread.h b/contrib/libs/python/Include/pythread.h index c0107779da..3f3eae9530 100644 --- a/contrib/libs/python/Include/pythread.h +++ b/contrib/libs/python/Include/pythread.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pythread.h> -#else -#include <contrib/tools/python/src/Include/pythread.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pythread.h> +#else +#include <contrib/tools/python/src/Include/pythread.h> +#endif diff --git a/contrib/libs/python/Include/pytime.h b/contrib/libs/python/Include/pytime.h index f7e61f9e33..7412fa8632 100644 --- a/contrib/libs/python/Include/pytime.h +++ b/contrib/libs/python/Include/pytime.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/pytime.h> -#else -#error "No <pytime.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/pytime.h> +#else +#error "No <pytime.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/rangeobject.h b/contrib/libs/python/Include/rangeobject.h index 006604bb5e..dc0b4a219b 100644 --- a/contrib/libs/python/Include/rangeobject.h +++ b/contrib/libs/python/Include/rangeobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/rangeobject.h> -#else -#include <contrib/tools/python/src/Include/rangeobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/rangeobject.h> +#else +#include <contrib/tools/python/src/Include/rangeobject.h> +#endif diff --git a/contrib/libs/python/Include/setobject.h b/contrib/libs/python/Include/setobject.h index dc8288f6bc..5f09504d2b 100644 --- a/contrib/libs/python/Include/setobject.h +++ b/contrib/libs/python/Include/setobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/setobject.h> -#else -#include <contrib/tools/python/src/Include/setobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/setobject.h> +#else +#include <contrib/tools/python/src/Include/setobject.h> +#endif diff --git a/contrib/libs/python/Include/sliceobject.h b/contrib/libs/python/Include/sliceobject.h index b30a687fa1..b124a7a15b 100644 --- a/contrib/libs/python/Include/sliceobject.h +++ b/contrib/libs/python/Include/sliceobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/sliceobject.h> -#else -#include <contrib/tools/python/src/Include/sliceobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/sliceobject.h> +#else +#include <contrib/tools/python/src/Include/sliceobject.h> +#endif diff --git a/contrib/libs/python/Include/stringobject.h b/contrib/libs/python/Include/stringobject.h index e56cb06cfa..374c66667b 100644 --- a/contrib/libs/python/Include/stringobject.h +++ b/contrib/libs/python/Include/stringobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <stringobject.h> in Python3" -#else -#include <contrib/tools/python/src/Include/stringobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <stringobject.h> in Python3" +#else +#include <contrib/tools/python/src/Include/stringobject.h> +#endif diff --git a/contrib/libs/python/Include/structmember.h b/contrib/libs/python/Include/structmember.h index c030e255a3..ab8d9c2924 100644 --- a/contrib/libs/python/Include/structmember.h +++ b/contrib/libs/python/Include/structmember.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/structmember.h> -#else -#include <contrib/tools/python/src/Include/structmember.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/structmember.h> +#else +#include <contrib/tools/python/src/Include/structmember.h> +#endif diff --git a/contrib/libs/python/Include/structseq.h b/contrib/libs/python/Include/structseq.h index a04da108d2..02cadaaefe 100644 --- a/contrib/libs/python/Include/structseq.h +++ b/contrib/libs/python/Include/structseq.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/structseq.h> -#else -#include <contrib/tools/python/src/Include/structseq.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/structseq.h> +#else +#include <contrib/tools/python/src/Include/structseq.h> +#endif diff --git a/contrib/libs/python/Include/symtable.h b/contrib/libs/python/Include/symtable.h index 7ba5707165..5522056670 100644 --- a/contrib/libs/python/Include/symtable.h +++ b/contrib/libs/python/Include/symtable.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/symtable.h> -#else -#include <contrib/tools/python/src/Include/symtable.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/symtable.h> +#else +#include <contrib/tools/python/src/Include/symtable.h> +#endif diff --git a/contrib/libs/python/Include/sysmodule.h b/contrib/libs/python/Include/sysmodule.h index dcf7a9bf05..6b50a48c2d 100644 --- a/contrib/libs/python/Include/sysmodule.h +++ b/contrib/libs/python/Include/sysmodule.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/sysmodule.h> -#else -#include <contrib/tools/python/src/Include/sysmodule.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/sysmodule.h> +#else +#include <contrib/tools/python/src/Include/sysmodule.h> +#endif diff --git a/contrib/libs/python/Include/timefuncs.h b/contrib/libs/python/Include/timefuncs.h index 1b1828b17a..409ee6df19 100644 --- a/contrib/libs/python/Include/timefuncs.h +++ b/contrib/libs/python/Include/timefuncs.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#error "No <timefuncs.h> in Python3" -#else -#include <contrib/tools/python/src/Include/timefuncs.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#error "No <timefuncs.h> in Python3" +#else +#include <contrib/tools/python/src/Include/timefuncs.h> +#endif diff --git a/contrib/libs/python/Include/token.h b/contrib/libs/python/Include/token.h index de1d0dc669..cef4f27bc8 100644 --- a/contrib/libs/python/Include/token.h +++ b/contrib/libs/python/Include/token.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/token.h> -#else -#include <contrib/tools/python/src/Include/token.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/token.h> +#else +#include <contrib/tools/python/src/Include/token.h> +#endif diff --git a/contrib/libs/python/Include/traceback.h b/contrib/libs/python/Include/traceback.h index 55e6e0f98f..284fc8ab7f 100644 --- a/contrib/libs/python/Include/traceback.h +++ b/contrib/libs/python/Include/traceback.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/traceback.h> -#else -#include <contrib/tools/python/src/Include/traceback.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/traceback.h> +#else +#include <contrib/tools/python/src/Include/traceback.h> +#endif diff --git a/contrib/libs/python/Include/tupleobject.h b/contrib/libs/python/Include/tupleobject.h index acc7731d4e..8b924b9b4c 100644 --- a/contrib/libs/python/Include/tupleobject.h +++ b/contrib/libs/python/Include/tupleobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/tupleobject.h> -#else -#include <contrib/tools/python/src/Include/tupleobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/tupleobject.h> +#else +#include <contrib/tools/python/src/Include/tupleobject.h> +#endif diff --git a/contrib/libs/python/Include/typeslots.h b/contrib/libs/python/Include/typeslots.h index 1e8026e12b..4dd000ae3c 100644 --- a/contrib/libs/python/Include/typeslots.h +++ b/contrib/libs/python/Include/typeslots.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/typeslots.h> -#else -#error "No <typeslots.h> in Python2" -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/typeslots.h> +#else +#error "No <typeslots.h> in Python2" +#endif diff --git a/contrib/libs/python/Include/ucnhash.h b/contrib/libs/python/Include/ucnhash.h index d3a784f50b..42412a87b4 100644 --- a/contrib/libs/python/Include/ucnhash.h +++ b/contrib/libs/python/Include/ucnhash.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/ucnhash.h> -#else -#include <contrib/tools/python/src/Include/ucnhash.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/ucnhash.h> +#else +#include <contrib/tools/python/src/Include/ucnhash.h> +#endif diff --git a/contrib/libs/python/Include/unicodeobject.h b/contrib/libs/python/Include/unicodeobject.h index 9b531b5d2c..172af650e1 100644 --- a/contrib/libs/python/Include/unicodeobject.h +++ b/contrib/libs/python/Include/unicodeobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/unicodeobject.h> -#else -#include <contrib/tools/python/src/Include/unicodeobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/unicodeobject.h> +#else +#include <contrib/tools/python/src/Include/unicodeobject.h> +#endif diff --git a/contrib/libs/python/Include/warnings.h b/contrib/libs/python/Include/warnings.h index a2b37eba83..d5deac5bc5 100644 --- a/contrib/libs/python/Include/warnings.h +++ b/contrib/libs/python/Include/warnings.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/warnings.h> -#else -#include <contrib/tools/python/src/Include/warnings.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/warnings.h> +#else +#include <contrib/tools/python/src/Include/warnings.h> +#endif diff --git a/contrib/libs/python/Include/weakrefobject.h b/contrib/libs/python/Include/weakrefobject.h index 61f499869f..3fed3fa764 100644 --- a/contrib/libs/python/Include/weakrefobject.h +++ b/contrib/libs/python/Include/weakrefobject.h @@ -1,7 +1,7 @@ -#pragma once - -#ifdef USE_PYTHON3 -#include <contrib/tools/python3/src/Include/weakrefobject.h> -#else -#include <contrib/tools/python/src/Include/weakrefobject.h> -#endif +#pragma once + +#ifdef USE_PYTHON3 +#include <contrib/tools/python3/src/Include/weakrefobject.h> +#else +#include <contrib/tools/python/src/Include/weakrefobject.h> +#endif diff --git a/contrib/libs/python/README.md b/contrib/libs/python/README.md index 9b22a9b761..cd122b92b3 100644 --- a/contrib/libs/python/README.md +++ b/contrib/libs/python/README.md @@ -1,9 +1,9 @@ -This include-only library enables simultaneous bindings into Python2 and Python3 with single build. - -It provides the following: -- Let dependencies to headers from both Pythons be seen at once during ya make dependency computation. This makes depenency graph more stable. -- Steers build to proper Python headers depending on mode in which binding is built. -- Adds proper Python library to link. - -Headers are automatically generated from Python2 and Python3 headers using gen_includes.py script - +This include-only library enables simultaneous bindings into Python2 and Python3 with single build. + +It provides the following: +- Let dependencies to headers from both Pythons be seen at once during ya make dependency computation. This makes depenency graph more stable. +- Steers build to proper Python headers depending on mode in which binding is built. +- Adds proper Python library to link. + +Headers are automatically generated from Python2 and Python3 headers using gen_includes.py script + diff --git a/contrib/libs/python/gen_includes.py b/contrib/libs/python/gen_includes.py index bc73e6e826..0e024cc49d 100644 --- a/contrib/libs/python/gen_includes.py +++ b/contrib/libs/python/gen_includes.py @@ -1,24 +1,24 @@ -import sys -import os -import errno -from os import listdir +import sys +import os +import errno +from os import listdir from os.path import dirname, relpath, join - -def ensure_dir_exists(path): - try: - os.makedirs(path) - except OSError as e: - if e.errno == errno.EEXIST and os.path.isdir(path): - pass - else: - raise - -def make_dir(directory): - if not os.path.exists(directory): - os.makedirs(directory) - +def ensure_dir_exists(path): + try: + os.makedirs(path) + except OSError as e: + if e.errno == errno.EEXIST and os.path.isdir(path): + pass + else: + raise + + +def make_dir(directory): + if not os.path.exists(directory): + os.makedirs(directory) + def files(directory): for dirpath, dirnames, filenames in os.walk(directory): @@ -26,22 +26,22 @@ def files(directory): yield relpath(join(dirpath, name), directory) -def headers_set(directory): +def headers_set(directory): return { f for f in files(directory) if f.endswith('.h') and not f.startswith('internal/') } - -if __name__ == "__main__": - - python2_path = sys.argv[1] - python3_path = sys.argv[2] - output_path = sys.argv[3] - - ensure_dir_exists(join('.', python2_path)) - ensure_dir_exists(join('.', python3_path)) - + +if __name__ == "__main__": + + python2_path = sys.argv[1] + python3_path = sys.argv[2] + output_path = sys.argv[3] + + ensure_dir_exists(join('.', python2_path)) + ensure_dir_exists(join('.', python3_path)) + only_headers2 = headers_set(python2_path) only_headers3 = headers_set(python3_path) all_headers = only_headers2 | only_headers3 diff --git a/contrib/libs/python/ut/lib/test.cpp b/contrib/libs/python/ut/lib/test.cpp index 824b7460e1..e3aabc8889 100644 --- a/contrib/libs/python/ut/lib/test.cpp +++ b/contrib/libs/python/ut/lib/test.cpp @@ -1,21 +1,21 @@ -#include "test.h" - -#include <Python.h> +#include "test.h" + +#include <Python.h> #include <library/cpp/testing/unittest/registar.h> - -TTestPyInvoker::TTestPyInvoker() {} - -const char* TTestPyInvoker::GetVersion() { - Py_Initialize(); - - auto* module = PyImport_ImportModule("sys"); - UNIT_ASSERT(module != nullptr); - - auto* versionObj = PyObject_GetAttrString(module, "version"); - if (versionObj == nullptr) { - Py_DECREF(module); - UNIT_ASSERT(versionObj != nullptr); - } - - return Py_GetVersion(); -} + +TTestPyInvoker::TTestPyInvoker() {} + +const char* TTestPyInvoker::GetVersion() { + Py_Initialize(); + + auto* module = PyImport_ImportModule("sys"); + UNIT_ASSERT(module != nullptr); + + auto* versionObj = PyObject_GetAttrString(module, "version"); + if (versionObj == nullptr) { + Py_DECREF(module); + UNIT_ASSERT(versionObj != nullptr); + } + + return Py_GetVersion(); +} diff --git a/contrib/libs/python/ut/lib/test.h b/contrib/libs/python/ut/lib/test.h index 4bdbe672ac..1bf824ebea 100644 --- a/contrib/libs/python/ut/lib/test.h +++ b/contrib/libs/python/ut/lib/test.h @@ -1,7 +1,7 @@ -#pragma once - -class TTestPyInvoker { -public: - TTestPyInvoker(); - const char* GetVersion(); -}; +#pragma once + +class TTestPyInvoker { +public: + TTestPyInvoker(); + const char* GetVersion(); +}; diff --git a/contrib/libs/python/ut/lib/ya.make b/contrib/libs/python/ut/lib/ya.make index a67c3e254e..cfa0aaa612 100644 --- a/contrib/libs/python/ut/lib/ya.make +++ b/contrib/libs/python/ut/lib/ya.make @@ -1,17 +1,17 @@ -OWNER(spreis) - -PY23_LIBRARY() +OWNER(spreis) + +PY23_LIBRARY() WITHOUT_LICENSE_TEXTS() LICENSE(YandexOpen) -PEERDIR( +PEERDIR( library/cpp/testing/unittest -) +) SRCS( test.cpp ) -END() +END() diff --git a/contrib/libs/python/ut/py2/use.cpp b/contrib/libs/python/ut/py2/use.cpp index 853fb452dc..a4a2c8d9bb 100644 --- a/contrib/libs/python/ut/py2/use.cpp +++ b/contrib/libs/python/ut/py2/use.cpp @@ -1,10 +1,10 @@ -#include <contrib/libs/python/ut/lib/test.h> +#include <contrib/libs/python/ut/lib/test.h> #include <library/cpp/testing/unittest/registar.h> - -Y_UNIT_TEST_SUITE(TestPy3Binding) { - Y_UNIT_TEST(version) { - TTestPyInvoker invoker; - UNIT_ASSERT_EQUAL(invoker.GetVersion()[0], '2'); - } -} - + +Y_UNIT_TEST_SUITE(TestPy3Binding) { + Y_UNIT_TEST(version) { + TTestPyInvoker invoker; + UNIT_ASSERT_EQUAL(invoker.GetVersion()[0], '2'); + } +} + diff --git a/contrib/libs/python/ut/py2/ya.make b/contrib/libs/python/ut/py2/ya.make index 3962a7664e..9c5c824761 100644 --- a/contrib/libs/python/ut/py2/ya.make +++ b/contrib/libs/python/ut/py2/ya.make @@ -1,9 +1,9 @@ -OWNER(spreis) - -UNITTEST() -SRCS(use.cpp) - -PEERDIR( - contrib/libs/python/ut/lib -) -END() +OWNER(spreis) + +UNITTEST() +SRCS(use.cpp) + +PEERDIR( + contrib/libs/python/ut/lib +) +END() diff --git a/contrib/libs/python/ut/py3/use.cpp b/contrib/libs/python/ut/py3/use.cpp index e532ca89e7..8a2531bcc1 100644 --- a/contrib/libs/python/ut/py3/use.cpp +++ b/contrib/libs/python/ut/py3/use.cpp @@ -1,10 +1,10 @@ -#include <contrib/libs/python/ut/lib/test.h> +#include <contrib/libs/python/ut/lib/test.h> #include <library/cpp/testing/unittest/registar.h> - -Y_UNIT_TEST_SUITE(TestPy3Binding) { - Y_UNIT_TEST(version) { - TTestPyInvoker invoker; - UNIT_ASSERT_EQUAL(invoker.GetVersion()[0], '3'); - } -} - + +Y_UNIT_TEST_SUITE(TestPy3Binding) { + Y_UNIT_TEST(version) { + TTestPyInvoker invoker; + UNIT_ASSERT_EQUAL(invoker.GetVersion()[0], '3'); + } +} + diff --git a/contrib/libs/python/ut/py3/ya.make b/contrib/libs/python/ut/py3/ya.make index af8407938c..df6d4fe767 100644 --- a/contrib/libs/python/ut/py3/ya.make +++ b/contrib/libs/python/ut/py3/ya.make @@ -1,10 +1,10 @@ -OWNER(spreis) - -UNITTEST() -USE_PYTHON3() -SRCS(use.cpp) - -PEERDIR( - contrib/libs/python/ut/lib -) -END() +OWNER(spreis) + +UNITTEST() +USE_PYTHON3() +SRCS(use.cpp) + +PEERDIR( + contrib/libs/python/ut/lib +) +END() diff --git a/contrib/libs/python/ut/ya.make b/contrib/libs/python/ut/ya.make index 5fe3576e06..4fea35153a 100644 --- a/contrib/libs/python/ut/ya.make +++ b/contrib/libs/python/ut/ya.make @@ -1,7 +1,7 @@ -OWNER(spreis) - -RECURSE( - lib - py2 - py3 -)
\ No newline at end of file +OWNER(spreis) + +RECURSE( + lib + py2 + py3 +)
\ No newline at end of file diff --git a/contrib/libs/python/ya.make b/contrib/libs/python/ya.make index df7c89d882..20a57f4b48 100644 --- a/contrib/libs/python/ya.make +++ b/contrib/libs/python/ya.make @@ -3,16 +3,16 @@ OWNER( orivej g:contrib ) - -PY23_LIBRARY() - + +PY23_LIBRARY() + LICENSE(YandexOpen) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -NO_PYTHON_INCLUDES() - -IF (USE_ARCADIA_PYTHON) +NO_PYTHON_INCLUDES() + +IF (USE_ARCADIA_PYTHON) PEERDIR( contrib/libs/python/Include library/python/symbols/module @@ -29,21 +29,21 @@ IF (USE_ARCADIA_PYTHON) contrib/tools/python/lib library/python/runtime ) - ELSE() + ELSE() PEERDIR( contrib/tools/python3/lib library/python/runtime_py3 ) - ENDIF() -ELSE() - IF (USE_SYSTEM_PYTHON) + ENDIF() +ELSE() + IF (USE_SYSTEM_PYTHON) PEERDIR( build/platform/python ) - ELSE() - CFLAGS(GLOBAL $PYTHON_INCLUDE) - ENDIF() -ENDIF() + ELSE() + CFLAGS(GLOBAL $PYTHON_INCLUDE) + ENDIF() +ENDIF() END() diff --git a/contrib/libs/ya.make b/contrib/libs/ya.make index ab91fc8b09..9c4640fdcf 100644 --- a/contrib/libs/ya.make +++ b/contrib/libs/ya.make @@ -285,8 +285,8 @@ RECURSE( pugixml pybind11 pycxx - python - python/ut + python + python/ut qhull quicklz r-lang diff --git a/contrib/python/certifi/ya.make b/contrib/python/certifi/ya.make index 0ee37b7829..d13fe73acc 100644 --- a/contrib/python/certifi/ya.make +++ b/contrib/python/certifi/ya.make @@ -1,4 +1,4 @@ -PY23_LIBRARY() +PY23_LIBRARY() LICENSE(Service-Py23-Proxy) diff --git a/contrib/python/future/ya.make b/contrib/python/future/ya.make index 084db12084..ba24f13341 100644 --- a/contrib/python/future/ya.make +++ b/contrib/python/future/ya.make @@ -1,4 +1,4 @@ -PY23_LIBRARY() +PY23_LIBRARY() LICENSE(MIT) @@ -138,32 +138,32 @@ PY_SRCS( ) IF (MODULE_TAG == "PY2") - PY_SRCS( - TOP_LEVEL - _dummy_thread/__init__.py - _markupbase/__init__.py - _thread/__init__.py - builtins/__init__.py - copyreg/__init__.py - future/__init__.py - html/__init__.py - html/entities.py - html/parser.py - http/__init__.py - http/client.py - http/cookiejar.py - http/cookies.py - http/server.py + PY_SRCS( + TOP_LEVEL + _dummy_thread/__init__.py + _markupbase/__init__.py + _thread/__init__.py + builtins/__init__.py + copyreg/__init__.py + future/__init__.py + html/__init__.py + html/entities.py + html/parser.py + http/__init__.py + http/client.py + http/cookiejar.py + http/cookies.py + http/server.py past/__init__.py - queue/__init__.py - reprlib/__init__.py - socketserver/__init__.py - xmlrpc/__init__.py - xmlrpc/client.py - xmlrpc/server.py - ) -ENDIF() - + queue/__init__.py + reprlib/__init__.py + socketserver/__init__.py + xmlrpc/__init__.py + xmlrpc/client.py + xmlrpc/server.py + ) +ENDIF() + IF (OS_WINDOWS) PY_SRCS( TOP_LEVEL diff --git a/contrib/python/packaging/ya.make b/contrib/python/packaging/ya.make index 011e164c08..45549cf137 100644 --- a/contrib/python/packaging/ya.make +++ b/contrib/python/packaging/ya.make @@ -1,4 +1,4 @@ -PY23_LIBRARY() +PY23_LIBRARY() LICENSE(Service-Py23-Proxy) diff --git a/contrib/python/protobuf/py2/google/protobuf/pyext/message.cc b/contrib/python/protobuf/py2/google/protobuf/pyext/message.cc index 3ee9b2664a..8b41ca47dd 100644 --- a/contrib/python/protobuf/py2/google/protobuf/pyext/message.cc +++ b/contrib/python/protobuf/py2/google/protobuf/pyext/message.cc @@ -806,24 +806,24 @@ bool CheckAndSetString( PyObject* ToStringObject(const FieldDescriptor* descriptor, const TProtoStringType& value) { -#if PY_MAJOR_VERSION >= 3 - if (descriptor->type() != FieldDescriptor::TYPE_STRING) { - return PyBytes_FromStringAndSize(value.c_str(), value.length()); - } - - PyObject* result = PyUnicode_DecodeUTF8(value.c_str(), value.length(), NULL); - // If the string can't be decoded in UTF-8, just return a string object that - // contains the raw bytes. This can't happen if the value was assigned using - // the members of the Python message object, but can happen if the values were - // parsed from the wire (binary). - if (result == NULL) { - PyErr_Clear(); - result = PyBytes_FromStringAndSize(value.c_str(), value.length()); - } - return result; -#else +#if PY_MAJOR_VERSION >= 3 + if (descriptor->type() != FieldDescriptor::TYPE_STRING) { + return PyBytes_FromStringAndSize(value.c_str(), value.length()); + } + + PyObject* result = PyUnicode_DecodeUTF8(value.c_str(), value.length(), NULL); + // If the string can't be decoded in UTF-8, just return a string object that + // contains the raw bytes. This can't happen if the value was assigned using + // the members of the Python message object, but can happen if the values were + // parsed from the wire (binary). + if (result == NULL) { + PyErr_Clear(); + result = PyBytes_FromStringAndSize(value.c_str(), value.length()); + } + return result; +#else return PyBytes_FromStringAndSize(value.c_str(), value.length()); -#endif +#endif } bool CheckFieldBelongsToMessage(const FieldDescriptor* field_descriptor, diff --git a/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc b/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc index 3ee9b2664a..8b41ca47dd 100644 --- a/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc +++ b/contrib/python/protobuf/py3/google/protobuf/pyext/message.cc @@ -806,24 +806,24 @@ bool CheckAndSetString( PyObject* ToStringObject(const FieldDescriptor* descriptor, const TProtoStringType& value) { -#if PY_MAJOR_VERSION >= 3 - if (descriptor->type() != FieldDescriptor::TYPE_STRING) { - return PyBytes_FromStringAndSize(value.c_str(), value.length()); - } - - PyObject* result = PyUnicode_DecodeUTF8(value.c_str(), value.length(), NULL); - // If the string can't be decoded in UTF-8, just return a string object that - // contains the raw bytes. This can't happen if the value was assigned using - // the members of the Python message object, but can happen if the values were - // parsed from the wire (binary). - if (result == NULL) { - PyErr_Clear(); - result = PyBytes_FromStringAndSize(value.c_str(), value.length()); - } - return result; -#else +#if PY_MAJOR_VERSION >= 3 + if (descriptor->type() != FieldDescriptor::TYPE_STRING) { + return PyBytes_FromStringAndSize(value.c_str(), value.length()); + } + + PyObject* result = PyUnicode_DecodeUTF8(value.c_str(), value.length(), NULL); + // If the string can't be decoded in UTF-8, just return a string object that + // contains the raw bytes. This can't happen if the value was assigned using + // the members of the Python message object, but can happen if the values were + // parsed from the wire (binary). + if (result == NULL) { + PyErr_Clear(); + result = PyBytes_FromStringAndSize(value.c_str(), value.length()); + } + return result; +#else return PyBytes_FromStringAndSize(value.c_str(), value.length()); -#endif +#endif } bool CheckFieldBelongsToMessage(const FieldDescriptor* field_descriptor, diff --git a/contrib/python/py/ya.make b/contrib/python/py/ya.make index 1e01a20542..cc86cb7fa9 100644 --- a/contrib/python/py/ya.make +++ b/contrib/python/py/ya.make @@ -1,6 +1,6 @@ # Generated by devtools/yamaker (pypi). -PY23_LIBRARY() +PY23_LIBRARY() OWNER(g:python-contrib) diff --git a/contrib/python/pyparsing/py2/ya.make b/contrib/python/pyparsing/py2/ya.make index 83f08183ed..e4812f97b5 100644 --- a/contrib/python/pyparsing/py2/ya.make +++ b/contrib/python/pyparsing/py2/ya.make @@ -1,6 +1,6 @@ # Generated by devtools/yamaker (pypi). -PY23_LIBRARY() +PY23_LIBRARY() PROVIDES(pyparsing) diff --git a/contrib/python/pyparsing/ya.make b/contrib/python/pyparsing/ya.make index 663b5c04fd..66da70626d 100644 --- a/contrib/python/pyparsing/ya.make +++ b/contrib/python/pyparsing/ya.make @@ -1,4 +1,4 @@ -PY23_LIBRARY() +PY23_LIBRARY() LICENSE(Service-Py23-Proxy) diff --git a/contrib/python/setuptools/ya.make b/contrib/python/setuptools/ya.make index 58f50081bf..535a2d61fa 100644 --- a/contrib/python/setuptools/ya.make +++ b/contrib/python/setuptools/ya.make @@ -1,4 +1,4 @@ -PY23_LIBRARY() +PY23_LIBRARY() LICENSE(Service-Py23-Proxy) diff --git a/contrib/python/six/ya.make b/contrib/python/six/ya.make index 25406c9509..e0c7849214 100644 --- a/contrib/python/six/ya.make +++ b/contrib/python/six/ya.make @@ -1,6 +1,6 @@ OWNER(g:python-contrib) -PY23_LIBRARY() +PY23_LIBRARY() LICENSE(MIT) diff --git a/contrib/python/tornado/tornado-4/ya.make b/contrib/python/tornado/tornado-4/ya.make index 88b9d3b592..0ea2ed6040 100644 --- a/contrib/python/tornado/tornado-4/ya.make +++ b/contrib/python/tornado/tornado-4/ya.make @@ -6,8 +6,8 @@ LICENSE(Apache-2.0) VERSION(4.5.3) -PROVIDES(tornado) - +PROVIDES(tornado) + PEERDIR( # because of ca bundle contrib/python/certifi diff --git a/contrib/python/ya.make b/contrib/python/ya.make index 922c4b216d..d01ced9f3a 100644 --- a/contrib/python/ya.make +++ b/contrib/python/ya.make @@ -509,7 +509,7 @@ RECURSE( imagesize IMAPClient imgkit - implicit + implicit importlib-metadata importlib-resources incremental diff --git a/contrib/tools/bison/bison/ya.make b/contrib/tools/bison/bison/ya.make index dd1ed850ac..04f8ae3758 100644 --- a/contrib/tools/bison/bison/ya.make +++ b/contrib/tools/bison/bison/ya.make @@ -1,5 +1,5 @@ -OWNER(g:contrib) - +OWNER(g:contrib) + PROGRAM() LICENSE( diff --git a/contrib/tools/bison/gnulib/ya.make b/contrib/tools/bison/gnulib/ya.make index f97381645d..b674fd9ada 100644 --- a/contrib/tools/bison/gnulib/ya.make +++ b/contrib/tools/bison/gnulib/ya.make @@ -1,5 +1,5 @@ -OWNER(g:contrib) - +OWNER(g:contrib) + LIBRARY() LICENSE( diff --git a/contrib/tools/bison/m4/ya.make b/contrib/tools/bison/m4/ya.make index 618b61a05a..3a54fa2c8f 100644 --- a/contrib/tools/bison/m4/ya.make +++ b/contrib/tools/bison/m4/ya.make @@ -1,5 +1,5 @@ -OWNER(g:contrib) - +OWNER(g:contrib) + PROGRAM() LICENSE(GPL-3.0-or-later) diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp b/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp index b18ada4016..cd96aa0565 100644 --- a/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp +++ b/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp @@ -970,7 +970,7 @@ namespace NPlugins { std::unique_ptr<io::ZeroCopyOutputStream> output( OutputDirectory_->OpenForInsert(fileName, scope)); io::Printer printer(output.get(), '$'); - printer.Print("#include <google/protobuf/messagext.h>\n"); + printer.Print("#include <google/protobuf/messagext.h>\n"); } void GenerateHeaderIncludeExtensions() { @@ -979,7 +979,7 @@ namespace NPlugins { std::unique_ptr<io::ZeroCopyOutputStream> output( OutputDirectory_->OpenForInsert(fileName, scope)); io::Printer printer(output.get(), '$'); - printer.Print("#include <google/protobuf/json_util.h>\n"); + printer.Print("#include <google/protobuf/json_util.h>\n"); } private: diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/ya.make b/contrib/tools/protoc/plugins/cpp_styleguide/ya.make index 03e662224a..5a5f17d49a 100644 --- a/contrib/tools/protoc/plugins/cpp_styleguide/ya.make +++ b/contrib/tools/protoc/plugins/cpp_styleguide/ya.make @@ -1,5 +1,5 @@ -OWNER(g:contrib) - +OWNER(g:contrib) + IF (USE_PREBUILT_TOOLS) INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/protoc/plugins/cpp_styleguide/ya.make.prebuilt) ENDIF() diff --git a/contrib/tools/protoc/ya.make b/contrib/tools/protoc/ya.make index 2f4b59d59a..81244e1259 100644 --- a/contrib/tools/protoc/ya.make +++ b/contrib/tools/protoc/ya.make @@ -3,7 +3,7 @@ OWNER( g:contrib g:cpp-contrib ) - + IF (USE_PREBUILT_TOOLS) INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/protoc/ya.make.prebuilt) ENDIF() diff --git a/contrib/tools/python/pyconfig.inc b/contrib/tools/python/pyconfig.inc index b513b1880b..01da7d4566 100644 --- a/contrib/tools/python/pyconfig.inc +++ b/contrib/tools/python/pyconfig.inc @@ -10,8 +10,8 @@ SET(PYTHON_SRC_ROOT "${ARCADIA_ROOT}/${PYTHON_SRC_DIR}") SET(PYTHON_FLAGS "-DPy_BUILD_CORE") -ADDINCL(${PYTHON_SRC_DIR}/Include) - +ADDINCL(${PYTHON_SRC_DIR}/Include) + CFLAGS( -DUNQUOTED_VERSION=2.7 ) diff --git a/contrib/tools/python3/src/Lib/ya.make b/contrib/tools/python3/src/Lib/ya.make index d00406885f..c767aad120 100644 --- a/contrib/tools/python3/src/Lib/ya.make +++ b/contrib/tools/python3/src/Lib/ya.make @@ -8,14 +8,14 @@ LICENSE(Python-2.0) NO_LINT() -NO_PYTHON_INCLUDES() - +NO_PYTHON_INCLUDES() + PEERDIR( certs contrib/tools/python3/lib/py ) -PY_SRCS( +PY_SRCS( TOP_LEVEL __future__.py _aix_support.py diff --git a/contrib/tools/ya.make b/contrib/tools/ya.make index db59ff4686..750911c587 100644 --- a/contrib/tools/ya.make +++ b/contrib/tools/ya.make @@ -1,5 +1,5 @@ -OWNER(g:contrib) - +OWNER(g:contrib) + RECURSE( bdb bison @@ -24,7 +24,7 @@ RECURSE( mp4viewer open-vcdiff open-vcdiff/bin - plantuml + plantuml protoc protoc-c protoc_std diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h index 69da5ad127..412424889f 100644 --- a/library/cpp/binsaver/bin_saver.h +++ b/library/cpp/binsaver/bin_saver.h @@ -30,18 +30,18 @@ enum ESaverMode { SAVER_MODE_WRITE_COMPRESSED = 3, }; -namespace NBinSaverInternals { - // This lets explicitly control the overload resolution priority - // The higher P means higher priority in overload resolution order - template <int P> - struct TOverloadPriority : TOverloadPriority <P-1> { - }; - - template <> - struct TOverloadPriority<0> { - }; -} - +namespace NBinSaverInternals { + // This lets explicitly control the overload resolution priority + // The higher P means higher priority in overload resolution order + template <int P> + struct TOverloadPriority : TOverloadPriority <P-1> { + }; + + template <> + struct TOverloadPriority<0> { + }; +} + ////////////////////////////////////////////////////////////////////////// struct IBinSaver { public: @@ -63,18 +63,18 @@ private: // } // }; template <class T, typename = decltype(std::declval<T*>()->T::operator&(std::declval<IBinSaver&>()))> - void CallObjectSerialize(T* p, NBinSaverInternals::TOverloadPriority<2>) { // highest priority - will be resolved first if enabled + void CallObjectSerialize(T* p, NBinSaverInternals::TOverloadPriority<2>) { // highest priority - will be resolved first if enabled // Note: p->operator &(*this) would lead to infinite recursion p->T::operator&(*this); } template <class T, typename = decltype(std::declval<T&>() & std::declval<IBinSaver&>())> - void CallObjectSerialize(T* p, NBinSaverInternals::TOverloadPriority<1>) { // lower priority - will be resolved second if enabled + void CallObjectSerialize(T* p, NBinSaverInternals::TOverloadPriority<1>) { // lower priority - will be resolved second if enabled (*p) & (*this); } template <class T> - void CallObjectSerialize(T* p, NBinSaverInternals::TOverloadPriority<0>) { // lower priority - will be resolved last + void CallObjectSerialize(T* p, NBinSaverInternals::TOverloadPriority<0>) { // lower priority - will be resolved last #if (!defined(_MSC_VER)) // In MSVC __has_trivial_copy returns false to enums, primitive types and arrays. static_assert(__has_trivial_copy(T), "Class is nontrivial copyable, you must define operator&, see"); @@ -294,7 +294,7 @@ public: // return type of Add() is used to detect specialized serializer (see HasNonTrivialSerializer below) template <class T> char Add(const chunk_id, T* p) { - CallObjectSerialize(p, NBinSaverInternals::TOverloadPriority<2>()); + CallObjectSerialize(p, NBinSaverInternals::TOverloadPriority<2>()); return 0; } int Add(const chunk_id, std::string* pStr) { diff --git a/library/cpp/build_info/ya.make b/library/cpp/build_info/ya.make index 007bcbec54..99886a8893 100644 --- a/library/cpp/build_info/ya.make +++ b/library/cpp/build_info/ya.make @@ -6,9 +6,9 @@ OWNER( heretic ) -DEFAULT(SANDBOX_TASK_ID 0) -DEFAULT(KOSHER_SVN_VERSION "") - +DEFAULT(SANDBOX_TASK_ID 0) +DEFAULT(KOSHER_SVN_VERSION "") + CREATE_BUILDINFO_FOR(buildinfo_data.h) PEERDIR( diff --git a/library/cpp/cpuid_check/README.md b/library/cpp/cpuid_check/README.md index a97ee09f58..9c0e8dfa59 100644 --- a/library/cpp/cpuid_check/README.md +++ b/library/cpp/cpuid_check/README.md @@ -1,13 +1,13 @@ -Simple utility to check base target x86 SIMD exensions at startup. - -Program may be built with some SIMD extension enabled (e.g. `-msse4.2`). `PEERDIR` to this library adds statrup check that machine where the program is running supports SIMD extension the program is built for. - -Currently supported check are: sse4.2, pclmul, aes, avx, avx2 and fma. - -**Note:** the library depends on `util`. -**Note:** the library adds stratup code and so if `PEERDIR`-ed from `LIBRARY` will do so for all `PROGRAM`-s that (transitively) use the `LIBRARY`. Don't do this! - +Simple utility to check base target x86 SIMD exensions at startup. + +Program may be built with some SIMD extension enabled (e.g. `-msse4.2`). `PEERDIR` to this library adds statrup check that machine where the program is running supports SIMD extension the program is built for. + +Currently supported check are: sse4.2, pclmul, aes, avx, avx2 and fma. + +**Note:** the library depends on `util`. +**Note:** the library adds stratup code and so if `PEERDIR`-ed from `LIBRARY` will do so for all `PROGRAM`-s that (transitively) use the `LIBRARY`. Don't do this! + You normally don't need to `PEERDIR` this library at all. Since making sse4 in Arcadia default this library is used implicitly. It is `PEERDIR`-ed from all `PROGRAM`-s and derived modules (e.g. `PY2_PROGRAM`, but not `GO_PROGRAM` or `JAVA_PROGRAM`). -It is also not applied to `PROGRAM`-s where `NO_UTIL()`, `NO_PLATFORM()` or `ALLOCATOR(FAKE)` set to avoid undesired dependencied. To disable this implicit check use `NO_CPU_CHECK()` macro or `-DCPU_CHECK=no` ya make flag. - - +It is also not applied to `PROGRAM`-s where `NO_UTIL()`, `NO_PLATFORM()` or `ALLOCATOR(FAKE)` set to avoid undesired dependencied. To disable this implicit check use `NO_CPU_CHECK()` macro or `-DCPU_CHECK=no` ya make flag. + + diff --git a/library/cpp/cpuid_check/cpu_id_check.cpp b/library/cpp/cpuid_check/cpu_id_check.cpp index dd20443dbf..f19a573567 100644 --- a/library/cpp/cpuid_check/cpu_id_check.cpp +++ b/library/cpp/cpuid_check/cpu_id_check.cpp @@ -1,64 +1,64 @@ -#include <util/system/compat.h> -#include <util/system/compiler.h> -#include <util/system/cpu_id.h> -#include <util/system/platform.h> - -#define Y_CPU_ID_ENUMERATE_STARTUP_CHECKS(F) \ - F(SSE42) \ - F(PCLMUL) \ - F(AES) \ - F(AVX) \ - F(AVX2) \ - F(FMA) - -namespace { - [[noreturn]] void ReportISAError(const char* isa) { - err(-1, "This program was compiled for %s which is not supported on your system, exiting...", isa); - } - -#define Y_DEF_NAME(X) \ - void Assert##X() noexcept { \ - if (!NX86::Have##X()) { \ - ReportISAError(#X); \ - } \ - } - - Y_CPU_ID_ENUMERATE_STARTUP_CHECKS(Y_DEF_NAME) -#undef Y_DEF_NAME - - class TBuildCpuChecker { - public: - TBuildCpuChecker() { - Check(); - } - - private: - void Check() const noexcept { -#if defined(_fma_) - AssertFMA(); -#elif defined(_avx2_) - AssertAVX2(); -#elif defined(_avx_) - AssertAVX(); -#elif defined(_aes_) - AssertAES(); -#elif defined(_pclmul_) - AssertPCLMUL(); -#elif defined(_sse4_2_) - AssertSSE42(); -#endif - -#define Y_DEF_NAME(X) Y_UNUSED(Assert##X); - Y_CPU_ID_ENUMERATE_STARTUP_CHECKS(Y_DEF_NAME) -#undef Y_DEF_NAME - } - }; -} - -#if defined(_x86_) && !defined(_MSC_VER) -#define INIT_PRIORITY(x) __attribute__((init_priority(x))) -#else -#define INIT_PRIORITY(x) -#endif - -const static TBuildCpuChecker CheckCpuWeAreRunningOn INIT_PRIORITY(101) ; +#include <util/system/compat.h> +#include <util/system/compiler.h> +#include <util/system/cpu_id.h> +#include <util/system/platform.h> + +#define Y_CPU_ID_ENUMERATE_STARTUP_CHECKS(F) \ + F(SSE42) \ + F(PCLMUL) \ + F(AES) \ + F(AVX) \ + F(AVX2) \ + F(FMA) + +namespace { + [[noreturn]] void ReportISAError(const char* isa) { + err(-1, "This program was compiled for %s which is not supported on your system, exiting...", isa); + } + +#define Y_DEF_NAME(X) \ + void Assert##X() noexcept { \ + if (!NX86::Have##X()) { \ + ReportISAError(#X); \ + } \ + } + + Y_CPU_ID_ENUMERATE_STARTUP_CHECKS(Y_DEF_NAME) +#undef Y_DEF_NAME + + class TBuildCpuChecker { + public: + TBuildCpuChecker() { + Check(); + } + + private: + void Check() const noexcept { +#if defined(_fma_) + AssertFMA(); +#elif defined(_avx2_) + AssertAVX2(); +#elif defined(_avx_) + AssertAVX(); +#elif defined(_aes_) + AssertAES(); +#elif defined(_pclmul_) + AssertPCLMUL(); +#elif defined(_sse4_2_) + AssertSSE42(); +#endif + +#define Y_DEF_NAME(X) Y_UNUSED(Assert##X); + Y_CPU_ID_ENUMERATE_STARTUP_CHECKS(Y_DEF_NAME) +#undef Y_DEF_NAME + } + }; +} + +#if defined(_x86_) && !defined(_MSC_VER) +#define INIT_PRIORITY(x) __attribute__((init_priority(x))) +#else +#define INIT_PRIORITY(x) +#endif + +const static TBuildCpuChecker CheckCpuWeAreRunningOn INIT_PRIORITY(101) ; diff --git a/library/cpp/cpuid_check/ya.make b/library/cpp/cpuid_check/ya.make index 359c2cc1a4..9d794f3edc 100644 --- a/library/cpp/cpuid_check/ya.make +++ b/library/cpp/cpuid_check/ya.make @@ -1,7 +1,7 @@ -LIBRARY() - -OWNER(g:util g:ymake) - -SRCS(GLOBAL cpu_id_check.cpp) - -END() +LIBRARY() + +OWNER(g:util g:ymake) + +SRCS(GLOBAL cpu_id_check.cpp) + +END() diff --git a/library/cpp/execprofile/ya.make b/library/cpp/execprofile/ya.make index b11251f68e..9d202ac4eb 100644 --- a/library/cpp/execprofile/ya.make +++ b/library/cpp/execprofile/ya.make @@ -1,5 +1,5 @@ -OWNER(g:cpp-contrib) - +OWNER(g:cpp-contrib) + LIBRARY() SRCS( diff --git a/library/cpp/lcs/ut/ya.make b/library/cpp/lcs/ut/ya.make index 09432f80c7..3d12898788 100644 --- a/library/cpp/lcs/ut/ya.make +++ b/library/cpp/lcs/ut/ya.make @@ -1,5 +1,5 @@ -OWNER(velavokr) - +OWNER(velavokr) + UNITTEST() PEERDIR( diff --git a/library/cpp/lwtrace/tests/ya.make b/library/cpp/lwtrace/tests/ya.make index a6d223f206..6225ab1fa0 100644 --- a/library/cpp/lwtrace/tests/ya.make +++ b/library/cpp/lwtrace/tests/ya.make @@ -1,5 +1,5 @@ -OWNER(serxa) - +OWNER(serxa) + PROGRAM() SRCS( diff --git a/library/cpp/pop_count/benchmark/ya.make b/library/cpp/pop_count/benchmark/ya.make index 6d68dfec60..7fb54a519a 100644 --- a/library/cpp/pop_count/benchmark/ya.make +++ b/library/cpp/pop_count/benchmark/ya.make @@ -1,5 +1,5 @@ -OWNER(g:util) - +OWNER(g:util) + Y_BENCHMARK() PEERDIR( diff --git a/library/cpp/retry/retry.h b/library/cpp/retry/retry.h index a47bbf2a14..c47ff5070f 100644 --- a/library/cpp/retry/retry.h +++ b/library/cpp/retry/retry.h @@ -107,7 +107,7 @@ TMaybe<TResult> DoWithRetry(std::function<TResult()> func, TRetryOptions retryOp } template <typename TException = yexception> -bool DoWithRetry(std::function<void()> func, std::function<void(const TException&)> onFail, TRetryOptions retryOptions, bool throwLast) { +bool DoWithRetry(std::function<void()> func, std::function<void(const TException&)> onFail, TRetryOptions retryOptions, bool throwLast) { auto f = [&]() { func(); return nullptr; diff --git a/library/cpp/sse/sse.h b/library/cpp/sse/sse.h index 04bd1352ee..19bac17de0 100644 --- a/library/cpp/sse/sse.h +++ b/library/cpp/sse/sse.h @@ -15,15 +15,15 @@ #include <emmintrin.h> #include <pmmintrin.h> #define ARCADIA_SSE -#if defined(_ssse3_) -#include <tmmintrin.h> -#endif -#if defined(_sse4_1_) -#include <smmintrin.h> -#endif -#if defined(_sse4_2_) -#include <nmmintrin.h> -#endif +#if defined(_ssse3_) +#include <tmmintrin.h> +#endif +#if defined(_sse4_1_) +#include <smmintrin.h> +#endif +#if defined(_sse4_2_) +#include <nmmintrin.h> +#endif #elif defined(_arm64_) #include "sse2neon.h" #define ARCADIA_SSE diff --git a/library/cpp/svnversion/test/ya.make b/library/cpp/svnversion/test/ya.make index cf476ed37d..59c0a2d970 100644 --- a/library/cpp/svnversion/test/ya.make +++ b/library/cpp/svnversion/test/ya.make @@ -1,5 +1,5 @@ -OWNER(g:cpp-contrib) - +OWNER(g:cpp-contrib) + PROGRAM() PEERDIR(library/cpp/svnversion) SRCS(main.cpp) diff --git a/library/cpp/svnversion/ya.make b/library/cpp/svnversion/ya.make index ced57cf6c5..04e1a4c4fd 100644 --- a/library/cpp/svnversion/ya.make +++ b/library/cpp/svnversion/ya.make @@ -1,5 +1,5 @@ -OWNER(g:cpp-contrib) - +OWNER(g:cpp-contrib) + LIBRARY() SRCS( diff --git a/library/python/certifi/ya.make b/library/python/certifi/ya.make index bedb018850..64fefe2833 100644 --- a/library/python/certifi/ya.make +++ b/library/python/certifi/ya.make @@ -1,4 +1,4 @@ -PY23_LIBRARY() +PY23_LIBRARY() OWNER(orivej g:python-contrib) diff --git a/library/python/filelock/ut/lib/ya.make b/library/python/filelock/ut/lib/ya.make index 66861ebab4..f3f9da5a67 100644 --- a/library/python/filelock/ut/lib/ya.make +++ b/library/python/filelock/ut/lib/ya.make @@ -1,6 +1,6 @@ OWNER(g:yatool) -PY23_LIBRARY() +PY23_LIBRARY() TEST_SRCS(test_filelock.py) diff --git a/library/python/filelock/ut/py2/ya.make b/library/python/filelock/ut/py2/ya.make index 69123ee7b6..30b54e0232 100644 --- a/library/python/filelock/ut/py2/ya.make +++ b/library/python/filelock/ut/py2/ya.make @@ -3,7 +3,7 @@ OWNER(g:yatool) PY2TEST() PEERDIR( - library/python/filelock/ut/lib + library/python/filelock/ut/lib ) END() diff --git a/library/python/filelock/ut/py3/ya.make b/library/python/filelock/ut/py3/ya.make index 96ef14d7df..05a856a19a 100644 --- a/library/python/filelock/ut/py3/ya.make +++ b/library/python/filelock/ut/py3/ya.make @@ -1,9 +1,9 @@ -OWNER(g:yatool) - -PY3TEST() - -PEERDIR( - library/python/filelock/ut/lib -) - -END() +OWNER(g:yatool) + +PY3TEST() + +PEERDIR( + library/python/filelock/ut/lib +) + +END() diff --git a/library/python/filelock/ut/ya.make b/library/python/filelock/ut/ya.make index bc88ee5a3e..9280ea415e 100644 --- a/library/python/filelock/ut/ya.make +++ b/library/python/filelock/ut/ya.make @@ -1,7 +1,7 @@ -OWNER(g:yatool) - -RECURSE( - lib - py2 - py3 -) +OWNER(g:yatool) + +RECURSE( + lib + py2 + py3 +) diff --git a/library/python/fs/__init__.py b/library/python/fs/__init__.py index cdd2cd28e2..b1b7cde079 100644 --- a/library/python/fs/__init__.py +++ b/library/python/fs/__init__.py @@ -466,14 +466,14 @@ def copytree3( def walk_relative(path, topdown=True, onerror=None, followlinks=False): for dirpath, dirnames, filenames in os.walk(path, topdown=topdown, onerror=onerror, followlinks=followlinks): yield os.path.relpath(dirpath, path), dirnames, filenames - -def supports_clone(): - if 'darwin' in sys.platform: - import platform - return list(map(int, platform.mac_ver()[0].split('.'))) >= [10, 13] - return False +def supports_clone(): + if 'darwin' in sys.platform: + import platform + + return list(map(int, platform.mac_ver()[0].split('.'))) >= [10, 13] + return False def commonpath(paths): diff --git a/library/python/fs/clonefile.pyx b/library/python/fs/clonefile.pyx index c7e834a4d8..830bb894f2 100644 --- a/library/python/fs/clonefile.pyx +++ b/library/python/fs/clonefile.pyx @@ -1,18 +1,18 @@ import six -cdef extern from "sys/clonefile.h" nogil: - int clonefile(const char * src, const char * dst, int flags) - -cdef extern from "Python.h": - ctypedef struct PyObject - cdef PyObject *PyExc_OSError - PyObject *PyErr_SetFromErrno(PyObject *) - -cdef int _macos_clone_file(const char* src, const char* dst) except? 0: - if clonefile(src, dst, 0) == -1: - PyErr_SetFromErrno(PyExc_OSError) - return 0 - return 1 - -def macos_clone_file(src, dst): +cdef extern from "sys/clonefile.h" nogil: + int clonefile(const char * src, const char * dst, int flags) + +cdef extern from "Python.h": + ctypedef struct PyObject + cdef PyObject *PyExc_OSError + PyObject *PyErr_SetFromErrno(PyObject *) + +cdef int _macos_clone_file(const char* src, const char* dst) except? 0: + if clonefile(src, dst, 0) == -1: + PyErr_SetFromErrno(PyExc_OSError) + return 0 + return 1 + +def macos_clone_file(src, dst): return _macos_clone_file(six.ensure_binary(src), six.ensure_binary(dst)) != 0 diff --git a/library/python/fs/ya.make b/library/python/fs/ya.make index 70a2dadb4f..b3c5092c71 100644 --- a/library/python/fs/ya.make +++ b/library/python/fs/ya.make @@ -2,16 +2,16 @@ OWNER(g:yatool) PY23_LIBRARY() -PY_SRCS( - __init__.py -) +PY_SRCS( + __init__.py +) + +IF (OS_DARWIN) + PY_SRCS( + clonefile.pyx + ) +ENDIF() -IF (OS_DARWIN) - PY_SRCS( - clonefile.pyx - ) -ENDIF() - PEERDIR( library/python/func library/python/strings diff --git a/library/python/resource/__init__.py b/library/python/resource/__init__.py index fdf7ea4850..26503ef7fc 100644 --- a/library/python/resource/__init__.py +++ b/library/python/resource/__init__.py @@ -3,7 +3,7 @@ from __res import resfs_read, resfs_resolve, resfs_src # noqa import six - + def iterkeys(prefix='', strip_prefix=False): decode = lambda s: s if isinstance(prefix, six.text_type): diff --git a/library/python/resource/ut/py3/ya.make b/library/python/resource/ut/py3/ya.make index 5bcde62e2b..64eb2e83ce 100644 --- a/library/python/resource/ut/py3/ya.make +++ b/library/python/resource/ut/py3/ya.make @@ -1,9 +1,9 @@ -PY3TEST() - +PY3TEST() + OWNER(pg) - -PEERDIR( + +PEERDIR( library/python/resource/ut/lib -) - -END() +) + +END() diff --git a/library/python/resource/ut/ya.make b/library/python/resource/ut/ya.make index 92185ec976..a5ec192d74 100644 --- a/library/python/resource/ut/ya.make +++ b/library/python/resource/ut/ya.make @@ -1,6 +1,6 @@ OWNER(pg) -RECURSE( - py2 - py3 +RECURSE( + py2 + py3 ) diff --git a/library/python/resource/ya.make b/library/python/resource/ya.make index bc1ee77fe1..989329fa4b 100644 --- a/library/python/resource/ya.make +++ b/library/python/resource/ya.make @@ -1,4 +1,4 @@ -PY23_LIBRARY() +PY23_LIBRARY() OWNER(pg) diff --git a/library/python/runtime_py3/importer.pxi b/library/python/runtime_py3/importer.pxi index fd0d286fda..904f94dea2 100644 --- a/library/python/runtime_py3/importer.pxi +++ b/library/python/runtime_py3/importer.pxi @@ -110,8 +110,8 @@ def iter_py_modules(with_keys=False): yield key, mod else: yield mod - - + + def iter_prefixes(s): i = s.find('.') while i >= 0: @@ -119,7 +119,7 @@ def iter_prefixes(s): i = s.find('.', i + 1) -def resfs_resolve(path): +def resfs_resolve(path): """ Return the absolute path of a root-relative path if it exists. """ @@ -140,7 +140,7 @@ def resfs_src(key, resfs_file=False): return __resource.find(b'resfs/src/' + _b(key)) -def resfs_read(path, builtin=None): +def resfs_read(path, builtin=None): """ Return the bytes of the resource file at path, or None. If builtin is True, do not look for it on the filesystem. @@ -165,11 +165,11 @@ def resfs_files(prefix=b''): def mod_path(mod): - """ + """ Return the resfs path to the source code of the module with the given name. - """ + """ return py_prefix + _b(mod).replace(b'.', b'/') + b'.py' - + class ResourceImporter(object): @@ -279,12 +279,12 @@ class ResourceImporter(object): data = file_bytes(abspath) return compile(data, _s(abspath), 'exec', dont_inherit=True) - yapyc_path = path + b'.yapyc3' - yapyc_data = resfs_read(yapyc_path, builtin=True) + yapyc_path = path + b'.yapyc3' + yapyc_data = resfs_read(yapyc_path, builtin=True) if yapyc_data: return marshal.loads(yapyc_data) else: - py_data = resfs_read(path, builtin=True) + py_data = resfs_read(path, builtin=True) if py_data: return compile(py_data, _s(relpath), 'exec', dont_inherit=True) else: diff --git a/library/python/runtime_py3/ya.make b/library/python/runtime_py3/ya.make index a3b8a8b4d1..fa5c11341a 100644 --- a/library/python/runtime_py3/ya.make +++ b/library/python/runtime_py3/ya.make @@ -1,4 +1,4 @@ -PY3_LIBRARY() +PY3_LIBRARY() OWNER( borman @@ -20,7 +20,7 @@ NO_PYTHON_INCLUDES() ENABLE(PYBUILD_NO_PYC) -PY_SRCS( +PY_SRCS( entry_points.py TOP_LEVEL diff --git a/util/system/cpu_id.cpp b/util/system/cpu_id.cpp index 36ce089296..598c71f4d9 100644 --- a/util/system/cpu_id.cpp +++ b/util/system/cpu_id.cpp @@ -102,10 +102,10 @@ bool NX86::HaveSSE3() noexcept { return TX86CpuInfo(0x1).ECX & 1u; } -bool NX86::HavePCLMUL() noexcept { - return (TX86CpuInfo(0x1).ECX >> 1) & 1u; -} - +bool NX86::HavePCLMUL() noexcept { + return (TX86CpuInfo(0x1).ECX >> 1) & 1u; +} + bool NX86::HaveSSSE3() noexcept { return (TX86CpuInfo(0x1).ECX >> 9) & 1u; } @@ -259,5 +259,5 @@ const char* CpuBrand(ui32* store) noexcept { bool NX86::CachedHave##X() noexcept { \ return SingletonWithPriority<TFlagsCache, 0>()->Have##X##_; \ } -Y_CPU_ID_ENUMERATE_OUTLINED_CACHED_DEFINE(Y_DEF_NAME) +Y_CPU_ID_ENUMERATE_OUTLINED_CACHED_DEFINE(Y_DEF_NAME) #undef Y_DEF_NAME diff --git a/util/system/cpu_id.h b/util/system/cpu_id.h index e2130ea21b..3c49e728a7 100644 --- a/util/system/cpu_id.h +++ b/util/system/cpu_id.h @@ -2,7 +2,7 @@ #include "types.h" #include "compiler.h" -#include <util/generic/singleton.h> +#include <util/generic/singleton.h> #define Y_CPU_ID_ENUMERATE(F) \ F(SSE) \ @@ -15,7 +15,7 @@ F(POPCNT) \ F(BMI1) \ F(BMI2) \ - F(PCLMUL) \ + F(PCLMUL) \ F(AES) \ F(AVX) \ F(FMA) \ @@ -41,7 +41,7 @@ F(XSAVE) \ F(OSXSAVE) -#define Y_CPU_ID_ENUMERATE_OUTLINED_CACHED_DEFINE(F) \ +#define Y_CPU_ID_ENUMERATE_OUTLINED_CACHED_DEFINE(F) \ F(F16C) \ F(BMI1) \ F(BMI2) \ @@ -69,8 +69,8 @@ F(CLFLUSHOPT) \ F(CLWB) \ F(XSAVE) \ - F(OSXSAVE) - + F(OSXSAVE) + namespace NX86 { /** * returns false on non-x86 platforms @@ -83,75 +83,75 @@ namespace NX86 { #undef Y_DEF_NAME #define Y_DEF_NAME(X) Y_CONST_FUNCTION bool CachedHave##X() noexcept; - Y_CPU_ID_ENUMERATE_OUTLINED_CACHED_DEFINE(Y_DEF_NAME) -#undef Y_DEF_NAME - + Y_CPU_ID_ENUMERATE_OUTLINED_CACHED_DEFINE(Y_DEF_NAME) +#undef Y_DEF_NAME + struct TFlagsCache { -#define Y_DEF_NAME(X) const bool Have##X##_ = NX86::Have##X(); +#define Y_DEF_NAME(X) const bool Have##X##_ = NX86::Have##X(); Y_CPU_ID_ENUMERATE(Y_DEF_NAME) #undef Y_DEF_NAME }; - -#define Y_LOOKUP_CPU_ID_IMPL(X) return SingletonWithPriority<TFlagsCache, 0>()->Have##X##_; - + +#define Y_LOOKUP_CPU_ID_IMPL(X) return SingletonWithPriority<TFlagsCache, 0>()->Have##X##_; + inline bool CachedHaveSSE() noexcept { -#ifdef _sse_ +#ifdef _sse_ return true; -#else +#else Y_LOOKUP_CPU_ID_IMPL(SSE) -#endif +#endif } inline bool CachedHaveSSE2() noexcept { -#ifdef _sse2_ +#ifdef _sse2_ return true; -#else +#else Y_LOOKUP_CPU_ID_IMPL(SSE2) -#endif +#endif } - + inline bool CachedHaveSSE3() noexcept { -#ifdef _sse3_ +#ifdef _sse3_ return true; -#else +#else Y_LOOKUP_CPU_ID_IMPL(SSE3) -#endif +#endif } - + inline bool CachedHaveSSSE3() noexcept { -#ifdef _ssse3_ +#ifdef _ssse3_ return true; -#else +#else Y_LOOKUP_CPU_ID_IMPL(SSSE3) -#endif +#endif } - + inline bool CachedHaveSSE41() noexcept { -#ifdef _sse4_1_ +#ifdef _sse4_1_ return true; -#else +#else Y_LOOKUP_CPU_ID_IMPL(SSE41) -#endif +#endif } - + inline bool CachedHaveSSE42() noexcept { -#ifdef _sse4_2_ +#ifdef _sse4_2_ return true; -#else +#else Y_LOOKUP_CPU_ID_IMPL(SSE42) -#endif +#endif } - + inline bool CachedHavePOPCNT() noexcept { -#ifdef _popcnt_ +#ifdef _popcnt_ return true; -#else +#else Y_LOOKUP_CPU_ID_IMPL(POPCNT) -#endif +#endif } - -#undef Y_LOOKUP_CPU_ID_IMPL - -} - + +#undef Y_LOOKUP_CPU_ID_IMPL + +} + const char* CpuBrand(ui32 store[12]) noexcept; diff --git a/util/system/cpu_id_ut.cpp b/util/system/cpu_id_ut.cpp index 01fe0752e5..68f1f8aac7 100644 --- a/util/system/cpu_id_ut.cpp +++ b/util/system/cpu_id_ut.cpp @@ -24,7 +24,7 @@ static void ExecuteAVX2Instruction(); static void ExecutePOPCNTInstruction(); static void ExecuteBMI1Instruction(); static void ExecuteBMI2Instruction(); -static void ExecutePCLMULInstruction(); +static void ExecutePCLMULInstruction(); static void ExecuteAESInstruction(); static void ExecuteAVXInstruction(); static void ExecuteAVX2Instruction(); @@ -176,13 +176,13 @@ void ExecuteBMI2Instruction() { : "rax"); } -void ExecutePCLMULInstruction() { - __asm__ __volatile__("pclmullqlqdq %%xmm0, %%xmm0\n" - : - : - : "xmm0"); -} - +void ExecutePCLMULInstruction() { + __asm__ __volatile__("pclmullqlqdq %%xmm0, %%xmm0\n" + : + : + : "xmm0"); +} + void ExecuteAESInstruction() { __asm__ __volatile__("aesimc %%xmm0, %%xmm0\n" : @@ -294,9 +294,9 @@ void ExecuteBMI1Instruction() { void ExecuteBMI2Instruction() { } -void ExecutePCLMULInstruction() { -} - +void ExecutePCLMULInstruction() { +} + void ExecuteAESInstruction() { } @@ -391,9 +391,9 @@ void ExecuteBMI1Instruction() { void ExecuteBMI2Instruction() { } -void ExecutePCLMULInstruction() { -} - +void ExecutePCLMULInstruction() { +} + void ExecuteAESInstruction() { } diff --git a/util/system/platform.h b/util/system/platform.h index ec9a69de82..58f310ab34 100644 --- a/util/system/platform.h +++ b/util/system/platform.h @@ -146,38 +146,38 @@ #define _ssse3_ #endif -#if defined(__SSE4_1__) || defined(SSE41_ENABLED) +#if defined(__SSE4_1__) || defined(SSE41_ENABLED) #define _sse4_1_ -#endif - -#if defined(__SSE4_2__) || defined(SSE42_ENABLED) +#endif + +#if defined(__SSE4_2__) || defined(SSE42_ENABLED) #define _sse4_2_ -#endif - -#if defined(__POPCNT__) || defined(POPCNT_ENABLED) +#endif + +#if defined(__POPCNT__) || defined(POPCNT_ENABLED) #define _popcnt_ #endif -#if defined(__PCLMUL__) || defined(PCLMUL_ENABLED) +#if defined(__PCLMUL__) || defined(PCLMUL_ENABLED) #define _pclmul_ -#endif - -#if defined(__AES__) || defined(AES_ENABLED) +#endif + +#if defined(__AES__) || defined(AES_ENABLED) #define _aes_ -#endif - -#if defined(__AVX__) || defined(AVX_ENABLED) +#endif + +#if defined(__AVX__) || defined(AVX_ENABLED) #define _avx_ -#endif - -#if defined(__AVX2__) || defined(AVX2_ENABLED) +#endif + +#if defined(__AVX2__) || defined(AVX2_ENABLED) #define _avx2_ -#endif - -#if defined(__FMA__) || defined(FMA_ENABLED) +#endif + +#if defined(__FMA__) || defined(FMA_ENABLED) #define _fma_ -#endif - +#endif + #if defined(__DLL__) || defined(_DLL) #define _dll_ #endif diff --git a/ydb/core/grpc_services/validation/ut/protos/ya.make b/ydb/core/grpc_services/validation/ut/protos/ya.make index 1328ef4d1d..366c4a4339 100644 --- a/ydb/core/grpc_services/validation/ut/protos/ya.make +++ b/ydb/core/grpc_services/validation/ut/protos/ya.make @@ -13,7 +13,7 @@ SRCS( validation_test.proto ) -CPP_PROTO_PLUGIN0(validation ydb/core/grpc_services/validation) +CPP_PROTO_PLUGIN0(validation ydb/core/grpc_services/validation) EXCLUDE_TAGS(GO_PROTO) diff --git a/ydb/library/yql/core/expr_nodes/ya.make b/ydb/library/yql/core/expr_nodes/ya.make index 0a3104e4c2..5f919fa0e4 100644 --- a/ydb/library/yql/core/expr_nodes/ya.make +++ b/ydb/library/yql/core/expr_nodes/ya.make @@ -33,7 +33,7 @@ RUN_PROGRAM( OUT yql_expr_nodes.defs.inl.h OUTPUT_INCLUDES ${ARCADIA_ROOT}/ydb/library/yql/core/expr_nodes_gen/yql_expr_nodes_gen.h - ${ARCADIA_ROOT}/util/generic/hash_set.h + ${ARCADIA_ROOT}/util/generic/hash_set.h ) END() diff --git a/ydb/library/yql/parser/proto_ast/gen/jsonpath/ya.make b/ydb/library/yql/parser/proto_ast/gen/jsonpath/ya.make index b221de4077..deeb75f177 100644 --- a/ydb/library/yql/parser/proto_ast/gen/jsonpath/ya.make +++ b/ydb/library/yql/parser/proto_ast/gen/jsonpath/ya.make @@ -2,49 +2,49 @@ PROTO_LIBRARY() OWNER(g:yql g:kikimr g:yql_ydb_core) -IF (CPP_PROTO) - SET(antlr_output ${ARCADIA_BUILD_ROOT}/${MODDIR}) - SET(antlr_templates ${antlr_output}/org/antlr/codegen/templates) +IF (CPP_PROTO) + SET(antlr_output ${ARCADIA_BUILD_ROOT}/${MODDIR}) + SET(antlr_templates ${antlr_output}/org/antlr/codegen/templates) SET(jsonpath_grammar ${ARCADIA_ROOT}/ydb/library/yql/minikql/jsonpath/JsonPath.g) - SET(ANTLR_PACKAGE_NAME NJsonPathGenerated) - SET(PROTOBUF_HEADER_PATH ${MODDIR}) - SET(LEXER_PARSER_NAMESPACE NALP) + SET(ANTLR_PACKAGE_NAME NJsonPathGenerated) + SET(PROTOBUF_HEADER_PATH ${MODDIR}) + SET(LEXER_PARSER_NAMESPACE NALP) CONFIGURE_FILE(${ARCADIA_ROOT}/ydb/library/yql/parser/proto_ast/org/antlr/codegen/templates/Cpp/Cpp.stg.in ${antlr_templates}/Cpp/Cpp.stg) CONFIGURE_FILE(${ARCADIA_ROOT}/ydb/library/yql/parser/proto_ast/org/antlr/codegen/templates/protobuf/protobuf.stg.in ${antlr_templates}/protobuf/protobuf.stg) - RUN_ANTLR( - ${jsonpath_grammar} - -lib . - -fo ${antlr_output} - -language protobuf - IN ${jsonpath_grammar} ${antlr_templates}/protobuf/protobuf.stg - OUT_NOAUTO JsonPathParser.proto - CWD ${antlr_output} - ) + RUN_ANTLR( + ${jsonpath_grammar} + -lib . + -fo ${antlr_output} + -language protobuf + IN ${jsonpath_grammar} ${antlr_templates}/protobuf/protobuf.stg + OUT_NOAUTO JsonPathParser.proto + CWD ${antlr_output} + ) - EXCLUDE_TAGS(GO_PROTO JAVA_PROTO) + EXCLUDE_TAGS(GO_PROTO JAVA_PROTO) - NO_COMPILER_WARNINGS() + NO_COMPILER_WARNINGS() INCLUDE(${ARCADIA_ROOT}/ydb/library/yql/parser/proto_ast/org/antlr/codegen/templates/ya.make.incl) - RUN_ANTLR( - ${jsonpath_grammar} - -lib . - -fo ${antlr_output} - IN ${jsonpath_grammar} ${antlr_templates}/Cpp/Cpp.stg - OUT JsonPathParser.cpp JsonPathLexer.cpp JsonPathParser.h JsonPathLexer.h - OUTPUT_INCLUDES - JsonPathParser.pb.h - ${STG_INCLUDES} - CWD ${antlr_output} - ) -ENDIF() - -SRCS(JsonPathParser.proto) - - + RUN_ANTLR( + ${jsonpath_grammar} + -lib . + -fo ${antlr_output} + IN ${jsonpath_grammar} ${antlr_templates}/Cpp/Cpp.stg + OUT JsonPathParser.cpp JsonPathLexer.cpp JsonPathParser.h JsonPathLexer.h + OUTPUT_INCLUDES + JsonPathParser.pb.h + ${STG_INCLUDES} + CWD ${antlr_output} + ) +ENDIF() + +SRCS(JsonPathParser.proto) + + END() diff --git a/ydb/library/yql/parser/proto_ast/gen/v0/ya.make b/ydb/library/yql/parser/proto_ast/gen/v0/ya.make index b82656f69d..7aa382db01 100644 --- a/ydb/library/yql/parser/proto_ast/gen/v0/ya.make +++ b/ydb/library/yql/parser/proto_ast/gen/v0/ya.make @@ -2,49 +2,49 @@ PROTO_LIBRARY() OWNER(g:yql g:yql_ydb_core) -EXCLUDE_TAGS(GO_PROTO JAVA_PROTO) +EXCLUDE_TAGS(GO_PROTO JAVA_PROTO) -IF (CPP_PROTO) +IF (CPP_PROTO) - SET(antlr_output ${ARCADIA_BUILD_ROOT}/${MODDIR}) - SET(antlr_templates ${antlr_output}/org/antlr/codegen/templates) + SET(antlr_output ${ARCADIA_BUILD_ROOT}/${MODDIR}) + SET(antlr_templates ${antlr_output}/org/antlr/codegen/templates) SET(sql_grammar ${ARCADIA_ROOT}/ydb/library/yql/sql/v0/SQL.g) - SET(ANTLR_PACKAGE_NAME NSQLGenerated) - SET(PROTOBUF_HEADER_PATH ${MODDIR}) - SET(LEXER_PARSER_NAMESPACE NALP) + SET(ANTLR_PACKAGE_NAME NSQLGenerated) + SET(PROTOBUF_HEADER_PATH ${MODDIR}) + SET(LEXER_PARSER_NAMESPACE NALP) CONFIGURE_FILE(${ARCADIA_ROOT}/ydb/library/yql/parser/proto_ast/org/antlr/codegen/templates/Cpp/Cpp.stg.in ${antlr_templates}/Cpp/Cpp.stg) CONFIGURE_FILE(${ARCADIA_ROOT}/ydb/library/yql/parser/proto_ast/org/antlr/codegen/templates/protobuf/protobuf.stg.in ${antlr_templates}/protobuf/protobuf.stg) - RUN_ANTLR( - ${sql_grammar} - -lib . - -fo ${antlr_output} - -language protobuf - IN ${sql_grammar} ${antlr_templates}/protobuf/protobuf.stg - OUT_NOAUTO SQLParser.proto - CWD ${antlr_output} - ) + RUN_ANTLR( + ${sql_grammar} + -lib . + -fo ${antlr_output} + -language protobuf + IN ${sql_grammar} ${antlr_templates}/protobuf/protobuf.stg + OUT_NOAUTO SQLParser.proto + CWD ${antlr_output} + ) - NO_COMPILER_WARNINGS() + NO_COMPILER_WARNINGS() INCLUDE(${ARCADIA_ROOT}/ydb/library/yql/parser/proto_ast/org/antlr/codegen/templates/ya.make.incl) - RUN_ANTLR( - ${sql_grammar} - -lib . - -fo ${antlr_output} - IN ${sql_grammar} ${antlr_templates}/Cpp/Cpp.stg - OUT SQLParser.cpp SQLLexer.cpp SQLParser.h SQLLexer.h - OUTPUT_INCLUDES - SQLParser.pb.h - ${STG_INCLUDES} - CWD ${antlr_output} - ) -ENDIF() - -SRCS(SQLParser.proto) - + RUN_ANTLR( + ${sql_grammar} + -lib . + -fo ${antlr_output} + IN ${sql_grammar} ${antlr_templates}/Cpp/Cpp.stg + OUT SQLParser.cpp SQLLexer.cpp SQLParser.h SQLLexer.h + OUTPUT_INCLUDES + SQLParser.pb.h + ${STG_INCLUDES} + CWD ${antlr_output} + ) +ENDIF() + +SRCS(SQLParser.proto) + END() diff --git a/ydb/library/yql/parser/proto_ast/gen/v1_proto/ya.make b/ydb/library/yql/parser/proto_ast/gen/v1_proto/ya.make index 9c3bba38ba..6432aaacad 100644 --- a/ydb/library/yql/parser/proto_ast/gen/v1_proto/ya.make +++ b/ydb/library/yql/parser/proto_ast/gen/v1_proto/ya.make @@ -2,33 +2,33 @@ PROTO_LIBRARY() OWNER(g:yql g:yql_ydb_core) -IF (GEN_PROTO) - SET(antlr_output ${ARCADIA_BUILD_ROOT}/${MODDIR}) - SET(antlr_templates ${antlr_output}/org/antlr/codegen/templates) - SET(sql_grammar ${antlr_output}/SQLv1.g) +IF (GEN_PROTO) + SET(antlr_output ${ARCADIA_BUILD_ROOT}/${MODDIR}) + SET(antlr_templates ${antlr_output}/org/antlr/codegen/templates) + SET(sql_grammar ${antlr_output}/SQLv1.g) - SET(ANTLR_PACKAGE_NAME NSQLv1Generated) + SET(ANTLR_PACKAGE_NAME NSQLv1Generated) - SET(GRAMMAR_STRING_CORE_SINGLE "\"~(QUOTE_SINGLE | BACKSLASH) | (BACKSLASH .)\"") - SET(GRAMMAR_STRING_CORE_DOUBLE "\"~(QUOTE_DOUBLE | BACKSLASH) | (BACKSLASH .)\"") - SET(GRAMMAR_MULTILINE_COMMENT_CORE "\".\"") + SET(GRAMMAR_STRING_CORE_SINGLE "\"~(QUOTE_SINGLE | BACKSLASH) | (BACKSLASH .)\"") + SET(GRAMMAR_STRING_CORE_DOUBLE "\"~(QUOTE_DOUBLE | BACKSLASH) | (BACKSLASH .)\"") + SET(GRAMMAR_MULTILINE_COMMENT_CORE "\".\"") CONFIGURE_FILE(${ARCADIA_ROOT}/ydb/library/yql/parser/proto_ast/org/antlr/codegen/templates/protobuf/protobuf.stg.in ${antlr_templates}/protobuf/protobuf.stg) CONFIGURE_FILE(${ARCADIA_ROOT}/ydb/library/yql/sql/v1/SQLv1.g.in ${sql_grammar}) - RUN_ANTLR( - ${sql_grammar} - -lib . - -fo ${antlr_output} - -language protobuf - IN ${sql_grammar} ${antlr_templates}/protobuf/protobuf.stg - OUT_NOAUTO SQLv1Parser.proto - CWD ${antlr_output} - ) -ENDIF() - -SRCS(SQLv1Parser.proto) - + RUN_ANTLR( + ${sql_grammar} + -lib . + -fo ${antlr_output} + -language protobuf + IN ${sql_grammar} ${antlr_templates}/protobuf/protobuf.stg + OUT_NOAUTO SQLv1Parser.proto + CWD ${antlr_output} + ) +ENDIF() + +SRCS(SQLv1Parser.proto) + EXCLUDE_TAGS(GO_PROTO JAVA_PROTO) END() diff --git a/ydb/library/yql/providers/result/expr_nodes/ya.make b/ydb/library/yql/providers/result/expr_nodes/ya.make index fac29a06fd..71181ab3cb 100644 --- a/ydb/library/yql/providers/result/expr_nodes/ya.make +++ b/ydb/library/yql/providers/result/expr_nodes/ya.make @@ -27,9 +27,9 @@ RUN_PROGRAM( OUT yql_res_expr_nodes.gen.h OUT yql_res_expr_nodes.decl.inl.h OUT yql_res_expr_nodes.defs.inl.h - OUTPUT_INCLUDES + OUTPUT_INCLUDES ${ARCADIA_ROOT}/ydb/library/yql/core/expr_nodes_gen/yql_expr_nodes_gen.h - ${ARCADIA_ROOT}/util/generic/hash_set.h + ${ARCADIA_ROOT}/util/generic/hash_set.h ) END() diff --git a/ydb/public/api/protos/ya.make b/ydb/public/api/protos/ya.make index a23b8e0d83..8a156403a3 100644 --- a/ydb/public/api/protos/ya.make +++ b/ydb/public/api/protos/ya.make @@ -47,9 +47,9 @@ SRCS( yq.proto ) -CPP_PROTO_PLUGIN0(validation ydb/core/grpc_services/validation) +CPP_PROTO_PLUGIN0(validation ydb/core/grpc_services/validation) -# .pb.h are only available in C++ variant of PROTO_LIBRARY +# .pb.h are only available in C++ variant of PROTO_LIBRARY IF (MODULE_TAG == "CPP_PROTO") GENERATE_ENUM_SERIALIZATION(draft/persqueue_common.pb.h) GENERATE_ENUM_SERIALIZATION(ydb_persqueue_cluster_discovery.pb.h) |