~adamreichold/qpdfview/trunk

846 by Adam Reichold
added plug-in infrastructure
1
include(qpdfview.pri)
2
3
TARGET = qpdfview
4
TEMPLATE = app
5
856 by Adam Reichold
small clean-ups in the project files
6
OBJECTS_DIR = objects
7
MOC_DIR = moc
849 by Adam Reichold
fix object file name collisions
8
846 by Adam Reichold
added plug-in infrastructure
9
HEADERS += \
10
    sources/global.h \
1898.1.10 by Adam Reichold
Make the render parameters implicitly shared so that render tasks and their pages can share this which should reduce memory consumption for tiling.
11
    sources/renderparam.h \
1046.1.40 by Adam Reichold
add new settings class to subsume settings and static properties
12
    sources/printoptions.h \
1046.1.43 by Adam Reichold
rename the new settings to just settings
13
    sources/settings.h \
846 by Adam Reichold
added plug-in infrastructure
14
    sources/model.h \
1046.1.34 by Adam Reichold
refactor plug-in handling
15
    sources/pluginhandler.h \
1104 by Adam Reichold
minor organizational shuffling
16
    sources/shortcuthandler.h \
1046.1.31 by Adam Reichold
use a simpler render task object instead of QtConcurrentRun
17
    sources/rendertask.h \
1561.1.6 by Adam Reichold
Create a stripped-down copy of PageItem called TileItem to encapsulate the rendering properties.
18
    sources/tileitem.h \
846 by Adam Reichold
added plug-in infrastructure
19
    sources/pageitem.h \
1561.1.16 by Adam Reichold
Use a separate source file for the thumbnail item class.
20
    sources/thumbnailitem.h \
1046.1.31 by Adam Reichold
use a simpler render task object instead of QtConcurrentRun
21
    sources/presentationview.h \
1719 by Adam Reichold
Merge central search model.
22
    sources/searchmodel.h \
1840 by Adam Reichold
Move the search item delegate into a separate module.
23
    sources/searchitemdelegate.h \
1046.1.32 by Adam Reichold
simplify search task
24
    sources/searchtask.h \
1112 by Adam Reichold
use composition mode multiply for highlights
25
    sources/miscellaneous.h \
2117 by Adam Reichold
First stab at making the application compatible with Qt versions 4, 5 and 6.
26
    sources/compatibility.h \
1348.1.1 by Adam Reichold
add document layout class following strategy pattern
27
    sources/documentlayout.h \
846 by Adam Reichold
added plug-in infrastructure
28
    sources/documentview.h \
1046.1.14 by Adam Reichold
fix a typo in the print settings and refactor their handling into a
29
    sources/printdialog.h \
846 by Adam Reichold
added plug-in infrastructure
30
    sources/settingsdialog.h \
1405 by Adam Reichold
Move fonts dialog into a separate class for less code noise.
31
    sources/fontsdialog.h \
1258 by Adam Reichold
merge help dialog that was refactored for further extension
32
    sources/helpdialog.h \
846 by Adam Reichold
added plug-in infrastructure
33
    sources/recentlyusedmenu.h \
1396 by Adam Reichold
Add inert infrastructure for a recently closed menu.
34
    sources/recentlyclosedmenu.h \
1671 by Adam Reichold
Begin implemenation of a specific bookmark model.
35
    sources/bookmarkmodel.h \
846 by Adam Reichold
added plug-in infrastructure
36
    sources/bookmarkmenu.h \
1665 by Adam Reichold
Add simple dialog to edit bookmark properties.
37
    sources/bookmarkdialog.h \
1241.1.1 by Adam Reichold
add database singleton to encapsulate database access operations
38
    sources/database.h \
2101.1.1 by vit9696
Implement macOS file event support, also fix icon display in menus
39
    sources/mainwindow.h \
40
    sources/application.h
846 by Adam Reichold
added plug-in infrastructure
41
42
SOURCES += \
1046.1.43 by Adam Reichold
rename the new settings to just settings
43
    sources/settings.cpp \
1046.1.34 by Adam Reichold
refactor plug-in handling
44
    sources/pluginhandler.cpp \
1104 by Adam Reichold
minor organizational shuffling
45
    sources/shortcuthandler.cpp \
1046.1.31 by Adam Reichold
use a simpler render task object instead of QtConcurrentRun
46
    sources/rendertask.cpp \
1561.1.6 by Adam Reichold
Create a stripped-down copy of PageItem called TileItem to encapsulate the rendering properties.
47
    sources/tileitem.cpp \
846 by Adam Reichold
added plug-in infrastructure
48
    sources/pageitem.cpp \
1561.1.16 by Adam Reichold
Use a separate source file for the thumbnail item class.
49
    sources/thumbnailitem.cpp \
1046.1.31 by Adam Reichold
use a simpler render task object instead of QtConcurrentRun
50
    sources/presentationview.cpp \
1719 by Adam Reichold
Merge central search model.
51
    sources/searchmodel.cpp \
1840 by Adam Reichold
Move the search item delegate into a separate module.
52
    sources/searchitemdelegate.cpp \
1046.1.32 by Adam Reichold
simplify search task
53
    sources/searchtask.cpp \
1112 by Adam Reichold
use composition mode multiply for highlights
54
    sources/miscellaneous.cpp \
1348.1.1 by Adam Reichold
add document layout class following strategy pattern
55
    sources/documentlayout.cpp \
846 by Adam Reichold
added plug-in infrastructure
56
    sources/documentview.cpp \
1046.1.14 by Adam Reichold
fix a typo in the print settings and refactor their handling into a
57
    sources/printdialog.cpp \
846 by Adam Reichold
added plug-in infrastructure
58
    sources/settingsdialog.cpp \
1405 by Adam Reichold
Move fonts dialog into a separate class for less code noise.
59
    sources/fontsdialog.cpp \
1258 by Adam Reichold
merge help dialog that was refactored for further extension
60
    sources/helpdialog.cpp \
846 by Adam Reichold
added plug-in infrastructure
61
    sources/recentlyusedmenu.cpp \
1396 by Adam Reichold
Add inert infrastructure for a recently closed menu.
62
    sources/recentlyclosedmenu.cpp \
846 by Adam Reichold
added plug-in infrastructure
63
    sources/bookmarkmenu.cpp \
1665 by Adam Reichold
Add simple dialog to edit bookmark properties.
64
    sources/bookmarkdialog.cpp \
1671 by Adam Reichold
Begin implemenation of a specific bookmark model.
65
    sources/bookmarkmodel.cpp \
1241.1.1 by Adam Reichold
add database singleton to encapsulate database access operations
66
    sources/database.cpp \
846 by Adam Reichold
added plug-in infrastructure
67
    sources/mainwindow.cpp \
2102 by Adam Reichold
Merge Vit9696's macOS adjustments, but switch to QPointer to avoid dangling main window pointers.
68
    sources/application.cpp \
69
    sources/main.cpp
846 by Adam Reichold
added plug-in infrastructure
70
974 by Adam Reichold
updated information about application capabilities in the documentation
71
DEFINES += APPLICATION_VERSION=\\\"$${APPLICATION_VERSION}\\\"
72
2041 by Adam Reichold
Make it easier to enable LTO to reduce the default build binary by around 200 K (out of 1200 K).
73
with_lto {
74
    QMAKE_CFLAG += -flto
75
    QMAKE_CXXFLAGS += -flto
76
    QMAKE_LFLAGS += -flto
77
}
78
846 by Adam Reichold
added plug-in infrastructure
79
QT += core gui
80
1742.1.14 by Adam Reichold
Revert the removal of QtConcurrent usage in the search model.
81
greaterThan(QT_MAJOR_VERSION, 4): QT += concurrent widgets printsupport
846 by Adam Reichold
added plug-in infrastructure
82
83
!without_svg {
84
    DEFINES += WITH_SVG
85
    QT += svg
86
1444 by Adam Reichold
Remove some redundancy in the project file names.
87
    RESOURCES += icons.qrc
846 by Adam Reichold
added plug-in infrastructure
88
}
89
90
!without_sql {
91
    DEFINES += WITH_SQL
92
    QT += sql
93
}
94
95
!without_dbus {
96
    DEFINES += WITH_DBUS
97
    QT += dbus
98
}
99
2077 by Adam Reichold
Fixup QMAKE_EXTENSION_{SHLIB,STATICLIB} since older Ubuntu versions seem to ship broken qmake spec files.
100
isEmpty(QMAKE_EXTENSION_SHLIB):QMAKE_EXTENSION_SHLIB = "so"
101
isEmpty(QMAKE_EXTENSION_STATICLIB):QMAKE_EXTENSION_STATICLIB = "a"
102
864 by Adam Reichold
make it easier to override the default configuration
103
DEFINES += PLUGIN_INSTALL_PATH=\\\"$${PLUGIN_INSTALL_PATH}\\\"
104
2072 by Adam Reichold
Add option to eagerly resolve plug-in symbols to be more robust if incompatible libraries are installed.
105
plugin_resolve_all {
106
    DEFINES += PLUGIN_RESOLVE_ALL
107
}
108
853 by Adam Reichold
enable the use of static plug-ins
109
!without_pdf {
110
    DEFINES += WITH_PDF
1572 by Adam Reichold
Add displaying library versions in the about box by merging Martin Spacek's branch.
111
2153 by Adam Reichold
Commit djcj's pkg-config fix for easier cross building.
112
    !without_pkgconfig:POPPLER_VERSION = $$system($$pkgConfigExecutable() --modversion poppler-qt$${QT_MAJOR_VERSION})
1572 by Adam Reichold
Add displaying library versions in the about box by merging Martin Spacek's branch.
113
    DEFINES += POPPLER_VERSION=\\\"$${POPPLER_VERSION}\\\"
853 by Adam Reichold
enable the use of static plug-ins
114
115
    static_pdf_plugin {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
116
        isEmpty(PDF_PLUGIN_NAME):PDF_PLUGIN_NAME = $${QMAKE_PREFIX_STATICLIB}qpdfview_pdf.$${QMAKE_EXTENSION_STATICLIB}
865 by Adam Reichold
fix assignment order problem
117
853 by Adam Reichold
enable the use of static plug-ins
118
        DEFINES += STATIC_PDF_PLUGIN
2069 by Adam Reichold
Directly include library dependencies when statically linking plug-ins.
119
        LIBS += $$PDF_PLUGIN_NAME $$PDF_PLUGIN_LIBS
861 by Adam Reichold
fixed build-oder an static library dependencies
120
        PRE_TARGETDEPS += $$PDF_PLUGIN_NAME
853 by Adam Reichold
enable the use of static plug-ins
121
122
        QT += xml
123
124
        !without_pkgconfig {
125
            CONFIG += link_pkgconfig
1572 by Adam Reichold
Add displaying library versions in the about box by merging Martin Spacek's branch.
126
            PKGCONFIG += poppler-qt$${QT_MAJOR_VERSION}
853 by Adam Reichold
enable the use of static plug-ins
127
        }
864 by Adam Reichold
make it easier to override the default configuration
128
    } else {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
129
        isEmpty(PDF_PLUGIN_NAME):PDF_PLUGIN_NAME = $${QMAKE_PREFIX_SHLIB}qpdfview_pdf.$${QMAKE_EXTENSION_SHLIB}
853 by Adam Reichold
enable the use of static plug-ins
130
    }
864 by Adam Reichold
make it easier to override the default configuration
131
132
    DEFINES += PDF_PLUGIN_NAME=\\\"$${PDF_PLUGIN_NAME}\\\"
853 by Adam Reichold
enable the use of static plug-ins
133
}
134
135
!without_ps {
136
    DEFINES += WITH_PS
1572 by Adam Reichold
Add displaying library versions in the about box by merging Martin Spacek's branch.
137
2153 by Adam Reichold
Commit djcj's pkg-config fix for easier cross building.
138
    !without_pkgconfig:LIBSPECTRE_VERSION = $$system($$pkgConfigExecutable() --modversion libspectre)
1577 by Adam Reichold
Fix typo in libspectre version information define.
139
    DEFINES += LIBSPECTRE_VERSION=\\\"$${LIBSPECTRE_VERSION}\\\"
853 by Adam Reichold
enable the use of static plug-ins
140
141
    static_ps_plugin {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
142
        isEmpty(PS_PLUGIN_NAME):PS_PLUGIN_NAME = $${QMAKE_PREFIX_STATICLIB}qpdfview_ps.$${QMAKE_EXTENSION_STATICLIB}
865 by Adam Reichold
fix assignment order problem
143
853 by Adam Reichold
enable the use of static plug-ins
144
        DEFINES += STATIC_PS_PLUGIN
2069 by Adam Reichold
Directly include library dependencies when statically linking plug-ins.
145
        LIBS += $$PS_PLUGIN_NAME $$PS_PLUGIN_LIBS
861 by Adam Reichold
fixed build-oder an static library dependencies
146
        PRE_TARGETDEPS += $$PS_PLUGIN_NAME
853 by Adam Reichold
enable the use of static plug-ins
147
148
        !without_pkgconfig {
149
            CONFIG += link_pkgconfig
150
            PKGCONFIG += libspectre
151
        }
864 by Adam Reichold
make it easier to override the default configuration
152
    } else {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
153
        isEmpty(PS_PLUGIN_NAME):PS_PLUGIN_NAME = $${QMAKE_PREFIX_SHLIB}qpdfview_ps.$${QMAKE_EXTENSION_SHLIB}
853 by Adam Reichold
enable the use of static plug-ins
154
    }
864 by Adam Reichold
make it easier to override the default configuration
155
156
    DEFINES += PS_PLUGIN_NAME=\\\"$${PS_PLUGIN_NAME}\\\"
846 by Adam Reichold
added plug-in infrastructure
157
}
158
874 by Adam Reichold
prepare build system for DjVu plug-in
159
!without_djvu {
160
    DEFINES += WITH_DJVU
1572 by Adam Reichold
Add displaying library versions in the about box by merging Martin Spacek's branch.
161
2153 by Adam Reichold
Commit djcj's pkg-config fix for easier cross building.
162
    !without_pkgconfig:DJVULIBRE_VERSION = $$system($$pkgConfigExecutable() --modversion ddjvuapi)
1572 by Adam Reichold
Add displaying library versions in the about box by merging Martin Spacek's branch.
163
    DEFINES += DJVULIBRE_VERSION=\\\"$${DJVULIBRE_VERSION}\\\"
874 by Adam Reichold
prepare build system for DjVu plug-in
164
165
    static_djvu_plugin {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
166
        isEmpty(DJVU_PLUGIN_NAME):DJVU_PLUGIN_NAME = $${QMAKE_PREFIX_STATICLIB}qpdfview_djvu.$${QMAKE_EXTENSION_STATICLIB}
874 by Adam Reichold
prepare build system for DjVu plug-in
167
168
        DEFINES += STATIC_DJVU_PLUGIN
2069 by Adam Reichold
Directly include library dependencies when statically linking plug-ins.
169
        LIBS += $$DJVU_PLUGIN_NAME $$DJVU_PLUGIN_LIBS
874 by Adam Reichold
prepare build system for DjVu plug-in
170
        PRE_TARGETDEPS += $$DJVU_PLUGIN_NAME
171
172
        !without_pkgconfig {
173
            CONFIG += link_pkgconfig
174
            PKGCONFIG += ddjvuapi
175
        }
176
    } else {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
177
        isEmpty(DJVU_PLUGIN_NAME):DJVU_PLUGIN_NAME = $${QMAKE_PREFIX_SHLIB}qpdfview_djvu.$${QMAKE_EXTENSION_SHLIB}
874 by Adam Reichold
prepare build system for DjVu plug-in
178
    }
179
180
    DEFINES += DJVU_PLUGIN_NAME=\\\"$${DJVU_PLUGIN_NAME}\\\"
181
}
182
1432.2.1 by Adam Reichold
Add simplistic Fitz (the rendering library of MuPDF) plug-in.
183
with_fitz {
184
    DEFINES += WITH_FITZ
185
1572 by Adam Reichold
Add displaying library versions in the about box by merging Martin Spacek's branch.
186
    DEFINES += FITZ_VERSION=\\\"$${FITZ_VERSION}\\\"
187
1432.2.1 by Adam Reichold
Add simplistic Fitz (the rendering library of MuPDF) plug-in.
188
    static_fitz_plugin {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
189
        isEmpty(FITZ_PLUGIN_NAME):FITZ_PLUGIN_NAME = $${QMAKE_PREFIX_STATICLIB}qpdfview_fitz.$${QMAKE_EXTENSION_STATICLIB}
1432.2.1 by Adam Reichold
Add simplistic Fitz (the rendering library of MuPDF) plug-in.
190
191
        DEFINES += STATIC_FITZ_PLUGIN
2069 by Adam Reichold
Directly include library dependencies when statically linking plug-ins.
192
        LIBS += $$FITZ_PLUGIN_NAME $$FITZ_PLUGIN_LIBS
1432.2.1 by Adam Reichold
Add simplistic Fitz (the rendering library of MuPDF) plug-in.
193
        PRE_TARGETDEPS += $$FITZ_PLUGIN_NAME
194
1432.2.5 by Adam Reichold
Make Fitz includes and libraries configurable and add basic link-loading support.
195
        isEmpty(FITZ_PLUGIN_LIBS) {
1948 by Adam Reichold
Add missing indirect dependency to OpenJPEG for Fitz plug-in.
196
            LIBS += -lmupdf -lfreetype -ljbig2dec -lopenjp2 -ljpeg -lz -lm
1432.2.5 by Adam Reichold
Make Fitz includes and libraries configurable and add basic link-loading support.
197
        } else {
198
            LIBS += $$FITZ_PLUGIN_LIBS
199
        }
1432.2.1 by Adam Reichold
Add simplistic Fitz (the rendering library of MuPDF) plug-in.
200
    } else {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
201
        isEmpty(FITZ_PLUGIN_NAME):FITZ_PLUGIN_NAME = $${QMAKE_PREFIX_SHLIB}qpdfview_fitz.$${QMAKE_EXTENSION_SHLIB}
1432.2.1 by Adam Reichold
Add simplistic Fitz (the rendering library of MuPDF) plug-in.
202
    }
203
204
    DEFINES += FITZ_PLUGIN_NAME=\\\"$${FITZ_PLUGIN_NAME}\\\"
205
}
206
1929 by Adam Reichold
Invert the with_image build-time option and document it in the README file.
207
!without_image {
1927.1.1 by Adam Reichold
Add simple image plug-in using Qt's built-in image I/O routines.
208
    DEFINES += WITH_IMAGE
209
210
    static_image_plugin {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
211
        isEmpty(IMAGE_PLUGIN_NAME):IMAGE_PLUGIN_NAME = $${QMAKE_PREFIX_STATICLIB}qpdfview_image.$${QMAKE_EXTENSION_STATICLIB}
1927.1.1 by Adam Reichold
Add simple image plug-in using Qt's built-in image I/O routines.
212
213
        DEFINES += STATIC_IMAGE_PLUGIN
2069 by Adam Reichold
Directly include library dependencies when statically linking plug-ins.
214
        LIBS += $$IMAGE_PLUGIN_NAME $$IMAGE_PLUGIN_LIBS
1927.1.1 by Adam Reichold
Add simple image plug-in using Qt's built-in image I/O routines.
215
        PRE_TARGETDEPS += $$IMAGE_PLUGIN_NAME
216
    }
217
    else {
2075.1.1 by Marshall Banana
let qmake handle the plugin name prefixes and extensions
218
        isEmpty(IMAGE_PLUGIN_NAME):IMAGE_PLUGIN_NAME = $${QMAKE_PREFIX_SHLIB}qpdfview_image.$${QMAKE_EXTENSION_SHLIB}
1927.1.1 by Adam Reichold
Add simple image plug-in using Qt's built-in image I/O routines.
219
    }
220
221
    DEFINES += IMAGE_PLUGIN_NAME=\\\"$${IMAGE_PLUGIN_NAME}\\\"
222
}
223
846 by Adam Reichold
added plug-in infrastructure
224
!without_cups {
225
    DEFINES += WITH_CUPS
1167 by Adam Reichold
improve build system generality and building on Win32 and OS/2
226
1572 by Adam Reichold
Add displaying library versions in the about box by merging Martin Spacek's branch.
227
    isEmpty(CUPS_VERSION):CUPS_VERSION = $$system(cups-config --version)
228
    isEmpty(CUPS_LIBS):CUPS_LIBS = $$system(cups-config --libs)
229
230
    DEFINES += CUPS_VERSION=\\\"$${CUPS_VERSION}\\\"
231
    LIBS += $$CUPS_LIBS
846 by Adam Reichold
added plug-in infrastructure
232
}
233
234
!without_synctex {
235
    DEFINES += WITH_SYNCTEX
1944 by Adam Reichold
Add support to use system SyncTeX parser library via pkg-config.
236
2153 by Adam Reichold
Commit djcj's pkg-config fix for easier cross building.
237
    !without_pkgconfig:system($$pkgConfigExecutable() --exists synctex) {
1944 by Adam Reichold
Add support to use system SyncTeX parser library via pkg-config.
238
        CONFIG += link_pkgconfig
239
        PKGCONFIG += synctex
2070 by Adam Reichold
Adapt for compatibility with SyncTeX parser version 1.19 and later.
240
2153 by Adam Reichold
Commit djcj's pkg-config fix for easier cross building.
241
        system($$pkgConfigExecutable() --atleast-version=1.19 synctex):DEFINES += HAS_SYNCTEX_2
1944 by Adam Reichold
Add support to use system SyncTeX parser library via pkg-config.
242
    } else {
243
        HEADERS += synctex/synctex_parser.h synctex/synctex_parser_utils.h synctex/synctex_parser_local.h
244
        SOURCES += synctex/synctex_parser.c synctex/synctex_parser_utils.c
245
2142 by Adam Reichold
Update vendored SyncTeX sources to version 1.21.
246
        DEFINES += HAS_SYNCTEX_2
1944 by Adam Reichold
Add support to use system SyncTeX parser library via pkg-config.
247
        INCLUDEPATH += synctex
248
        LIBS += -lz
249
    }
846 by Adam Reichold
added plug-in infrastructure
250
}
251
917.1.3 by Adam Reichold
make use of QMimeDatabase if Qt5 is used
252
lessThan(QT_MAJOR_VERSION, 5) : !without_magic {
917.1.1 by Adam Reichold
add usage of libmagic to determine file type
253
    DEFINES += WITH_MAGIC
254
    LIBS += -lmagic
255
}
256
846 by Adam Reichold
added plug-in infrastructure
257
!without_signals {
258
    DEFINES += WITH_SIGNALS
259
260
    HEADERS += sources/signalhandler.h
261
    SOURCES += sources/signalhandler.cpp
262
}
263
2068 by Adam Reichold
Add static_resources configuration option to embed translations and online help into binary to facilitate single binary builds.
264
265
static_resources {
266
    RESOURCES += help.qrc translations.qrc
267
}
268
2098 by Adam Reichold
Make the data subdirectory in the application directory compile-time-configurable as it has a special meaning on Mac OS X and must be ../Resources instead of data.
269
DEFINES += DATA_INSTALL_PATH=\\\"$${DATA_INSTALL_PATH}\\\" APP_DIR_DATA_PATH=\\\"$${APP_DIR_DATA_PATH}\\\"
903 by Adam Reichold
merge Alexander's improved desktop file generation, simplify sed syntax and also generate the contained MIME types
270
905 by Adam Reichold
Fix differing behavior of install sets and makefile targets w.r.t.
271
909 by Adam Reichold
for now revert to generating the desktop file in qmake instead of make to fix install sets in a clean tree
272
DESKTOP_FILE = miscellaneous/qpdfview.desktop
1552 by Adam Reichold
Add preliminary AppData file.
273
APPDATA_FILE = miscellaneous/qpdfview.appdata.xml
274
1441 by Adam Reichold
Adjust launcher mime types to Fitz plug-in.
275
!without_pdf|with_fitz:MIME_TYPES += application/pdf application/x-pdf text/pdf text/x-pdf image/pdf image/x-pdf
903 by Adam Reichold
merge Alexander's improved desktop file generation, simplify sed syntax and also generate the contained MIME types
276
!without_ps:MIME_TYPES += application/postscript
277
!without_djvu:MIME_TYPES += image/vnd.djvu image/x-djvu
278
974 by Adam Reichold
updated information about application capabilities in the documentation
279
system("sed -e \"s:DATA_INSTALL_PATH:$${DATA_INSTALL_PATH}:\" -e \"s:MIME_TYPES:$$join(MIME_TYPES,";","",";"):\" $${DESKTOP_FILE}.in > $${DESKTOP_FILE}")
900.1.1 by Alexander Volkov
remove qpdfview.desktop on make clean
280
903 by Adam Reichold
merge Alexander's improved desktop file generation, simplify sed syntax and also generate the contained MIME types
281
846 by Adam Reichold
added plug-in infrastructure
282
target.path = $${TARGET_INSTALL_PATH}
283
1689 by Adam Reichold
Install application icon to hicolor icon theme.
284
data.files = translations/*.qm help/help*.html
846 by Adam Reichold
added plug-in infrastructure
285
data.path = $${DATA_INSTALL_PATH}
286
1689 by Adam Reichold
Install application icon to hicolor icon theme.
287
manual.files = miscellaneous/qpdfview.1
288
manual.path = $${MANUAL_INSTALL_PATH}
289
290
icon.files = icons/qpdfview.svg
291
icon.path = $${ICON_INSTALL_PATH}
292
1554 by Adam Reichold
Fix AppData installation path.
293
launcher.files = $${DESKTOP_FILE}
846 by Adam Reichold
added plug-in infrastructure
294
launcher.path = $${LAUNCHER_INSTALL_PATH}
295
1554 by Adam Reichold
Fix AppData installation path.
296
appdata.files = $${APPDATA_FILE}
297
appdata.path = $${APPDATA_INSTALL_PATH}
298
1689 by Adam Reichold
Install application icon to hicolor icon theme.
299
INSTALLS += target data manual icon launcher appdata
1167 by Adam Reichold
improve build system generality and building on Win32 and OS/2
300
1223 by Adam Reichold
extend INCLUDEPATH so that resource compiler finds icons on Windows and OS/2
301
INCLUDEPATH += icons
1171 by Adam Reichold
move resource files into icon folder
302
win32:RC_FILE = icons/qpdfview_win32.rc
303
os2:RC_FILE = icons/qpdfview_os2.rc