source: tspsg/install.pri @ 5f49b20d9d

appveyorimgbotreadme
Last change on this file since 5f49b20d9d was f8e5161968, checked in by Oleksii Serdiuk, 12 years ago

Fixed wrong version in Symbian package.

  • Property mode set to 100644
File size: 5.3 KB
RevLine 
[e9db3e216b]1######################################################################
2#
3#  TSPSG: TSP Solver and Generator
[0af510a462]4#  Copyright (C) 2007-2012 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]16docs.files = COPYING ChangeLog.txt README.txt INSTALL.txt
[cc5c5108a3]17INSTALLS += 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]24unix:!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
[d8a3826f87]36    docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION
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
45macx {
46}
47
48# For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders.
49win32 {
[d8a3826f87]50    isEmpty(PREFIX) {
51        PREFIX = "$$(PROGRAMFILES)"
52    }
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    }
[e9db3e216b]59#       l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm
[d8a3826f87]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
67    INSTALLS += share imageformats
[e9db3e216b]68}
69
70# For wince: we are deploying to \Program Files\TSPSG.
71wince* {
[d8a3826f87]72    isEmpty(PREFIX) {
73        PREFIX = "\\Program Files"
74    }
75    share.sources = $$share.files
[e9db3e216b]76#       l10n.sources = $$l10n.files \
77#               $$[QT_INSTALL_TRANSLATIONS]/*.qm
[d8a3826f87]78    docs.sources = $$docs.files
[e9db3e216b]79
[d8a3826f87]80    DEPLOYMENT += target share docs # l10n
81    DEPLOYMENT_PLUGIN += qjpeg qtiff
[e9db3e216b]82}
83
84# win32 and wince common
85win* {
[d8a3826f87]86    target.path = $$PREFIX/TSPSG
87    share.path = $$PREFIX/TSPSG
[e9db3e216b]88#       l10n.path = $$PREFIX/TSPSG/l10n
[d8a3826f87]89    docs.path = $$PREFIX/TSPSG
[e9db3e216b]90}
91
92# Symbian
93symbian {
[d8a3826f87]94    TARGET = TSPSG$${D}
[5cbcd091ed]95
[d8a3826f87]96    share.sources = $$share.files
[d97db6d321]97    # 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]98#       l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \
99#               $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \
100#               l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm
101#       l10n.path = l10n
[d8a3826f87]102    docs.sources = $$docs.files
[5cbcd091ed]103#       docs.pkg_prerules = \
104#               "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \
105#               "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
[d8a3826f87]106    DEPLOYMENT += share docs # l10n
[f29549ec20]107#       DEPLOYMENT_PLUGIN += qjpeg qtiff qsvgicon
[e9db3e216b]108
[d8a3826f87]109    ICON = resources/tspsg.svg
110    TARGET.EPOCHEAPSIZE = 0x20000 0x1100000
111    # OVI Publish - 0x2003AEFB, Self-signed - 0xA89FD7A3
[b5a996bd47]112    ovi_publish {
113        TARGET.UID3 = 0x2003AEFB
114    } else {
115        TARGET.UID3 = 0xA89FD7A3
116    }
[e9db3e216b]117
[d8a3826f87]118    languages="&EN,RU,UK"
119    package_header = "$$LITERAL_HASH{" \
120        " \"$$QMAKE_TARGET_PRODUCT\"," \
121        " \"$$QMAKE_TARGET_PRODUCT\"," \
122        " \"$$QMAKE_TARGET_PRODUCT\"" \
[f8e5161968]123        "},($$TARGET.UID3),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$BUILD_NUMBER"
[d8a3826f87]124    vendor = \
125        "%{\"Oleksii Serdiuk\",\"Алексей Сердюк\",\"Олексій Сердюк\"}" \
126        ":\"Oleksii Serdiuk\""
[5cbcd091ed]127#       logo = \
128#               "=\"resources/tspsg.png\",\"image/png\",\"\""
[d8a3826f87]129    dependencies = \
130        "; Depend on Qt $${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}" \
131        "(0x2001E61C),$${QT_MAJOR_VERSION},$${QT_MINOR_VERSION},$${QT_PATCH_VERSION},{\"Qt\",\"Qt\",\"Qt\"}" \
132        "; Declare the supported platforms" \
133        "; Symbian^1" \
134        "[0x1028315F],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}" \
135        "; Symbian^3" \
136        "[0x20022E6D],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}"
137
138    default_deployment.pkg_prerules -= pkg_platform_dependencies pkg_depends_qt
139    default_deployment.pkg_prerules += languages package_header vendor dependencies
[5cbcd091ed]140#       default_deployment.pkg_prerules += languages package_header vendor logo dependencies
[d8a3826f87]141    # OVI Publish - 0x2002CCCF, Self-signed - 0xA000D7CE
[b5a996bd47]142    ovi_publish {
143        SMARTINSTALLER_UID = 0x2002CCCF
144    } else {
145        SMARTINSTALLER_UID = 0xA000D7CE
146    }
[d8a3826f87]147    DEPLOYMENT.installer_header = "$${LITERAL_HASH}{" \
148        "\"$$QMAKE_TARGET_PRODUCT Installer\"," \
149        "\"Установщик $$QMAKE_TARGET_PRODUCT\"," \
150        "\"Встановлювач $$QMAKE_TARGET_PRODUCT\"" \
[f8e5161968]151        "},($${SMARTINSTALLER_UID}),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$BUILD_NUMBER"
[e9db3e216b]152}
[8dcf4701e6]153
154# Maemo 5
155maemo5 {
[d8a3826f87]156    target.path = /opt/usr/bin
157    desktop.files = qtc_packaging/tspsg.desktop
158    desktop.path = /usr/share/applications/hildon
159    icon.files = qtc_packaging/tspsg.png
160    icon.path = /usr/share/icons/hicolor/64x64/apps
[8dcf4701e6]161
[d8a3826f87]162    INSTALLS += desktop icon
[8dcf4701e6]163}
Note: See TracBrowser for help on using the repository browser.