aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-02 13:57:52 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-08-03 14:03:33 -0700
commitdaf63fc377502f70bc7150c0fefbcdbf968b33a3 (patch)
tree3b5bdf8de50d7e66f2d1c3508b1b464f80a5fb54 /mesonbuild
parent3f71779f8a94a448b490401432db5aa47f306662 (diff)
downloadmeson-daf63fc377502f70bc7150c0fefbcdbf968b33a3.zip
meson-daf63fc377502f70bc7150c0fefbcdbf968b33a3.tar.gz
meson-daf63fc377502f70bc7150c0fefbcdbf968b33a3.tar.bz2
build: Add get_subdir() to GeneratedList
It needs this to match the behavior of CustomTarget and CustomTargetIndex, the later of which doesn't have a subdir attribute, just `get_subdir()`
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/build.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 8e0d81b..17d31e8 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1628,6 +1628,10 @@ class GeneratedList(HoldableObject):
def get_extra_args(self) -> T.List[str]:
return self.extra_args
+ def get_subdir(self) -> str:
+ return self.subdir
+
+
class Executable(BuildTarget):
known_kwargs = known_exe_kwargs