daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Dec 3rd, 2012 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # Base qmake configuration for QCC on *nix-systems
  3. #
  4.  
  5. include(qcc-base.conf)
  6.  
  7. QMAKE_LFLAGS_SHLIB  += -shared
  8. QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB
  9. QMAKE_LFLAGS_SONAME += -Wl,-soname,
  10. QMAKE_LFLAGS_THREAD +=
  11. QMAKE_LFLAGS_RPATH   = -Wl,-rpath,
  12.  
  13. # -Bsymbolic-functions (ld) support
  14. QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions
  15. QMAKE_LFLAGS_DYNAMIC_LIST   = -Wl,--dynamic-list,
  16.  
  17. # Generic options for all BlackBerry/QNX qcc mkspecs
  18. QMAKE_CFLAGS_THREAD     = -D_REENTRANT
  19. QMAKE_CXXFLAGS_THREAD   = $$QMAKE_CFLAGS_THREAD
  20. QMAKE_COMPILER_DEFINES  += __QNXNTO__
  21.  
  22. QMAKE_LIBS              = -lm
  23. QMAKE_LIBS_NETWORK      = -lsocket
  24.  
  25. # OpenGL libraries have a dependency on libEGL
  26. QMAKE_LIBS_OPENGL_ES1   = -lGLES_CM -lEGL
  27. QMAKE_LIBS_OPENGL_ES2   = -lGLESv2 -lEGL
  28.  
  29. # When using this mkspec to build Qt apps (ie - not Qt itself) we want to build
  30. # against the NDK's target directory which is referenced by the QNX_TARGET environment
  31. # variable, and which is guaranteed by the NDK to be set.
  32. QNX_DIR = $$(QNX_TARGET)
  33.  
  34. isEmpty(QNX_DIR) {
  35.     error(QNX_TARGET environment variable not set)
  36. }
  37.  
  38. QMAKE_INCDIR            = $${QNX_DIR}/usr/include $${QNX_DIR}/usr/include/freetype2
  39. QMAKE_LIBDIR            = $${QNX_DIR}/$${QNX_CPUDIR}/lib $${QNX_DIR}/$${QNX_CPUDIR}/usr/lib
  40. QMAKE_LFLAGS           += -Wl,-rpath-link,$${QNX_DIR}/$${QNX_CPUDIR}/lib -Wl,-rpath-link,$${QNX_DIR}/$
  41.  
  42. ${QNX_CPUDIR}/usr/lib
  43.  
  44. QMAKE_INCDIR_QT         = $$[QT_INSTALL_HEADERS]
  45. QMAKE_LIBDIR_QT         = $$[QT_INSTALL_LIBS]
  46. QMAKE_MOC               = $$[QT_INSTALL_BINS]/moc
  47. QMAKE_UIC               = $$[QT_INSTALL_BINS]/uic
  48. QMAKE_RCC               = $$[QT_INSTALL_BINS]/rcc
  49.  
  50. QMAKE_LINK_C            = $$QMAKE_CC
  51. QMAKE_LINK_C_SHLIB      = $$QMAKE_CC
  52.  
  53. QMAKE_LINK              = $$QMAKE_CXX
  54. QMAKE_LINK_SHLIB        = $$QMAKE_CXX
  55.  
  56. QMAKE_TAR               = tar -cf
  57. QMAKE_GZIP              = gzip -9f
  58.  
  59. QMAKE_COPY              = cp -f
  60. QMAKE_COPY_FILE         = $(COPY)
  61. QMAKE_COPY_DIR          = $(COPY) -r
  62. QMAKE_MOVE              = mv -f
  63. QMAKE_DEL_FILE          = rm -f
  64. QMAKE_DEL_DIR           = rmdir
  65. QMAKE_CHK_DIR_EXISTS    = test -d
  66. QMAKE_MKDIR             = mkdir -p
  67. QMAKE_STRIPFLAGS_LIB    += --strip-unneeded
  68. QMAKE_CHK_DIR_EXISTS    = test -d
  69. QMAKE_MKDIR             = mkdir -p
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top