-
Notifications
You must be signed in to change notification settings - Fork 39
/
qnapi.pro
95 lines (73 loc) · 3.11 KB
/
qnapi.pro
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS = libqnapi cli gui
no_cli:message(will skip building qnapic cli application)
no_cli:SUBDIRS -= cli
no_gui:message(will skip building qnapi gui application)
no_gui:SUBDIRS -= gui
TRANSLATIONS += translations/qnapi_it.ts translations/qnapi_pl.ts
include(qnapi.pri)
unix {
DATADIR=$${INSTALL_PREFIX}/share
doc.path = $${INSTALL_PREFIX}/share/doc/qnapi
doc.files = doc/ChangeLog \
doc/LICENSE \
doc/LICENSE-pl \
doc/COPYRIGHT \
doc/qnapi-download.desktop \
doc/qnapi-scan.desktop \
doc/qnapi-download.schemas \
doc/qnapi-scan.schemas
man.path = $${INSTALL_PREFIX}/share/man/man1/
man.files = doc/man/qnapi.1.gz
man_it.path = $${INSTALL_PREFIX}/share/man/it/man1/
man_it.files = doc/man/it/qnapi.1.gz
man_pl.path = $${INSTALL_PREFIX}/share/man/pl/man1/
man_pl.files = doc/man/pl/qnapi.1.gz
icons16.files = gui/res/icons/16x16/apps/qnapi.png
icons16.path = $${DATADIR}/icons/hicolor/16x16/apps/
icons32.files = gui/res/icons/32x32/apps/qnapi.png
icons32.path = $${DATADIR}/icons/hicolor/32x32/apps/
icons48.files = gui/res/icons/48x48/apps/qnapi.png
icons48.path = $${DATADIR}/icons/hicolor/48x48/apps/
icons128.files = gui/res/icons/128x128/apps/qnapi.png
icons128.path = $${DATADIR}/icons/hicolor/128x128/apps/
icons512.files = gui/res/icons/512x512/apps/qnapi.png
icons512.path = $${DATADIR}/icons/hicolor/512x512/apps/
INSTALLS += icons16 icons32 icons48 icons128 icons512
desktop.path = $${INSTALL_PREFIX}/share/applications
desktop.files = doc/qnapi.desktop
INSTALLS += doc man man_it man_pl desktop
}
macx:!no_gui {
macdeploy.commands = macdeployqt macx/QNapi.app
appdmg.depends = macdeploy
appdmg.commands = appdmg macx/appdmg.json macx/QNapi.dmg
QMAKE_EXTRA_TARGETS += macdeploy appdmg
}
win32 {
QMAKE_STRIP = echo
p7zip.files = win32/content/7za.exe
p7zip.path = $${INSTALL_PREFIX}
doc.files = doc/ChangeLog \
doc/LICENSE \
doc/LICENSE-pl
doc.path = $${INSTALL_PREFIX}
icudlls.files = $$[QT_INSTALL_BINS]/icuin54.dll \
$$[QT_INSTALL_BINS]/icuuc54.dll \
$$[QT_INSTALL_BINS]/icudt54.dll
icudlls.path = $${INSTALL_PREFIX}
libmediainfodlls.files += deps/libmediainfo/bin/MediaInfo.dll
libmediainfodlls.path = $${INSTALL_PREFIX}
DEPLOYWIN_FLAGS = --no-translations --no-quick-import --no-system-d3d-compiler --no-angle --no-webkit --no-webkit2
deploywin.commands += windeployqt $${DEPLOYWIN_FLAGS}
!no_cli:deploywin.commands += $${INSTALL_PREFIX}/qnapic.exe
!no_gui:deploywin.commands += $${INSTALL_PREFIX}/qnapi.exe
platform.files = $$[QT_INSTALL_PLUGINS]/platforms/qwindows.dll
platform.path = $${INSTALL_PREFIX}/platforms
platform.depends = deploywin
QMAKE_EXTRA_TARGETS += deploywin platform
INSTALLS = p7zip doc icudlls libmediainfodlls platform
}
doxygen.commands = rm -fr doc/doxygen/* && doxygen Doxyfile && echo "Doxygen documentation generated in doc/doxygen/index.html"
QMAKE_EXTRA_TARGETS += doxygen