[e9db3e216b] | 1 | ###################################################################### |
---|
| 2 | # |
---|
| 3 | # TSPSG: TSP Solver and Generator |
---|
[21c03af787] | 4 | # Copyright (C) 2007-2013 Oleksii Serdiuk <contacts[at]oleksii[dot]name> |
---|
[e9db3e216b] | 5 | # |
---|
[7ba743d983] | 6 | # $Id: $Format:%h %ai %an$ $ |
---|
| 7 | # $URL: http://tspsg.info/ $ |
---|
[e9db3e216b] | 8 | # |
---|
| 9 | # This file is part of TSPSG. |
---|
| 10 | # |
---|
| 11 | ###################################################################### |
---|
| 12 | |
---|
| 13 | # Common rules |
---|
| 14 | #l10n.files = l10n/*.qm |
---|
| 15 | #share.files = |
---|
[7aaa0b0ec7] | 16 | docs.files = COPYING ChangeLog.txt README.txt INSTALL.txt |
---|
[cc5c5108a3] | 17 | INSTALLS += target docs # share l10n |
---|
[e9db3e216b] | 18 | |
---|
| 19 | # For *nix: |
---|
| 20 | # - executable goes to /usr/bin |
---|
| 21 | # - translations go to /usr/share/TSPSG/l10n |
---|
[760f2aae97] | 22 | # - COPYING, ChangeLog.txt, README.txt and INSTALL.txt |
---|
| 23 | # go to /usr/share/doc/TSPSG-x.x.x |
---|
[ac9ff7c0f1] | 24 | unix:!macx:!symbian:!maemo* { |
---|
[d8a3826f87] | 25 | isEmpty(PREFIX) { |
---|
| 26 | PREFIX = /usr |
---|
| 27 | } |
---|
| 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 |
---|
[e9db3e216b] | 35 | # l10n.path = $$PREFIX/share/TSPSG/l10n |
---|
[0e473fbe88] | 36 | docs.path = $$PREFIX/share/doc/TSPSG-$$SHORT_VERSION |
---|
[d8a3826f87] | 37 | desktop.files = resources/tspsg.desktop |
---|
| 38 | desktop.path = $$PREFIX/share/applications |
---|
| 39 | icon.files = resources/tspsg.png |
---|
| 40 | icon.path = $$PREFIX/share/pixmaps |
---|
| 41 | INSTALLS += desktop icon |
---|
[e9db3e216b] | 42 | } |
---|
| 43 | |
---|
| 44 | # TODO: MacOSX |
---|
| 45 | macx { |
---|
| 46 | } |
---|
| 47 | |
---|
[1b0d08aa2e] | 48 | wince* { |
---|
| 49 | # For wince: we are deploying to %CSIDL_PROGRAM_FILES%\TSPSG. |
---|
| 50 | # This is automatically set by qmake when creating VS Solution file. |
---|
| 51 | share.sources = $$share.files |
---|
[4cc94b19ad] | 52 | l10n.sources = $$l10n.files \ |
---|
| 53 | $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \ |
---|
| 54 | $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm |
---|
[1b0d08aa2e] | 55 | docs.sources = $$docs.files |
---|
| 56 | |
---|
[4cc94b19ad] | 57 | DEPLOYMENT += target share l10n docs |
---|
[1b0d08aa2e] | 58 | DEPLOYMENT_PLUGIN += qjpeg qtiff |
---|
| 59 | } else:win32 { |
---|
| 60 | # For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders. |
---|
[d8a3826f87] | 61 | isEmpty(PREFIX) { |
---|
[2d4659ddfe] | 62 | PREFIX = "$$(PROGRAMFILES)/TSPSG" |
---|
[d8a3826f87] | 63 | } |
---|
| 64 | |
---|
| 65 | share.files = $$[QT_INSTALL_BINS]/QtCore$${D}4.dll \ |
---|
| 66 | $$[QT_INSTALL_BINS]/QtGui$${D}4.dll |
---|
| 67 | !nosvg { |
---|
| 68 | share.files += $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll |
---|
| 69 | } |
---|
[4cc94b19ad] | 70 | l10n.files += $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \ |
---|
| 71 | $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm |
---|
[d8a3826f87] | 72 | win32-g++ { |
---|
| 73 | share.files += $$[QT_INSTALL_BINS]/mingwm10.dll \ |
---|
| 74 | $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll |
---|
| 75 | } |
---|
| 76 | imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll \ |
---|
| 77 | $$[QT_INSTALL_PLUGINS]/imageformats/qtiff$${D}4.dll |
---|
[4cc94b19ad] | 78 | INSTALLS += share l10n imageformats |
---|
[e9db3e216b] | 79 | |
---|
[2d4659ddfe] | 80 | target.path = $$PREFIX |
---|
| 81 | share.path = $$PREFIX |
---|
| 82 | l10n.path = $$PREFIX/l10n |
---|
| 83 | imageformats.path = $$PREFIX/imageformats |
---|
| 84 | docs.path = $$PREFIX |
---|
[e9db3e216b] | 85 | } |
---|
| 86 | |
---|
| 87 | # Symbian |
---|
| 88 | symbian { |
---|
[d8a3826f87] | 89 | TARGET = TSPSG$${D} |
---|
[5cbcd091ed] | 90 | |
---|
[d8a3826f87] | 91 | share.sources = $$share.files |
---|
[d97db6d321] | 92 | # qmake for Symbian (as of Qt 4.6.2) has a bug: file masks don't work, so we need to specify all files manually |
---|
[e9db3e216b] | 93 | # l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \ |
---|
| 94 | # $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \ |
---|
| 95 | # l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm |
---|
| 96 | # l10n.path = l10n |
---|
[d8a3826f87] | 97 | docs.sources = $$docs.files |
---|
[5cbcd091ed] | 98 | # docs.pkg_prerules = \ |
---|
| 99 | # "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \ |
---|
| 100 | # "\"COPYING\" - \"\", FILETEXT, TEXTEXIT" |
---|
[d8a3826f87] | 101 | DEPLOYMENT += share docs # l10n |
---|
[f29549ec20] | 102 | # DEPLOYMENT_PLUGIN += qjpeg qtiff qsvgicon |
---|
[e9db3e216b] | 103 | |
---|
[d8a3826f87] | 104 | ICON = resources/tspsg.svg |
---|
| 105 | TARGET.EPOCHEAPSIZE = 0x20000 0x1100000 |
---|
| 106 | # OVI Publish - 0x2003AEFB, Self-signed - 0xA89FD7A3 |
---|
[b5a996bd47] | 107 | ovi_publish { |
---|
| 108 | TARGET.UID3 = 0x2003AEFB |
---|
| 109 | } else { |
---|
| 110 | TARGET.UID3 = 0xA89FD7A3 |
---|
| 111 | } |
---|
[e9db3e216b] | 112 | |
---|
[d8a3826f87] | 113 | languages="&EN,RU,UK" |
---|
| 114 | package_header = "$$LITERAL_HASH{" \ |
---|
| 115 | " \"$$QMAKE_TARGET_PRODUCT\"," \ |
---|
| 116 | " \"$$QMAKE_TARGET_PRODUCT\"," \ |
---|
| 117 | " \"$$QMAKE_TARGET_PRODUCT\"" \ |
---|
[f8e5161968] | 118 | "},($$TARGET.UID3),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$BUILD_NUMBER" |
---|
[d8a3826f87] | 119 | vendor = \ |
---|
| 120 | "%{\"Oleksii Serdiuk\",\"Алексей Сердюк\",\"Олексій Сердюк\"}" \ |
---|
| 121 | ":\"Oleksii Serdiuk\"" |
---|
[5cbcd091ed] | 122 | # logo = \ |
---|
| 123 | # "=\"resources/tspsg.png\",\"image/png\",\"\"" |
---|
[d8a3826f87] | 124 | dependencies = \ |
---|
| 125 | "; Depend on Qt $${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}" \ |
---|
| 126 | "(0x2001E61C),$${QT_MAJOR_VERSION},$${QT_MINOR_VERSION},$${QT_PATCH_VERSION},{\"Qt\",\"Qt\",\"Qt\"}" \ |
---|
| 127 | "; Declare the supported platforms" \ |
---|
| 128 | "; Symbian^1" \ |
---|
| 129 | "[0x1028315F],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}" \ |
---|
| 130 | "; Symbian^3" \ |
---|
| 131 | "[0x20022E6D],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}" |
---|
| 132 | |
---|
| 133 | default_deployment.pkg_prerules -= pkg_platform_dependencies pkg_depends_qt |
---|
| 134 | default_deployment.pkg_prerules += languages package_header vendor dependencies |
---|
[5cbcd091ed] | 135 | # default_deployment.pkg_prerules += languages package_header vendor logo dependencies |
---|
[d8a3826f87] | 136 | # OVI Publish - 0x2002CCCF, Self-signed - 0xA000D7CE |
---|
[b5a996bd47] | 137 | ovi_publish { |
---|
| 138 | SMARTINSTALLER_UID = 0x2002CCCF |
---|
| 139 | } else { |
---|
| 140 | SMARTINSTALLER_UID = 0xA000D7CE |
---|
| 141 | } |
---|
[d8a3826f87] | 142 | DEPLOYMENT.installer_header = "$${LITERAL_HASH}{" \ |
---|
| 143 | "\"$$QMAKE_TARGET_PRODUCT Installer\"," \ |
---|
| 144 | "\"Установщик $$QMAKE_TARGET_PRODUCT\"," \ |
---|
| 145 | "\"Встановлювач $$QMAKE_TARGET_PRODUCT\"" \ |
---|
[f8e5161968] | 146 | "},($${SMARTINSTALLER_UID}),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$BUILD_NUMBER" |
---|
[e9db3e216b] | 147 | } |
---|
[8dcf4701e6] | 148 | |
---|
| 149 | # Maemo 5 |
---|
| 150 | maemo5 { |
---|
[d8a3826f87] | 151 | target.path = /opt/usr/bin |
---|
| 152 | desktop.files = qtc_packaging/tspsg.desktop |
---|
| 153 | desktop.path = /usr/share/applications/hildon |
---|
| 154 | icon.files = qtc_packaging/tspsg.png |
---|
| 155 | icon.path = /usr/share/icons/hicolor/64x64/apps |
---|
[8dcf4701e6] | 156 | |
---|
[d8a3826f87] | 157 | INSTALLS += desktop icon |
---|
[8dcf4701e6] | 158 | } |
---|