add missing buildoutputs fix for vs2010
This commit is contained in:
parent
314d8cbe2d
commit
b5c37c25cc
@ -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)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user