aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2023-03-30 10:50:11 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2023-04-20 18:31:39 +0300
commitfbab1488ae31ac0e3f08aa84c811cbdcd5fa68b4 (patch)
tree38b473f7f978552721d5b6eae2b0763ab2b9b8c2 /mesonbuild/interpreter/interpreter.py
parente2c454b86e5fcb2dbbabe33199dc4b877dcdb95d (diff)
downloadmeson-fbab1488ae31ac0e3f08aa84c811cbdcd5fa68b4.zip
meson-fbab1488ae31ac0e3f08aa84c811cbdcd5fa68b4.tar.gz
meson-fbab1488ae31ac0e3f08aa84c811cbdcd5fa68b4.tar.bz2
extra_files keyword in declare_dependency()
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 96d4af0..48c7d1f 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -691,6 +691,7 @@ class Interpreter(InterpreterBase, HoldableObject):
LINK_WITH_KW,
LINK_WHOLE_KW.evolve(since='0.46.0'),
SOURCES_KW,
+ KwargInfo('extra_files', ContainerTypeInfo(list, (mesonlib.File, str)), listify=True, default=[], since='1.2.0'),
VARIABLES_KW.evolve(since='0.54.0', since_values={list: '0.56.0'}),
KwargInfo('version', (str, NoneType)),
KwargInfo('objects', ContainerTypeInfo(list, build.ExtractedObjects), listify=True, default=[], since='1.1.0'),
@@ -702,6 +703,7 @@ class Interpreter(InterpreterBase, HoldableObject):
libs_whole = kwargs['link_whole']
objects = kwargs['objects']
sources = self.source_strings_to_files(kwargs['sources'])
+ extra_files = self.source_strings_to_files(kwargs['extra_files'])
compile_args = kwargs['compile_args']
link_args = kwargs['link_args']
variables = kwargs['variables']
@@ -727,8 +729,8 @@ class Interpreter(InterpreterBase, HoldableObject):
raise InterpreterException('Invalid dependency')
dep = dependencies.InternalDependency(version, incs, compile_args,
- link_args, libs, libs_whole, sources, deps,
- variables, d_module_versions, d_import_dirs,
+ link_args, libs, libs_whole, sources, extra_files,
+ deps, variables, d_module_versions, d_import_dirs,
objects)
return dep