|
|
@ -1522,7 +1522,13 @@ class Interpreter(InterpreterBase): |
|
|
|
if not isinstance(d, (dependencies.Dependency, dependencies.ExternalLibrary, dependencies.InternalDependency)): |
|
|
|
if not isinstance(d, (dependencies.Dependency, dependencies.ExternalLibrary, dependencies.InternalDependency)): |
|
|
|
raise InterpreterException('Dependencies must be external deps') |
|
|
|
raise InterpreterException('Dependencies must be external deps') |
|
|
|
final_deps.append(d) |
|
|
|
final_deps.append(d) |
|
|
|
dep = dependencies.InternalDependency(version, incs, compile_args, link_args, libs, sources, final_deps) |
|
|
|
dep = dependencies.InternalDependency(version, |
|
|
|
|
|
|
|
mesonlib.unholder_array(incs), |
|
|
|
|
|
|
|
compile_args, |
|
|
|
|
|
|
|
link_args, |
|
|
|
|
|
|
|
mesonlib.unholder_array(libs), |
|
|
|
|
|
|
|
mesonlib.unholder_array(sources), |
|
|
|
|
|
|
|
final_deps) |
|
|
|
return DependencyHolder(dep) |
|
|
|
return DependencyHolder(dep) |
|
|
|
|
|
|
|
|
|
|
|
@noKwargs |
|
|
|
@noKwargs |
|
|
@ -2289,6 +2295,7 @@ class Interpreter(InterpreterBase): |
|
|
|
for i in cmd_args: |
|
|
|
for i in cmd_args: |
|
|
|
if not isinstance(i, (str, mesonlib.File, TargetHolder)): |
|
|
|
if not isinstance(i, (str, mesonlib.File, TargetHolder)): |
|
|
|
raise InterpreterException('Command line arguments must be strings, files or targets.') |
|
|
|
raise InterpreterException('Command line arguments must be strings, files or targets.') |
|
|
|
|
|
|
|
cmd_args = mesonlib.unholder_array(cmd_args) |
|
|
|
env = self.unpack_env_kwarg(kwargs) |
|
|
|
env = self.unpack_env_kwarg(kwargs) |
|
|
|
should_fail = kwargs.get('should_fail', False) |
|
|
|
should_fail = kwargs.get('should_fail', False) |
|
|
|
if not isinstance(should_fail, bool): |
|
|
|
if not isinstance(should_fail, bool): |
|
|
|