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