Skip to content

Commit

Permalink
Poppler.
Browse files Browse the repository at this point in the history
  • Loading branch information
textbrowser committed Jan 1, 2025
1 parent a4d7242 commit 907a5e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
16 changes: 16 additions & 0 deletions biblioteq-source.pro
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@ LIBS += -lpoppler-qt8
}
}

lessThan(QT_MAJOR_VERSION, 6) {
exists(/usr/include/poppler/qt5) {
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER5
INCLUDEPATH += /usr/include/poppler/qt5
LIBS += -lpoppler-qt5
}

exists(/usr/local/include/poppler/qt5) {
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER5
INCLUDEPATH += /usr/local/include/poppler/qt5
LIBS += -lpoppler-qt5
}
}

qtHaveModule(multimedia) {
DEFINES += BIBLIOTEQ_AUDIO_SUPPORTED
QT += multimedia
Expand Down
9 changes: 0 additions & 9 deletions biblioteq.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ QT += gui network printsupport sql widgets
QT -= webkit
TEMPLATE = app

lessThan(QT_MAJOR_VERSION, 6) {
exists(/usr/include/poppler/qt5) {
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER5
INCLUDEPATH += /usr/include/poppler/qt5
LIBS += -lpoppler-qt5
}
}

freebsd-* | openbsd-* {
QMAKE_CXXFLAGS_RELEASE += -Wall \
-Wcast-align \
Expand Down

0 comments on commit 907a5e8

Please sign in to comment.