source: tspsg/tspsg.pro @ e2abfd326f

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since e2abfd326f was e2abfd326f, checked in by Oleksii Serdiuk, 14 years ago

+ Translatable About dialog.

  • Improved installation rules in .pro file.
  • Disabled SVG and JPEG support. They aren't needed at this point.
  • Fixed a bug when labels were hardly visible under Windows Vista/7 whith translucency on and a dark background behind the application.
  • Fixed a bug when Main Window area was blank if the application was compiled using Qt < 4.6.0.
  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[5515c2c2a7]1######################################################################
[5354a01311]2#
[3e46075789]3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
[5354a01311]5#
[3e46075789]6#  $Id$
7#  $URL$
[5354a01311]8#
[3e46075789]9#  This file is part of TSPSG.
[5354a01311]10#
[5515c2c2a7]11######################################################################
12
[e2abfd326f]13#QT += svg
[0ac9690913]14
[4c96f94558]15TEMPLATE = app
[5354a01311]16TARGET = tspsg
17DEPENDPATH += .
[5515c2c2a7]18INCLUDEPATH += .
[162d5c5f94]19
20# Versioning
21BUILD_VERSION_MAJOR = 0
22BUILD_VERSION_MINOR = 1
23BUILD_RELEASE = 2
24
[e2abfd326f]25# These are only defined on releases
[162d5c5f94]26#DEFINES += TSPSG_RELEASE_BUILD
[e2abfd326f]27#DEFINES += BUILD_STATUS="\"(alpha 2)\""
[162d5c5f94]28
29REVISION = $$system(svnversion)
30REVISION = $$replace(REVISION,"M","")
31VERSION = $$sprintf("%1.%2.%3",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE)
32
33DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
34        BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
35        BUILD_RELEASE=$$BUILD_RELEASE \
36        BUILD_NUMBER=$$REVISION
[5515c2c2a7]37
[0ac9690913]38# A hack to determine whether we have static or dynamic Qt build
[162d5c5f94]39unix:!symbian {
40        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
41} else:unix {
42        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[f19df0a3e5]43} else {
44        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[162d5c5f94]45}
[0ac9690913]46include($$join(PRL, "/"))
47contains(QMAKE_PRL_CONFIG, static) {
48# We "embed" SVG and JPEG support on static build
[e2abfd326f]49#       QTPLUGIN += qjpeg qsvg
[0ac9690913]50        DEFINES += STATIC_BUILD
51}
52
[4c96f94558]53CONFIG(release, debug|release) {
54        OBJECTS_DIR = release
55        DESTDIR = release
[e2abfd326f]56        D = d
[4c96f94558]57} else {
58        OBJECTS_DIR = debug
59        DESTDIR = debug
[162d5c5f94]60        DEFINES += DEBUG
[e2abfd326f]61        D =
[4c96f94558]62}
63
[799ba1e3f2]64# Saving all intermediate files to tmp directory.
65MOC_DIR = ./tmp
66RCC_DIR = ./tmp
67UI_DIR = ./tmp
68
[162d5c5f94]69# Include file(s)
[5354a01311]70include(tspsg.pri)
71
[162d5c5f94]72# Installation and deployment
73# Common rules
74l10n.files = l10n/*.qm
[f19df0a3e5]75#share.files =
[162d5c5f94]76docs.files = COPYING README
77INSTALLS += target l10n share docs
78
[2fb523720a]79# For *nix:
[162d5c5f94]80#   - executable goes to /usr/bin
[f19df0a3e5]81#   - COPYING and README go to /usr/share/TSPSG
82#   - translations go to /usr/share/TSPSG/l10n
83#   - docs go to /usr/share/doc/TSPSG-x.x.x
[6beb157497]84unix:!symbian {
[162d5c5f94]85        PREFIX = /usr
86        CONFIG(release, debug|release) {
[f19df0a3e5]87                DEFINES += PATH_L10N=\\\"$$PREFIX/share/TSPSG/l10n\\\"
88                DEFINES += PATH_DOCS=\\\"$$PREFIX/share/TSPSG/docs\\\"
[162d5c5f94]89        }
90
91        target.path = $$PREFIX/bin
[f19df0a3e5]92        share.path = $$PREFIX/share/TSPSG
93        l10n.path = $$PREFIX/share/TSPSG/l10n
94        docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION
[41d264adbd]95        apps.files = resources/tspsg.desktop
[e2abfd326f]96        apps.path = $$PREFIX/share/applications/
[41d264adbd]97        icon.files = resources/tspsg.png
[e2abfd326f]98        icon.path = $$PREFIX/share/pixmaps
[162d5c5f94]99        INSTALLS += apps icon
[2fb523720a]100}
101
[162d5c5f94]102# TODO: MacOSX
[6beb157497]103
[e2abfd326f]104# For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders.
[162d5c5f94]105win32 {
[e2abfd326f]106        PREFIX = "$$(PROGRAMFILES)"
[f19df0a3e5]107
[e2abfd326f]108        share.files = $$[QT_INSTALL_LIBS]/QtCore$${D}4.dll \
109                $$[QT_INSTALL_LIBS]/QtGui$${D}4.dll \
110                $$[QT_INSTALL_LIBS]/QtSvg$${D}4.dll
111        imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qsvg$${D}4.dll \
112                $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll
[f19df0a3e5]113        imageformats.path = $$PREFIX/TSPSG/imageformats
114        INSTALLS += imageformats
[2fb523720a]115}
116
[f19df0a3e5]117# For wince: we are deploying to \Program Files\TSPSG.
[2fb523720a]118wince {
[f19df0a3e5]119        PREFIX = "\Program Files"
[e2abfd326f]120        share.sources = $$share.files
121        l10n.sources = $$l10n.files
122        docs.sources = $$docs.files
123
[162d5c5f94]124        DEPLOYMENT += target share l10n docs
[e2abfd326f]125#       DEPLOYMENT_PLUGIN += qjpeg qsvg
[162d5c5f94]126}
127
128# win32 and wince common
129win* {
[f19df0a3e5]130        target.path = $$PREFIX/TSPSG
131        share.path = $$PREFIX/TSPSG
132        l10n.path = $$PREFIX/TSPSG/l10n
133        docs.path = $$PREFIX/TSPSG
[162d5c5f94]134
135        RC_FILE = resources/tspsg.rc
[2fb523720a]136}
[799ba1e3f2]137
[6beb157497]138# Symbian
139symbian {
[e2abfd326f]140        # 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
141        share.sources = $$share.files
142        l10n.sources = l10n/qt_ru.qm l10n/qt_uk.qm l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm
[162d5c5f94]143        l10n.path = l10n
[e2abfd326f]144        docs.sources = $$docs.files
[162d5c5f94]145        docs.pkg_prerules = \
[6beb157497]146                "\"README\" - \"\", FILETEXT, TEXTCONTINUE" \
147                "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
[162d5c5f94]148        DEPLOYMENT += share l10n docs
[e2abfd326f]149#       DEPLOYMENT_PLUGIN += qjpeg qsvg
[6beb157497]150
151        ICON = resources/tspsg.svg
152
153        appinfo = \
[e2abfd326f]154                "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE"
[6beb157497]155        vendorinfo = \
156                "%{\"l-homes.org\"}" \
157                ":\"l-homes.org\""
158        default_deployment.pkg_prerules = appinfo vendorinfo
159        DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0"
160}
Note: See TracBrowser for help on using the repository browser.