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

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
include(qpdfview.pri)

TARGET = qpdfview_djvu
TEMPLATE = lib
CONFIG += plugin
static_djvu_plugin:CONFIG += static

TARGET_SHORT = qpdfdjvu
!isEmpty(PLUGIN_DESTDIR): DESTDIR = $$PLUGIN_DESTDIR

OBJECTS_DIR = objects-djvu
MOC_DIR = moc-dvju

HEADERS = sources/global.h sources/model.h sources/djvumodel.h
SOURCES = sources/djvumodel.cpp

QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

!without_pkgconfig {
    CONFIG += link_pkgconfig
    PKGCONFIG += ddjvuapi
} else {
    DEFINES += $$DJVU_PLUGIN_DEFINES
    INCLUDEPATH += $$DJVU_PLUGIN_INCLUDEPATH
    LIBS += $$DJVU_PLUGIN_LIBS
}

!static_dvju_plugin {
    target.path = $${PLUGIN_INSTALL_PATH}
    INSTALLS += target
}