aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-29 19:17:12 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-29 19:17:12 +0300
commit77bbd09eb549fb0d46c9217a57f2d3fcdece8566 (patch)
tree36e2a96e994558a462f6cd24580e922b14bedc1c
parentcdc6c866ca087ba738f0a5d01cc0fc6ddc066935 (diff)
downloadmeson-xcodeclean.zip
meson-xcodeclean.tar.gz
meson-xcodeclean.tar.bz2
Xcode: fix project cleaning.xcodeclean
-rw-r--r--mesonbuild/backend/xcodebackend.py4
1 files 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)