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