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

Last change on this file since 146 was 145, checked in by laleppa, 14 years ago
  • Updated INSTALLs and ChangeLogs? with the latest information.
  • Regenerated tspsg.tag.

NB: This will be the first public beta release.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id URL
File size: 2.4 KB
RevLine 
[122]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 145 2010-10-15 06:15:43Z 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
[141]19wincewm*|symbian|maemo*|simulator {
20        CONFIG += handheld
21}
22
[122]23TEMPLATE = app
24
25# QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
26
[139]27# Version information
28QMAKE_TARGET_COMPANY = Oleksii "Lёppa" Serdiuk
29QMAKE_TARGET_PRODUCT = TSP Solver and Generator
30QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator
31QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2010 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name>
32
[122]33# Versioning
34BUILD_VERSION_MAJOR = 0
35BUILD_VERSION_MINOR = 1
36BUILD_RELEASE = 3
37
38# These are only defined on releases
[145]39DEFINES += TSPSG_RELEASE_BUILD
40DEFINES += BUILD_STATUS_TYPE=beta
41DEFINES += BUILD_STATUS_NUMBER=1
42
43REVISION = 145
44#REVISION = $$system(svnversion)
45#isEmpty(REVISION)|eval(REVISION=="exported") {
46#       REVISION = 0
[122]47#} else {
[145]48#       REVISION = $$replace(REVISION,":","")
49#       REVISION = $$replace(REVISION,"M","")
[122]50#}
[136]51win32-msvc*|wincewm* {
[122]52        VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR)
53} else {
54        VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION)
55}
56
57DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
58        BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
59        BUILD_RELEASE=$$BUILD_RELEASE \
60        BUILD_NUMBER=$$REVISION
61
62# A hack to determine whether we have static or dynamic Qt build
63macx {
64        PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl
65} else:symbian {
66        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
67} else:unix {
68        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
69} else {
70        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
71}
72include($$join(PRL, "/"))
73contains(QMAKE_PRL_CONFIG, static) {
[144]74        # We "embed" SVG icon support on static build
[122]75        DEFINES += STATIC_BUILD
[136]76#       !nosvg:QTPLUGIN += qsvgicon
[122]77}
78
79CONFIG(release, debug|release) {
80        OBJECTS_DIR = release
81        D =
82} else {
83        OBJECTS_DIR = debug
84        DEFINES += DEBUG
85#       CONFIG += console
86        D = d
87}
[138]88DESTDIR = bin
[122]89TARGET = tspsg$${D}
90
91# Saving all intermediate files to tmp directory.
[138]92MOC_DIR = tmp
93RCC_DIR = tmp
94UI_DIR = tmp
[122]95
96# Include 3rd party libraries
[141]97!handheld {
[122]98        include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
99}
100
[124]101win32:LIBS += -lole32
102
[122]103# Include file(s)
104include(tspsg.pri)
105
106# Installation and deployment
107include(install.pri)
Note: See TracBrowser for help on using the repository browser.