Fix Xcode targets in subdirs.

This commit is contained in:
Jussi Pakkanen 2021-04-07 18:09:58 +03:00
parent e759c8b2e9
commit 59306c45c5
2 changed files with 2 additions and 5 deletions

View File

@ -431,10 +431,8 @@ class XCodeBackend(backends.Backend):
for s in t.sources:
if isinstance(s, mesonlib.File):
s = os.path.join(s.subdir, s.fname)
if not isinstance(s, str):
continue
s = os.path.join(t.subdir, s)
sdict = PbxDict()
idval = self.buildfile_ids[(tname, s)]
fileref = self.fileref_ids[(tname, s)]
@ -495,10 +493,8 @@ class XCodeBackend(backends.Backend):
for s in t.sources:
if isinstance(s, mesonlib.File):
s = os.path.join(s.subdir, s.fname)
if not isinstance(s, str):
continue
s = os.path.join(t.subdir, s)
idval = self.fileref_ids[(tname, s)]
fullpath = os.path.join(self.environment.get_source_dir(), s)
src_dict = PbxDict()

View File

@ -1 +1,2 @@
executable('prog', 'prog.c')
prog = executable('prog', 'prog.c')
test('subdirprog', prog)