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