~adamreichold/qpdfview/trunk

846 by Adam Reichold
added plug-in infrastructure
1
include(qpdfview.pri)
2
853 by Adam Reichold
enable the use of static plug-ins
3
TARGET = qpdfview_pdf
846 by Adam Reichold
added plug-in infrastructure
4
TEMPLATE = lib
5
CONFIG += plugin
853 by Adam Reichold
enable the use of static plug-ins
6
static_pdf_plugin:CONFIG += static
846 by Adam Reichold
added plug-in infrastructure
7
856 by Adam Reichold
small clean-ups in the project files
8
OBJECTS_DIR = objects-pdf
9
MOC_DIR = moc-pdf
849 by Adam Reichold
fix object file name collisions
10
846 by Adam Reichold
added plug-in infrastructure
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
!without_pkgconfig {
17
    CONFIG += link_pkgconfig
18
    PKGCONFIG += poppler-qt4
19
20
    system(pkg-config --atleast-version=0.14 poppler-qt4):DEFINES += HAS_POPPLER_14
21
    system(pkg-config --atleast-version=0.20.1 poppler-qt4):DEFINES += HAS_POPPLER_20
22
    system(pkg-config --atleast-version=0.22 poppler-qt4):DEFINES += HAS_POPPLER_22
23
}
24
854 by Adam Reichold
do not install static plug-ins
25
!static_pdf_plugin {
26
    target.path = $${PLUGIN_INSTALL_PATH}
27
    INSTALLS += target
28
}