source: terepaima/terepaima-0.4.16/pdf-plugin.pro

desarrollostretch
Last change on this file was 1f4adec, checked in by aosorio <aosorio@…>, 8 years ago

Agregado proyecto base, esto luego del dh_make -f

  • Property mode set to 100644
File size: 1.5 KB
Line 
1include(qpdfview.pri)
2
3TARGET = qpdfview_pdf
4TEMPLATE = lib
5CONFIG += plugin
6static_pdf_plugin:CONFIG += static
7
8TARGET_SHORT = qpdfpdf
9!isEmpty(PLUGIN_DESTDIR): DESTDIR = $$PLUGIN_DESTDIR
10
11OBJECTS_DIR = objects-pdf
12MOC_DIR = moc-pdf
13
14HEADERS = sources/model.h sources/pdfmodel.h sources/annotationwidgets.h sources/formfieldwidgets.h
15SOURCES = sources/pdfmodel.cpp sources/annotationwidgets.cpp sources/formfieldwidgets.cpp
16
17QT += core xml gui
18
19greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
20
21!without_pkgconfig {
22    poppler_qt_pkg = poppler-qt$${QT_MAJOR_VERSION}
23
24    system(pkg-config --atleast-version=0.14 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_14
25    system(pkg-config --atleast-version=0.18 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_18
26    system(pkg-config --atleast-version=0.20.1 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_20
27    system(pkg-config --atleast-version=0.22 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_22
28    system(pkg-config --atleast-version=0.24 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_24
29    system(pkg-config --atleast-version=0.26 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_26
30    system(pkg-config --atleast-version=0.31 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_31
31    system(pkg-config --atleast-version=0.35 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_35
32
33    CONFIG += link_pkgconfig
34    PKGCONFIG += $${poppler_qt_pkg}
35} else {
36    DEFINES += $$PDF_PLUGIN_DEFINES
37    INCLUDEPATH += $$PDF_PLUGIN_INCLUDEPATH
38    LIBS += $$PDF_PLUGIN_LIBS
39}
40
41!static_pdf_plugin {
42    target.path = $${PLUGIN_INSTALL_PATH}
43    INSTALLS += target
44}
Note: See TracBrowser for help on using the repository browser.