xcode: Fix generating single generator phase

pull/12618/head
Albert Tang 1 year ago committed by Eli Schwartz
parent 1b09cac252
commit 0914f1739b
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 3
      mesonbuild/backend/xcodebackend.py

@ -1274,6 +1274,7 @@ class XCodeBackend(backends.Backend):
exe = generator.get_exe() exe = generator.get_exe()
exe_arr = self.build_target_to_cmd_array(exe) exe_arr = self.build_target_to_cmd_array(exe)
workdir = self.environment.get_build_dir() workdir = self.environment.get_build_dir()
target_private_dir = self.relpath(self.get_target_private_dir(t), self.get_target_dir(t))
gen_dict = PbxDict() gen_dict = PbxDict()
objects_dict.add_item(self.shell_targets[(tname, generator_id)], gen_dict, f'"Generator {generator_id}/{tname}"') objects_dict.add_item(self.shell_targets[(tname, generator_id)], gen_dict, f'"Generator {generator_id}/{tname}"')
infilelist = genlist.get_inputs() infilelist = genlist.get_inputs()
@ -1295,7 +1296,7 @@ class XCodeBackend(backends.Backend):
# unclear whether it is necessary, what actually happens when it is defined # unclear whether it is necessary, what actually happens when it is defined
# and currently the build works without it. # and currently the build works without it.
#infile_abs = i.absolute_path(self.environment.get_source_dir(), self.environment.get_build_dir()) #infile_abs = i.absolute_path(self.environment.get_source_dir(), self.environment.get_build_dir())
infilename = i.rel_to_builddir(self.build_to_src) infilename = i.rel_to_builddir(self.build_to_src, target_private_dir)
base_args = generator.get_arglist(infilename) base_args = generator.get_arglist(infilename)
for o_base in genlist.get_outputs_for(i): for o_base in genlist.get_outputs_for(i):
o = os.path.join(self.get_target_private_dir(t), o_base) o = os.path.join(self.get_target_private_dir(t), o_base)

Loading…
Cancel
Save