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"
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user