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:
authorJason Perkins <starkos@industriousone.com>2013-09-11 16:49:56 +0400
committerJason Perkins <starkos@industriousone.com>2013-09-11 16:49:56 +0400
commitd48a9683bff09ed6b2d316f877b3cc7e215f574e (patch)
tree9581e4d1643a7edcd1b9424f9053ad7e3baa7834
parenta85980c52496306f8f4ac885a3e9da81d0c7179d (diff)
parent94dcfca1d70871257e6f83b88250fd994a68282a (diff)
Merged in mologie/premake-stable/macosx-quotes (pull request #14)
Fixed generating xcode4 projects with preprocessor definitions including 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 5a610bf..4d413d4 100644
--- a/src/actions/xcode/xcode_common.lua
+++ b/src/actions/xcode/xcode_common.lua
@@ -228,7 +228,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