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-09 16:51:42 +0300
commitf328632fa500aaa085b63712414bdd1b890aaf0b (patch)
tree6fb72a55c255f55c274fba5ca76bb08cacc77afb
parent9fb0abb754b42839880489447f599c59bcff8371 (diff)
downloadmeson-f328632fa500aaa085b63712414bdd1b890aaf0b.zip
meson-f328632fa500aaa085b63712414bdd1b890aaf0b.tar.gz
meson-f328632fa500aaa085b63712414bdd1b890aaf0b.tar.bz2
Write include directory names with the correct amount of quoting.
-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):