Merged in mologie/premake-dev/vs2010-rc-quotes-fix (pull request #38)
Fix syntax for resource preprocessor definitions including quotes in VS2010
This commit is contained in:
commit
8c1833aa2a
@ -292,7 +292,7 @@
|
||||
function vc2010.resourceCompile(cfg)
|
||||
if cfg.kind ~= premake.MAKEFILE and cfg.system ~= premake.XBOX360 then
|
||||
_p(2,'<ResourceCompile>')
|
||||
vc2010.preprocessorDefinitions(cfg, table.join(cfg.defines, cfg.resdefines))
|
||||
vc2010.preprocessorDefinitions(cfg, table.join(cfg.defines, cfg.resdefines), true)
|
||||
vc2010.additionalIncludeDirectories(cfg, table.join(cfg.includedirs, cfg.resincludedirs))
|
||||
_p(2,'</ResourceCompile>')
|
||||
end
|
||||
@ -930,9 +930,12 @@
|
||||
end
|
||||
|
||||
|
||||
function vc2010.preprocessorDefinitions(cfg, defines)
|
||||
function vc2010.preprocessorDefinitions(cfg, defines, escapeQuotes)
|
||||
if #defines > 0 then
|
||||
defines = table.concat(defines, ";")
|
||||
if escapeQuotes then
|
||||
defines = defines:gsub('"', '\\"')
|
||||
end
|
||||
_x(3,'<PreprocessorDefinitions>%s;%%(PreprocessorDefinitions)</PreprocessorDefinitions>', defines)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user