aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-02 13:57:52 -0700
committerNirbheek Chauhan <nirbheek@centricular.com>2021-08-10 15:33:47 +0530
commit0b94d8ccba7ac636a2f9c7e2750740e212b61246 (patch)
tree219fcfefc88dd2908e7c5a34dbe5a751d5b032ca
parentb150e2888d14eb8b1029b47c884ec147598ca1c3 (diff)
downloadmeson-0b94d8ccba7ac636a2f9c7e2750740e212b61246.zip
meson-0b94d8ccba7ac636a2f9c7e2750740e212b61246.tar.gz
meson-0b94d8ccba7ac636a2f9c7e2750740e212b61246.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()`
-rw-r--r--mesonbuild/build.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index d72aab8..59efa68 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