Merged in dcourtois/premake-dev/CustomBuildMessages (pull request #62)
added support for custom build message in vs201x generator
This commit is contained in:
commit
4bef76b42a
@ -524,6 +524,10 @@
|
||||
|
||||
local outputs = project.getrelative(prj, filecfg.buildoutputs)
|
||||
vc2010.element(3, "Outputs", condition, '%s', table.concat(outputs, " "))
|
||||
|
||||
if filecfg.buildmessage then
|
||||
vc2010.element(3, "Message", condition, '%s', premake.esc(filecfg.buildmessage))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -88,6 +88,29 @@
|
||||
end
|
||||
|
||||
|
||||
function suite.customBuild_onBuildRuleWithMessage()
|
||||
files { "hello.cg" }
|
||||
configuration "**.cg"
|
||||
buildmessage "Compiling shader $(InputFile)"
|
||||
buildcommands { "cgc $(InputFile)" }
|
||||
buildoutputs { "$(InputName).obj" }
|
||||
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).obj</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Compiling shader $(InputFile)</Message>
|
||||
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">cgc $(InputFile)</Command>
|
||||
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(InputName).obj</Outputs>
|
||||
<Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Compiling shader $(InputFile)</Message>
|
||||
</CustomBuild>
|
||||
</ItemGroup>
|
||||
]]
|
||||
end
|
||||
|
||||
|
||||
--
|
||||
-- If a PCH source is specified, ensure it is included in the file configuration.
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user