[122] | 1 | ###################################################################### |
---|
| 2 | # |
---|
| 3 | # TSPSG: TSP Solver and Generator |
---|
| 4 | # Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name> |
---|
| 5 | # |
---|
| 6 | # $Id: tspsg.pro 143 2010-10-13 20:25:51Z 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 |
---|
| 31 | QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2010 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name> |
---|
| 32 | |
---|
[122] | 33 | # Versioning |
---|
| 34 | BUILD_VERSION_MAJOR = 0 |
---|
| 35 | BUILD_VERSION_MINOR = 1 |
---|
| 36 | BUILD_RELEASE = 3 |
---|
| 37 | |
---|
| 38 | # These are only defined on releases |
---|
| 39 | #DEFINES += TSPSG_RELEASE_BUILD |
---|
| 40 | #!symbian { |
---|
| 41 | # DEFINES += BUILD_STATUS="\"(alpha 2)\"" |
---|
| 42 | #} else { |
---|
| 43 | # # Symbian doesn't handle spaces in defines well |
---|
| 44 | # DEFINES += BUILD_STATUS="(alpha2)" |
---|
| 45 | #} |
---|
| 46 | |
---|
| 47 | #REVISION = 100 |
---|
| 48 | REVISION = $$system(svnversion) |
---|
[143] | 49 | isEmpty(REVISION)|eval(REVISION=="exported") { |
---|
| 50 | REVISION = 0 |
---|
| 51 | } else { |
---|
| 52 | REVISION = $$replace(REVISION,":","") |
---|
| 53 | REVISION = $$replace(REVISION,"M","") |
---|
| 54 | } |
---|
[136] | 55 | win32-msvc*|wincewm* { |
---|
[122] | 56 | VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) |
---|
| 57 | } else { |
---|
| 58 | VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION) |
---|
| 59 | } |
---|
| 60 | |
---|
| 61 | DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ |
---|
| 62 | BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ |
---|
| 63 | BUILD_RELEASE=$$BUILD_RELEASE \ |
---|
| 64 | BUILD_NUMBER=$$REVISION |
---|
| 65 | |
---|
| 66 | # A hack to determine whether we have static or dynamic Qt build |
---|
| 67 | macx { |
---|
| 68 | PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl |
---|
| 69 | } else:symbian { |
---|
| 70 | PRL = $$[QT_INSTALL_LIBS] QtCore.prl |
---|
| 71 | } else:unix { |
---|
| 72 | PRL = $$[QT_INSTALL_LIBS] libQtCore.prl |
---|
| 73 | } else { |
---|
| 74 | PRL = $$[QT_INSTALL_LIBS] QtCore.prl |
---|
| 75 | } |
---|
| 76 | include($$join(PRL, "/")) |
---|
| 77 | contains(QMAKE_PRL_CONFIG, static) { |
---|
[136] | 78 | # We "embed" SVG icon, JPEG and TIFF support on static build |
---|
[122] | 79 | DEFINES += STATIC_BUILD |
---|
[136] | 80 | # !nosvg:QTPLUGIN += qsvgicon |
---|
[122] | 81 | } |
---|
| 82 | |
---|
| 83 | CONFIG(release, debug|release) { |
---|
| 84 | OBJECTS_DIR = release |
---|
| 85 | D = |
---|
| 86 | } else { |
---|
| 87 | OBJECTS_DIR = debug |
---|
| 88 | DEFINES += DEBUG |
---|
| 89 | # CONFIG += console |
---|
| 90 | D = d |
---|
| 91 | } |
---|
[138] | 92 | DESTDIR = bin |
---|
[122] | 93 | TARGET = tspsg$${D} |
---|
| 94 | |
---|
| 95 | # Saving all intermediate files to tmp directory. |
---|
[138] | 96 | MOC_DIR = tmp |
---|
| 97 | RCC_DIR = tmp |
---|
| 98 | UI_DIR = tmp |
---|
[122] | 99 | |
---|
| 100 | # Include 3rd party libraries |
---|
[141] | 101 | !handheld { |
---|
[122] | 102 | include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) |
---|
| 103 | } |
---|
| 104 | |
---|
[124] | 105 | win32:LIBS += -lole32 |
---|
| 106 | |
---|
[122] | 107 | # Include file(s) |
---|
| 108 | include(tspsg.pri) |
---|
| 109 | |
---|
| 110 | # Installation and deployment |
---|
| 111 | include(install.pri) |
---|