[e9db3e216b] | 1 | ###################################################################### |
---|
| 2 | # |
---|
| 3 | # TSPSG: TSP Solver and Generator |
---|
[0af510a462] | 4 | # Copyright (C) 2007-2012 Oleksii Serdiuk <contacts[at]oleksii[dot]name> |
---|
[e9db3e216b] | 5 | # |
---|
[7ba743d983] | 6 | # $Id: $Format:%h %ai %an$ $ |
---|
| 7 | # $URL: http://tspsg.info/ $ |
---|
[e9db3e216b] | 8 | # |
---|
| 9 | # This file is part of TSPSG. |
---|
| 10 | # |
---|
| 11 | ###################################################################### |
---|
| 12 | |
---|
| 13 | !nosvg { |
---|
[d8a3826f87] | 14 | QT += svg |
---|
[e9db3e216b] | 15 | } else { |
---|
[d8a3826f87] | 16 | DEFINES += NOSVG |
---|
[e9db3e216b] | 17 | } |
---|
| 18 | |
---|
[97e90f9be6] | 19 | wincewm*|symbian|maemo*|simulator { |
---|
[d8a3826f87] | 20 | CONFIG += handheld |
---|
[97e90f9be6] | 21 | } |
---|
| 22 | |
---|
[e9db3e216b] | 23 | TEMPLATE = app |
---|
| 24 | |
---|
| 25 | # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk |
---|
| 26 | |
---|
[f5c945d7ac] | 27 | # Version information |
---|
[0af510a462] | 28 | QMAKE_TARGET_COMPANY = Oleksii Serdiuk |
---|
[f5c945d7ac] | 29 | QMAKE_TARGET_PRODUCT = TSP Solver and Generator |
---|
| 30 | QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator |
---|
[0af510a462] | 31 | QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2012 Oleksii Serdiuk <contacts[at]oleksii[dot]name> |
---|
[f5c945d7ac] | 32 | |
---|
[1299ea5b49] | 33 | # Version detection |
---|
| 34 | include(version.pri) |
---|
[e9db3e216b] | 35 | |
---|
| 36 | DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ |
---|
[d8a3826f87] | 37 | BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ |
---|
| 38 | BUILD_RELEASE=$$BUILD_RELEASE \ |
---|
[1299ea5b49] | 39 | BUILD_NUMBER=$$BUILD_NUMBER |
---|
[e9db3e216b] | 40 | |
---|
| 41 | CONFIG(release, debug|release) { |
---|
[d8a3826f87] | 42 | OBJECTS_DIR = release |
---|
| 43 | D = |
---|
[e9db3e216b] | 44 | } else { |
---|
[d8a3826f87] | 45 | OBJECTS_DIR = debug |
---|
| 46 | DEFINES += DEBUG |
---|
[e9db3e216b] | 47 | # CONFIG += console |
---|
[d8a3826f87] | 48 | D = d |
---|
[e9db3e216b] | 49 | } |
---|
[131c5fc3ba] | 50 | DESTDIR = bin |
---|
[e9db3e216b] | 51 | TARGET = tspsg$${D} |
---|
| 52 | |
---|
| 53 | # Saving all intermediate files to tmp directory. |
---|
[131c5fc3ba] | 54 | MOC_DIR = tmp |
---|
| 55 | RCC_DIR = tmp |
---|
| 56 | UI_DIR = tmp |
---|
[e9db3e216b] | 57 | |
---|
[b26801b000] | 58 | # We need to generate translations before building. |
---|
| 59 | # Either way, resource files won't compile. |
---|
| 60 | translations.name = Translations |
---|
| 61 | translations.input = TRANSLATIONS |
---|
| 62 | translations.output = $$_PRO_FILE_PWD_/l10n/${QMAKE_FILE_BASE}.qm |
---|
| 63 | translations.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN} |
---|
| 64 | translations.CONFIG = no_link |
---|
| 65 | QMAKE_EXTRA_COMPILERS += translations |
---|
| 66 | PRE_TARGETDEPS += compiler_translations_make_all |
---|
| 67 | |
---|
[e9db3e216b] | 68 | # Include 3rd party libraries |
---|
[97e90f9be6] | 69 | !handheld { |
---|
[d8a3826f87] | 70 | include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) |
---|
[e9db3e216b] | 71 | } |
---|
| 72 | |
---|
[43c29c04ba] | 73 | win32:LIBS += -lole32 |
---|
| 74 | |
---|
[e9db3e216b] | 75 | # Include file(s) |
---|
| 76 | include(tspsg.pri) |
---|
| 77 | |
---|
[cc5c5108a3] | 78 | # Installation and deployment rules |
---|
[e9db3e216b] | 79 | include(install.pri) |
---|