http://blog.csdn.net/x356982611/article/details/62042318
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-qt5/qt-5.3.0-static-qmake-conf.patch
http://www.cnblogs.com/Romi/archive/2012/09/01/2666861.html
REM ********** Initialize env for msvc 2015 cl compiler **********
SET PATH=C:\Windows;C:\Windows\system32
REM Set up \Microsoft Visual Studio 2015, where <arch> is amd64, x86, etc.
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
set CL=/utf-8
REM ********** Update include & lib to support xp win sdk 7.1A **********
REM SET PATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%
REM SET INCLUDE=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include;%INCLUDE%
REM SET LIB=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib;%LIB%
REM SET CL=/D_USING_V140_SDK71_;%CL%
REM ********** 3rd party build tools binaries: ruby, perl, python **********
SET PATH=C:\Perl64\bin;C:\Python27;%PATH%
SET INCLUDE=H:\RedisDesktopManager\3rdparty\qredisclient\3rdparty\windows\rmt_openssl.1.0.2.5\build\native\include\v140\x64\Release\static;%INCLUDE%
SET INCLUDE=H:\RedisDesktopManager\3rdparty\qredisclient\3rdparty\windows\rmt_openssl.1.0.2.5\build\native\include;%INCLUDE%
SET LIB=H:\RedisDesktopManager\3rdparty\qredisclient\3rdparty\windows\rmt_openssl.1.0.2.5\build\native\lib\v140\x64\Release\static;%LIB%
REM ********** Set up qt source env **********
SET _ROOT=C:\qtsrc
SET PATH=C:\Qt\Qt5.8.0\Tools\QtCreator\bin;%PATH%
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
REM Uncomment the below line when using a git checkout of the source repository
REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
SET QMAKESPEC=win32-msvc
REM Generate makefile
configure -prefix %CD%\qtbase -platform win32-msvc2015 -static -release -opensource -confirm-license -no-dbus -opengl desktop -nomake examples -nomake tests -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtlocation -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtsvg -skip qttools -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtxmlpatterns -sql-sqlite -ssl