source: tspsg-svn/trunk/install.pri @ 121

Last change on this file since 121 was 121, checked in by laleppa, 15 years ago
File size: 3.2 KB
RevLine 
[1]1######################################################################
[17]2#
[90]3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
[17]5#
[90]6#  $Id: install.pri 121 2010-06-22 13:38:24Z laleppa $
7#  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/install.pri $
[17]8#
[90]9#  This file is part of TSPSG.
[17]10#
[1]11######################################################################
12
[96]13# Common rules
[97]14l10n.files = l10n/*.qm
[96]15#share.files =
[104]16docs.files = COPYING README.txt
[96]17INSTALLS += target l10n share docs
18
[57]19# For *nix:
[96]20#   - executable goes to /usr/bin
[97]21#   - COPYING and README go to /usr/share/TSPSG
22#   - translations go to /usr/share/TSPSG/l10n
23#   - docs go to /usr/share/doc/TSPSG-x.x.x
[121]24unix:!macx:!symbian {
[96]25        PREFIX = /usr
26        CONFIG(release, debug|release) {
[97]27                DEFINES += PATH_L10N=\\\"$$PREFIX/share/TSPSG/l10n\\\"
28                DEFINES += PATH_DOCS=\\\"$$PREFIX/share/TSPSG/docs\\\"
[96]29        }
30
31        target.path = $$PREFIX/bin
[97]32        share.path = $$PREFIX/share/TSPSG
33        l10n.path = $$PREFIX/share/TSPSG/l10n
34        docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION
[98]35        apps.files = resources/tspsg.desktop
[96]36        apps.path = $$PREFIX/share/applications/
[98]37        icon.files = resources/tspsg.png
[96]38        icon.path = $$PREFIX/share/pixmaps
39        INSTALLS += apps icon
[57]40}
[20]41
[96]42# TODO: MacOSX
[121]43macx {
44}
[96]45
[98]46# For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders.
[57]47win32 {
[98]48        PREFIX = "$$(PROGRAMFILES)"
[97]49
[100]50        share.files = $$[QT_INSTALL_BINS]/QtCore$${D}4.dll \
51                $$[QT_INSTALL_BINS]/QtGui$${D}4.dll
[109]52        !nosvg {
53                share.files += $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll
54        }
[100]55        l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm
56        win32-g++ {
57                share.files += $$[QT_INSTALL_BINS]/mingwm10.dll \
58                        $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll
59        }
[109]60        imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll \
61                $$[QT_INSTALL_PLUGINS]/imageformats/qtiff$${D}4.dll
[97]62        imageformats.path = $$PREFIX/TSPSG/imageformats
63        INSTALLS += imageformats
[57]64}
65
[97]66# For wince: we are deploying to \Program Files\TSPSG.
[118]67wince* {
[97]68        PREFIX = "\Program Files"
[98]69        share.sources = $$share.files
[100]70        l10n.sources = $$l10n.files \
71                $$[QT_INSTALL_TRANSLATIONS]/*.qm
[98]72        docs.sources = $$docs.files
73
[96]74        DEPLOYMENT += target share l10n docs
[109]75#       DEPLOYMENT_PLUGIN += qjpeg qtiff
[57]76}
77
[96]78# win32 and wince common
79win* {
[97]80        target.path = $$PREFIX/TSPSG
81        share.path = $$PREFIX/TSPSG
82        l10n.path = $$PREFIX/TSPSG/l10n
83        docs.path = $$PREFIX/TSPSG
[96]84
85        RC_FILE = resources/tspsg.rc
86}
87
[93]88# Symbian
89symbian {
[98]90        # 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
91        share.sources = $$share.files
[100]92        l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \
93                $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \
94                l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm
[96]95        l10n.path = l10n
[98]96        docs.sources = $$docs.files
[96]97        docs.pkg_prerules = \
[104]98                "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \
[93]99                "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
[96]100        DEPLOYMENT += share l10n docs
[109]101#       DEPLOYMENT_PLUGIN += qjpeg qtiff
[93]102
103        ICON = resources/tspsg.svg
104
105        appinfo = \
[98]106                "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE"
[93]107        vendorinfo = \
108                "%{\"l-homes.org\"}" \
109                ":\"l-homes.org\""
110        default_deployment.pkg_prerules = appinfo vendorinfo
111        DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0"
112}
Note: See TracBrowser for help on using the repository browser.