[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 | |
---|
[97e90f9be6] | 19 | wincewm*|symbian|maemo*|simulator { |
---|
[d8a3826f87] | 20 | CONFIG += handheld |
---|
[97e90f9be6] | 21 | } |
---|
| 22 | |
---|
[e9db3e216b] | 23 | TEMPLATE = app |
---|
| 24 | |
---|
| 25 | # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk |
---|
| 26 | |
---|
[f5c945d7ac] | 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 |
---|
[d97db6d321] | 31 | QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2011 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name> |
---|
[f5c945d7ac] | 32 | |
---|
[e9db3e216b] | 33 | # Versioning |
---|
| 34 | BUILD_VERSION_MAJOR = 0 |
---|
| 35 | BUILD_VERSION_MINOR = 1 |
---|
[f088fd8ec3] | 36 | BUILD_RELEASE = 5 |
---|
[e9db3e216b] | 37 | |
---|
| 38 | # These are only defined on releases |
---|
[f088fd8ec3] | 39 | #DEFINES += TSPSG_RELEASE_BUILD |
---|
| 40 | #DEFINES += BUILD_STATUS_TYPE=beta |
---|
| 41 | #DEFINES += BUILD_STATUS_NUMBER=2 |
---|
[ac9ff7c0f1] | 42 | |
---|
[f088fd8ec3] | 43 | #REVISION = 170 |
---|
[cc5c5108a3] | 44 | isEmpty(REVISION) { |
---|
[d8a3826f87] | 45 | REVISION = $$system(svnversion) |
---|
[cc5c5108a3] | 46 | } |
---|
[ac9ff7c0f1] | 47 | isEmpty(REVISION)|isEqual(REVISION,exported) { |
---|
[d8a3826f87] | 48 | REVISION = 0 |
---|
[ac9ff7c0f1] | 49 | } else { |
---|
[d8a3826f87] | 50 | REVISION = $$replace(REVISION,":","") |
---|
| 51 | REVISION = $$replace(REVISION,"M","") |
---|
[ac9ff7c0f1] | 52 | } |
---|
| 53 | SHORT_VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) |
---|
[cac8759dba] | 54 | win32-msvc*|wincewm* { |
---|
[d8a3826f87] | 55 | VERSION = $$SHORT_VERSION |
---|
[e9db3e216b] | 56 | } else { |
---|
[d8a3826f87] | 57 | VERSION = $$sprintf("%1.%2",$$SHORT_VERSION,$$BUILD_RELEASE) |
---|
[e9db3e216b] | 58 | } |
---|
| 59 | |
---|
| 60 | DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ |
---|
[d8a3826f87] | 61 | BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ |
---|
| 62 | BUILD_RELEASE=$$BUILD_RELEASE \ |
---|
| 63 | BUILD_NUMBER=$$REVISION |
---|
[e9db3e216b] | 64 | |
---|
| 65 | CONFIG(release, debug|release) { |
---|
[d8a3826f87] | 66 | OBJECTS_DIR = release |
---|
| 67 | D = |
---|
[e9db3e216b] | 68 | } else { |
---|
[d8a3826f87] | 69 | OBJECTS_DIR = debug |
---|
| 70 | DEFINES += DEBUG |
---|
[e9db3e216b] | 71 | # CONFIG += console |
---|
[d8a3826f87] | 72 | D = d |
---|
[e9db3e216b] | 73 | } |
---|
[131c5fc3ba] | 74 | DESTDIR = bin |
---|
[e9db3e216b] | 75 | TARGET = tspsg$${D} |
---|
| 76 | |
---|
| 77 | # Saving all intermediate files to tmp directory. |
---|
[131c5fc3ba] | 78 | MOC_DIR = tmp |
---|
| 79 | RCC_DIR = tmp |
---|
| 80 | UI_DIR = tmp |
---|
[e9db3e216b] | 81 | |
---|
| 82 | # Include 3rd party libraries |
---|
[97e90f9be6] | 83 | !handheld { |
---|
[d8a3826f87] | 84 | include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) |
---|
[e9db3e216b] | 85 | } |
---|
| 86 | |
---|
[43c29c04ba] | 87 | win32:LIBS += -lole32 |
---|
| 88 | |
---|
[e9db3e216b] | 89 | # Include file(s) |
---|
| 90 | include(tspsg.pri) |
---|
| 91 | |
---|
[cc5c5108a3] | 92 | # Installation and deployment rules |
---|
[e9db3e216b] | 93 | include(install.pri) |
---|