configure -static -platform win32-g++ -prefix "C:\Qt\Qt5.3.2_Static" -release -opensource -confirm-license -c++11 -nomake examples -nomake tests -opengl desktop -no-angle -no-vcproj -qt-sql-sqlite
QMAKE_LFLAGS_DLL = -shared
## qmake configuration for win32-g++## Written for MinGW / gcc 4.6 or higher## Cross compile example for i686-w64-mingw32-g++:# configure -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32-#load(device_config)MAKEFILE_GENERATOR = MINGWQMAKE_PLATFORM = win32 mingwCONFIG += debug_and_release debug_and_release_target precompile_headerDEFINES += UNICODEQMAKE_COMPILER_DEFINES += __GNUC__ WIN32QMAKE_EXT_OBJ = .oQMAKE_EXT_RES = _res.oQMAKE_COMPILER = gccQMAKE_CC = $${CROSS_COMPILE}gccQMAKE_LEX = flexQMAKE_LEXFLAGS =QMAKE_YACC = byaccQMAKE_YACCFLAGS = -dQMAKE_CFLAGS = -pipe -fno-keep-inline-dllexportQMAKE_CFLAGS_DEPS = -MQMAKE_CFLAGS_WARN_ON = -Wall -WextraQMAKE_CFLAGS_WARN_OFF = -wQMAKE_CFLAGS_RELEASE = -O2QMAKE_CFLAGS_DEBUG = -gQMAKE_CFLAGS_YACC = -Wno-unused -Wno-parenthesesQMAKE_CFLAGS_SPLIT_SECTIONS = -ffunction-sectionsQMAKE_CFLAGS_SSE2 = -msse2 -mstackrealignQMAKE_CFLAGS_SSE3 = -msse3QMAKE_CFLAGS_SSSE3 = -mssse3QMAKE_CFLAGS_SSE4_1 = -msse4.1QMAKE_CFLAGS_SSE4_2 = -msse4.2QMAKE_CFLAGS_AVX = -mavxQMAKE_CFLAGS_AVX2 = -mavx2QMAKE_CFLAGS_IWMMXT = -mcpu=iwmmxtQMAKE_CFLAGS_NEON = -mfpu=neonQMAKE_CXX = $${CROSS_COMPILE}g++QMAKE_CXXFLAGS = $$QMAKE_CFLAGSQMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPSQMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ONQMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFFQMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASEQMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUGQMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACCQMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREADQMAKE_CXXFLAGS_RTTI_ON = -frttiQMAKE_CXXFLAGS_RTTI_OFF = -fno-rttiQMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -mthreadsQMAKE_CXXFLAGS_EXCEPTIONS_OFF = -fno-exceptionsQMAKE_CXXFLAGS_CXX11 = -std=c++0xQMAKE_CXXFLAGS_SPLIT_SECTIONS = $$QMAKE_CFLAGS_SPLIT_SECTIONSQMAKE_INCDIR =QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $srcQMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $srcQMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<QMAKE_LINK = $${CROSS_COMPILE}g++QMAKE_LINK_C = $${CROSS_COMPILE}gccQMAKE_LFLAGS = -static-libgcc -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-relocQMAKE_LFLAGS_EXCEPTIONS_ON = -mthreadsQMAKE_LFLAGS_EXCEPTIONS_OFF =QMAKE_LFLAGS_RELEASE = -Wl,-sQMAKE_LFLAGS_DEBUG =QMAKE_LFLAGS_CONSOLE = -Wl,-subsystem,consoleQMAKE_LFLAGS_WINDOWS = -Wl,-subsystem,windowsQMAKE_LFLAGS_DLL = -sharedQMAKE_LFLAGS_CXX11 =QMAKE_LFLAGS_GCSECTIONS = -Wl,--gc-sectionsQMAKE_LINK_OBJECT_MAX = 10QMAKE_LINK_OBJECT_SCRIPT = object_scriptQMAKE_PREFIX_STATICLIB = libQMAKE_EXTENSION_STATICLIB = aQMAKE_LIBS =QMAKE_LIBS_CORE = -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32QMAKE_LIBS_GUI = -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lws2_32 -lole32 -luuid -luser32 -ladvapi32QMAKE_LIBS_NETWORK = -lws2_32QMAKE_LIBS_OPENGL = -lglu32 -lopengl32 -lgdi32 -luser32QMAKE_LIBS_OPENGL_ES2 = -llibEGL -llibGLESv2 -lgdi32 -luser32QMAKE_LIBS_OPENGL_ES2_DEBUG = -llibEGLd -llibGLESv2d -lgdi32 -luser32QMAKE_LIBS_COMPAT = -ladvapi32 -lshell32 -lcomdlg32 -luser32 -lgdi32 -lws2_32QMAKE_LIBS_QT_ENTRY = -lmingw32 -lqtmain!isEmpty(QMAKE_SH) { MINGW_IN_SHELL = 1 QMAKE_DIR_SEP = / QMAKE_DIRLIST_SEP = : include(../common/shell-unix.conf) # Because install's ability to set permissions is not relevant on Windows, # and git's msys does not provide it to start with. QMAKE_INSTALL_FILE = cp -f QMAKE_INSTALL_PROGRAM = cp -f} else { include(../common/shell-win32.conf)}QMAKE_IDL = midlQMAKE_LIB = $${CROSS_COMPILE}ar -ruQMAKE_RC = $${CROSS_COMPILE}windresQMAKE_STRIP = $${CROSS_COMPILE}stripQMAKE_STRIPFLAGS_LIB += --strip-unneededQMAKE_OBJCOPY = $${CROSS_COMPILE}objcopyQMAKE_NM = $${CROSS_COMPILE}nm -Pload(qt_config)
for %%C in (cl.exe icl.exe g++.exe perl.exe) do set %%C=%%~$PATH:Cif "%perl.exe%" == "" ( echo Perl not found in PATH. Aborting. >&2 exit /b 1)