diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-10-01 13:27:15 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-03 08:53:12 -0700 |
| commit | aa5f38185495100fe9d53b6358d8d7cfa8a6388d (patch) | |
| tree | 67ba289cd088286f9818813fed3e820205b1ed85 /mesonbuild | |
| parent | b158214b3fad4667407e4b577d5027e58dd7d798 (diff) | |
| download | meson-aa5f38185495100fe9d53b6358d8d7cfa8a6388d.tar.gz | |
build: add `subdir` property to `CustomTargetIndex`
Which it needs in some contexts to be polymorphic with CustomTarget
Diffstat (limited to 'mesonbuild')
| -rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index ba989676f..0b6400732 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -3258,6 +3258,10 @@ class CustomTargetIndex(CustomTargetBase, HoldableObject): def depend_files(self) -> T.List[File]: return self.target.depend_files + @property + def subdir(self) -> str: + return self.target.subdir + def __repr__(self): return '<CustomTargetIndex: {!r}[{}]>'.format(self.target, self.output) |
