POCompile target updated to make output directory

This commit is contained in:
Simon Rozman 2016-09-15 11:39:06 +02:00
parent 8f5b8d1d40
commit 0846969cc3
5 changed files with 10 additions and 8 deletions

View File

@ -44,7 +44,7 @@
</Link>
<ResourceCompile />
<POCompile>
<OutputFile>$(OutDir)..\locale\%(Filename)\$(ProjectName).mo</OutputFile>
<LocaleRepoDir>$(OutDir)..\locale\%(Filename)\</LocaleRepoDir>
</POCompile>
</ItemDefinitionGroup>
<ItemGroup />

View File

@ -35,7 +35,8 @@
<CheckDomain>false</CheckDomain>
<CheckCompat>false</CheckCompat>
<CheckAccel>None</CheckAccel>
<OutputFile>$(OutDir)%(Filename).mo</OutputFile>
<LocaleRepoDir>$(OutDir)</LocaleRepoDir>
<OutputFile>%(LocaleRepoDir)$(ProjectName).mo</OutputFile>
<UseFuzzy>false</UseFuzzy>
<Alignment>1</Alignment>
<Endianess>LSB</Endianess>

View File

@ -39,7 +39,7 @@
<ItemGroup Condition="'@(SelectedFiles)' != ''">
<POCompile Remove="@(POCompile)" Condition="'%(Identity)' != '@(SelectedFiles)'" />
</ItemGroup>
<Message Text="Compiling localization catalogues..." />
<MakeDir Directories="%(POCompile.LocaleRepoDir)"/>
<POCompile
Condition="'@(POCompile)' != '' and '%(POCompile.ExcludedFromBuild)' != 'true'"
Inputs="@(POCompile)"

View File

@ -48,10 +48,11 @@
<EnumValue Name="None" DisplayName="None" Description="No check" />
<EnumValue Name="Amperstand" Switch="check-accelerators=&quot;&amp;&quot;" DisplayName="Amperstand" Description="Check keyborad accellerator marked with an amperstand &amp;." />
</EnumProperty>
<StringProperty Category="Output" Name="OutputFile" Switch="output-file=" DisplayName="Output File" Description="The name and location of the output file that compiler creates." Subtype="file" />
<BoolProperty Category="Output" Name="UseFuzzy" Switch="use-fuzzy" DisplayName="Use Fuzzy Entries" Description="Use fuzzy entries in output." />
<IntProperty Category="Output" Name="Alignment" Switch="alignment=" DisplayName="Align Strings" Description="Align strings to given bytes (default: 1)." />
<EnumProperty Category="Output" Name="Endianess" DisplayName="Endianess" Description="Write out 32-bit numbers in the given byte order (default: platform specific).">
<StringProperty Category="Output" Name="LocaleRepoDir" DisplayName="Locale Repository Directory" Description="Location of the locale repository directory." Subtype="folder" IncludeInCommandLine="False" />
<StringProperty Category="Output" Name="OutputFile" Switch="output-file=" DisplayName="Output File" Description="The name and location of the output file that compiler creates." Subtype="file" />
<BoolProperty Category="Output" Name="UseFuzzy" Switch="use-fuzzy" DisplayName="Use Fuzzy Entries" Description="Use fuzzy entries in output." />
<IntProperty Category="Output" Name="Alignment" Switch="alignment=" DisplayName="Align Strings" Description="Align strings to given bytes (default: 1)." />
<EnumProperty Category="Output" Name="Endianess" DisplayName="Endianess" Description="Write out 32-bit numbers in the given byte order (default: platform specific).">
<EnumValue Name="LSB" Switch="endianness=little" DisplayName="LSB" Description="Least significant byte first" />
<EnumValue Name="MSB" Switch="endianness=big" DisplayName="MSB" Description="Most significant byte first" />
</EnumProperty>

@ -1 +1 @@
Subproject commit 22e381af0ce4c0c110f14d1b83353306aac781ff
Subproject commit f730285400d0ac7038ee49a4c86ce55e6068c4e0