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