|
|
|
@ -567,6 +567,12 @@ def _name_validator(arg: T.Optional[T.Union[str, T.List]]) -> T.Optional[str]: |
|
|
|
|
return None |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _name_suffix_validator(arg: T.Optional[T.Union[str, T.List]]) -> T.Optional[str]: |
|
|
|
|
if arg == '': |
|
|
|
|
return 'must nt be a empty string. An empty array may be passed if you want Meson to use the default behavior.' |
|
|
|
|
return _name_validator(arg) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_NAME_PREFIX_KW: KwargInfo[T.Optional[T.Union[str, T.List]]] = KwargInfo( |
|
|
|
|
'name_prefix', |
|
|
|
|
(str, NoneType, list), |
|
|
|
@ -581,6 +587,7 @@ _BUILD_TARGET_KWS: T.List[KwargInfo] = [ |
|
|
|
|
BT_SOURCES_KW, |
|
|
|
|
INCLUDE_DIRECTORIES.evolve(name='d_import_dirs'), |
|
|
|
|
_NAME_PREFIX_KW, |
|
|
|
|
_NAME_PREFIX_KW.evolve(name='name_suffix', validator=_name_suffix_validator), |
|
|
|
|
RUST_CRATE_TYPE_KW, |
|
|
|
|
KwargInfo('d_debug', ContainerTypeInfo(list, (str, int)), default=[], listify=True), |
|
|
|
|
D_MODULE_VERSIONS_KW, |
|
|
|
|