source: tspsg/tspsg.pro @ 1299ea5b49

appveyorimgbotreadme
Last change on this file since 1299ea5b49 was 1299ea5b49, checked in by Oleksii Serdiuk, 12 years ago

Updated version info to be set based on git tags.

'git describe' is now used for version definition. Major, minor and
release are taken from the latest git tag. Build is defined as number of
commits since the latest tag. If we're out of source, then .tag file
should contain output of 'git describe --abbrev=40' command.

Also, moved version related code from tspsg.pro to version.pri.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1######################################################################
2#
3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2011 Lёppa <contacts[at]oleksii[dot]name>
5#
6#  $Id: $Format:%h %ai %an$ $
7#  $URL: http://tspsg.info/ $
8#
9#  This file is part of TSPSG.
10#
11######################################################################
12
13!nosvg {
14    QT += svg
15} else {
16    DEFINES += NOSVG
17}
18
19wincewm*|symbian|maemo*|simulator {
20    CONFIG += handheld
21}
22
23TEMPLATE = app
24
25# QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
26
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-2011 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name>
32
33# Version detection
34include(version.pri)
35
36DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
37    BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
38    BUILD_RELEASE=$$BUILD_RELEASE \
39    BUILD_NUMBER=$$BUILD_NUMBER
40
41CONFIG(release, debug|release) {
42    OBJECTS_DIR = release
43    D =
44} else {
45    OBJECTS_DIR = debug
46    DEFINES += DEBUG
47#       CONFIG += console
48    D = d
49}
50DESTDIR = bin
51TARGET = tspsg$${D}
52
53# Saving all intermediate files to tmp directory.
54MOC_DIR = tmp
55RCC_DIR = tmp
56UI_DIR = tmp
57
58# Include 3rd party libraries
59!handheld {
60    include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
61}
62
63win32:LIBS += -lole32
64
65# Include file(s)
66include(tspsg.pri)
67
68# Installation and deployment rules
69include(install.pri)
Note: See TracBrowser for help on using the repository browser.