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

Last change on this file since 118 was 118, checked in by laleppa, 14 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
RevLine 
[1]1######################################################################
[17]2#
[90]3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
[17]5#
[90]6#  $Id: tspsg.pro 118 2010-05-02 21:59:26Z laleppa $
7#  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/tspsg.pro $
[17]8#
[90]9#  This file is part of TSPSG.
[17]10#
[1]11######################################################################
12
[109]13!nosvg {
14        QT += svg
15} else {
16        DEFINES += NOSVG
17}
[71]18
[36]19TEMPLATE = app
[1]20
[96]21# Versioning
22BUILD_VERSION_MAJOR = 0
23BUILD_VERSION_MINOR = 1
[103]24BUILD_RELEASE = 3
[96]25
[98]26# These are only defined on releases
[103]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#}
[96]34
[103]35#REVISION = 100
36REVISION = $$system(svnversion)
[117]37REVISION = $$replace(REVISION,":","")
[103]38REVISION = $$replace(REVISION,"M","")
[117]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}
[96]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
[71]51# A hack to determine whether we have static or dynamic Qt build
[96]52unix:!symbian {
53        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
54} else:unix {
55        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[97]56} else {
57        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[96]58}
[71]59include($$join(PRL, "/"))
60contains(QMAKE_PRL_CONFIG, static) {
[109]61# We "embed" JPEG and TIFF support on static build
[71]62        DEFINES += STATIC_BUILD
[109]63#       QTPLUGIN += qjpeg qtiff
[71]64}
65
[100]66CONFIG(release, debug|release) {
[36]67        OBJECTS_DIR = release
68        DESTDIR = release
[99]69        D =
[36]70} else {
71        OBJECTS_DIR = debug
72        DESTDIR = debug
[96]73        DEFINES += DEBUG
[104]74#       CONFIG += console
[99]75        D = d
[36]76}
[99]77TARGET = tspsg$${D}
[36]78
[20]79# Saving all intermediate files to tmp directory.
80MOC_DIR = ./tmp
81RCC_DIR = ./tmp
82UI_DIR = ./tmp
83
[117]84# Include 3rd party libraries
[118]85!wincewm*:!symbian {
86        include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
87}
[117]88
[96]89# Include file(s)
[17]90include(tspsg.pri)
91
[96]92# Installation and deployment
[109]93include(install.pri)
Note: See TracBrowser for help on using the repository browser.