mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 13:34:44 -04:00
@ -49,8 +49,18 @@ win32 {
|
||||
}
|
||||
|
||||
!CONFIG(no_pdf) {
|
||||
LIBS += -lpoppler-qt5
|
||||
INCLUDEPATH += ../dependencies/poppler/include/qt5
|
||||
!CONFIG(pdfium) {
|
||||
LIBS += -lpoppler-qt5
|
||||
INCLUDEPATH += ../dependencies/poppler/include/qt5
|
||||
} else {
|
||||
DEFINES += "USE_PDFIUM"
|
||||
contains(QMAKE_TARGET.arch, x86_64): {
|
||||
LIBS += -L$$PWD/../dependencies/pdfium/x64 -lpdfium
|
||||
} else {
|
||||
LIBS += -L$$PWD/../dependencies/pdfium/x86 -lpdfium
|
||||
}
|
||||
INCLUDEPATH += ../dependencies/pdfium/public
|
||||
}
|
||||
} else {
|
||||
DEFINES += "NO_PDF"
|
||||
}
|
||||
@ -66,13 +76,15 @@ unix:!macx{
|
||||
INCLUDEPATH += /usr/include/poppler/qt5
|
||||
LIBS += -L/usr/lib -lpoppler-qt5
|
||||
} else {
|
||||
#static pdfium libraries have to be included *before* dynamic libraries
|
||||
DEFINES += "USE_PDFIUM"
|
||||
INCLUDEPATH += /usr/include/pdfium
|
||||
LIBS += -L/usr/lib/pdfium -Wl,--start-group -lpdfium -lfpdfapi -lfxge -lfpdfdoc \
|
||||
-lfxcrt -lfx_agg -lfxcodec -lfx_lpng -lfx_libopenjpeg -lfx_lcms2 -ljpeg \
|
||||
-lfx_zlib -lfdrm -lfxedit -lformfiller -lpdfwindow -lpdfium -lbigint -ljavascript \
|
||||
-lfxedit -Wl,--end-group -lfreetype
|
||||
LIBS += -L/usr/lib/pdfium -lpdfium -lfreetype
|
||||
|
||||
#static pdfium libraries have to be included *before* dynamic libraries
|
||||
#LIBS += -L/usr/lib/pdfium -Wl,--start-group -lpdfium -lfpdfapi -lfxge -lfpdfdoc \
|
||||
# -lfxcrt -lfx_agg -lfxcodec -lfx_lpng -lfx_libopenjpeg -lfx_lcms2 -ljpeg \
|
||||
# -lfx_zlib -lfdrm -lfxedit -lformfiller -lpdfwindow -lpdfium -lbigint -ljavascript \
|
||||
# -lfxedit -Wl,--end-group -lfreetype
|
||||
}
|
||||
} else {
|
||||
DEFINES += "NO_PDF"
|
||||
@ -202,6 +214,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")
|
||||
|
Reference in New Issue
Block a user