aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-24 20:35:33 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-24 20:35:33 +0300
commitf30542ed428f87b9e593c5810ad867bae457cbb2 (patch)
tree006ee26948982b793132c66ebf777be8e3be65bf /mesonbuild/backend/backends.py
parentd816b8365e85bd65e940b118aa853a177f275f04 (diff)
downloadmeson-xcodeobjc.zip
meson-xcodeobjc.tar.gz
meson-xcodeobjc.tar.bz2
Xcode: make Swift projects work.xcodeobjc
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r--mesonbuild/backend/backends.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index 734a7e4..e6628b6 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -417,6 +417,12 @@ class Backend:
raise MesonException('Unknown data type in object list.')
return obj_list
+ def is_swift_target(self, target):
+ for s in target.sources:
+ if s.endswith('swift'):
+ return True
+ return False
+
def get_executable_serialisation(self, cmd, workdir=None,
extra_bdeps=None, capture=None,
env: T.Optional[build.EnvironmentVariables] = None):