aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-10 02:24:36 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-10 20:33:51 +0300
commit86fb916d3368ee7e542608b74cb43a3625f018ee (patch)
treefe315fc15ace24cc67680ee346296a2ea1649e2d /mesonbuild/build.py
parentf67b8cb8f2f650409ce237a14331d79a8d0dd214 (diff)
downloadmeson-86fb916d3368ee7e542608b74cb43a3625f018ee.zip
meson-86fb916d3368ee7e542608b74cb43a3625f018ee.tar.gz
meson-86fb916d3368ee7e542608b74cb43a3625f018ee.tar.bz2
Xcode: Fix source generation.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 533375e..ab2866e 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -239,6 +239,13 @@ class Build:
build_targets[name] = t
return build_targets
+ def get_custom_targets(self):
+ custom_targets = OrderedDict()
+ for name, t in self.targets.items():
+ if isinstance(t, CustomTarget):
+ custom_targets[name] = t
+ return custom_targets
+
def copy(self):
other = Build(self.environment)
for k, v in self.__dict__.items():