[qrvthtool] CMakeLists.txt: Exclude unnecessary DLLs in the distribution.

This significantly reduces the distribution size, since, among other
things, we don't need QtNetwork.

Also removed:
- DirectX compiler libraries
- MSVC runtime (debug build only; release builds didn't include the DLLs)
This commit is contained in:
David Korth 2025-06-16 22:05:00 -04:00
parent 72d151eedd
commit 56d20b41b8

View File

@ -428,7 +428,13 @@ IF(TARGET ${QT_NS}::windeployqt)
ADD_CUSTOM_COMMAND(TARGET qrvthtool POST_BUILD
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/windeployqt"
COMMAND set PATH=%PATH%$<SEMICOLON>${qt_install_prefix}/bin
COMMAND ${QT_NS}::windeployqt ${WINDEPLOY_NO_SVG} --dir "${CMAKE_CURRENT_BINARY_DIR}/windeployqt" "$<TARGET_FILE_DIR:qrvthtool>/$<TARGET_FILE_NAME:qrvthtool>"
COMMAND ${QT_NS}::windeployqt ${WINDEPLOY_NO_SVG}
--no-system-d3d-compiler
--no-system-dxc-compiler
--no-compiler-runtime
--exclude-plugins qcertonlybackend,qschannelbackend,qtuiotouchplugin,qdirect2d,qminimal,qoffscreen,qgif,qico,qjpeg,qnetworklistmanager
--dir "${CMAKE_CURRENT_BINARY_DIR}/windeployqt"
"$<TARGET_FILE_DIR:qrvthtool>/$<TARGET_FILE_NAME:qrvthtool>"
)
# copy deployment directory during installation