Qt: Create qt/plugins dir to tidy up our Visual Studio builds

see folders: bearer, imageformats, styles and platforms.
This will stay compatible with the old builds too, unless someone wisely put their plugin folders into a 'plugin' subdirectory
This commit is contained in:
Megamouse 2018-05-12 18:22:30 +02:00 committed by Ivan
parent 4836a03a7d
commit a39384cadd
4 changed files with 10 additions and 6 deletions

View file

@ -472,11 +472,11 @@ if(MSVC)
# them from the local QT installation at the end of the build.
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_custom_command(TARGET rpcs3 POST_BUILD
COMMAND $ENV{QTDIR}/bin/windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick --debug ${CMAKE_BINARY_DIR}/bin
COMMAND $ENV{QTDIR}/bin/windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick --plugindir ${CMAKE_BINARY_DIR}/bin/qt/plugins --debug ${CMAKE_BINARY_DIR}/bin
)
else()
add_custom_command(TARGET rpcs3 POST_BUILD
COMMAND $ENV{QTDIR}/bin/windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick ${CMAKE_BINARY_DIR}/bin
COMMAND $ENV{QTDIR}/bin/windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick --plugindir ${CMAKE_BINARY_DIR}/bin/qt/plugins ${CMAKE_BINARY_DIR}/bin
)
endif()
endif()

3
rpcs3/qt/etc/qt.conf Normal file
View file

@ -0,0 +1,3 @@
[Paths]
Prefix = qt/
Plugins = plugins

View file

@ -27,5 +27,6 @@
<file>Icons/stop_blue.png</file>
<file>Icons/cog_black.png</file>
<file>Icons/cog_gray.png</file>
<file>qt/etc/qt.conf</file>
</qresource>
</RCC>

View file

@ -166,7 +166,7 @@
</ResourceCompile>
<PostBuildEvent>
<Command>
$(QTDIR)\bin\windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick $(TargetPath)
$(QTDIR)\bin\windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick --plugindir $(TargetDir)\qt\plugins $(TargetPath)
</Command>
</PostBuildEvent>
<PostBuildEvent>
@ -218,7 +218,7 @@
</ResourceCompile>
<PostBuildEvent>
<Command>
$(QTDIR)\bin\windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick $(TargetPath)
$(QTDIR)\bin\windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick --plugindir $(TargetDir)\qt\plugins $(TargetPath)
</Command>
</PostBuildEvent>
<PostBuildEvent>
@ -271,7 +271,7 @@
</ResourceCompile>
<PostBuildEvent>
<Command>
$(QTDIR)\bin\windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick --debug $(TargetPath)
$(QTDIR)\bin\windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick --plugindir $(TargetDir)\qt\plugins --debug $(TargetPath)
</Command>
</PostBuildEvent>
<PostBuildEvent>
@ -324,7 +324,7 @@
</ResourceCompile>
<PostBuildEvent>
<Command>
$(QTDIR)\bin\windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick --debug $(TargetPath)
$(QTDIR)\bin\windeployqt --no-angle --no-opengl-sw --no-svg --no-translations --no-quick --plugindir $(TargetDir)\qt\plugins --debug $(TargetPath)
</Command>
</PostBuildEvent>
<PostBuildEvent>