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