Fix to make debug builds correctly link against qscintilla on Mac/Windows

master
Marius Kintel 2014-07-17 15:09:50 -04:00
parent 6270441341
commit 597cdbe7b3
2 changed files with 17 additions and 1 deletions

12
qscintilla2.prf Normal file
View File

@ -0,0 +1,12 @@
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets printsupport
greaterThan(QT_MINOR_VERSION, 1) {
macx:QT += macextras
}
}
INCLUDEPATH += $$[QT_INSTALL_HEADERS]
LIBS += -L$$[QT_INSTALL_LIBS]
LIBS += -lqscintilla2

View File

@ -2,5 +2,9 @@ scintilla {
HEADERS += src/scintillaeditor.h
SOURCES += src/scintillaeditor.cpp
DEFINES += USE_SCINTILLA_EDITOR
CONFIG += qscintilla2
# The qscintilla2.prf which ships with QScintilla is broken for Mac/Windows
# debug builds, so we supply our own
win32|macx: include(qscintilla2.prf)
else: CONFIG += qscintilla2
}