Advertisement
Guest User

Untitled

a guest
Oct 26th, 2014
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.94 KB | None | 0 0
  1. ~/src2/qwt-6.1 > cat qwt_diff_r2055_r2048.log
  2. Index: playground/playground.pri
  3. ===================================================================
  4. --- playground/playground.pri (revision 2048)
  5. +++ playground/playground.pri (working copy)
  6. @@ -36,18 +36,8 @@
  7.  
  8.  
  9. QMAKE_RPATHDIR *= $${QWT_ROOT}/lib
  10. +qwtAddLibrary($${QWT_OUT_ROOT}/lib, qwt)
  11.  
  12. -contains(QWT_CONFIG, QwtFramework) {
  13. -
  14. - LIBS += -F$${QWT_OUT_ROOT}/lib
  15. -}
  16. -else {
  17. -
  18. - LIBS += -L$${QWT_OUT_ROOT}/lib
  19. -}
  20. -
  21. -qwtAddLibrary(qwt)
  22. -
  23. greaterThan(QT_MAJOR_VERSION, 4) {
  24.  
  25. QT += printsupport
  26. Index: qwtbuild.pri
  27. ===================================================================
  28. --- qwtbuild.pri (revision 2048)
  29. +++ qwtbuild.pri (working copy)
  30. @@ -70,17 +70,3 @@
  31. # are built in the release and debug subdirectories
  32. OBJECTS_DIR = obj
  33. }
  34. -
  35. -unix {
  36. -
  37. - exists( $${QMAKE_LIBDIR_QT}/libqwt.* ) {
  38. -
  39. - # On some Linux distributions the Qwt libraries are installed
  40. - # in the same directory as the Qt libraries. Unfortunately
  41. - # qmake always adds QMAKE_LIBDIR_QT at the beginning of the
  42. - # linker path, so that the installed libraries will be
  43. - # used instead of the local ones.
  44. -
  45. - error( "local build will conflict with $${QMAKE_LIBDIR_QT}/libqwt.*" )
  46. - }
  47. -}
  48. Index: textengines/mathml/qwtmathml.prf
  49. ===================================================================
  50. --- textengines/mathml/qwtmathml.prf (revision 2048)
  51. +++ textengines/mathml/qwtmathml.prf (working copy)
  52. @@ -8,6 +8,7 @@
  53. ################################################################
  54.  
  55. include ( ./qwtconfig.pri )
  56. +include ( ./qwtfunctions.pri )
  57.  
  58. contains(QWT_CONFIG, QwtDll) {
  59.  
  60. @@ -19,20 +20,10 @@
  61. contains(QWT_CONFIG, QwtFramework) {
  62.  
  63. INCLUDEPATH *= $${QWT_INSTALL_LIBS}/qwtmathml.framework/Headers
  64. - LIBS *= -F$${QWT_INSTALL_LIBS}
  65. }
  66. else {
  67.  
  68. INCLUDEPATH *= $${QWT_INSTALL_HEADERS}
  69. - LIBS *= -L$${QWT_INSTALL_LIBS}
  70. }
  71.  
  72. -INCLUDEPATH_QWTMATHML = $${INCLUDEPATH}
  73. -qtAddLibrary(qwtmathml)
  74. -
  75. -# we don't want qtAddLibrary to expand the
  76. -# include path, with directories, that might
  77. -# conflict with other installations of qwt
  78. -
  79. -INCLUDEPATH = $${INCLUDEPATH_QWTMATHML}
  80. -
  81. +qwtAddLibrary($${QWT_INSTALL_LIBS}, qwtmathml)
  82. Index: textengines/textengines.pri
  83. ===================================================================
  84. --- textengines/textengines.pri (revision 2048)
  85. +++ textengines/textengines.pri (working copy)
  86. @@ -32,15 +32,10 @@
  87. contains(QWT_CONFIG, QwtFramework) {
  88.  
  89. CONFIG += lib_bundle
  90. - LIBS += -F$${QWT_OUT_ROOT}/lib
  91. }
  92. -else {
  93.  
  94. - LIBS += -L$${QWT_OUT_ROOT}/lib
  95. -}
  96. +qwtAddLibrary($${QWT_OUT_ROOT}, qwt)
  97.  
  98. -qwtAddLibrary(qwt)
  99. -
  100. # Install directives
  101.  
  102. target.path = $${QWT_INSTALL_LIBS}
  103. Index: qwtfunctions.pri
  104. ===================================================================
  105. --- qwtfunctions.pri (revision 2048)
  106. +++ qwtfunctions.pri (working copy)
  107. @@ -35,8 +35,30 @@
  108.  
  109. defineTest(qwtAddLibrary) {
  110.  
  111. - LIB_NAME = $$1
  112. + LIB_PATH = $$1
  113. + LIB_NAME = $$2
  114.  
  115. + mac:contains(QWT_CONFIG, QwtFramework) {
  116. +
  117. + LIBS *= -F$${LIB_PATH}
  118. + }
  119. + else {
  120. +
  121. + unix:lessThan(QT_MAJOR_VERSION, 5) {
  122. +
  123. + # Many Linux distributions install Qwt in the same directory
  124. + # as the Qt libs and thus we need to prepend the path for the local build
  125. + # to avoid conflicting with the installed version.
  126. + # Qt5 qmake appends ( instead of prepending ) the path to the Qt libs
  127. + # to LIBS, but for Qt4 we need to use the QMAKE_LIBDIR_FLAGS.
  128. +
  129. + QMAKE_LIBDIR_FLAGS *= -L$${LIB_PATH}
  130. + }
  131. + else {
  132. + LIBS *= -L$${LIB_PATH}
  133. + }
  134. + }
  135. +
  136. unset(LINKAGE)
  137.  
  138. mac:contains(QWT_CONFIG, QwtFramework) {
  139. @@ -66,6 +88,7 @@
  140. LIBS += $$LINKAGE
  141. export(LIBS)
  142. export(QMAKE_LFLAGS)
  143. + export(QMAKE_LIBDIR_FLAGS)
  144.  
  145. return(true)
  146. }
  147. Index: designer/designer.pro
  148. ===================================================================
  149. --- designer/designer.pro (revision 2048)
  150. +++ designer/designer.pro (working copy)
  151. @@ -53,7 +53,6 @@
  152. contains(QWT_CONFIG, QwtDll) {
  153.  
  154. contains(QWT_CONFIG, QwtDesignerSelfContained) {
  155. -
  156. QWT_CONFIG += include_src
  157. }
  158.  
  159. @@ -86,18 +85,8 @@
  160. # into the plugin. Not supported on Windows !
  161.  
  162. QMAKE_RPATHDIR *= $${QWT_INSTALL_LIBS}
  163. + qwtAddLibrary($${QWT_OUT_ROOT}/lib, qwt)
  164.  
  165. - contains(QWT_CONFIG, QwtFramework) {
  166. -
  167. - LIBS += -F$${QWT_OUT_ROOT}/lib
  168. - }
  169. - else {
  170. -
  171. - LIBS += -L$${QWT_OUT_ROOT}/lib
  172. - }
  173. -
  174. - qwtAddLibrary(qwt)
  175. -
  176. contains(QWT_CONFIG, QwtDll) {
  177.  
  178. win32 {
  179. Index: qwt.prf
  180. ===================================================================
  181. --- qwt.prf (revision 2048)
  182. +++ qwt.prf (working copy)
  183. @@ -27,12 +27,11 @@
  184. contains(QWT_CONFIG, QwtFramework) {
  185.  
  186. INCLUDEPATH *= $${QWT_INSTALL_LIBS}/qwt.framework/Headers
  187. - LIBS *= -F$${QWT_INSTALL_LIBS}
  188. }
  189. else {
  190.  
  191. INCLUDEPATH *= $${QWT_INSTALL_HEADERS}
  192. - LIBS *= -L$${QWT_INSTALL_LIBS}
  193. }
  194.  
  195. -qwtAddLibrary(qwt)
  196. +# QMAKE_RPATHDIR *= $${QWT_INSTALL_LIBS}
  197. +qwtAddLibrary($${QWT_INSTALL_LIBS}, qwt)
  198. Index: examples/examples.pri
  199. ===================================================================
  200. --- examples/examples.pri (revision 2048)
  201. +++ examples/examples.pri (working copy)
  202. @@ -35,18 +35,8 @@
  203. }
  204.  
  205. QMAKE_RPATHDIR *= $${QWT_OUT_ROOT}/lib
  206. +qwtAddLibrary($${QWT_OUT_ROOT}/lib, qwt)
  207.  
  208. -contains(QWT_CONFIG, QwtFramework) {
  209. -
  210. - LIBS += -F$${QWT_OUT_ROOT}/lib
  211. -}
  212. -else {
  213. -
  214. - LIBS += -L$${QWT_OUT_ROOT}/lib
  215. -}
  216. -
  217. -qwtAddLibrary(qwt)
  218. -
  219. greaterThan(QT_MAJOR_VERSION, 4) {
  220.  
  221. QT += printsupport
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement