Fix Xcode targets in subdirs.

pull/8627/head
Jussi Pakkanen 4 years ago
parent e759c8b2e9
commit 59306c45c5
  1. 4
      mesonbuild/backend/xcodebackend.py
  2. 3
      test cases/common/11 subdir/subdir/meson.build

@ -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()

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

Loading…
Cancel
Save