This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 30th, 2011  |  syntax: None  |  size: 3.76 KB  |  views: 254  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #
  2. # qmake configuration for tess-generic-g++ with Qt Embedded
  3. #
  4.  
  5. # The following is slightly edited ffrom ../../common/g++.conf
  6.  
  7. QMAKE_CC                = i686-ros-gcc
  8. QMAKE_CFLAGS            += -pipe
  9. QMAKE_CFLAGS_DEPS       += -M
  10. QMAKE_CFLAGS_WARN_ON    += -Wall -W
  11. QMAKE_CFLAGS_WARN_OFF   += -w
  12. QMAKE_CFLAGS_RELEASE    += -O2
  13. QMAKE_CFLAGS_DEBUG      += -g
  14. QMAKE_CFLAGS_SHLIB      += -fPIC
  15. QMAKE_CFLAGS_STATIC_LIB += -fPIC
  16. QMAKE_CFLAGS_YACC       += -Wno-unused -Wno-parentheses
  17. QMAKE_CFLAGS_HIDESYMS   += -fvisibility=hidden
  18. QMAKE_CFLAGS_PRECOMPILE += -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
  19. QMAKE_CFLAGS_USE_PRECOMPILE += -include ${QMAKE_PCH_OUTPUT_BASE}
  20.  
  21. QMAKE_CXX               = i686-ros-g++
  22. QMAKE_CXXFLAGS          += $$QMAKE_CFLAGS
  23. QMAKE_CXXFLAGS_DEPS     += $$QMAKE_CFLAGS_DEPS
  24. QMAKE_CXXFLAGS_WARN_ON  += $$QMAKE_CFLAGS_WARN_ON
  25. QMAKE_CXXFLAGS_WARN_OFF += $$QMAKE_CFLAGS_WARN_OFF
  26. QMAKE_CXXFLAGS_RELEASE  += $$QMAKE_CFLAGS_RELEASE
  27. QMAKE_CXXFLAGS_DEBUG    += $$QMAKE_CFLAGS_DEBUG
  28. QMAKE_CXXFLAGS_SHLIB    += $$QMAKE_CFLAGS_SHLIB
  29. QMAKE_CXXFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_STATIC_LIB
  30. QMAKE_CXXFLAGS_YACC     += $$QMAKE_CFLAGS_YACC
  31. QMAKE_CXXFLAGS_HIDESYMS += $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
  32. QMAKE_CXXFLAGS_PRECOMPILE += -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
  33. QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
  34.  
  35. QMAKE_LINK              = i686-ros-g++
  36. QMAKE_LINK_SHLIB        = i686-ros-g++
  37. QMAKE_LINK_C            = i686-ros-gcc
  38. QMAKE_LINK_C_SHLIB      = i686-ros-gcc
  39. QMAKE_LFLAGS            +=
  40. QMAKE_LFLAGS_RELEASE    += -Wl,-O1
  41. QMAKE_LFLAGS_DEBUG      +=
  42. QMAKE_LFLAGS_APP        +=
  43. QMAKE_LFLAGS_SHLIB      += -shared
  44. QMAKE_LFLAGS_PLUGIN     += $$QMAKE_LFLAGS_SHLIB
  45. QMAKE_LFLAGS_SONAME     += -Wl,-soname,
  46. QMAKE_LFLAGS_THREAD     +=
  47. QMAKE_LFLAGS_NOUNDEF    += -Wl,--no-undefined
  48. QMAKE_LFLAGS_RPATH      = -Wl,-rpath,
  49.  
  50. QMAKE_PCH_OUTPUT_EXT    = .gch
  51.  
  52. # -Bsymbolic-functions (ld) support
  53. QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions
  54. QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list,
  55.  
  56.  
  57.  
  58. # The following is a slightly edited version of the combination of
  59. # ../../common/linux.conf and ../../common/qws.conf
  60.  
  61. QMAKE_CFLAGS_THREAD     += -D_REENTRANT
  62. QMAKE_CXXFLAGS_THREAD   += $$QMAKE_CFLAGS_THREAD
  63.  
  64. QMAKE_INCDIR          =
  65. QMAKE_LIBDIR          =
  66. QMAKE_INCDIR_X11      =
  67. QMAKE_LIBDIR_X11      =
  68. QMAKE_INCDIR_QT       = $$[QT_INSTALL_HEADERS]
  69. QMAKE_LIBDIR_QT       = $$[QT_INSTALL_LIBS]
  70. QMAKE_INCDIR_OPENGL   =
  71. QMAKE_LIBDIR_OPENGL   =
  72. QMAKE_INCDIR_OPENGL_ES1 =
  73. QMAKE_LIBDIR_OPENGL_ES1 =
  74. QMAKE_INCDIR_OPENGL_ES2 =
  75. QMAKE_LIBDIR_OPENGL_ES2 =
  76. QMAKE_INCDIR_EGL      =
  77. QMAKE_LIBDIR_EGL      =
  78. QMAKE_INCDIR_OPENVG   =
  79. QMAKE_LIBDIR_OPENVG   =
  80.  
  81. QMAKE_LIBS            =
  82. QMAKE_LIBS_DYNLOAD    =
  83. QMAKE_LIBS_X11        =
  84. QMAKE_LIBS_X11SM      =
  85. QMAKE_LIBS_NIS        =
  86. QMAKE_LIBS_EGL        =
  87. QMAKE_LIBS_OPENGL     =
  88. QMAKE_LIBS_OPENGL_QT  =
  89. QMAKE_LIBS_OPENGL_ES1 =
  90. QMAKE_LIBS_OPENGL_ES2 =
  91. QMAKE_LIBS_OPENVG     =
  92. QMAKE_LIBS_THREAD     =
  93.  
  94. QMAKE_MOC             = $$[QT_INSTALL_BINS]/moc
  95. QMAKE_UIC             = $$[QT_INSTALL_BINS]/uic
  96.  
  97. QMAKE_AR              = ar cqs
  98. QMAKE_OBJCOPY         = objcopy
  99. QMAKE_RANLIB          =
  100.  
  101. QMAKE_TAR             = tar -cf
  102. QMAKE_GZIP            = gzip -9f
  103.  
  104. QMAKE_COPY            = cp -f
  105. QMAKE_COPY_FILE       = $(COPY)
  106. QMAKE_COPY_DIR        = $(COPY) -r
  107. QMAKE_MOVE            = mv -f
  108. QMAKE_DEL_FILE        = rm -f
  109. QMAKE_DEL_DIR         = rmdir
  110. QMAKE_STRIP           = strip
  111. QMAKE_STRIPFLAGS_LIB += --strip-unneeded
  112. QMAKE_CHK_DIR_EXISTS  = test -d
  113. QMAKE_MKDIR           = mkdir -p
  114. QMAKE_INSTALL_FILE    = install -m 644 -p
  115. QMAKE_INSTALL_PROGRAM = install -m 755 -p
  116.  
  117. include(../../common/unix.conf)
  118.  
  119. MAKEFILE_GENERATOR      = UNIX
  120. TARGET_PLATFORM         = unix
  121. TEMPLATE                = app
  122. CONFIG                 += qt warn_on release link_prl
  123. QT                     += core gui network
  124. QMAKE_INCREMENTAL_STYLE = sublib
clone this paste RAW Paste Data