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
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
+ }
}
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets printsupport
+ TARGET = qt5scintilla2
greaterThan(QT_MINOR_VERSION, 1) {
macx:QT += macextras
# Work around QTBUG-39300.
CONFIG -= android_install
+ TARGET = qt5scintillaplugin
+ LIBS += -lqt5scintilla2
} else {
CONFIG += designer
+ LIBS += -lqscintilla2
}
macx {