source: tspsg/tspsg.pro @ ca3d2a30fa

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

+ Implemented saving the solution graph when saving solution as HTML (in SVG format).

  • Property mode set to 100644
File size: 4.6 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
[ca3d2a30fa]13QT += svg
[0ac9690913]14
[4c96f94558]15TEMPLATE = app
[162d5c5f94]16
17# Versioning
18BUILD_VERSION_MAJOR = 0
19BUILD_VERSION_MINOR = 1
[317ba0432e]20BUILD_RELEASE = 3
[162d5c5f94]21
[e2abfd326f]22# These are only defined on releases
[317ba0432e]23#DEFINES += TSPSG_RELEASE_BUILD
24#!symbian {
25#      DEFINES += BUILD_STATUS="\"(alpha 2)\""
26#} else {
27#      # Symbian doesn't handle spaces in defines well
28#      DEFINES += BUILD_STATUS="(alpha2)"
29#}
30
31#REVISION = 100
32REVISION = $$system(svnversion)
33REVISION = $$replace(REVISION,"M","")
[1babbd6ba3]34VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION)
[162d5c5f94]35
36DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
37        BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
38        BUILD_RELEASE=$$BUILD_RELEASE \
39        BUILD_NUMBER=$$REVISION
[5515c2c2a7]40
[0ac9690913]41# A hack to determine whether we have static or dynamic Qt build
[162d5c5f94]42unix:!symbian {
43        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
44} else:unix {
45        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[f19df0a3e5]46} else {
47        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[162d5c5f94]48}
[0ac9690913]49include($$join(PRL, "/"))
50contains(QMAKE_PRL_CONFIG, static) {
51# We "embed" SVG and JPEG support on static build
[ca3d2a30fa]52        QTPLUGIN += qjpeg qsvg
[0ac9690913]53        DEFINES += STATIC_BUILD
54}
55
[1babbd6ba3]56CONFIG(release, debug|release) {
[4c96f94558]57        OBJECTS_DIR = release
58        DESTDIR = release
[394216e468]59        D =
[4c96f94558]60} else {
61        OBJECTS_DIR = debug
62        DESTDIR = debug
[162d5c5f94]63        DEFINES += DEBUG
[317ba0432e]64#       CONFIG += console
[394216e468]65        D = d
[4c96f94558]66}
[394216e468]67TARGET = tspsg$${D}
[4c96f94558]68
[799ba1e3f2]69# Saving all intermediate files to tmp directory.
70MOC_DIR = ./tmp
71RCC_DIR = ./tmp
72UI_DIR = ./tmp
73
[162d5c5f94]74# Include file(s)
[5354a01311]75include(tspsg.pri)
76
[162d5c5f94]77# Installation and deployment
78# Common rules
79l10n.files = l10n/*.qm
[f19df0a3e5]80#share.files =
[317ba0432e]81docs.files = COPYING README.txt
[162d5c5f94]82INSTALLS += target l10n share docs
83
[2fb523720a]84# For *nix:
[162d5c5f94]85#   - executable goes to /usr/bin
[f19df0a3e5]86#   - COPYING and README go to /usr/share/TSPSG
87#   - translations go to /usr/share/TSPSG/l10n
88#   - docs go to /usr/share/doc/TSPSG-x.x.x
[6beb157497]89unix:!symbian {
[162d5c5f94]90        PREFIX = /usr
91        CONFIG(release, debug|release) {
[f19df0a3e5]92                DEFINES += PATH_L10N=\\\"$$PREFIX/share/TSPSG/l10n\\\"
93                DEFINES += PATH_DOCS=\\\"$$PREFIX/share/TSPSG/docs\\\"
[162d5c5f94]94        }
95
96        target.path = $$PREFIX/bin
[f19df0a3e5]97        share.path = $$PREFIX/share/TSPSG
98        l10n.path = $$PREFIX/share/TSPSG/l10n
99        docs.path = $$PREFIX/share/doc/TSPSG-$$VERSION
[41d264adbd]100        apps.files = resources/tspsg.desktop
[e2abfd326f]101        apps.path = $$PREFIX/share/applications/
[41d264adbd]102        icon.files = resources/tspsg.png
[e2abfd326f]103        icon.path = $$PREFIX/share/pixmaps
[162d5c5f94]104        INSTALLS += apps icon
[2fb523720a]105}
106
[162d5c5f94]107# TODO: MacOSX
[6beb157497]108
[e2abfd326f]109# For win32: everything goes to "%PROGRAMFILES%\TSPSG" and subfolders.
[162d5c5f94]110win32 {
[e2abfd326f]111        PREFIX = "$$(PROGRAMFILES)"
[f19df0a3e5]112
[1babbd6ba3]113        share.files = $$[QT_INSTALL_BINS]/QtCore$${D}4.dll \
114                $$[QT_INSTALL_BINS]/QtGui$${D}4.dll
[ca3d2a30fa]115                $$[QT_INSTALL_BINS]/QtSvg$${D}4.dll
[1babbd6ba3]116        l10n.files += $$[QT_INSTALL_TRANSLATIONS]/*.qm
117        win32-g++ {
118                share.files += $$[QT_INSTALL_BINS]/mingwm10.dll \
119                        $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll
120        }
[e2abfd326f]121        imageformats.files = $$[QT_INSTALL_PLUGINS]/imageformats/qsvg$${D}4.dll \
122                $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg$${D}4.dll
[f19df0a3e5]123        imageformats.path = $$PREFIX/TSPSG/imageformats
124        INSTALLS += imageformats
[2fb523720a]125}
126
[f19df0a3e5]127# For wince: we are deploying to \Program Files\TSPSG.
[2fb523720a]128wince {
[f19df0a3e5]129        PREFIX = "\Program Files"
[e2abfd326f]130        share.sources = $$share.files
[1babbd6ba3]131        l10n.sources = $$l10n.files \
132                $$[QT_INSTALL_TRANSLATIONS]/*.qm
[e2abfd326f]133        docs.sources = $$docs.files
134
[162d5c5f94]135        DEPLOYMENT += target share l10n docs
[ca3d2a30fa]136        DEPLOYMENT_PLUGIN += qjpeg qsvg
[162d5c5f94]137}
138
139# win32 and wince common
140win* {
[f19df0a3e5]141        target.path = $$PREFIX/TSPSG
142        share.path = $$PREFIX/TSPSG
143        l10n.path = $$PREFIX/TSPSG/l10n
144        docs.path = $$PREFIX/TSPSG
[162d5c5f94]145
146        RC_FILE = resources/tspsg.rc
[2fb523720a]147}
[799ba1e3f2]148
[6beb157497]149# Symbian
150symbian {
[e2abfd326f]151        # 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
152        share.sources = $$share.files
[1babbd6ba3]153        l10n.sources = $$[QT_INSTALL_TRANSLATIONS]/qt_ru.qm \
154                $$[QT_INSTALL_TRANSLATIONS]/qt_uk.qm \
155                l10n/tspsg_en.qm l10n/tspsg_ru.qm l10n/tspsg_uk.qm
[162d5c5f94]156        l10n.path = l10n
[e2abfd326f]157        docs.sources = $$docs.files
[162d5c5f94]158        docs.pkg_prerules = \
[317ba0432e]159                "\"README.txt\" - \"\", FILETEXT, TEXTCONTINUE" \
[6beb157497]160                "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
[162d5c5f94]161        DEPLOYMENT += share l10n docs
[ca3d2a30fa]162        DEPLOYMENT_PLUGIN += qjpeg qsvg
[6beb157497]163
164        ICON = resources/tspsg.svg
165
166        appinfo = \
[e2abfd326f]167                "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE"
[6beb157497]168        vendorinfo = \
169                "%{\"l-homes.org\"}" \
170                ":\"l-homes.org\""
171        default_deployment.pkg_prerules = appinfo vendorinfo
172        DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0"
173}
Note: See TracBrowser for help on using the repository browser.