1.2.13
by Benjamin Eltzner
Import upstream version 0.4.9 |
1 |
include(qpdfview.pri) |
2 |
||
3 |
TARGET = qpdfview_pdf |
|
4 |
TEMPLATE = lib |
|
5 |
CONFIG += plugin |
|
6 |
static_pdf_plugin:CONFIG += static |
|
7 |
||
8 |
TARGET_SHORT = qpdfpdf |
|
9 |
!isEmpty(PLUGIN_DESTDIR): DESTDIR = $$PLUGIN_DESTDIR |
|
10 |
||
11 |
OBJECTS_DIR = objects-pdf |
|
12 |
MOC_DIR = moc-pdf |
|
13 |
||
14 |
HEADERS = sources/global.h sources/model.h sources/pdfmodel.h sources/annotationwidgets.h sources/formfieldwidgets.h |
|
15 |
SOURCES = sources/pdfmodel.cpp sources/annotationwidgets.cpp sources/formfieldwidgets.cpp |
|
16 |
||
17 |
QT += core xml gui |
|
18 |
||
19 |
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets |
|
20 |
||
21 |
!without_pkgconfig { |
|
22 |
poppler_qt_pkg = poppler-qt$${QT_MAJOR_VERSION} |
|
23 |
||
24 |
CONFIG += link_pkgconfig |
|
25 |
PKGCONFIG += $${poppler_qt_pkg} |
|
26 |
||
27 |
system(pkg-config --atleast-version=0.14 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_14 |
|
28 |
system(pkg-config --atleast-version=0.18 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_18 |
|
29 |
system(pkg-config --atleast-version=0.20.1 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_20 |
|
30 |
system(pkg-config --atleast-version=0.22 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_22 |
|
31 |
system(pkg-config --atleast-version=0.24 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_24 |
|
32 |
system(pkg-config --atleast-version=0.26 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_26 |
|
33 |
} else { |
|
34 |
DEFINES += $$PDF_PLUGIN_DEFINES |
|
35 |
INCLUDEPATH += $$PDF_PLUGIN_INCLUDEPATH |
|
36 |
LIBS += $$PDF_PLUGIN_LIBS |
|
37 |
}
|
|
38 |
||
39 |
!static_pdf_plugin { |
|
40 |
target.path = $${PLUGIN_INSTALL_PATH} |
|
41 |
INSTALLS += target |
|
42 |
}
|