aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-11-05 20:07:21 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-08 00:44:45 +0200
commit46788d1b5bb72f59cc931e54912c81666ce30f84 (patch)
treee3438d1a7f68a9a1518f672a167f57b514cd5679 /mesonbuild/interpreter.py
parent48a719033ee6f1626a8878f66a43ee939dad4c62 (diff)
downloadmeson-46788d1b5bb72f59cc931e54912c81666ce30f84.zip
meson-46788d1b5bb72f59cc931e54912c81666ce30f84.tar.gz
meson-46788d1b5bb72f59cc931e54912c81666ce30f84.tar.bz2
Created the filesystem module.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 6f1f0a7..38e12ea 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -1689,7 +1689,7 @@ class CompilerHolder(InterpreterObject):
ModuleState = namedtuple('ModuleState', [
- 'build_to_src', 'subproject', 'subdir', 'current_lineno', 'environment',
+ 'source_root', 'build_to_src', 'subproject', 'subdir', 'current_lineno', 'environment',
'project_name', 'project_version', 'backend', 'targets',
'data', 'headers', 'man', 'global_args', 'project_args', 'build_machine',
'host_machine', 'target_machine', 'current_node'])
@@ -1714,6 +1714,7 @@ class ModuleHolder(InterpreterObject, ObjectHolder):
# because the Build object contains dicts and lists.
num_targets = len(self.interpreter.build.targets)
state = ModuleState(
+ source_root = self.interpreter.environment.get_source_dir(),
build_to_src=mesonlib.relpath(self.interpreter.environment.get_source_dir(),
self.interpreter.environment.get_build_dir()),
subproject=self.interpreter.subproject,