Add no_pdf config options to all builds

This commit is contained in:
Felix Kauselmann
2016-11-22 19:41:00 +01:00
parent 595ceecb62
commit 01218de82c
3 changed files with 37 additions and 9 deletions

View File

@ -48,9 +48,13 @@ win32 {
} else {
LIBS += -L../dependencies/poppler/lib -loleaut32 -lole32 -lshell32 -lopengl32 -lglu32 -luser32
}
LIBS += -lpoppler-qt5
INCLUDEPATH += ../dependencies/poppler/include/qt5
!CONFIG(no_pdf) {
LIBS += -lpoppler-qt5
INCLUDEPATH += ../dependencies/poppler/include/qt5
}
else {
DEFINES += "NO_PDF"
}
QMAKE_CXXFLAGS_RELEASE += /MP /Ob2 /Oi /Ot /GT /GL
QMAKE_LFLAGS_RELEASE += /LTCG
@ -94,7 +98,12 @@ macx{
#}
#TODO: pdfium support
!CONFIG(no_pdf) {
DEFINES += "USE_PDFKIT"
}
else {
DEFINES += "NO_PDF"
}
CONFIG += objective_c
QT += macextras gui-private