mirror of
https://github.com/GerbilSoft/rvthtool.git
synced 2025-06-18 19:45:35 -04:00
[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:
parent
72d151eedd
commit
56d20b41b8
@ -428,7 +428,13 @@ IF(TARGET ${QT_NS}::windeployqt)
|
|||||||
ADD_CUSTOM_COMMAND(TARGET qrvthtool POST_BUILD
|
ADD_CUSTOM_COMMAND(TARGET qrvthtool POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/windeployqt"
|
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/windeployqt"
|
||||||
COMMAND set PATH=%PATH%$<SEMICOLON>${qt_install_prefix}/bin
|
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
|
# copy deployment directory during installation
|
||||||
|
Loading…
Reference in New Issue
Block a user