Enable Qt6 for Wininstaller

This commit is contained in:
Eugene Chornyi 2021-05-27 18:51:30 +02:00
parent 814febbdf7
commit 764d59d882
2 changed files with 22 additions and 13 deletions

View File

@ -15,6 +15,8 @@
!define FILES_QT "${FILES_LYX}" # Can choose same as FILES_LYX (if Qt files copied to LYX_INSTALLED folder after compiling) or Qt kit folder
!define FILES_DEPS "${FILES_LYX}" # Can choose same as FILES_LYX (if dependencies copied to LYX_INSTALLED folder after compiling) or the dependencies folder itself (GNUWIN32 dir)
!define Qt_Version 6 # 5 or 6 (4 is not supported)
!define COPYRIGHT_YEAR 2020
#-------------------------------------------------------------

View File

@ -591,15 +591,20 @@ Section -ProgramFiles
# Pdfview
File "${FILES_DEPS}\bin\pdfview.exe"
# Qt libraries
File "${FILES_QT}\bin\Qt5Concurrent.dll"
File "${FILES_QT}\bin\Qt5Core.dll"
File "${FILES_QT}\bin\Qt5Gui.dll"
File "${FILES_QT}\bin\Qt5Network.dll"
File "${FILES_QT}\bin\Qt5OpenGL.dll"
File "${FILES_QT}\bin\Qt5PrintSupport.dll"
File "${FILES_QT}\bin\Qt5Svg.dll"
File "${FILES_QT}\bin\Qt5Widgets.dll"
File "${FILES_QT}\bin\Qt5WinExtras.dll"
File "${FILES_QT}\bin\Qt${Qt_Version}Concurrent.dll"
File "${FILES_QT}\bin\Qt${Qt_Version}Core.dll"
File "${FILES_QT}\bin\Qt${Qt_Version}Gui.dll"
File "${FILES_QT}\bin\Qt${Qt_Version}Network.dll"
File "${FILES_QT}\bin\Qt${Qt_Version}OpenGL.dll"
File "${FILES_QT}\bin\Qt${Qt_Version}PrintSupport.dll"
File "${FILES_QT}\bin\Qt${Qt_Version}Svg.dll"
File "${FILES_QT}\bin\Qt${Qt_Version}Widgets.dll"
!if ${Qt_Version} = 5
File "${FILES_QT}\bin\Qt5WinExtras.dll"
!endif
!if ${Qt_Version} = 6
File "${FILES_DEPS}\bin\Qt6Core5Compat.dll"
!endif
# Qt plugin DLLs
SetOutPath "$INSTDIR\bin\imageformats"
@ -607,10 +612,12 @@ Section -ProgramFiles
File "${FILES_QT}\bin\imageformats\qico.dll"
File "${FILES_QT}\bin\imageformats\qjpeg.dll"
File "${FILES_QT}\bin\imageformats\qsvg.dll"
File "${FILES_QT}\bin\imageformats\qicns.dll"
File "${FILES_QT}\bin\imageformats\qtiff.dll"
File "${FILES_QT}\bin\imageformats\qwbmp.dll"
File "${FILES_QT}\bin\imageformats\qwebp.dll"
!if ${Qt_Version} = 5
File "${FILES_QT}\bin\imageformats\qicns.dll"
File "${FILES_QT}\bin\imageformats\qtiff.dll"
File "${FILES_QT}\bin\imageformats\qwbmp.dll"
File "${FILES_QT}\bin\imageformats\qwebp.dll"
!endif
SetOutPath "$INSTDIR\bin\iconengines"
File "${FILES_QT}\bin\iconengines\qsvgicon.dll"