source: tspsg/tspsg.pro @ f19df0a3e5

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

+ Added precompiled header (PCH) file: should decrease project build time.

  • Improved installation and deployment rules in .pro file.
  • Improved translucency effect under Windows Vista/7.
  • Slightly modified qtwin.h to be included into the source documentation.
  • Regenerated source documentation.
  • Property mode set to 100644
File size: 3.8 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
[0ac9690913]13QT += svg
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
25# This one is only defined on releases
26#DEFINES += TSPSG_RELEASE_BUILD
27
28REVISION = $$system(svnversion)
29REVISION = $$replace(REVISION,"M","")
30VERSION = $$sprintf("%1.%2.%3",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE)
31
32DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
33        BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
34        BUILD_RELEASE=$$BUILD_RELEASE \
35        BUILD_NUMBER=$$REVISION
[5515c2c2a7]36
[0ac9690913]37# A hack to determine whether we have static or dynamic Qt build
[162d5c5f94]38unix:!symbian {
39        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
40} else:unix {
41        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[f19df0a3e5]42} else {
43        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[162d5c5f94]44}
[0ac9690913]45include($$join(PRL, "/"))
46contains(QMAKE_PRL_CONFIG, static) {
47# We "embed" SVG and JPEG support on static build
48        QTPLUGIN += qjpeg qsvg
49        DEFINES += STATIC_BUILD
50}
51
[4c96f94558]52CONFIG(release, debug|release) {
53        OBJECTS_DIR = release
54        DESTDIR = release
55} else {
56        OBJECTS_DIR = debug
57        DESTDIR = debug
[162d5c5f94]58        DEFINES += DEBUG
[4c96f94558]59}
60
[799ba1e3f2]61# Saving all intermediate files to tmp directory.
62MOC_DIR = ./tmp
63RCC_DIR = ./tmp
64UI_DIR = ./tmp
65
[162d5c5f94]66# Include file(s)
[5354a01311]67include(tspsg.pri)
68
[162d5c5f94]69# Installation and deployment
70# Common rules
71l10n.files = l10n/*.qm
[f19df0a3e5]72#share.files =
[162d5c5f94]73docs.files = COPYING README
74INSTALLS += target l10n share docs
75
[2fb523720a]76# For *nix:
[162d5c5f94]77#   - executable goes to /usr/bin
[f19df0a3e5]78#   - COPYING and README go to /usr/share/TSPSG
79#   - translations go to /usr/share/TSPSG/l10n
80#   - docs go to /usr/share/doc/TSPSG-x.x.x
[6beb157497]81unix:!symbian {
[162d5c5f94]82        PREFIX = /usr
83        CONFIG(release, debug|release) {
[f19df0a3e5]84                DEFINES += PATH_L10N=\\\"$$PREFIX/share/TSPSG/l10n\\\"
85                DEFINES += PATH_DOCS=\\\"$$PREFIX/share/TSPSG/docs\\\"
[162d5c5f94]86        }
87
88        target.path = $$PREFIX/bin
[f19df0a3e5]89        share.path = $$PREFIX/share/TSPSG
90        l10n.path = $$PREFIX/share/TSPSG/l10n
91        docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION
[162d5c5f94]92        apps.path = $$PREFIX/share/applications/
[41d264adbd]93        apps.files = resources/tspsg.desktop
[162d5c5f94]94        icon.path = $$PREFIX/share/pixmaps
[41d264adbd]95        icon.files = resources/tspsg.png
[162d5c5f94]96        INSTALLS += apps icon
[2fb523720a]97}
98
[162d5c5f94]99# TODO: MacOSX
[6beb157497]100
[f19df0a3e5]101# For win32: everything goes to "C:\Program Files\TSPSG" and subfolders.
[162d5c5f94]102win32 {
103        PREFIX = "C:\Program Files"
[f19df0a3e5]104
105        CONFIG(release, debug|release) {
106                imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qsvg4.dll \
107                        $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg4.dll
108        } else {
109                imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qsvgd4.dll \
110                        $$[QT_INSTALL_PLUGINS]/imageformats/qjpegd4.dll
111        }
112        imageformats.path = $$PREFIX/TSPSG/imageformats
113        INSTALLS += imageformats
[2fb523720a]114}
115
[f19df0a3e5]116# For wince: we are deploying to \Program Files\TSPSG.
[2fb523720a]117wince {
[f19df0a3e5]118        PREFIX = "\Program Files"
[162d5c5f94]119        DEPLOYMENT += target share l10n docs
[f19df0a3e5]120        DEPLOYMENT_PLUGIN += qjpeg qsvg
[162d5c5f94]121}
122
123# win32 and wince common
124win* {
[f19df0a3e5]125        target.path = $$PREFIX/TSPSG
126        share.path = $$PREFIX/TSPSG
127        l10n.path = $$PREFIX/TSPSG/l10n
128        docs.path = $$PREFIX/TSPSG
[162d5c5f94]129
130        RC_FILE = resources/tspsg.rc
[2fb523720a]131}
[799ba1e3f2]132
[6beb157497]133# Symbian
134symbian {
[162d5c5f94]135        l10n.path = l10n
136        docs.pkg_prerules = \
[6beb157497]137                "\"README\" - \"\", FILETEXT, TEXTCONTINUE" \
138                "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
[162d5c5f94]139        DEPLOYMENT += share l10n docs
[f19df0a3e5]140        DEPLOYMENT_PLUGIN += qjpeg qsvg
[6beb157497]141
142        ICON = resources/tspsg.svg
143
144        appinfo = \
145                "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),0,1,2"
146        vendorinfo = \
147                "%{\"l-homes.org\"}" \
148                ":\"l-homes.org\""
149        default_deployment.pkg_prerules = appinfo vendorinfo
150        DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0"
151}
Note: See TracBrowser for help on using the repository browser.