[e9db3e216b] | 1 | ###################################################################### |
---|
| 2 | # |
---|
| 3 | # TSPSG: TSP Solver and Generator |
---|
[bfe1e5e2ea] | 4 | # Copyright (C) 2007-2011 Lёppa <contacts[at]oleksii[dot]name> |
---|
[e9db3e216b] | 5 | # |
---|
| 6 | # $Id$ |
---|
| 7 | # $URL$ |
---|
| 8 | # |
---|
| 9 | # This file is part of TSPSG. |
---|
| 10 | # |
---|
| 11 | ###################################################################### |
---|
| 12 | |
---|
| 13 | !nosvg { |
---|
[d8a3826f87] | 14 | QT += svg |
---|
[e9db3e216b] | 15 | } else { |
---|
[d8a3826f87] | 16 | DEFINES += NOSVG |
---|
[e9db3e216b] | 17 | } |
---|
| 18 | |
---|
[0edec5a2ae] | 19 | wincewm*|symbian|maemo*|simulator|blackberry { |
---|
[d8a3826f87] | 20 | CONFIG += handheld |
---|
[97e90f9be6] | 21 | } |
---|
[ccdffe3a5f] | 22 | blackberry { |
---|
| 23 | # DEFINES += QT_NO_SHORTCUT |
---|
| 24 | DEFINES += QT_NO_PRINTDIALOG |
---|
| 25 | DEFINES += QT_NO_PRINTPREVIEWDIALOG |
---|
[2512bd5a48] | 26 | |
---|
| 27 | QT += xml declarative |
---|
| 28 | LIBS += -lbb -lbbcascadespickers |
---|
[ccdffe3a5f] | 29 | } |
---|
[97e90f9be6] | 30 | |
---|
[e9db3e216b] | 31 | TEMPLATE = app |
---|
| 32 | |
---|
| 33 | # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk |
---|
| 34 | |
---|
[f5c945d7ac] | 35 | # Version information |
---|
| 36 | QMAKE_TARGET_COMPANY = Oleksii "Lёppa" Serdiuk |
---|
| 37 | QMAKE_TARGET_PRODUCT = TSP Solver and Generator |
---|
| 38 | QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator |
---|
[d97db6d321] | 39 | QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2011 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name> |
---|
[f5c945d7ac] | 40 | |
---|
[e9db3e216b] | 41 | # Versioning |
---|
| 42 | BUILD_VERSION_MAJOR = 0 |
---|
| 43 | BUILD_VERSION_MINOR = 1 |
---|
[ac9ff7c0f1] | 44 | BUILD_RELEASE = 4 |
---|
[e9db3e216b] | 45 | |
---|
| 46 | # These are only defined on releases |
---|
[b5a996bd47] | 47 | DEFINES += TSPSG_RELEASE_BUILD |
---|
| 48 | DEFINES += BUILD_STATUS_TYPE=beta |
---|
| 49 | DEFINES += BUILD_STATUS_NUMBER=2 |
---|
[ac9ff7c0f1] | 50 | |
---|
[b5a996bd47] | 51 | REVISION = 170 |
---|
[cc5c5108a3] | 52 | isEmpty(REVISION) { |
---|
[d8a3826f87] | 53 | REVISION = $$system(svnversion) |
---|
[cc5c5108a3] | 54 | } |
---|
[ac9ff7c0f1] | 55 | isEmpty(REVISION)|isEqual(REVISION,exported) { |
---|
[d8a3826f87] | 56 | REVISION = 0 |
---|
[ac9ff7c0f1] | 57 | } else { |
---|
[d8a3826f87] | 58 | REVISION = $$replace(REVISION,":","") |
---|
| 59 | REVISION = $$replace(REVISION,"M","") |
---|
[ac9ff7c0f1] | 60 | } |
---|
| 61 | SHORT_VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) |
---|
[cac8759dba] | 62 | win32-msvc*|wincewm* { |
---|
[d8a3826f87] | 63 | VERSION = $$SHORT_VERSION |
---|
[e9db3e216b] | 64 | } else { |
---|
[d8a3826f87] | 65 | VERSION = $$sprintf("%1.%2",$$SHORT_VERSION,$$BUILD_RELEASE) |
---|
[e9db3e216b] | 66 | } |
---|
| 67 | |
---|
| 68 | DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ |
---|
[d8a3826f87] | 69 | BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ |
---|
| 70 | BUILD_RELEASE=$$BUILD_RELEASE \ |
---|
| 71 | BUILD_NUMBER=$$REVISION |
---|
[e9db3e216b] | 72 | |
---|
[0edec5a2ae] | 73 | blackberry { |
---|
| 74 | TARGET = tspsg |
---|
[e9db3e216b] | 75 | } else { |
---|
[0edec5a2ae] | 76 | CONFIG(release, debug|release) { |
---|
| 77 | OBJECTS_DIR = release |
---|
| 78 | D = |
---|
| 79 | } else { |
---|
| 80 | OBJECTS_DIR = debug |
---|
| 81 | DEFINES += DEBUG |
---|
| 82 | # CONFIG += console |
---|
| 83 | D = d |
---|
| 84 | } |
---|
| 85 | DESTDIR = bin |
---|
| 86 | TARGET = tspsg$${D} |
---|
[e9db3e216b] | 87 | } |
---|
| 88 | |
---|
| 89 | # Saving all intermediate files to tmp directory. |
---|
[131c5fc3ba] | 90 | MOC_DIR = tmp |
---|
| 91 | RCC_DIR = tmp |
---|
| 92 | UI_DIR = tmp |
---|
[e9db3e216b] | 93 | |
---|
| 94 | # Include 3rd party libraries |
---|
[97e90f9be6] | 95 | !handheld { |
---|
[d8a3826f87] | 96 | include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) |
---|
[e9db3e216b] | 97 | } |
---|
| 98 | |
---|
[43c29c04ba] | 99 | win32:LIBS += -lole32 |
---|
| 100 | |
---|
[e9db3e216b] | 101 | # Include file(s) |
---|
| 102 | include(tspsg.pri) |
---|
| 103 | |
---|
[cc5c5108a3] | 104 | # Installation and deployment rules |
---|
[e9db3e216b] | 105 | include(install.pri) |
---|