add missing buildoutputs fix for vs2010

This commit is contained in:
M Skibbe 2015-02-18 11:33:07 +01:00
parent 314d8cbe2d
commit b5c37c25cc
2 changed files with 20 additions and 1 deletions

View File

@ -660,7 +660,7 @@
m.element("Command", condition, '%s', commands)
local outputs = project.getrelative(prj, filecfg.buildoutputs)
m.element("Outputs", condition, '%s', table.concat(outputs, " "))
m.element("Outputs", condition, '%s', table.concat(outputs, ";"))
if filecfg.buildmessage then
m.element("Message", condition, '%s', filecfg.buildmessage)

View File

@ -102,6 +102,25 @@
]]
end
function suite.customBuild_onBuildRuleMultipleBuildOutputs()
files { "hello.cg" }
filter "files:**.cg"
buildcommands { "cgc $(InputFile)" }
buildoutputs { "$(InputName).a", "$(InputName).b" }
prepare()
test.capture [[
<ItemGroup>
<CustomBuild Include="hello.cg">
<FileType>Document</FileType>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">cgc $(InputFile)</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(InputName).a;$(InputName).b</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cgc $(InputFile)</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(InputName).a;$(InputName).b</Outputs>
</CustomBuild>
</ItemGroup>
]]
end
function suite.customBuild_onBuildRuleWithMessage()
files { "hello.cg" }
filter "files:**.cg"