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

Last change on this file since 153 was 152, checked in by laleppa, 14 years ago

Fixed some errors in the tspsg.desktop file and tweaked project files a little...

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