Fix compilation with pdfium on windows

This commit is contained in:
Felix Kauselmann
2017-02-05 16:41:11 +01:00
parent a005846098
commit d5f09872a4
3 changed files with 24 additions and 8 deletions

View File

@ -54,8 +54,8 @@ win32 {
INCLUDEPATH += ../dependencies/poppler/include/qt5
} else {
DEFINES += "USE_PDFIUM"
LIBS += -L../dependencies/pdfium/x86 -lpdfium
INCLUDEPATH += ../dependencies/pdfium/public
LIBS += -L$$PWD../dependencies/pdfium/x86 -lpdfium
INCLUDEPATH += $$PWD../dependencies/pdfium/public
}
} else {
DEFINES += "NO_PDF"
@ -208,6 +208,10 @@ SOURCES += ../common/comic.cpp \
../common/scroll_management.cpp \
../common/opengl_checker.cpp
CONFIG(pdfium) {
SOURCES+= ../common/pdf_comic.cpp
}
!CONFIG(no_opengl) {
CONFIG(legacy_gl_widget) {
message("using legacy YACReaderFlowGL (QGLWidget) source code")