qt5_libname
authorDebian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Mon, 22 Sep 2014 02:09:22 +0000 (03:09 +0100)
committerScott Kitterman <scott@kitterman.com>
Mon, 22 Sep 2014 02:09:22 +0000 (03:09 +0100)
Rename library when built with Qt5 for co-installability.  Discussed with
upstream, but not reviewed as they aren't particularly interested in it.

Gbp-Pq: Name qt5_libname.patch

Qt4Qt5/features/qscintilla2.prf
Qt4Qt5/qscintilla.pro
designer-Qt4Qt5/designer.pro

index e91e3beb54d5dae9043c6fffec1a73bffa1fb0e7..3777cc94f7eb54c83c9cfde2b9f600c3dd87f8df 100644 (file)
@@ -17,9 +17,18 @@ CONFIG(debug, debug|release) {
         win32: {
             LIBS += -lqscintilla2d
         } else {
-            LIBS += -lqscintilla2
+            greaterThan(QT_MAJOR_VERSION, 4) {
+                LIBS += -lqt5scintilla2
+            } else {
+                LIBS += -lqscintilla2
+            }
         }
     }
 } else {
+    greaterThan(QT_MAJOR_VERSION, 4) {
+        LIBS += -lqt5scintilla2
+        }
+        else {
     LIBS += -lqscintilla2
+        }
 }
index c47298812242581b2e467540177806f9e287dd5c..854d0a0f7aa5ce14cb5a3ee38eac53fa065fa5af 100644 (file)
@@ -41,6 +41,7 @@ greaterThan(QT_MAJOR_VERSION, 3) {
 
 greaterThan(QT_MAJOR_VERSION, 4) {
        QT += widgets printsupport
+       TARGET = qt5scintilla2
 
     greaterThan(QT_MINOR_VERSION, 1) {
            macx:QT += macextras
index e3432ff461513791824874792d96226e1a956aaf..4f4d49087afae398233028e8b97c4f0922f20f60 100644 (file)
@@ -11,8 +11,11 @@ greaterThan(QT_MAJOR_VERSION, 4) {
 
     # Work around QTBUG-39300.
     CONFIG -= android_install
+    TARGET = qt5scintillaplugin
+    LIBS += -lqt5scintilla2
 } else {
     CONFIG += designer
+    LIBS += -lqscintilla2
 }
 
 macx {