Debian Codegraph @

qnapi.pro

raw ◀ ▶
1 Debian patch touch this file
1 TEMPLATE = subdirs
2
•3 QMAKE_CPPFLAGS *= $(shell dpkg-buildflags --get CPPFLAGS)
4 QMAKE_CFLAGS *= $(shell dpkg-buildflags --get CFLAGS)
5 QMAKE_CXXFLAGS *= $(shell dpkg-buildflags --get CXXFLAGS)
6 QMAKE_LFLAGS *= $(shell dpkg-buildflags --get LDFLAGS)
7
8 CONFIG += ordered
9
10 SUBDIRS = libqnapi gui
11
12 TRANSLATIONS += translations/qnapi_it.ts translations/qnapi_pl.ts
13
14 unix {
15 INSTALL_PREFIX = /usr
16 DATADIR=$${INSTALL_PREFIX}/share
17 target.files += qnapi
18 target.path = $${INSTALL_PREFIX}/bin
19 doc.path = $${INSTALL_PREFIX}/share/doc/qnapi
20 doc.files = doc/ChangeLog \
21 doc/LICENSE \
22 doc/LICENSE-pl \
23 doc/COPYRIGHT \
24 doc/qnapi-download.desktop \
25 doc/qnapi-scan.desktop \
26 doc/qnapi-download.schemas \
27 doc/qnapi-scan.schemas
28 man.path = $${INSTALL_PREFIX}/share/man/man1/
29 man.files = doc/man/qnapi.1.gz
30 man_it.path = $${INSTALL_PREFIX}/share/man/it/man1/
31 man_it.files = doc/man/it/qnapi.1.gz
32 man_pl.path = $${INSTALL_PREFIX}/share/man/pl/man1/
33 man_pl.files = doc/man/pl/qnapi.1.gz
34 icons16.files = gui/res/icons/16x16/apps/qnapi.png
35 icons16.path = $${DATADIR}/icons/hicolor/16x16/apps/
36 icons32.files = gui/res/icons/32x32/apps/qnapi.png
37 icons32.path = $${DATADIR}/icons/hicolor/32x32/apps/
38 icons48.files = gui/res/icons/48x48/apps/qnapi.png
39 icons48.path = $${DATADIR}/icons/hicolor/48x48/apps/
40 icons128.files = gui/res/icons/128x128/apps/qnapi.png
41 icons128.path = $${DATADIR}/icons/hicolor/128x128/apps/
42 icons512.files = gui/res/icons/512x512/apps/qnapi.png
43 icons512.path = $${DATADIR}/icons/hicolor/512x512/apps/
44 INSTALLS += icons16 icons32 icons48 icons128 icons512
45
46 desktop.path = $${INSTALL_PREFIX}/share/applications
47 desktop.files = doc/qnapi.desktop
48 INSTALLS += target doc man man_it man_pl desktop
49 }
50
51 macx {
52 macdeploy.commands = macdeployqt macx/QNapi.app
53 appdmg.depends = macdeploy
54 appdmg.commands = appdmg macx/appdmg.json macx/QNapi.dmg
55
56 QMAKE_EXTRA_TARGETS += macdeploy appdmg
57 }
58
59 win32 {
60 INSTALL_PREFIX = win32/out
61
62 QMAKE_STRIP = echo
63
64 p7zip.files = win32/content/7za.exe
65 p7zip.path = $${INSTALL_PREFIX}
66
67 doc.files = doc/ChangeLog \
68 doc/LICENSE \
69 doc/LICENSE-pl
70 doc.path = $${INSTALL_PREFIX}
71
72 icudlls.files = $$[QT_INSTALL_BINS]/icuin54.dll \
73 $$[QT_INSTALL_BINS]/icuuc54.dll \
74 $$[QT_INSTALL_BINS]/icudt54.dll
75 icudlls.path = $${INSTALL_PREFIX}
76
77 libmediainfodlls.files += deps/libmediainfo/bin/MediaInfo.dll
78 libmediainfodlls.path = $${INSTALL_PREFIX}
79
80 deploywin.commands = windeployqt --no-translations --no-quick-import --no-system-d3d-compiler --no-angle --no-webkit --no-webkit2 win32/out/qnapi.exe
81
82 platform.files = $$[QT_INSTALL_PLUGINS]/platforms/qwindows.dll
83 platform.path = $${INSTALL_PREFIX}/platforms
84 platform.depends = deploywin
85
86 QMAKE_EXTRA_TARGETS += deploywin platform
87
88 INSTALLS = p7zip doc icudlls libmediainfodlls platform
89 }
90
91 doxygen.commands = rm -fr doc/doxygen/* && doxygen Doxyfile && echo "Doxygen documentation generated in doc/doxygen/index.html"
92 QMAKE_EXTRA_TARGETS += doxygen
93