diff --git a/Makefile b/Makefile index e30c677..a168757 100644 --- a/Makefile +++ b/Makefile @@ -76,6 +76,6 @@ systray-x-app: cd ../.. ;\ mkdir -p app/build64 ;\ cd app/build64 ;\ - ../build.bat x86_64 5.15.2 ;\ + ../build.bat x86_64 6.8.2 ;\ cd ../.. endif diff --git a/app/build.bat b/app/build.bat index 48c7694..2d4ed03 100644 --- a/app/build.bat +++ b/app/build.bat @@ -41,6 +41,15 @@ if /I "%2"=="5.15.2" ( set SPEC=msvc2019_64 ) ) +if /I "%2"=="6.8.2" ( + set QT_VER=6.8.2 + if "%ARCH%"=="x86" ( + goto :error_not_supported + ) + if "%ARCH%"=="x86_amd64" ( + set SPEC=msvc2022_64 + ) +) if "%QT_VER%" == "" ( goto :usage ) @@ -55,6 +64,10 @@ if "%QT_VER%"=="5.15.2" ( call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH% ) +if "%QT_VER%"=="6.8.2" ( + call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH% +) + @REM Run qmake C:\Qt\%QT_VER%\%SPEC%\bin\qmake ..\SysTray-X\SysTray-X.pro -spec win32-msvc @@ -93,5 +106,10 @@ goto :end :usage echo Usage: build.bat ^< x86 ^| x86_64 ^> ^< Qt version ^> + goto :end + +:error_not_supported + echo Setup not supported^> + goto :end :end