1 | ###################################################################### |
---|
2 | # |
---|
3 | # TSPSG: TSP Solver and Generator |
---|
4 | # Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name> |
---|
5 | # |
---|
6 | # $Id: tspsg.pro 122 2010-06-22 20:19:42Z laleppa $ |
---|
7 | # $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/tspsg.pro $ |
---|
8 | # |
---|
9 | # This file is part of TSPSG. |
---|
10 | # |
---|
11 | ###################################################################### |
---|
12 | |
---|
13 | !nosvg { |
---|
14 | QT += svg |
---|
15 | } else { |
---|
16 | DEFINES += NOSVG |
---|
17 | } |
---|
18 | |
---|
19 | TEMPLATE = app |
---|
20 | |
---|
21 | # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk |
---|
22 | |
---|
23 | # Versioning |
---|
24 | BUILD_VERSION_MAJOR = 0 |
---|
25 | BUILD_VERSION_MINOR = 1 |
---|
26 | BUILD_RELEASE = 3 |
---|
27 | |
---|
28 | # These are only defined on releases |
---|
29 | #DEFINES += TSPSG_RELEASE_BUILD |
---|
30 | #!symbian { |
---|
31 | # DEFINES += BUILD_STATUS="\"(alpha 2)\"" |
---|
32 | #} else { |
---|
33 | # # Symbian doesn't handle spaces in defines well |
---|
34 | # DEFINES += BUILD_STATUS="(alpha2)" |
---|
35 | #} |
---|
36 | |
---|
37 | #REVISION = 100 |
---|
38 | REVISION = $$system(svnversion) |
---|
39 | REVISION = $$replace(REVISION,":","") |
---|
40 | REVISION = $$replace(REVISION,"M","") |
---|
41 | #VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION) |
---|
42 | win32-msvc* { |
---|
43 | VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) |
---|
44 | } else { |
---|
45 | VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION) |
---|
46 | } |
---|
47 | |
---|
48 | DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ |
---|
49 | BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ |
---|
50 | BUILD_RELEASE=$$BUILD_RELEASE \ |
---|
51 | BUILD_NUMBER=$$REVISION |
---|
52 | |
---|
53 | # A hack to determine whether we have static or dynamic Qt build |
---|
54 | macx { |
---|
55 | PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl |
---|
56 | } else:symbian { |
---|
57 | PRL = $$[QT_INSTALL_LIBS] QtCore.prl |
---|
58 | } else:unix { |
---|
59 | PRL = $$[QT_INSTALL_LIBS] libQtCore.prl |
---|
60 | } else { |
---|
61 | PRL = $$[QT_INSTALL_LIBS] QtCore.prl |
---|
62 | } |
---|
63 | include($$join(PRL, "/")) |
---|
64 | contains(QMAKE_PRL_CONFIG, static) { |
---|
65 | # We "embed" JPEG and TIFF support on static build |
---|
66 | DEFINES += STATIC_BUILD |
---|
67 | # QTPLUGIN += qjpeg qtiff |
---|
68 | } |
---|
69 | |
---|
70 | CONFIG(release, debug|release) { |
---|
71 | OBJECTS_DIR = release |
---|
72 | DESTDIR = release |
---|
73 | D = |
---|
74 | } else { |
---|
75 | OBJECTS_DIR = debug |
---|
76 | DESTDIR = debug |
---|
77 | DEFINES += DEBUG |
---|
78 | # CONFIG += console |
---|
79 | D = d |
---|
80 | } |
---|
81 | TARGET = tspsg$${D} |
---|
82 | |
---|
83 | # Saving all intermediate files to tmp directory. |
---|
84 | MOC_DIR = ./tmp |
---|
85 | RCC_DIR = ./tmp |
---|
86 | UI_DIR = ./tmp |
---|
87 | |
---|
88 | # Include 3rd party libraries |
---|
89 | !wincewm*:!symbian { |
---|
90 | include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) |
---|
91 | } |
---|
92 | |
---|
93 | # Include file(s) |
---|
94 | include(tspsg.pri) |
---|
95 | |
---|
96 | # Installation and deployment |
---|
97 | include(install.pri) |
---|