tdesktop/Telegram/build/vc/codegen_style/codegen_style.targets

21 lines
984 B
XML

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
<AvailableItemName Include="CodegenStyleItem">
<Targets>GenerateStyleCode</Targets>
</AvailableItemName>
</ItemGroup>
<ItemGroup>
<StyleFile Include="%(CodegenStyleItem.Identity)" />
</ItemGroup>
<Target
Name="GenerateStyleCode"
BeforeTargets="ClCompile"
Inputs="%(CodegenStyleItem.Identity)"
Outputs=".\GeneratedFiles\styles\style_%(CodegenStyleItem.Filename).h;.\GeneratedFiles\styles\style_%(CodegenStyleItem.Filename).cpp">
<Message Text="Generating style: %(CodegenStyleItem.Identity)" />
<Exec Command="$(SolutionDir)$(Platform)\codegen\$(Configuration)\codegen_style.exe &quot;-I.\Resources&quot; &quot;-I.\SourceFiles&quot; &quot;-o.\GeneratedFiles\styles&quot; %(CodegenStyleItem.Identity)"/>
</Target>
</Project>