mingw的
cd build ::设置jom环境 set PATH=C:\Qt\Qt5.15.2\Tools\mingw810_32\bin;%PATH% set PATH=C:\Qt\Qt5.15.2\5.15.2\mingw81_32\bin;%PATH% ::设置Qt环境 amd64_x86 或者 amd64 ::CALL "D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 echo vcvarsall finished ::清除 mingw32-make.exe clean ::qmake qmake xxx.pro -spec win32-g++ "CONFIG+=release" ::编译 mingw32-make -j20 -f Makefile.Release echo 编译完成 ::复制可执行文件 XCOPY release\iampos.exe ..\package_files\ /y echo 复制可执行文件到package_files |
msvc的
cd build ::设置jom环境 set PATH=D:\Qt\Qt5.13.2\Tools\QtCreator\bin;%PATH% set PATH=D:\Qt\Qt5.13.2\5.13.2\msvc2017_64\bin;%PATH% ::设置Qt环境 amd64_x86 或者 amd64 CALL "D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 echo vcvarsall finished ::清除 jom.exe -f Makefile.Release clean ::qmake qmake xxx.pro -spec win32-msvc jom.exe qmake_all ::编译 jom.exe -f Makefile.Release echo 编译完成 ::复制可执行文件 XCOPY release\iampos.exe ..\package_files\ /y echo 复制可执行文件到package_files |