build_appimage.sh | Light | Dark | Close
:: build64_latest_msvc.bat Copyright (C) 2023 Ingemar Ceicer
:: https://ceicer.eu
:: programming@ceicer.com
:: build64_latest_msvc.bat is free software:
:: you can redistribute it and/or modify
:: it under the terms of the
:: GNU General Public License as published by
:: the Free Software Foundation, version 3.
:: This program is distributed in the hope that it will be useful,
:: but WITHOUT ANY WARRANTY; without even the implied warranty of
:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
:: GNU General Public License for more details.
::EDIT
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
set PROFILE="downloadunpack.pro"
set QTVERSION="6.5.2"
set QMAKE="C:/Qt/%QTVERSION%/msvc2019_64/bin/qmake.exe"
set "PATH_TO_PRO_FILE=../code/"
set "MSVC=MSVC2019"
::END EDIT
mkdir build
cd build
%QMAKE% -project %PATH_TO_PRO_FILE%%PROFILE%
%QMAKE% "CONFIG+=debug" %PATH_TO_PRO_FILE%%PROFILE% -o Makefile -spec win32-msvc "CONFIG+=qtquickcompiler" "CONFIG+=debug"
nmake.exe
cd ..
rmdir /S /Q build
mkdir lib_Qt-%QTVERSION%_MSVC2019
copy /Y build-lib\* lib_Qt-%QTVERSION%_%MSVC%\
rmdir /S /Q build-lib
mkdir build
cd build
%QMAKE% -project %PATH_TO_PRO_FILE%%PROFILE%
%QMAKE% "CONFIG+=debug" %PATH_TO_PRO_FILE%%PROFILE% -o Makefile -spec win32-msvc "CONFIG+=qtquickcompiler" "CONFIG+=release"
nmake.exe
cd ..
rmdir /S /Q build
copy /Y build-lib\* lib_Qt-%QTVERSION%_%MSVC%\
rmdir /S /Q build-lib