~ubuntu-branches/debian/jessie/qpdfview/jessie

1.2.6 by Benjamin Eltzner
Import upstream version 0.4.1
1
include(qpdfview.pri)
2
3
TARGET = qpdfview_pdf
4
TEMPLATE = lib
5
CONFIG += plugin
6
static_pdf_plugin:CONFIG += static
7
8
OBJECTS_DIR = objects-pdf
9
MOC_DIR = moc-pdf
10
11
HEADERS = sources/global.h sources/model.h sources/pdfmodel.h sources/annotationdialog.h sources/formfielddialog.h
12
SOURCES = sources/model.cpp sources/pdfmodel.cpp sources/annotationdialog.cpp sources/formfielddialog.cpp
13
14
QT += core xml gui
15
16
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
17
18
!without_pkgconfig {
19
    CONFIG += link_pkgconfig
20
    PKGCONFIG += poppler-qt4
21
22
    system(pkg-config --atleast-version=0.14 poppler-qt4):DEFINES += HAS_POPPLER_14
23
    system(pkg-config --atleast-version=0.18 poppler-qt4):DEFINES += HAS_POPPLER_18
24
    system(pkg-config --atleast-version=0.20.1 poppler-qt4):DEFINES += HAS_POPPLER_20
25
    system(pkg-config --atleast-version=0.22 poppler-qt4):DEFINES += HAS_POPPLER_22
26
    system(pkg-config --atleast-version=0.24 poppler-qt4):DEFINES += HAS_POPPLER_24
27
}
28
29
!static_pdf_plugin {
30
    target.path = $${PLUGIN_INSTALL_PATH}
31
    INSTALLS += target
32
}