[122] | 1 | ###################################################################### |
---|
| 2 | # |
---|
| 3 | # TSPSG: TSP Solver and Generator |
---|
[151] | 4 | # Copyright (C) 2007-2011 Lёppa <contacts[at]oleksii[dot]name> |
---|
[122] | 5 | # |
---|
| 6 | # $Id: tspsg.pro 172 2011-04-24 23:38:28Z laleppa $ |
---|
| 7 | # $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/tspsg.pro $ |
---|
| 8 | # |
---|
| 9 | # This file is part of TSPSG. |
---|
| 10 | # |
---|
| 11 | ###################################################################### |
---|
| 12 | |
---|
| 13 | !nosvg { |
---|
[156] | 14 | QT += svg |
---|
[122] | 15 | } else { |
---|
[156] | 16 | DEFINES += NOSVG |
---|
[122] | 17 | } |
---|
| 18 | |
---|
[141] | 19 | wincewm*|symbian|maemo*|simulator { |
---|
[156] | 20 | CONFIG += handheld |
---|
[141] | 21 | } |
---|
| 22 | |
---|
[122] | 23 | TEMPLATE = app |
---|
| 24 | |
---|
| 25 | # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk |
---|
| 26 | |
---|
[139] | 27 | # Version information |
---|
| 28 | QMAKE_TARGET_COMPANY = Oleksii "Lёppa" Serdiuk |
---|
| 29 | QMAKE_TARGET_PRODUCT = TSP Solver and Generator |
---|
| 30 | QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator |
---|
[157] | 31 | QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2011 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name> |
---|
[139] | 32 | |
---|
[122] | 33 | # Versioning |
---|
| 34 | BUILD_VERSION_MAJOR = 0 |
---|
| 35 | BUILD_VERSION_MINOR = 1 |
---|
[172] | 36 | BUILD_RELEASE = 5 |
---|
[122] | 37 | |
---|
| 38 | # These are only defined on releases |
---|
[172] | 39 | #DEFINES += TSPSG_RELEASE_BUILD |
---|
| 40 | #DEFINES += BUILD_STATUS_TYPE=beta |
---|
| 41 | #DEFINES += BUILD_STATUS_NUMBER=2 |
---|
[145] | 42 | |
---|
[172] | 43 | #REVISION = 170 |
---|
[152] | 44 | isEmpty(REVISION) { |
---|
[156] | 45 | REVISION = $$system(svnversion) |
---|
[152] | 46 | } |
---|
[147] | 47 | isEmpty(REVISION)|isEqual(REVISION,exported) { |
---|
[156] | 48 | REVISION = 0 |
---|
[147] | 49 | } else { |
---|
[156] | 50 | REVISION = $$replace(REVISION,":","") |
---|
| 51 | REVISION = $$replace(REVISION,"M","") |
---|
[147] | 52 | } |
---|
| 53 | SHORT_VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) |
---|
[136] | 54 | win32-msvc*|wincewm* { |
---|
[156] | 55 | VERSION = $$SHORT_VERSION |
---|
[122] | 56 | } else { |
---|
[156] | 57 | VERSION = $$sprintf("%1.%2",$$SHORT_VERSION,$$BUILD_RELEASE) |
---|
[122] | 58 | } |
---|
| 59 | |
---|
| 60 | DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ |
---|
[156] | 61 | BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ |
---|
| 62 | BUILD_RELEASE=$$BUILD_RELEASE \ |
---|
| 63 | BUILD_NUMBER=$$REVISION |
---|
[122] | 64 | |
---|
| 65 | CONFIG(release, debug|release) { |
---|
[156] | 66 | OBJECTS_DIR = release |
---|
| 67 | D = |
---|
[122] | 68 | } else { |
---|
[156] | 69 | OBJECTS_DIR = debug |
---|
| 70 | DEFINES += DEBUG |
---|
[122] | 71 | # CONFIG += console |
---|
[156] | 72 | D = d |
---|
[122] | 73 | } |
---|
[138] | 74 | DESTDIR = bin |
---|
[122] | 75 | TARGET = tspsg$${D} |
---|
| 76 | |
---|
| 77 | # Saving all intermediate files to tmp directory. |
---|
[138] | 78 | MOC_DIR = tmp |
---|
| 79 | RCC_DIR = tmp |
---|
| 80 | UI_DIR = tmp |
---|
[122] | 81 | |
---|
| 82 | # Include 3rd party libraries |
---|
[141] | 83 | !handheld { |
---|
[156] | 84 | include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) |
---|
[122] | 85 | } |
---|
| 86 | |
---|
[124] | 87 | win32:LIBS += -lole32 |
---|
| 88 | |
---|
[122] | 89 | # Include file(s) |
---|
| 90 | include(tspsg.pri) |
---|
| 91 | |
---|
[152] | 92 | # Installation and deployment rules |
---|
[122] | 93 | include(install.pri) |
---|