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