source: tspsg/install.pri @ 1b0d08aa2e

appveyorimgbotreadme
Last change on this file since 1b0d08aa2e was 1b0d08aa2e, checked in by Oleksii Serdiuk, 12 years ago

Some Windows Mobile specific tweaks to project file...

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