diff options
author | thegeorg <thegeorg@yandex-team.com> | 2023-10-09 17:34:12 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2023-10-09 18:26:10 +0300 |
commit | 4fdc9b2551418bff2bd3010ed5afda1970c80620 (patch) | |
tree | 37a9eb552b58694d9c4461d10d480b8a03a4cb15 /build | |
parent | 8e87e2b5cdc0eed1911043bb6194ad82269c522b (diff) | |
download | ydb-4fdc9b2551418bff2bd3010ed5afda1970c80620.tar.gz |
Mandate LICENSE markup in every contrib/ module (with certain exceptions)
Diffstat (limited to 'build')
-rw-r--r-- | build/conf/license.conf | 4 | ||||
-rw-r--r-- | build/conf/python.conf | 10 | ||||
-rw-r--r-- | build/ymake.core.conf | 8 |
3 files changed, 21 insertions, 1 deletions
diff --git a/build/conf/license.conf b/build/conf/license.conf index f69e55a7a0..d93d105d81 100644 --- a/build/conf/license.conf +++ b/build/conf/license.conf @@ -414,6 +414,10 @@ macro _REQUIRE_EXPLICIT_LICENSE(PREFIXES...) { SET(EXPLICIT_LICENSE_PREFIXES ${PREFIXES}) } +macro _DONT_REQUIRE_LICENSE() { + SET(EXPLICIT_LICENSE_PREFIXES "") +} + ### @usage: LICENSE(licenses...) ### ### Specify the licenses of the module, separated by spaces. Specifying multiple licenses interpreted as permission to use this diff --git a/build/conf/python.conf b/build/conf/python.conf index 9a51ea9c16..6aac1e9e8c 100644 --- a/build/conf/python.conf +++ b/build/conf/python.conf @@ -289,6 +289,8 @@ module PY2TEST: PYTEST_BIN { ASSERT(_OK You are using deprecated Python2-only code (PY2TEST). Please consider rewriting to Python 3.) SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/result.json) + + _DONT_REQUIRE_LICENSE() } # tag:python-specific tag:deprecated tag:test @@ -329,10 +331,12 @@ multimodule PY3TEST { .FINAL_TARGET=yes SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/result.json) + _DONT_REQUIRE_LICENSE() } module PY3TEST_LIBRARY: PY3_LIBRARY { PEERDIR+=library/python/pytest + _DONT_REQUIRE_LICENSE() } } @@ -1005,6 +1009,8 @@ multimodule PY23_TEST { RUN_CYTHON_SCRIPT_H=$YMAKE_PYTHON $CYTHON_SCRIPT SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/py2test/result.json) + + _DONT_REQUIRE_LICENSE() } module PY3TEST_PROGRAM: PY3TEST_BIN { .FINAL_TARGET=yes @@ -1014,11 +1020,15 @@ multimodule PY23_TEST { RUN_CYTHON_SCRIPT_H=$YMAKE_PYTHON $CYTHON_SCRIPT SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/py3test/result.json) + + _DONT_REQUIRE_LICENSE() } module PY3TEST_LIBRARY: PY3_LIBRARY { .RESTRICTED=RUN_ANTLR4_PYTHON PEERDIR+=library/python/pytest RUN_CYTHON_SCRIPT_H=$YMAKE_PYTHON $CYTHON_SCRIPT + + _DONT_REQUIRE_LICENSE() } } diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 13a430895e..684c7d3a32 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -1114,6 +1114,7 @@ module PROGRAM: _BASE_PROGRAM { ADD_YTEST($MODULE_PREFIX$REALPRJNAME coverage.extractor) ADD_CLANG_TIDY() + _DONT_REQUIRE_LICENSE() } ### @usage: EXPORTS_SCRIPT(exports_file) @@ -1170,6 +1171,9 @@ module _BASE_UNITTEST: _BASE_PROGRAM { C_DEFINES+=-DUT_SKIP_EXCEPTIONS } SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/result.json) + # Assume that no code may depend on unit test output and thus + # do not mandate license markup in such modules. + _DONT_REQUIRE_LICENSE() } _TEST_SPLIT_FACTOR_SEM=1 @@ -1325,6 +1329,7 @@ module BOOSTTEST: _BASE_PROGRAM { } ADD_YTEST($MODULE_PREFIX$REALPRJNAME $BOOST_TEST_TYPE_STRING) SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS canondata/result.json) + _DONT_REQUIRE_LICENSE() } # tag:deprecated @@ -1647,7 +1652,6 @@ module _LIBRARY: _BASE_UNIT { GLOBAL_SUFFIX=.global$MODULE_SUFFIX #TODO: Remove this hack (really we do not need add fake src at all) ENABLE(NEED_ADD_FAKE_SRC) - _REQUIRE_EXPLICIT_LICENSE(contrib) CHECK_CONTRIB_CREDITS(contrib/clickhouse contrib/libs contrib/deprecated EXCEPT contrib/deprecated/python) when ($USE_MKL == "yes") { @@ -5024,6 +5028,8 @@ module PREBUILT_PROGRAM: _LINK_UNIT { SET(MODULE_TYPE PROGRAM) + _DONT_REQUIRE_LICENSE() + when ($WIN32 == "yes" || $OS_CYGWIN == "yes") { MODULE_SUFFIX=.exe } |