[1] | 1 | ###################################################################### |
---|
[17] | 2 | # |
---|
[90] | 3 | # TSPSG: TSP Solver and Generator |
---|
| 4 | # Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name> |
---|
[17] | 5 | # |
---|
[90] | 6 | # $Id: tspsg.pro 118 2010-05-02 21:59:26Z laleppa $ |
---|
| 7 | # $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/tspsg.pro $ |
---|
[17] | 8 | # |
---|
[90] | 9 | # This file is part of TSPSG. |
---|
[17] | 10 | # |
---|
[1] | 11 | ###################################################################### |
---|
| 12 | |
---|
[109] | 13 | !nosvg { |
---|
| 14 | QT += svg |
---|
| 15 | } else { |
---|
| 16 | DEFINES += NOSVG |
---|
| 17 | } |
---|
[71] | 18 | |
---|
[36] | 19 | TEMPLATE = app |
---|
[1] | 20 | |
---|
[96] | 21 | # Versioning |
---|
| 22 | BUILD_VERSION_MAJOR = 0 |
---|
| 23 | BUILD_VERSION_MINOR = 1 |
---|
[103] | 24 | BUILD_RELEASE = 3 |
---|
[96] | 25 | |
---|
[98] | 26 | # These are only defined on releases |
---|
[103] | 27 | #DEFINES += TSPSG_RELEASE_BUILD |
---|
| 28 | #!symbian { |
---|
| 29 | # DEFINES += BUILD_STATUS="\"(alpha 2)\"" |
---|
| 30 | #} else { |
---|
| 31 | # # Symbian doesn't handle spaces in defines well |
---|
| 32 | # DEFINES += BUILD_STATUS="(alpha2)" |
---|
| 33 | #} |
---|
[96] | 34 | |
---|
[103] | 35 | #REVISION = 100 |
---|
| 36 | REVISION = $$system(svnversion) |
---|
[117] | 37 | REVISION = $$replace(REVISION,":","") |
---|
[103] | 38 | REVISION = $$replace(REVISION,"M","") |
---|
[117] | 39 | #VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION) |
---|
| 40 | win32-msvc* { |
---|
| 41 | VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) |
---|
| 42 | } else { |
---|
| 43 | VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION) |
---|
| 44 | } |
---|
[96] | 45 | |
---|
| 46 | DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ |
---|
| 47 | BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ |
---|
| 48 | BUILD_RELEASE=$$BUILD_RELEASE \ |
---|
| 49 | BUILD_NUMBER=$$REVISION |
---|
| 50 | |
---|
[71] | 51 | # A hack to determine whether we have static or dynamic Qt build |
---|
[96] | 52 | unix:!symbian { |
---|
| 53 | PRL = $$[QT_INSTALL_LIBS] libQtCore.prl |
---|
| 54 | } else:unix { |
---|
| 55 | PRL = $$[QT_INSTALL_LIBS] QtCore.prl |
---|
[97] | 56 | } else { |
---|
| 57 | PRL = $$[QT_INSTALL_LIBS] QtCore.prl |
---|
[96] | 58 | } |
---|
[71] | 59 | include($$join(PRL, "/")) |
---|
| 60 | contains(QMAKE_PRL_CONFIG, static) { |
---|
[109] | 61 | # We "embed" JPEG and TIFF support on static build |
---|
[71] | 62 | DEFINES += STATIC_BUILD |
---|
[109] | 63 | # QTPLUGIN += qjpeg qtiff |
---|
[71] | 64 | } |
---|
| 65 | |
---|
[100] | 66 | CONFIG(release, debug|release) { |
---|
[36] | 67 | OBJECTS_DIR = release |
---|
| 68 | DESTDIR = release |
---|
[99] | 69 | D = |
---|
[36] | 70 | } else { |
---|
| 71 | OBJECTS_DIR = debug |
---|
| 72 | DESTDIR = debug |
---|
[96] | 73 | DEFINES += DEBUG |
---|
[104] | 74 | # CONFIG += console |
---|
[99] | 75 | D = d |
---|
[36] | 76 | } |
---|
[99] | 77 | TARGET = tspsg$${D} |
---|
[36] | 78 | |
---|
[20] | 79 | # Saving all intermediate files to tmp directory. |
---|
| 80 | MOC_DIR = ./tmp |
---|
| 81 | RCC_DIR = ./tmp |
---|
| 82 | UI_DIR = ./tmp |
---|
| 83 | |
---|
[117] | 84 | # Include 3rd party libraries |
---|
[118] | 85 | !wincewm*:!symbian { |
---|
| 86 | include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) |
---|
| 87 | } |
---|
[117] | 88 | |
---|
[96] | 89 | # Include file(s) |
---|
[17] | 90 | include(tspsg.pri) |
---|
| 91 | |
---|
[96] | 92 | # Installation and deployment |
---|
[109] | 93 | include(install.pri) |
---|