[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 151 2011-01-19 22:27:49Z 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 { |
---|
| 14 | QT += svg |
---|
| 15 | } else { |
---|
| 16 | DEFINES += NOSVG |
---|
| 17 | } |
---|
| 18 | |
---|
[141] | 19 | wincewm*|symbian|maemo*|simulator { |
---|
| 20 | CONFIG += handheld |
---|
| 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 |
---|
[151] | 31 | QMAKE_TARGET_COPYRIGHT = Copyright © 200-20110 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name> |
---|
[139] | 32 | |
---|
[122] | 33 | # Versioning |
---|
| 34 | BUILD_VERSION_MAJOR = 0 |
---|
| 35 | BUILD_VERSION_MINOR = 1 |
---|
[147] | 36 | BUILD_RELEASE = 4 |
---|
[122] | 37 | |
---|
| 38 | # These are only defined on releases |
---|
[147] | 39 | #DEFINES += TSPSG_RELEASE_BUILD |
---|
| 40 | #DEFINES += BUILD_STATUS_TYPE=beta |
---|
| 41 | #DEFINES += BUILD_STATUS_NUMBER=1 |
---|
[145] | 42 | |
---|
[147] | 43 | #REVISION = 145 |
---|
| 44 | REVISION = $$system(svnversion) |
---|
| 45 | isEmpty(REVISION)|isEqual(REVISION,exported) { |
---|
| 46 | REVISION = 0 |
---|
| 47 | } else { |
---|
| 48 | REVISION = $$replace(REVISION,":","") |
---|
| 49 | REVISION = $$replace(REVISION,"M","") |
---|
| 50 | } |
---|
| 51 | SHORT_VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) |
---|
[136] | 52 | win32-msvc*|wincewm* { |
---|
[147] | 53 | VERSION = $$SHORT_VERSION |
---|
[122] | 54 | } else { |
---|
[147] | 55 | VERSION = $$sprintf("%1.%2",$$SHORT_VERSION,$$BUILD_RELEASE) |
---|
[122] | 56 | } |
---|
| 57 | |
---|
| 58 | DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ |
---|
| 59 | BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ |
---|
| 60 | BUILD_RELEASE=$$BUILD_RELEASE \ |
---|
| 61 | BUILD_NUMBER=$$REVISION |
---|
| 62 | |
---|
| 63 | # A hack to determine whether we have static or dynamic Qt build |
---|
| 64 | macx { |
---|
| 65 | PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl |
---|
| 66 | } else:symbian { |
---|
| 67 | PRL = $$[QT_INSTALL_LIBS] QtCore.prl |
---|
| 68 | } else:unix { |
---|
| 69 | PRL = $$[QT_INSTALL_LIBS] libQtCore.prl |
---|
| 70 | } else { |
---|
| 71 | PRL = $$[QT_INSTALL_LIBS] QtCore.prl |
---|
| 72 | } |
---|
| 73 | include($$join(PRL, "/")) |
---|
| 74 | contains(QMAKE_PRL_CONFIG, static) { |
---|
[144] | 75 | # We "embed" SVG icon support on static build |
---|
[122] | 76 | DEFINES += STATIC_BUILD |
---|
[136] | 77 | # !nosvg:QTPLUGIN += qsvgicon |
---|
[122] | 78 | } |
---|
| 79 | |
---|
| 80 | CONFIG(release, debug|release) { |
---|
| 81 | OBJECTS_DIR = release |
---|
| 82 | D = |
---|
| 83 | } else { |
---|
| 84 | OBJECTS_DIR = debug |
---|
| 85 | DEFINES += DEBUG |
---|
| 86 | # CONFIG += console |
---|
| 87 | D = d |
---|
| 88 | } |
---|
[138] | 89 | DESTDIR = bin |
---|
[122] | 90 | TARGET = tspsg$${D} |
---|
| 91 | |
---|
| 92 | # Saving all intermediate files to tmp directory. |
---|
[138] | 93 | MOC_DIR = tmp |
---|
| 94 | RCC_DIR = tmp |
---|
| 95 | UI_DIR = tmp |
---|
[122] | 96 | |
---|
| 97 | # Include 3rd party libraries |
---|
[141] | 98 | !handheld { |
---|
[122] | 99 | include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) |
---|
| 100 | } |
---|
| 101 | |
---|
[124] | 102 | win32:LIBS += -lole32 |
---|
| 103 | |
---|
[122] | 104 | # Include file(s) |
---|
| 105 | include(tspsg.pri) |
---|
| 106 | |
---|
| 107 | # Installation and deployment |
---|
| 108 | include(install.pri) |
---|