source: tspsg-svn/trunk/tspsg.pro @ 120

Last change on this file since 120 was 118, checked in by laleppa, 15 years ago

Finished toolbar customization feature.
It is not available on handheld devices (mainly, because the customization dialog is too big for a small screen).

  • Property svn:keywords set to Id URL
File size: 2.2 KB
Line 
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 118 2010-05-02 21:59:26Z 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
19TEMPLATE = app
20
21# Versioning
22BUILD_VERSION_MAJOR = 0
23BUILD_VERSION_MINOR = 1
24BUILD_RELEASE = 3
25
26# These are only defined on releases
27#DEFINES += TSPSG_RELEASE_BUILD
28#!symbian {
29#       DEFINES += BUILD_STATUS="\"(alpha 2)\""
30#} else {
31#       # Symbian doesn't handle spaces in defines well
32#       DEFINES += BUILD_STATUS="(alpha2)"
33#}
34
35#REVISION = 100
36REVISION = $$system(svnversion)
37REVISION = $$replace(REVISION,":","")
38REVISION = $$replace(REVISION,"M","")
39#VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION)
40win32-msvc* {
41        VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR)
42} else {
43        VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION)
44}
45
46DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
47        BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
48        BUILD_RELEASE=$$BUILD_RELEASE \
49        BUILD_NUMBER=$$REVISION
50
51# A hack to determine whether we have static or dynamic Qt build
52unix:!symbian {
53        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
54} else:unix {
55        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
56} else {
57        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
58}
59include($$join(PRL, "/"))
60contains(QMAKE_PRL_CONFIG, static) {
61# We "embed" JPEG and TIFF support on static build
62        DEFINES += STATIC_BUILD
63#       QTPLUGIN += qjpeg qtiff
64}
65
66CONFIG(release, debug|release) {
67        OBJECTS_DIR = release
68        DESTDIR = release
69        D =
70} else {
71        OBJECTS_DIR = debug
72        DESTDIR = debug
73        DEFINES += DEBUG
74#       CONFIG += console
75        D = d
76}
77TARGET = tspsg$${D}
78
79# Saving all intermediate files to tmp directory.
80MOC_DIR = ./tmp
81RCC_DIR = ./tmp
82UI_DIR = ./tmp
83
84# Include 3rd party libraries
85!wincewm*:!symbian {
86        include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
87}
88
89# Include file(s)
90include(tspsg.pri)
91
92# Installation and deployment
93include(install.pri)
Note: See TracBrowser for help on using the repository browser.