|
|
@ -13,6 +13,7 @@
|
|
|
|
<QtPluginsDir>$(QTDIR)plugins\</QtPluginsDir>
|
|
|
|
<QtPluginsDir>$(QTDIR)plugins\</QtPluginsDir>
|
|
|
|
<QtToolOutDir>$(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\</QtToolOutDir>
|
|
|
|
<QtToolOutDir>$(SolutionDir)build\$(ProjectName)-$(Platform)-$(Configuration)\</QtToolOutDir>
|
|
|
|
<QtMocOutPrefix>$(QtToolOutDir)moc_</QtMocOutPrefix>
|
|
|
|
<QtMocOutPrefix>$(QtToolOutDir)moc_</QtMocOutPrefix>
|
|
|
|
|
|
|
|
<QtTsOutDir>$(BinaryOutputDir)translations\</QtTsOutDir>
|
|
|
|
<QtDebugSuffix>d</QtDebugSuffix>
|
|
|
|
<QtDebugSuffix>d</QtDebugSuffix>
|
|
|
|
<QtLibSuffix Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='DebugFast'">$(QtDebugSuffix)</QtLibSuffix>
|
|
|
|
<QtLibSuffix Condition="'$(Configuration)'=='Debug' Or '$(Configuration)'=='DebugFast'">$(QtDebugSuffix)</QtLibSuffix>
|
|
|
|
<QtPluginFolder>QtPlugins</QtPluginFolder>
|
|
|
|
<QtPluginFolder>QtPlugins</QtPluginFolder>
|
|
|
@ -113,6 +114,9 @@
|
|
|
|
<AvailableItemName Include="QtMoc">
|
|
|
|
<AvailableItemName Include="QtMoc">
|
|
|
|
<Targets>QtMoc</Targets>
|
|
|
|
<Targets>QtMoc</Targets>
|
|
|
|
</AvailableItemName>
|
|
|
|
</AvailableItemName>
|
|
|
|
|
|
|
|
<AvailableItemName Include="QtTs">
|
|
|
|
|
|
|
|
<Targets>QtTs</Targets>
|
|
|
|
|
|
|
|
</AvailableItemName>
|
|
|
|
</ItemGroup>
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
<!--Copy the needed dlls-->
|
|
|
|
<!--Copy the needed dlls-->
|
|
|
@ -157,4 +161,25 @@
|
|
|
|
Overwrite="true"
|
|
|
|
Overwrite="true"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--Compiles all translation files-->
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
|
|
|
<TsFiles Include="$(MSBuildProjectDirectory)\**\*.ts" />
|
|
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<Target Name="QtTs"
|
|
|
|
|
|
|
|
BeforeTargets="ClCompile"
|
|
|
|
|
|
|
|
Inputs="@(TsFiles)"
|
|
|
|
|
|
|
|
Condition="'@(QtTs)'!=''"
|
|
|
|
|
|
|
|
Outputs="@(TsFiles->'$(QtTsOutDir)%(Filename).qm')">
|
|
|
|
|
|
|
|
<Message Text="lrelease %(TsFiles.Filename)" Importance="High" />
|
|
|
|
|
|
|
|
<Error Condition="!$(QtDirValid)" Text="QTDIR not set or non-existent (pull the submodule?)" />
|
|
|
|
|
|
|
|
<MakeDir Directories="$(QtTsOutDir)" />
|
|
|
|
|
|
|
|
<Exec Command=""$(QtBinDir)lrelease.exe" "%(TsFiles.FullPath)" -qm "$(QtTsOutDir)%(TsFiles.Filename).qm"" />
|
|
|
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
|
|
|
<TsOutputs Include="$(QtTsOutDir)*.qm" />
|
|
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<Target Name="QtTsClean">
|
|
|
|
|
|
|
|
<Delete Files="@(TsOutputs)" />
|
|
|
|
|
|
|
|
</Target>
|
|
|
|
</Project>
|
|
|
|
</Project>
|
|
|
|