Adjust backend paths for prebuilt pdfium libraries.

This commit is contained in:
Felix Kauselmann 2017-04-16 18:29:16 +02:00
parent 4630198439
commit 2139e269d5

View File

@ -6,17 +6,17 @@ CONFIG(pdfium) {
DEFINES += "USE_PDFIUM"
SOURCES += ../common/pdf_comic.cpp
win32 {
INCLUDEPATH += ../dependencies/pdfium/public
INCLUDEPATH += ../dependencies/pdfium/win/public
contains(QMAKE_TARGET.arch, x86_64): {
LIBS += -L$$PWD/../dependencies/pdfium/x64 -lpdfium
LIBS += -L$$PWD/../dependencies/pdfium/win/x64 -lpdfium
} else {
LIBS += -L$$PWD/../dependencies/pdfium/x86 -lpdfium
LIBS += -L$$PWD/../dependencies/pdfium/win/x86 -lpdfium
}
}
unix {
macx {
LIBS += -L$$PWD/../dependencies/pdfium/macx/bin -lpdfium
INCLUDEPATH += $$PWD/../dependencies/pdfium/macx/include
INCLUDEPATH += $$PWD/../dependencies/pdfium/macx/public
}
!macx {
INCLUDEPATH += /usr/include/pdfium
@ -28,20 +28,20 @@ CONFIG(pdfium) {
CONFIG(pdfkit) {
!macx {
error (Pdfkit is macOS only)
} else {
DEFINES += "USE_PDFKIT"
OBJECTIVE_SOURCES += ../common/pdf_comic.mm
}
} else {
DEFINES += "USE_PDFKIT"
OBJECTIVE_SOURCES += ../common/pdf_comic.mm
}
}
CONFIG(poppler) {
win32 {
LIBS += -Lpoppler/lib -lpoppler-qt5
INCLUDEPATH += poppler/include/qt5
LIBS += -Lpoppler/lib -lpoppler-qt5
INCLUDEPATH += poppler/include/qt5
}
unix:!macx {
INCLUDEPATH += /usr/include/poppler/qt5
LIBS += -L/usr/lib -lpoppler-qt5
INCLUDEPATH += /usr/include/poppler/qt5
LIBS += -L/usr/lib -lpoppler-qt5
}
unix:macx {
error (Poppler backend is currently not supported on macOS)