From 77bbd09eb549fb0d46c9217a57f2d3fcdece8566 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 29 Apr 2021 19:17:12 +0300 Subject: Xcode: fix project cleaning. --- mesonbuild/backend/xcodebackend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index aeaee5c..66f6704 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -219,7 +219,7 @@ class XCodeBackend(backends.Backend): def get_target_dir(self, target): dirname = os.path.join(target.get_subdir(), self.environment.coredata.get_option(OptionKey('buildtype'))) - os.makedirs(os.path.join(self.environment.get_build_dir(), dirname), exist_ok=True) + #os.makedirs(os.path.join(self.environment.get_build_dir(), dirname), exist_ok=True) return dirname def get_custom_target_output_dir(self, target): @@ -1056,7 +1056,7 @@ class XCodeBackend(backends.Backend): project_dict.add_item('compatibilityVersion', '"Xcode 3.2"') project_dict.add_item('hasScannedForEncodings', 0) project_dict.add_item('mainGroup', self.maingroup_id) - project_dict.add_item('projectDirPath', f'"{self.build_to_src}"') + project_dict.add_item('projectDirPath', '"' + self.environment.get_source_dir() + '"') project_dict.add_item('projectRoot', '""') targets_arr = PbxArray() project_dict.add_item('targets', targets_arr) -- cgit v1.1