|
|
@ -267,7 +267,7 @@ class Interpreter(InterpreterBase): |
|
|
|
self.ast = ast |
|
|
|
self.ast = ast |
|
|
|
self.sanity_check_ast() |
|
|
|
self.sanity_check_ast() |
|
|
|
self.builtin.update({'meson': MesonMain(build, self)}) |
|
|
|
self.builtin.update({'meson': MesonMain(build, self)}) |
|
|
|
self.generators = [] |
|
|
|
self.generators: T.List['GeneratorHolder'] = [] |
|
|
|
self.processed_buildfiles = set() # type: T.Set[str] |
|
|
|
self.processed_buildfiles = set() # type: T.Set[str] |
|
|
|
self.project_args_frozen = False |
|
|
|
self.project_args_frozen = False |
|
|
|
self.global_args_frozen = False # implies self.project_args_frozen |
|
|
|
self.global_args_frozen = False # implies self.project_args_frozen |
|
|
@ -1954,10 +1954,11 @@ This will become a hard error in the future.''' % kwargs['input'], location=self |
|
|
|
|
|
|
|
|
|
|
|
@permittedKwargs({'arguments', 'output', 'depends', 'depfile', 'capture', |
|
|
|
@permittedKwargs({'arguments', 'output', 'depends', 'depfile', 'capture', |
|
|
|
'preserve_path_from'}) |
|
|
|
'preserve_path_from'}) |
|
|
|
def func_generator(self, node, args, kwargs): |
|
|
|
def func_generator(self, node: mparser.FunctionNode, args, kwargs) -> GeneratorHolder: |
|
|
|
gen = GeneratorHolder(self, args, kwargs) |
|
|
|
gen = build.Generator(args, kwargs) |
|
|
|
self.generators.append(gen) |
|
|
|
holder = GeneratorHolder(self, gen, self) |
|
|
|
return gen |
|
|
|
self.generators.append(holder) |
|
|
|
|
|
|
|
return holder |
|
|
|
|
|
|
|
|
|
|
|
@typed_pos_args('benchmark', str, (ExecutableHolder, JarHolder, ExternalProgramHolder, mesonlib.File)) |
|
|
|
@typed_pos_args('benchmark', str, (ExecutableHolder, JarHolder, ExternalProgramHolder, mesonlib.File)) |
|
|
|
@typed_kwargs('benchmark', *TEST_KWARGS) |
|
|
|
@typed_kwargs('benchmark', *TEST_KWARGS) |
|
|
|