diff options
| author | David Ward <david.ward@gatech.edu> | 2022-09-04 08:15:57 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-09-12 00:27:21 -0400 |
| commit | 68add86f7b9b50e51e75447077f460bc2dc78e79 (patch) | |
| tree | 9424e382be0ea3b173fabe55311a8c546158b2d0 /mesonbuild/modules/__init__.py | |
| parent | 7eb5709bd9105c3ab9eec935b4b2b14d2ca7940b (diff) | |
| download | meson-68add86f7b9b50e51e75447077f460bc2dc78e79.tar.gz | |
i18n: Fix source root in Gettext targets for subprojects
Gettext should search for input files relative to the (sub)project
source root, not the global source root.
This change exposes a root_subdir member in ModuleState.
Diffstat (limited to 'mesonbuild/modules/__init__.py')
| -rw-r--r-- | mesonbuild/modules/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py index de1cd5662..a83e9da10 100644 --- a/mesonbuild/modules/__init__.py +++ b/mesonbuild/modules/__init__.py @@ -49,6 +49,7 @@ class ModuleState: interpreter.environment.get_build_dir()) self.subproject = interpreter.subproject self.subdir = interpreter.subdir + self.root_subdir = interpreter.root_subdir self.current_lineno = interpreter.current_lineno self.environment = interpreter.environment self.project_name = interpreter.build.project_name |
