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