| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<Project> |
| 3 |
<Import Project="..\Source\VSProps\Base.Macros.props" /> |
| 4 |
<Import Project="$(VSPropsDir)Base.Targets.props" /> |
| 5 |
<PropertyGroup Label="Globals"> |
| 6 |
<ProjectGuid>{0E033BE3-2E08-428E-9AE9-BC673EFA12B5}</ProjectGuid> |
| 7 |
</PropertyGroup> |
| 8 |
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
| 9 |
<Import Project="$(VSPropsDir)Configuration.Utility.props" /> |
| 10 |
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 11 |
<ImportGroup Label="ExtensionSettings" /> |
| 12 |
<ImportGroup Label="PropertySheets"> |
| 13 |
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 14 |
<Import Project="$(VSPropsDir)Base.props" /> |
| 15 |
</ImportGroup> |
| 16 |
<PropertyGroup Label="UserMacros" /> |
| 17 |
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 18 |
<ImportGroup Label="ExtensionTargets" /> |
| 19 |
<PropertyGroup> |
| 20 |
<msgfmt>..\Externals\gettext\msgfmt</msgfmt> |
| 21 |
</PropertyGroup> |
| 22 |
<ItemGroup> |
| 23 |
<PoFiles Include="po\*.po" /> |
| 24 |
<MoFiles Include="@(PoFiles -> '$(OutDir)%(Filename).mo')" /> |
| 25 |
<MoFilesDst Include="@(MoFiles -> '$(BinaryOutputDir)Languages\%(Filename)%(Extension)')" /> |
| 26 |
</ItemGroup> |
| 27 |
<Target Name="MsgFmtCompile" BeforeTargets="BuildGenerateSources" Inputs="@(PoFiles)" Outputs="@(MoFiles)"> |
| 28 |
<Exec Command='$(msgfmt) -o "$(OutDir)%(PoFiles.Filename).mo" "@(PoFiles)"' /> |
| 29 |
</Target> |
| 30 |
<Target Name="MsgFmtCopy" AfterTargets="MsgFmtCompile" Inputs="@(MoFiles)" Outputs="@(MoFilesDst)"> |
| 31 |
<Copy SourceFiles="@(MoFiles)" DestinationFiles="@(MoFilesDst)" SkipUnchangedFiles="true" /> |
| 32 |
</Target> |
| 33 |
</Project> |