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