Added XQilla (NOT WORKING).
[fedora-mingw.git] / qt-win / qmake.conf
1 #\r
2 # qmake configuration for fedora-win32-cross\r
3 # (Fedora Windows cross-compiler)\r
4 # by Richard W.M. Jones (rjones@redhat.com)\r
5 #\r
6 # Written for MinGW\r
7 #\r
8 \r
9 MAKEFILE_GENERATOR      = MINGW\r
10 TEMPLATE                = app\r
11 CONFIG                  += qt warn_on release link_prl copy_dir_files debug_and_release debug_and_release_target precompile_header\r
12 QT                      += core gui\r
13 DEFINES                 += UNICODE QT_LARGEFILE_SUPPORT\r
14 QMAKE_COMPILER_DEFINES  += __GNUC__ WIN32\r
15 \r
16 QMAKE_EXT_OBJ           = .o\r
17 QMAKE_EXT_RES           = _res.o\r
18 \r
19 QMAKE_CC                = i686-pc-mingw32-gcc\r
20 QMAKE_LEX               = flex\r
21 QMAKE_LEXFLAGS          =\r
22 QMAKE_YACC              = byacc\r
23 QMAKE_YACCFLAGS         = -d\r
24 QMAKE_CFLAGS            = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 --param=ssp-buffer-size=4 -mms-bitfields\r
25 QMAKE_CFLAGS_DEPS       = -M\r
26 QMAKE_CFLAGS_WARN_ON    = -Wall\r
27 QMAKE_CFLAGS_WARN_OFF   = -w\r
28 QMAKE_CFLAGS_RELEASE    = -O2\r
29 QMAKE_CFLAGS_DEBUG      = -g\r
30 QMAKE_CFLAGS_YACC       = -Wno-unused -Wno-parentheses\r
31 \r
32 QMAKE_CXX               = i686-pc-mingw32-g++\r
33 QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS\r
34 QMAKE_CXXFLAGS_DEPS     = $$QMAKE_CFLAGS_DEPS\r
35 QMAKE_CXXFLAGS_WARN_ON  = $$QMAKE_CFLAGS_WARN_ON\r
36 QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF\r
37 QMAKE_CXXFLAGS_RELEASE  = $$QMAKE_CFLAGS_RELEASE\r
38 QMAKE_CXXFLAGS_DEBUG    = $$QMAKE_CFLAGS_DEBUG\r
39 QMAKE_CXXFLAGS_YACC     = $$QMAKE_CFLAGS_YACC\r
40 QMAKE_CXXFLAGS_THREAD   = $$QMAKE_CFLAGS_THREAD\r
41 QMAKE_CXXFLAGS_RTTI_ON  = -frtti\r
42 QMAKE_CXXFLAGS_RTTI_OFF = -fno-rtti\r
43 QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -mthreads\r
44 QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -fno-exceptions\r
45 \r
46 QMAKE_INCDIR            =\r
47 #QMAKE_INCDIR_QT                = $$[QT_INSTALL_HEADERS]\r
48 QMAKE_INCDIR_QT         = /usr/i686-pc-mingw32/sys-root/mingw/include\r
49 #QMAKE_LIBDIR_QT                = $$[QT_INSTALL_LIBS]\r
50 QMAKE_LIBDIR_QT         = /usr/i686-pc-mingw32/sys-root/mingw/lib\r
51 \r
52 QMAKE_RUN_CC            = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src\r
53 QMAKE_RUN_CC_IMP        = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<\r
54 QMAKE_RUN_CXX           = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src\r
55 QMAKE_RUN_CXX_IMP       = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<\r
56 \r
57 QMAKE_LINK              = i686-pc-mingw32-g++\r
58 QMAKE_LFLAGS            = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc\r
59 QMAKE_LFLAGS_EXCEPTIONS_ON = -mthreads -Wl\r
60 QMAKE_LFLAGS_EXCEPTIONS_OFF =\r
61 QMAKE_LFLAGS_RELEASE    = -Wl,-s\r
62 QMAKE_LFLAGS_DEBUG      =\r
63 QMAKE_LFLAGS_CONSOLE    = -Wl,-subsystem,console\r
64 QMAKE_LFLAGS_WINDOWS    = -Wl,-subsystem,windows\r
65 QMAKE_LFLAGS_DLL        = -shared\r
66 QMAKE_LINK_OBJECT_MAX   = 10\r
67 QMAKE_LINK_OBJECT_SCRIPT= object_script\r
68 \r
69 \r
70 QMAKE_LIBS              =\r
71 QMAKE_LIBS_CORE         = -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32\r
72 QMAKE_LIBS_GUI          = -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32\r
73 QMAKE_LIBS_NETWORK      = -lws2_32\r
74 QMAKE_LIBS_OPENGL       = -lopengl32 -lglu32 -lgdi32 -luser32\r
75 QMAKE_LIBS_COMPAT       = -ladvapi32 -lshell32 -lcomdlg32 -luser32 -lgdi32 -lws2_32\r
76 QMAKE_LIBS_QT_ENTRY     = -lmingw32 -lqtmain\r
77 \r
78 QMAKE_DIR_SEP         = /\r
79 QMAKE_COPY            = cp -f\r
80 QMAKE_COPY_FILE       = $(COPY)\r
81 QMAKE_COPY_DIR        = $(COPY) -a\r
82 QMAKE_MOVE            = mv -f\r
83 QMAKE_DEL_FILE        = rm -f\r
84 QMAKE_DEL_DIR         = rmdir\r
85 QMAKE_STRIP           = strip\r
86 QMAKE_STRIPFLAGS_LIB += --strip-unneeded\r
87 QMAKE_INSTALL_FILE    = install -m 644 -p\r
88 QMAKE_INSTALL_PROGRAM = install -m 755 -p\r
89 \r
90 # "qmake -win32" always appears to generate code like this:\r
91 #   $(CHK_DIR_EXISTS) somedir $(MKDIR) somedir\r
92 # We can't write a Unix macro that is compatible, so we have to hack it:\r
93 QMAKE_CHK_DIR_EXISTS  = mkdir -p\r
94 QMAKE_MKDIR           = \r
95 \r
96 QMAKE_MOC               = moc-qt4\r
97 QMAKE_UIC               = uic-qt4\r
98 QMAKE_IDC               = idc\r
99 \r
100 QMAKE_IDL               = midl\r
101 QMAKE_LIB               = i686-pc-mingw32-ar -ru\r
102 QMAKE_RC                = i686-pc-mingw32-windres\r
103 QMAKE_ZIP               = zip -r -9\r
104 \r
105 QMAKE_STRIP             = strip\r
106 QMAKE_STRIPFLAGS_LIB    += --strip-unneeded\r
107 load(qt_config)\r