mirror of
https://github.com/tnodir/fort
synced 2024-11-14 16:33:45 +00:00
Deploy: Build Qt as static library.
This commit is contained in:
parent
5a2177471a
commit
ffb732a459
@ -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*.*"
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 .
|
||||
|
@ -1,7 +0,0 @@
|
||||
[Paths]
|
||||
Binaries = .
|
||||
LibraryExecutables = .
|
||||
Plugins = plugins
|
||||
Translations = i18n
|
||||
Imports = imports
|
||||
Qml2Imports = imports
|
@ -1 +1 @@
|
||||
@%~dp0setup-deployment.bat -QtPath ".\build-qt\qtbase" -Config win10
|
||||
@%~dp0setup-deployment.bat -Config win10
|
||||
|
@ -1 +1 @@
|
||||
@%~dp0setup-deployment.bat -QtPath ".\build-qt-win7\qtbase" -Config win7
|
||||
@%~dp0setup-deployment.bat -Config win7
|
||||
|
@ -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%\
|
||||
|
Loading…
Reference in New Issue
Block a user