mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix Windows build for pdfium and poppler
This commit is contained in:
parent
4e3eb8439f
commit
74fbe4b994
13
dependencies/pdf_backend.pri
vendored
13
dependencies/pdf_backend.pri
vendored
@ -6,7 +6,7 @@ CONFIG(pdfium) {
|
|||||||
DEFINES += "USE_PDFIUM"
|
DEFINES += "USE_PDFIUM"
|
||||||
SOURCES += ../common/pdf_comic.cpp
|
SOURCES += ../common/pdf_comic.cpp
|
||||||
win32 {
|
win32 {
|
||||||
INCLUDEPATH += ../dependencies/pdfium/win/public
|
INCLUDEPATH += $$PWD/pdfium/win/public
|
||||||
contains(QMAKE_TARGET.arch, x86_64): {
|
contains(QMAKE_TARGET.arch, x86_64): {
|
||||||
LIBS += -L$$PWD/pdfium/win/x64 -lpdfium
|
LIBS += -L$$PWD/pdfium/win/x64 -lpdfium
|
||||||
} else {
|
} else {
|
||||||
@ -36,8 +36,15 @@ CONFIG(pdfkit) {
|
|||||||
|
|
||||||
CONFIG(poppler) {
|
CONFIG(poppler) {
|
||||||
win32 {
|
win32 {
|
||||||
LIBS += -Lpoppler/lib -lpoppler-qt5
|
contains(QMAKE_TARGET.arch, x86_64): {
|
||||||
INCLUDEPATH += poppler/include/qt5
|
error ("We currently don't ship precompiled poppler libraries for 64 bit builds")
|
||||||
|
}
|
||||||
|
INCLUDEPATH += $$PWD/poppler/include/qt5
|
||||||
|
LIBS += -L$$PWD/poppler/lib -lpoppler-qt5
|
||||||
|
#Add extra paths for dll dependencies so the executables don't crash when launching
|
||||||
|
#from QtCreator
|
||||||
|
LIBS += -L$$PWD/poppler/bin
|
||||||
|
LIBS += -L$$PWD/poppler/dependencies/bin
|
||||||
}
|
}
|
||||||
unix:!macx {
|
unix:!macx {
|
||||||
INCLUDEPATH += /usr/include/poppler/qt5
|
INCLUDEPATH += /usr/include/poppler/qt5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user