source: tspsg/tspsg.pro @ 94cd045fad

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 94cd045fad was 94cd045fad, checked in by Oleksii Serdiuk, 14 years ago

+ Started adding a toolbar customization with the ude of QtToolbarDialog? (http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qttoolbardialog/).

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[5515c2c2a7]1######################################################################
[5354a01311]2#
[3e46075789]3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
[5354a01311]5#
[3e46075789]6#  $Id$
7#  $URL$
[5354a01311]8#
[3e46075789]9#  This file is part of TSPSG.
[5354a01311]10#
[5515c2c2a7]11######################################################################
12
[20015b41e7]13!nosvg {
14        QT += svg
15} else {
16        DEFINES += NOSVG
17}
[0ac9690913]18
[4c96f94558]19TEMPLATE = app
[162d5c5f94]20
21# Versioning
22BUILD_VERSION_MAJOR = 0
23BUILD_VERSION_MINOR = 1
[317ba0432e]24BUILD_RELEASE = 3
[162d5c5f94]25
[e2abfd326f]26# These are only defined on releases
[317ba0432e]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)
[94cd045fad]37REVISION = $$replace(REVISION,":","")
[317ba0432e]38REVISION = $$replace(REVISION,"M","")
[94cd045fad]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}
[162d5c5f94]45
46DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
47        BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
48        BUILD_RELEASE=$$BUILD_RELEASE \
49        BUILD_NUMBER=$$REVISION
[5515c2c2a7]50
[0ac9690913]51# A hack to determine whether we have static or dynamic Qt build
[162d5c5f94]52unix:!symbian {
53        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
54} else:unix {
55        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[f19df0a3e5]56} else {
57        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[162d5c5f94]58}
[0ac9690913]59include($$join(PRL, "/"))
60contains(QMAKE_PRL_CONFIG, static) {
[20015b41e7]61# We "embed" JPEG and TIFF support on static build
[0ac9690913]62        DEFINES += STATIC_BUILD
[20015b41e7]63#       QTPLUGIN += qjpeg qtiff
[0ac9690913]64}
65
[1babbd6ba3]66CONFIG(release, debug|release) {
[4c96f94558]67        OBJECTS_DIR = release
68        DESTDIR = release
[394216e468]69        D =
[4c96f94558]70} else {
71        OBJECTS_DIR = debug
72        DESTDIR = debug
[162d5c5f94]73        DEFINES += DEBUG
[317ba0432e]74#       CONFIG += console
[394216e468]75        D = d
[4c96f94558]76}
[394216e468]77TARGET = tspsg$${D}
[4c96f94558]78
[799ba1e3f2]79# Saving all intermediate files to tmp directory.
80MOC_DIR = ./tmp
81RCC_DIR = ./tmp
82UI_DIR = ./tmp
83
[94cd045fad]84# Include 3rd party libraries
85include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
86
[162d5c5f94]87# Include file(s)
[5354a01311]88include(tspsg.pri)
89
[162d5c5f94]90# Installation and deployment
[20015b41e7]91include(install.pri)
Note: See TracBrowser for help on using the repository browser.