SHARE
TWEET

qmake.conf

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