天天看点

批处理编译qt程序

rem @echo off

set PATHBAK=%PATH%

SET PATH=%PATHBAK%;:\Qt5.7.1\5.7\mingw53_32\bin;D:\Qt5.7.1\Tools\mingw530_32\bin;

set COMPLINE_PATH=..\compline\release\release

mkdir %COMPLINE_PATH%

cd %COMPLINE_PATH%

qmake.exe  .\..\..\..\SolutionManager\TestDemo.pro -r -spec win32-g++ "CONFIG+=release" "CONFIG+=qml_debug" "CONFIG+=MinGW" 

echo %cd%

cd ..

mingw32-make.exe -f TestDemo -j 4

cd %~dp0

rem rd /s /q ..\compline

pause

c++

继续阅读