From 1a31882f597c0cbfd56fd38f6b8d4424104bdb0d Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 24 Apr 2021 20:35:33 +0300 Subject: Xcode: make Swift projects work. --- mesonbuild/backend/backends.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mesonbuild/backend/backends.py') 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): -- cgit v1.1