@stringArgs
@FeatureNewKwargs('custom_target', '0.48.0', ['console'])
@FeatureNewKwargs('custom_target', '0.47.0', ['install_mode', 'build_always_stale'])
@FeatureNewKwargs('custom_target', '0.40.0', ['build_by_default'])
@permittedKwargs(permitted_kwargs['custom_target'])
def func_custom_target(self, node, args, kwargs):
    if (len(args) != 1):
        raise InterpreterException('custom_target: Only one positional argument is allowed, and it must be a string name')
    if (('depfile' in kwargs) and (('@BASENAME@' in kwargs['depfile']) or ('@PLAINNAME@' in kwargs['depfile']))):
        FeatureNew('substitutions in custom_target depfile', '0.47.0').use(self.subproject)
    return self._func_custom_target_impl(node, args, kwargs)
@stringArgs
@FeatureNewKwargs('custom_target', '0.48.0', ['console'])
@FeatureNewKwargs('custom_target', '0.47.0', ['install_mode', 'build_always_stale'])
@FeatureNewKwargs('custom_target', '0.40.0', ['build_by_default'])
@permittedKwargs(permitted_kwargs['custom_target'])
def func_custom_target(self, node, args, kwargs):
    if (len(args) != 1):
        raise InterpreterException('custom_target: Only one positional argument is allowed, and it must be a string name')
    if (('depfile' in kwargs) and (('@BASENAME@' in kwargs['depfile']) or ('@PLAINNAME@' in kwargs['depfile']))):
        FeatureNew('substitutions in custom_target depfile', '0.47.0').use(self.subproject)
    return self._func_custom_target_impl(node, args, kwargs)