source: branches/vendor/trolltech/qt/current/mkspecs/win32-g++/qmake.conf @ 2

Last change on this file since 2 was 2, checked in by Dmitry A. Kuminov, 12 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 3.2 KB
Line 
1#
2# qmake configuration for win32-g++
3#
4# Written for MinGW
5#
6
7MAKEFILE_GENERATOR      = MINGW
8TEMPLATE                = app
9CONFIG                  += qt warn_on release link_prl copy_dir_files debug_and_release debug_and_release_target precompile_header
10QT                      += core gui
11DEFINES                 += UNICODE QT_LARGEFILE_SUPPORT
12QMAKE_COMPILER_DEFINES  += __GNUC__ WIN32
13
14QMAKE_EXT_OBJ           = .o
15QMAKE_EXT_RES           = _res.o
16
17QMAKE_CC                = gcc
18QMAKE_LEX               = flex
19QMAKE_LEXFLAGS          =
20QMAKE_YACC              = byacc
21QMAKE_YACCFLAGS         = -d
22QMAKE_CFLAGS            =
23QMAKE_CFLAGS_DEPS       = -M
24QMAKE_CFLAGS_WARN_ON    = -Wall
25QMAKE_CFLAGS_WARN_OFF   = -w
26QMAKE_CFLAGS_RELEASE    = -O2
27QMAKE_CFLAGS_DEBUG      = -g
28QMAKE_CFLAGS_YACC       = -Wno-unused -Wno-parentheses
29
30QMAKE_CXX               = g++
31QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS
32QMAKE_CXXFLAGS_DEPS     = $$QMAKE_CFLAGS_DEPS
33QMAKE_CXXFLAGS_WARN_ON  = $$QMAKE_CFLAGS_WARN_ON
34QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
35QMAKE_CXXFLAGS_RELEASE  = $$QMAKE_CFLAGS_RELEASE
36QMAKE_CXXFLAGS_DEBUG    = $$QMAKE_CFLAGS_DEBUG
37QMAKE_CXXFLAGS_YACC     = $$QMAKE_CFLAGS_YACC
38QMAKE_CXXFLAGS_THREAD   = $$QMAKE_CFLAGS_THREAD
39QMAKE_CXXFLAGS_RTTI_ON  = -frtti
40QMAKE_CXXFLAGS_RTTI_OFF = -fno-rtti
41QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -mthreads
42QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -fno-exceptions
43
44QMAKE_INCDIR            =
45QMAKE_INCDIR_QT         = $$[QT_INSTALL_HEADERS]
46QMAKE_LIBDIR_QT         = $$[QT_INSTALL_LIBS]
47
48QMAKE_RUN_CC            = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src
49QMAKE_RUN_CC_IMP        = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
50QMAKE_RUN_CXX           = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src
51QMAKE_RUN_CXX_IMP       = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
52
53QMAKE_LINK              = g++
54QMAKE_LINK_C            = gcc
55QMAKE_LFLAGS            = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
56QMAKE_LFLAGS_EXCEPTIONS_ON = -mthreads -Wl
57QMAKE_LFLAGS_EXCEPTIONS_OFF =
58QMAKE_LFLAGS_RELEASE    = -Wl,-s
59QMAKE_LFLAGS_DEBUG      =
60QMAKE_LFLAGS_CONSOLE    = -Wl,-subsystem,console
61QMAKE_LFLAGS_WINDOWS    = -Wl,-subsystem,windows
62QMAKE_LFLAGS_DLL        = -shared
63QMAKE_LINK_OBJECT_MAX   = 10
64QMAKE_LINK_OBJECT_SCRIPT= object_script
65
66
67QMAKE_LIBS              =
68QMAKE_LIBS_CORE         = -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
69QMAKE_LIBS_GUI          = -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32
70QMAKE_LIBS_NETWORK      = -lws2_32
71QMAKE_LIBS_OPENGL       = -lopengl32 -lglu32 -lgdi32 -luser32
72QMAKE_LIBS_COMPAT       = -ladvapi32 -lshell32 -lcomdlg32 -luser32 -lgdi32 -lws2_32
73QMAKE_LIBS_QT_ENTRY     = -lmingw32 -lqtmain
74
75!isEmpty(QMAKE_SH) {
76    MINGW_IN_SHELL      = 1
77        QMAKE_DIR_SEP           = /
78        QMAKE_COPY              = cp
79        QMAKE_COPY_DIR          = xcopy /s /q /y /i
80        QMAKE_MOVE              = mv
81        QMAKE_DEL_FILE          = rm
82        QMAKE_MKDIR             = mkdir
83        QMAKE_DEL_DIR           = rmdir
84    QMAKE_CHK_DIR_EXISTS = test -d
85} else {
86        QMAKE_COPY              = copy /y
87        QMAKE_COPY_DIR          = xcopy /s /q /y /i
88        QMAKE_MOVE              = move
89        QMAKE_DEL_FILE          = del
90        QMAKE_MKDIR             = mkdir
91        QMAKE_DEL_DIR           = rmdir
92    QMAKE_CHK_DIR_EXISTS        = if not exist
93}
94
95QMAKE_MOC               = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}moc.exe
96QMAKE_UIC               = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}uic.exe
97QMAKE_IDC               = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}idc.exe
98
99QMAKE_IDL               = midl
100QMAKE_LIB               = ar -ru
101QMAKE_RC                = windres
102QMAKE_ZIP               = zip -r -9
103
104QMAKE_STRIP             = strip
105QMAKE_STRIPFLAGS_LIB    += --strip-unneeded
106load(qt_config)
Note: See TracBrowser for help on using the repository browser.