|
@@ -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)
|
|
|
+}
|