[122] | 1 | ###################################################################### |
---|
| 2 | # |
---|
| 3 | # TSPSG: TSP Solver and Generator |
---|
[151] | 4 | # Copyright (C) 2007-2011 Lёppa <contacts[at]oleksii[dot]name> |
---|
[122] | 5 | # |
---|
| 6 | # $Id: install.pri 152 2011-02-18 19:14:47Z laleppa $ |
---|
| 7 | # $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/install.pri $ |
---|
| 8 | # |
---|
| 9 | # This file is part of TSPSG. |
---|
| 10 | # |
---|
| 11 | ###################################################################### |
---|
| 12 | |
---|
| 13 | # Common rules |
---|
| 14 | #l10n.files = l10n/*.qm |
---|
| 15 | #share.files = |
---|
[125] | 16 | docs.files = COPYING ChangeLog.txt README.txt INSTALL.txt |
---|
[152] | 17 | INSTALLS += target docs # share l10n |
---|
[122] | 18 | |
---|
| 19 | # For *nix: |
---|
| 20 | # - executable goes to /usr/bin |
---|
| 21 | # - translations go to /usr/share/TSPSG/l10n |
---|
[144] | 22 | # - COPYING, ChangeLog.txt, README.txt and INSTALL.txt |
---|
| 23 | # go to /usr/share/doc/TSPSG-x.x.x |
---|
[147] | 24 | unix:!macx:!symbian:!maemo* { |
---|
[141] | 25 | isEmpty(PREFIX) { |
---|
| 26 | PREFIX = /usr |
---|
| 27 | } |
---|
[122] | 28 | CONFIG(release, debug|release) { |
---|
| 29 | DEFINES += PATH_L10N=\\\"$$PREFIX/share/TSPSG/l10n\\\" |
---|
| 30 | DEFINES += PATH_DOCS=\\\"$$PREFIX/share/TSPSG/docs\\\" |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | target.path = $$PREFIX/bin |
---|
| 34 | share.path = $$PREFIX/share/TSPSG |
---|
| 35 | # l10n.path = $$PREFIX/share/TSPSG/l10n |
---|
| 36 | docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION |
---|
[142] | 37 | desktop.files = resources/tspsg.desktop |
---|
| 38 | desktop.path = $$PREFIX/share/applications |
---|
[122] | 39 | icon.files = resources/tspsg.png |
---|
| 40 | icon.path = $$PREFIX/share/pixmaps |
---|
[142] | 41 | INSTALLS += desktop icon |
---|
[122] | 42 | } |
---|
| 43 | |
---|
| 44 | # TODO: MacOSX |
---|
| 45 | macx { |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | # For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders. |
---|
| 49 | win32 { |
---|
[141] | 50 | isEmpty(PREFIX) { |
---|
| 51 | PREFIX = "$$(PROGRAMFILES)" |
---|
| 52 | } |
---|
[122] | 53 | |
---|
| 54 | share.files = $$[QT_INSTALL_BINS]/QtCore$${D}4.dll \ |
---|
| 55 | $$[QT_INSTALL_BINS]/QtGui$${D}4.dll |
---|
| 56 | !nosvg { |
---|
| 57 | share.files += $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll |
---|
| 58 | } |
---|
| 59 | # l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm |
---|
| 60 | win32-g++ { |
---|
| 61 | share.files += $$[QT_INSTALL_BINS]/mingwm10.dll \ |
---|
| 62 | $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll |
---|
| 63 | } |
---|
| 64 | imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll \ |
---|
| 65 | $$[QT_INSTALL_PLUGINS]/imageformats/qtiff$${D}4.dll |
---|
| 66 | imageformats.path = $$PREFIX/TSPSG/imageformats |
---|
[152] | 67 | INSTALLS += share imageformats |
---|
[122] | 68 | } |
---|
| 69 | |
---|
| 70 | # For wince: we are deploying to \Program Files\TSPSG. |
---|
| 71 | wince* { |
---|
[141] | 72 | isEmpty(PREFIX) { |
---|
| 73 | PREFIX = "\\Program Files" |
---|
| 74 | } |
---|
[122] | 75 | share.sources = $$share.files |
---|
| 76 | # l10n.sources = $$l10n.files \ |
---|
| 77 | # $$[QT_INSTALL_TRANSLATIONS]/*.qm |
---|
| 78 | docs.sources = $$docs.files |
---|
| 79 | |
---|
| 80 | DEPLOYMENT += target share docs # l10n |
---|
[152] | 81 | DEPLOYMENT_PLUGIN += qjpeg qtiff |
---|
[122] | 82 | } |
---|
| 83 | |
---|
| 84 | # win32 and wince common |
---|
| 85 | win* { |
---|
| 86 | target.path = $$PREFIX/TSPSG |
---|
| 87 | share.path = $$PREFIX/TSPSG |
---|
| 88 | # l10n.path = $$PREFIX/TSPSG/l10n |
---|
| 89 | docs.path = $$PREFIX/TSPSG |
---|
| 90 | } |
---|
| 91 | |
---|
| 92 | # Symbian |
---|
| 93 | symbian { |
---|
[152] | 94 | share.sources = $$share.files |
---|
[122] | 95 | # qmake for Symbian (as of Qt 4.6.2) has a bug: file masks doesn't work, so we need to specify all files manually |
---|
| 96 | # l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \ |
---|
| 97 | # $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \ |
---|
| 98 | # l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm |
---|
| 99 | # l10n.path = l10n |
---|
| 100 | docs.sources = $$docs.files |
---|
| 101 | docs.pkg_prerules = \ |
---|
| 102 | "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \ |
---|
| 103 | "\"COPYING\" - \"\", FILETEXT, TEXTEXIT" |
---|
| 104 | DEPLOYMENT += share docs # l10n |
---|
[137] | 105 | # DEPLOYMENT_PLUGIN += qjpeg qtiff qsvgicon |
---|
[122] | 106 | |
---|
| 107 | ICON = resources/tspsg.svg |
---|
| 108 | |
---|
| 109 | appinfo = \ |
---|
[152] | 110 | "$$LITERAL_HASH{\"TSP Solver and Generator\"},(0xA89FD7A3),$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE" |
---|
[122] | 111 | vendorinfo = \ |
---|
[152] | 112 | "%{\"Oleksii Serdiuk\"}" \ |
---|
| 113 | ":\"Oleksii Serdiuk\"" |
---|
[122] | 114 | default_deployment.pkg_prerules = appinfo vendorinfo |
---|
| 115 | DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0" |
---|
| 116 | } |
---|