aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-08 19:34:18 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-08 19:34:18 +0300
commit61b2de0c94d76f132a79052ef0dd6141f27bbe21 (patch)
tree6fb72a55c255f55c274fba5ca76bb08cacc77afb
parenta559f27800c31215e395d315d4bb47f73833ba37 (diff)
downloadmeson-xcodeforever.zip
meson-xcodeforever.tar.gz
meson-xcodeforever.tar.bz2
Write include directory names with the correct amount of quoting.xcodeforever
-rw-r--r--mesonbuild/backend/xcodebackend.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index eb5f7cf..4c80ed9 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -919,8 +919,11 @@ class XCodeBackend(backends.Backend):
settings_dict.add_item('GCC_PREPROCESSOR_DEFINITIONS', '""')
settings_dict.add_item('GCC_SYMBOLS_PRIVATE_EXTERN', 'NO')
if headerdirs:
- quotedh = ','.join(['"\\"%s\\""' % i for i in headerdirs])
- settings_dict.add_item('HEADER_SEARCH_PATHS', f'({quotedh}')
+ header_arr = PbxArray()
+ for i in headerdirs:
+ i = os.path.normpath(i)
+ header_arr.add_item(f'"\\"{i}\\""')
+ settings_dict.add_item('HEADER_SEARCH_PATHS', header_arr)
settings_dict.add_item('INSTALL_PATH', f'"{install_path}"')
settings_dict.add_item('LIBRARY_SEARCH_PATHS', '""')
if isinstance(target, build.SharedLibrary):