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

github.com/windirstat/premake-4.x.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
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
commit031c858a08612a9a8bc0b79f5bb09c1407323efc (patch)
tree9581e4d1643a7edcd1b9424f9053ad7e3baa7834 /src
parent87228f81fe5ec9f10980d1ed343fa103aa6d3a70 (diff)
parent8ab4b4f4c1040c648b38fd9d0142f09b19ba649e (diff)
Merged in mologie/premake-stable/macosx-quotes (pull request #14)
Fixed generating xcode4 projects with preprocessor definitions including quotes
Diffstat (limited to 'src')
-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