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

Last change on this file since 112 was 109, checked in by laleppa, 14 years ago

+ Added the ability to select in what format to save the graph when saving solution as HTML.

  • Moved all installation and deployment rules to a separate install.pri file.
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 109 2010-04-27 07:12:55Z 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
[93]24unix:!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
43
[98]44# For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders.
[57]45win32 {
[98]46        PREFIX = "$$(PROGRAMFILES)"
[97]47
[100]48        share.files = $$[QT_INSTALL_BINS]/QtCore$${D}4.dll \
49                $$[QT_INSTALL_BINS]/QtGui$${D}4.dll
[109]50        !nosvg {
51                share.files += $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll
52        }
[100]53        l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm
54        win32-g++ {
55                share.files += $$[QT_INSTALL_BINS]/mingwm10.dll \
56                        $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll
57        }
[109]58        imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll \
59                $$[QT_INSTALL_PLUGINS]/imageformats/qtiff$${D}4.dll
[97]60        imageformats.path = $$PREFIX/TSPSG/imageformats
61        INSTALLS += imageformats
[57]62}
63
[97]64# For wince: we are deploying to \Program Files\TSPSG.
[57]65wince {
[97]66        PREFIX = "\Program Files"
[98]67        share.sources = $$share.files
[100]68        l10n.sources = $$l10n.files \
69                $$[QT_INSTALL_TRANSLATIONS]/*.qm
[98]70        docs.sources = $$docs.files
71
[96]72        DEPLOYMENT += target share l10n docs
[109]73#       DEPLOYMENT_PLUGIN += qjpeg qtiff
[57]74}
75
[96]76# win32 and wince common
77win* {
[97]78        target.path = $$PREFIX/TSPSG
79        share.path = $$PREFIX/TSPSG
80        l10n.path = $$PREFIX/TSPSG/l10n
81        docs.path = $$PREFIX/TSPSG
[96]82
83        RC_FILE = resources/tspsg.rc
84}
85
[93]86# Symbian
87symbian {
[98]88        # 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
89        share.sources = $$share.files
[100]90        l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \
91                $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \
92                l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm
[96]93        l10n.path = l10n
[98]94        docs.sources = $$docs.files
[96]95        docs.pkg_prerules = \
[104]96                "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \
[93]97                "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
[96]98        DEPLOYMENT += share l10n docs
[109]99#       DEPLOYMENT_PLUGIN += qjpeg qtiff
[93]100
101        ICON = resources/tspsg.svg
102
103        appinfo = \
[98]104                "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE"
[93]105        vendorinfo = \
106                "%{\"l-homes.org\"}" \
107                ":\"l-homes.org\""
108        default_deployment.pkg_prerules = appinfo vendorinfo
109        DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0"
110}
Note: See TracBrowser for help on using the repository browser.