windows/qt: add (hopefully) all plugins DolphinQt should possibly need.
For now they are all copied to binary directory, once the project is more mature it can be stripped down.
This commit is contained in:
parent
e9164247d6
commit
035a1c0ec2
|
@ -1 +1 @@
|
||||||
Subproject commit e2e0b15688568c58ec17b9c22a0dc1969f69b5da
|
Subproject commit e15ba6f5eba256027ae657f0c1ecc1ede2c42b33
|
|
@ -9,9 +9,12 @@
|
||||||
<QtIncludeDir>$(QTDIR)include\</QtIncludeDir>
|
<QtIncludeDir>$(QTDIR)include\</QtIncludeDir>
|
||||||
<QtLibDir>$(QTDIR)lib\</QtLibDir>
|
<QtLibDir>$(QTDIR)lib\</QtLibDir>
|
||||||
<QtBinDir>$(QTDIR)bin\</QtBinDir>
|
<QtBinDir>$(QTDIR)bin\</QtBinDir>
|
||||||
|
<QtPluginsDir>$(QTDIR)plugins\</QtPluginsDir>
|
||||||
<QtToolOutDir>$(IntDir)</QtToolOutDir>
|
<QtToolOutDir>$(IntDir)</QtToolOutDir>
|
||||||
<QtMocOutPrefix>$(QtToolOutDir)moc_</QtMocOutPrefix>
|
<QtMocOutPrefix>$(QtToolOutDir)moc_</QtMocOutPrefix>
|
||||||
<QtLibSuffix Condition="'$(Configuration)'=='Debug'">d</QtLibSuffix>
|
<QtDebugSuffix>d</QtDebugSuffix>
|
||||||
|
<QtLibSuffix Condition="'$(Configuration)'=='Debug'">$(QtDebugSuffix)</QtLibSuffix>
|
||||||
|
<QtPluginFolder>QtPlugins</QtPluginFolder>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup>
|
<ItemDefinitionGroup>
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
|
@ -117,17 +120,43 @@
|
||||||
<IcuDlls Include="icudt52;icuin52;icuuc52" />
|
<IcuDlls Include="icudt52;icuin52;icuuc52" />
|
||||||
<QtLibNames Include="@(IcuDlls);Qt5Core$(QtLibSuffix);Qt5Gui$(QtLibSuffix);Qt5Widgets$(QtLibSuffix)" />
|
<QtLibNames Include="@(IcuDlls);Qt5Core$(QtLibSuffix);Qt5Gui$(QtLibSuffix);Qt5Widgets$(QtLibSuffix)" />
|
||||||
<QtDlls Include="@(QtLibNames -> '$(QtBinDir)%(Identity).dll')" />
|
<QtDlls Include="@(QtLibNames -> '$(QtBinDir)%(Identity).dll')" />
|
||||||
|
<!--Filter plugins to copy based on the observation that all debug versions end in "d"-->
|
||||||
|
<QtAllPlugins Include="$(QtPluginsDir)**\*$(QtLibSuffix).dll" />
|
||||||
|
<QtPlugins Condition="'$(Configuration)'=='Debug'" Include="@(QtAllPlugins)" />
|
||||||
|
<QtPlugins Condition="'$(Configuration)'=='Release'" Exclude="$(QtPluginsDir)**\*$(QtDebugSuffix).dll" Include="@(QtAllPlugins)" />
|
||||||
|
<QtPluginsDest Include="@(QtPlugins -> '$(BinaryOutputDir)$(QtPluginFolder)\%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<QtConfFile>$(BinaryOutputDir)qt.conf</QtConfFile>
|
||||||
|
</PropertyGroup>
|
||||||
<Target Name="QtCopyBinaries"
|
<Target Name="QtCopyBinaries"
|
||||||
AfterTargets="Build"
|
AfterTargets="Build"
|
||||||
Condition="'$(I_AM_BUILDACUS)'==''"
|
Condition="'$(I_AM_BUILDACUS)'==''"
|
||||||
Inputs="@(QtDlls)"
|
Inputs="@(QtDlls);@(QtPlugins)"
|
||||||
Outputs="@(QtDlls -> '$(BinaryOutputDir)%(RecursiveDir)%(Filename)%(Extension)')">
|
Outputs="@(QtDlls -> '$(BinaryOutputDir)%(RecursiveDir)%(Filename)%(Extension)');@(QtPlugins -> '$(BinaryOutputDir)$(QtPluginFolder)\%(RecursiveDir)%(Filename)%(Extension)')">
|
||||||
<Message Text="Copying Qt .dlls" Importance="High" />
|
<Message Text="Copying Qt .dlls" Importance="High" />
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="@(QtDlls)"
|
SourceFiles="@(QtDlls)"
|
||||||
DestinationFolder="$(BinaryOutputDir)"
|
DestinationFolder="$(BinaryOutputDir)"
|
||||||
Condition="!Exists('$(BinaryOutputDir)%(RecursiveDir)%(Filename)%(QtDlls.Extension)') OR $([System.DateTime]::Parse('%(ModifiedTime)').Ticks) > $([System.IO.File]::GetLastWriteTime('$(BinaryOutputDir)%(RecursiveDir)%(Filename)%(QtDlls.Extension)').Ticks)"
|
SkipUnchangedFiles="true"
|
||||||
|
/>
|
||||||
|
<Copy
|
||||||
|
SourceFiles="@(QtPlugins)"
|
||||||
|
DestinationFiles="@(QtPluginsDest)"
|
||||||
|
SkipUnchangedFiles="true"
|
||||||
|
/>
|
||||||
|
</Target>
|
||||||
|
<Target Name="QtCreateConf"
|
||||||
|
BeforeTargets="QtCopyBinaries"
|
||||||
|
Condition="!Exists('$(QtConfFile)')">
|
||||||
|
<!--
|
||||||
|
Create a file which tells Qt where to look for "plugins".
|
||||||
|
Otherwise Qt only looks in ./<subtype>/type.dll instead of ./$(QtPluginFolder)/<subtype>/type.dll, which is messy
|
||||||
|
-->
|
||||||
|
<WriteLinesToFile
|
||||||
|
File="$(QtConfFile)"
|
||||||
|
Lines="[Paths];Plugins = ./$(QtPluginFolder)"
|
||||||
|
Overwrite="true"
|
||||||
/>
|
/>
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
Loading…
Reference in New Issue