Merged in tbasnoopy/premake-dev/buildoutput fix (pull request #149)

add missing buildoutputs fix for vs2010
This commit is contained in:
Jason Perkins 2015-02-18 15:13:41 -05:00
commit 2ae3479f58
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"