msbuild: use Build dir for Languages

This commit is contained in:
Shawn Hoffman 2021-07-17 14:54:52 -07:00
parent 0b18f8ae55
commit bc22c74cd9
1 changed files with 6 additions and 4 deletions

View File

@ -16,10 +16,6 @@
<Import Project="$(VSPropsDir)Base.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<!--Output directly to binary directory...-->
<PropertyGroup>
<OutDir>$(BinaryOutputDir)</OutDir>
</PropertyGroup>
<ItemGroup>
<msgfmt Include="po\ar.po" />
<msgfmt Include="po\ca.po" />
@ -54,4 +50,10 @@
<ImportGroup Label="ExtensionTargets">
<Import Project="po.targets" />
</ImportGroup>
<ItemGroup>
<PoFiles Include="$(OutDir)\**\*.*" />
</ItemGroup>
<Target Name="AfterBuild" Inputs="@(PoFiles)" Outputs="@(PoFiles -> '$(BinaryOutputDir)%(RecursiveDir)%(Filename)%(Extension)')">
<Copy SourceFiles="@(PoFiles)" DestinationFolder="$(BinaryOutputDir)%(RecursiveDir)" />
</Target>
</Project>