Deploy: Build Qt as static library.

This commit is contained in:
Nodir Temirkhodjaev 2021-09-05 11:34:47 +03:00
parent 5a2177471a
commit ffb732a459
7 changed files with 12 additions and 34 deletions

View File

@ -90,8 +90,8 @@ Filename: "{app}\driver\scripts\uninstall.bat"; RunOnceId: "DelDriver"
[InstallDelete]
Type: filesandordirs; Name: "{app}\driver"
Type: filesandordirs; Name: "{app}\i18n"
; TODO: COMPAT: Remove the following 3 lines after v4.1.0
Type: filesandordirs; Name: "{app}\plugins"
; TODO: COMPAT: Remove the following line after v4.1.0
Type: files; Name: "{app}\curl*.*"
Type: files; Name: "{app}\qt*.*"
Type: files; Name: "{app}\README*.*"

View File

@ -1,12 +1,6 @@
{
"files": {
"${TARGET}": {
"qt": [
"${QTPATH}/bin/Qt6Core.dll",
"${QTPATH}/bin/Qt6Gui.dll",
"${QTPATH}/bin/Qt6Network.dll",
"${QTPATH}/bin/Qt6Widgets.dll"
],
"fort": [
"${BUILD}/ui_bin/FortFirewall.exe",
"${ROOT}/ChangeLog",
@ -14,23 +8,15 @@
]
},
"${TARGET}/driver": {
"driver-x32 | win7": [
"x86 | win7": [
"${BUILD}-driver-${CONFIG}/fortfw32.sys"
],
"driver-x64": [
"x86_64": [
"${BUILD}-driver-${CONFIG}/fortfw64.sys"
],
"scripts": [
"${ROOT}/src/driver/scripts | *.bat *.lnk |"
]
},
"${TARGET}/plugins": {
"qt": [
"${QTPATH}/plugins/platforms | qwindows.dll | *d.dll"
],
"qt-tls | win10": [
"${QTPATH}/plugins/tls | qschannelbackend.dll | *dd.dll"
]
}
}
}

View File

@ -11,8 +11,11 @@
md %TARGET_PATH%
cd %TARGET_PATH%
%QT_PATH%/configure -release -force-debug-info -optimize-size -opensource -confirm-license ^
-mp -no-opengl -nomake examples -nomake tests -nomake tools ^
%QT_PATH%/configure -release -force-debug-info -optimize-size ^
-static -prefix "%TARGET_PATH%\static" ^
-opensource -confirm-license -mp -no-opengl ^
^
-nomake examples -nomake tests -nomake tools ^
^
-skip qt3d -skip qt5compat -skip qtactiveqt -skip qtandroidextras ^
-skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d ^
@ -55,3 +58,4 @@ cd %TARGET_PATH%
-no-feature-dbus -no-feature-vulkan -no-feature-vkgen
cmake --build . --parallel
cmake --install .

View File

@ -1,7 +0,0 @@
[Paths]
Binaries = .
LibraryExecutables = .
Plugins = plugins
Translations = i18n
Imports = imports
Qml2Imports = imports

View File

@ -1 +1 @@
@%~dp0setup-deployment.bat -QtPath ".\build-qt\qtbase" -Config win10
@%~dp0setup-deployment.bat -Config win10

View File

@ -1 +1 @@
@%~dp0setup-deployment.bat -QtPath ".\build-qt-win7\qtbase" -Config win7
@%~dp0setup-deployment.bat -Config win7

View File

@ -3,12 +3,7 @@
@set TARGET_PATH=build
rd /Q /S %TARGET_PATH%
md %TARGET_PATH%
cd %TARGET_PATH%
del /Q /F qt*.* FortFirewall.exe
rd /Q /S driver i18n imports plugins
cd ..
powershell.exe -executionpolicy remotesigned -file setup-deployment.ps1 %TARGET_PATH% %*
xcopy /Q /S /Y qt %TARGET_PATH%\