source: tspsg/install.pri @ d45b48efe9

0.1.3.145-beta1-symbian
Last change on this file since d45b48efe9 was d45b48efe9, checked in by Oleksii Serdiuk, 13 years ago

Initial Symbian port.

Version 0.1.3.145-beta1, as published in the Nokia Ovi Store.

  • Property mode set to 100644
File size: 4.7 KB
Line 
1######################################################################
2#
3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
5#
6#  $Id$
7#  $URL$
8#
9#  This file is part of TSPSG.
10#
11######################################################################
12
13# Common rules
14#l10n.files = l10n/*.qm
15#share.files =
16docs.files = COPYING ChangeLog.txt README.txt INSTALL.txt
17INSTALLS += target share docs # l10n
18
19# For *nix:
20#   - executable goes to /usr/bin
21#   - translations go to /usr/share/TSPSG/l10n
22#   - COPYING, ChangeLog.txt, README.txt and INSTALL.txt
23#     go to /usr/share/doc/TSPSG-x.x.x
24unix:!macx:!symbian {
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
35#       l10n.path = $$PREFIX/share/TSPSG/l10n
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
42}
43
44# TODO: MacOSX
45macx {
46}
47
48# For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders.
49win32 {
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        }
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#       iconengines.files = $$[QT_INSTALL_PLUGINS]/iconengines/qsvgicon$${D}4.dll
65#       iconengines.path = $$PREFIX/TSPSG/iconengines
66        imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll \
67                $$[QT_INSTALL_PLUGINS]/imageformats/qtiff$${D}4.dll
68        imageformats.path = $$PREFIX/TSPSG/imageformats
69        INSTALLS += imageformats # iconengines
70}
71
72# For wince: we are deploying to \Program Files\TSPSG.
73wince* {
74        isEmpty(PREFIX) {
75                PREFIX = "\\Program Files"
76        }
77        share.sources = $$share.files
78#       l10n.sources = $$l10n.files \
79#               $$[QT_INSTALL_TRANSLATIONS]/*.qm
80        docs.sources = $$docs.files
81
82        DEPLOYMENT += target share docs # l10n
83#       DEPLOYMENT_PLUGIN += qjpeg qtiff qsvgicon
84}
85
86# win32 and wince common
87win* {
88        target.path = $$PREFIX/TSPSG
89        share.path = $$PREFIX/TSPSG
90#       l10n.path = $$PREFIX/TSPSG/l10n
91        docs.path = $$PREFIX/TSPSG
92}
93
94# Symbian
95symbian {
96        TARGET = TSPSG$${D}
97
98        # 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
99        share.sources = $$share.files
100#       l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \
101#               $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \
102#               l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm
103#       l10n.path = l10n
104        docs.sources = $$docs.files
105#       docs.pkg_prerules = \
106#               "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \
107#               "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
108        DEPLOYMENT += share docs # l10n
109#       DEPLOYMENT_PLUGIN += qjpeg qtiff # qsvgicon
110
111        ICON = resources/tspsg.svg
112        TARGET.EPOCHEAPSIZE = 0x20000 0x1100000
113        # OVI Publish - 0x2003AEFB, Self-signed - 0xA89FD7A3
114        TARGET.UID3 = 0xA89FD7A3
115#       TARGET.UID3 = 0x2003AEFB
116
117        languages="&EN,RU,UK"
118        package_header = "$$LITERAL_HASH{" \
119                " \"$$QMAKE_TARGET_PRODUCT\"," \
120                " \"$$QMAKE_TARGET_PRODUCT\"," \
121                " \"$$QMAKE_TARGET_PRODUCT\"" \
122                "},($$TARGET.UID3),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
123        vendor = \
124                "%{\"Oleksii Serdiuk\",\"Алексей Сердюк\",\"Олексій Сердюк\"}" \
125                ":\"Oleksii Serdiuk\""
126#       logo = \
127#               "=\"resources/tspsg.png\",\"image/png\",\"\""
128        dependencies = \
129                "; Depend on Qt $${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}" \
130                "(0x2001E61C),$${QT_MAJOR_VERSION},$${QT_MINOR_VERSION},$${QT_PATCH_VERSION},{\"Qt\",\"Qt\",\"Qt\"}" \
131                "; Declare the supported platforms" \
132                "; Symbian^1" \
133                "[0x1028315F],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}" \
134                "; Symbian^3" \
135                "[0x20022E6D],0,0,0,{\"S60ProductID\",\"S60ProductID\",\"S60ProductID\"}"
136
137        default_deployment.pkg_prerules -= pkg_platform_dependencies pkg_depends_qt
138        default_deployment.pkg_prerules += languages package_header vendor dependencies
139#       default_deployment.pkg_prerules += languages package_header vendor logo dependencies
140        # OVI Publish - 0x2002CCCF, Self-signed - 0xA000D7CE
141        DEPLOYMENT.installer_header = "$${LITERAL_HASH}{" \
142                "\"$$QMAKE_TARGET_PRODUCT Installer\"," \
143                "\"Установщик $$QMAKE_TARGET_PRODUCT\"," \
144                "\"Встановлювач $$QMAKE_TARGET_PRODUCT\"" \
145                "},(0xA000D7CE),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
146#               "},(0x2002CCCF),$$BUILD_VERSION_MAJOR,$${BUILD_VERSION_MINOR}$${BUILD_RELEASE},$$REVISION"
147}
Note: See TracBrowser for help on using the repository browser.