Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kuckertz <oliver.kuckertz@mologie.de>2013-06-13 20:24:10 +0400
committerOliver Kuckertz <oliver.kuckertz@mologie.de>2013-06-13 20:24:10 +0400
commit94dcfca1d70871257e6f83b88250fd994a68282a (patch)
tree09b9dcc8265be3412123f1b216d19ccf4b4f9e2c
parent2a5dae5db1ca37dbe2fd407dc28f6a41f5b40f23 (diff)
Fixed generating xcode4 projects with preprocessor definitions including quotes
--HG-- branch : macosx-quotes
-rw-r--r--src/actions/xcode/xcode_common.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actions/xcode/xcode_common.lua b/src/actions/xcode/xcode_common.lua
index b9f67de..2e3d0a6 100644
--- a/src/actions/xcode/xcode_common.lua
+++ b/src/actions/xcode/xcode_common.lua
@@ -224,7 +224,8 @@
if #list > 0 then
_p(4,'%s = (', tag)
for _, item in ipairs(list) do
- _p(5, '"%s",', item)
+ local escaped_item = item:gsub("\"", "\\\"")
+ _p(5, '"%s",', escaped_item)
end
_p(4,');')
end