source: tspsg/tspsg.pro @ 3cadf24d00

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 3cadf24d00 was 3cadf24d00, checked in by Oleksii Serdiuk, 14 years ago
  • Property mode set to 100644
File size: 2.3 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
[3cadf24d00]21# QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
22
[162d5c5f94]23# Versioning
24BUILD_VERSION_MAJOR = 0
25BUILD_VERSION_MINOR = 1
[317ba0432e]26BUILD_RELEASE = 3
[162d5c5f94]27
[e2abfd326f]28# These are only defined on releases
[317ba0432e]29#DEFINES += TSPSG_RELEASE_BUILD
30#!symbian {
31#      DEFINES += BUILD_STATUS="\"(alpha 2)\""
32#} else {
33#      # Symbian doesn't handle spaces in defines well
34#      DEFINES += BUILD_STATUS="(alpha2)"
35#}
36
37#REVISION = 100
38REVISION = $$system(svnversion)
[94cd045fad]39REVISION = $$replace(REVISION,":","")
[317ba0432e]40REVISION = $$replace(REVISION,"M","")
[94cd045fad]41#VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION)
42win32-msvc* {
43        VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR)
44} else {
45        VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION)
46}
[162d5c5f94]47
48DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
49        BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
50        BUILD_RELEASE=$$BUILD_RELEASE \
51        BUILD_NUMBER=$$REVISION
[5515c2c2a7]52
[0ac9690913]53# A hack to determine whether we have static or dynamic Qt build
[3cadf24d00]54macx {
55        PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl
56} else:symbian {
[162d5c5f94]57        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[3cadf24d00]58} else:unix {
59        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
[f19df0a3e5]60} else {
61        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[162d5c5f94]62}
[0ac9690913]63include($$join(PRL, "/"))
64contains(QMAKE_PRL_CONFIG, static) {
[20015b41e7]65# We "embed" JPEG and TIFF support on static build
[0ac9690913]66        DEFINES += STATIC_BUILD
[20015b41e7]67#       QTPLUGIN += qjpeg qtiff
[0ac9690913]68}
69
[1babbd6ba3]70CONFIG(release, debug|release) {
[4c96f94558]71        OBJECTS_DIR = release
72        DESTDIR = release
[394216e468]73        D =
[4c96f94558]74} else {
75        OBJECTS_DIR = debug
76        DESTDIR = debug
[162d5c5f94]77        DEFINES += DEBUG
[317ba0432e]78#       CONFIG += console
[394216e468]79        D = d
[4c96f94558]80}
[394216e468]81TARGET = tspsg$${D}
[4c96f94558]82
[799ba1e3f2]83# Saving all intermediate files to tmp directory.
84MOC_DIR = ./tmp
85RCC_DIR = ./tmp
86UI_DIR = ./tmp
87
[94cd045fad]88# Include 3rd party libraries
[7bb19df196]89!wincewm*:!symbian {
90        include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
91}
[94cd045fad]92
[162d5c5f94]93# Include file(s)
[5354a01311]94include(tspsg.pri)
95
[162d5c5f94]96# Installation and deployment
[20015b41e7]97include(install.pri)
Note: See TracBrowser for help on using the repository browser.