mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Adjust backend paths for prebuilt pdfium libraries.
This commit is contained in:
parent
4630198439
commit
2139e269d5
24
dependencies/pdf_backend.pri
vendored
24
dependencies/pdf_backend.pri
vendored
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user