[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 | |
---|
[356169a3d3] | 19 | greaterThan(QT_MAJOR_VERSION, 4) { |
---|
| 20 | QT += printsupport concurrent |
---|
| 21 | } |
---|
| 22 | |
---|
[97e90f9be6] | 23 | wincewm*|symbian|maemo*|simulator { |
---|
[d8a3826f87] | 24 | CONFIG += handheld |
---|
[97e90f9be6] | 25 | } |
---|
| 26 | |
---|
[e9db3e216b] | 27 | TEMPLATE = app |
---|
| 28 | |
---|
| 29 | # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk |
---|
| 30 | |
---|
[f5c945d7ac] | 31 | # Version information |
---|
[0af510a462] | 32 | QMAKE_TARGET_COMPANY = Oleksii Serdiuk |
---|
[f5c945d7ac] | 33 | QMAKE_TARGET_PRODUCT = TSP Solver and Generator |
---|
| 34 | QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator |
---|
[0af510a462] | 35 | QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2012 Oleksii Serdiuk <contacts[at]oleksii[dot]name> |
---|
[f5c945d7ac] | 36 | |
---|
[1299ea5b49] | 37 | # Version detection |
---|
| 38 | include(version.pri) |
---|
[e9db3e216b] | 39 | |
---|
| 40 | DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ |
---|
[d8a3826f87] | 41 | BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ |
---|
| 42 | BUILD_RELEASE=$$BUILD_RELEASE \ |
---|
[1299ea5b49] | 43 | BUILD_NUMBER=$$BUILD_NUMBER |
---|
[e9db3e216b] | 44 | |
---|
[1b0d08aa2e] | 45 | !debug_and_release|build_pass { |
---|
| 46 | CONFIG(debug, debug|release) { |
---|
| 47 | OBJECTS_DIR = debug |
---|
| 48 | DEFINES += DEBUG |
---|
| 49 | # CONFIG += console |
---|
| 50 | D = d |
---|
| 51 | } else { |
---|
| 52 | OBJECTS_DIR = release |
---|
| 53 | D = |
---|
| 54 | } |
---|
[e9db3e216b] | 55 | } |
---|
[131c5fc3ba] | 56 | DESTDIR = bin |
---|
[e9db3e216b] | 57 | TARGET = tspsg$${D} |
---|
| 58 | |
---|
| 59 | # Saving all intermediate files to tmp directory. |
---|
[131c5fc3ba] | 60 | MOC_DIR = tmp |
---|
| 61 | RCC_DIR = tmp |
---|
| 62 | UI_DIR = tmp |
---|
[e9db3e216b] | 63 | |
---|
[b26801b000] | 64 | # We need to generate translations before building. |
---|
| 65 | # Either way, resource files won't compile. |
---|
| 66 | translations.name = Translations |
---|
| 67 | translations.input = TRANSLATIONS |
---|
| 68 | translations.output = $$_PRO_FILE_PWD_/l10n/${QMAKE_FILE_BASE}.qm |
---|
[0784c85e46] | 69 | freebsd-* { |
---|
| 70 | translations.commands = $$[QT_INSTALL_BINS]/lrelease-qt$${QT_MAJOR_VERSION} ${QMAKE_FILE_IN} |
---|
| 71 | } else { |
---|
| 72 | translations.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN} |
---|
| 73 | } |
---|
[b26801b000] | 74 | translations.CONFIG = no_link |
---|
| 75 | QMAKE_EXTRA_COMPILERS += translations |
---|
| 76 | PRE_TARGETDEPS += compiler_translations_make_all |
---|
| 77 | |
---|
[e9db3e216b] | 78 | # Include 3rd party libraries |
---|
[97e90f9be6] | 79 | !handheld { |
---|
[d8a3826f87] | 80 | include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) |
---|
[e9db3e216b] | 81 | } |
---|
| 82 | |
---|
[43c29c04ba] | 83 | win32:LIBS += -lole32 |
---|
| 84 | |
---|
[4a5e9a66d4] | 85 | # Source |
---|
[e9db3e216b] | 86 | include(tspsg.pri) |
---|
| 87 | |
---|
[697a9dc08f] | 88 | # Help |
---|
| 89 | include(help/help.pri) |
---|
| 90 | |
---|
[4a5e9a66d4] | 91 | # Code Documentation |
---|
| 92 | include(doc/doc.pri) |
---|
| 93 | |
---|
[cc5c5108a3] | 94 | # Installation and deployment rules |
---|
[e9db3e216b] | 95 | include(install.pri) |
---|