diff options
author | dimdim11 <dimdim11@yandex-team.com> | 2023-10-18 05:47:36 +0300 |
---|---|---|
committer | dimdim11 <dimdim11@yandex-team.com> | 2023-10-18 06:12:46 +0300 |
commit | d7a1da0e79bc531c79aec2685a7af2fde433b535 (patch) | |
tree | fb70a20ab698bc41a7075d9a69c8209870c87228 | |
parent | 5effc63f93f286bf6177da673934ce1cfbd255df (diff) | |
download | ydb-d7a1da0e79bc531c79aec2685a7af2fde433b535.tar.gz |
Update docs about LICENSE... macroses
-rw-r--r-- | build/conf/license.conf | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/build/conf/license.conf b/build/conf/license.conf index f6dc241808..c9265d7a55 100644 --- a/build/conf/license.conf +++ b/build/conf/license.conf @@ -425,10 +425,9 @@ macro LICENSE(Flags...) { ### ### Restrict licenses of direct and indirect module dependencies. ### -### ALLOW_ONLY restriction type requires dependent module to have at leas one license without propertis not listed in restrictions -### list. +### ALLOW_ONLY restriction type requires dependent module to have at least one license without properties not listed in restrictions list. ### -### DENY restriction type forbids dependency on module with no license without any listed propery from the list. +### DENY restriction type forbids dependency on module with no license without any listed property from the list. ### ### 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) @@ -437,18 +436,13 @@ macro LICENSE_RESTRICTION(TYPE, RESTRICTIONS...) { SET_APPEND(MODULE_LICENSES_RESTRICTIONS $RESTRICTIONS) } -macro LICENSE_RESTRICTION_EXCEPTIONS(EXCEPT...) { - SET_APPEND(MODULE_LICENSES_RESTRICTION_EXCEPTIONS $EXCEPT) -} - ### @usage MODULEWISE_LICENSE_RESTRICTION(ALLOW_ONLY|DENY LicenseProperty...) ### ### Restrict licenses per module only, without it peers. ### -### ALLOW_ONLY restriction type requires dependent module to have at leas one license without propertis not listed in restrictions -### list. +### ALLOW_ONLY restriction type requires module to have at least one license without properties not listed in restrictions list. ### -### DENY restriction type forbids dependency on module with no license without any listed propery from the list. +### DENY restriction type forbids module with no license without any listed property from the list. ### ### 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) @@ -456,3 +450,10 @@ macro MODULEWISE_LICENSE_RESTRICTION(TYPE, RESTRICTIONS...) { SET_APPEND(MODULEWISE_LICENSES_RESTRICTION_TYPES $TYPE) SET_APPEND(MODULEWISE_LICENSES_RESTRICTIONS $RESTRICTIONS) } + +### @usage LICENSE_RESTRICTION_EXCEPTIONS(Module...) +### +### List of modules for exception from LICENSE_RESTRICTION and MODULEWISE_LICENSE_RESTRICTION logic. +macro LICENSE_RESTRICTION_EXCEPTIONS(EXCEPT...) { + SET_APPEND(MODULE_LICENSES_RESTRICTION_EXCEPTIONS $EXCEPT) +} |