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

Last change on this file since 121 was 121, checked in by laleppa, 14 years ago
  • Property svn:keywords set to Id URL
File size: 2.3 KB
RevLine 
[1]1######################################################################
[17]2#
[90]3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name>
[17]5#
[90]6#  $Id: tspsg.pro 121 2010-06-22 13:38:24Z laleppa $
7#  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/tspsg.pro $
[17]8#
[90]9#  This file is part of TSPSG.
[17]10#
[1]11######################################################################
12
[109]13!nosvg {
14        QT += svg
15} else {
16        DEFINES += NOSVG
17}
[71]18
[36]19TEMPLATE = app
[1]20
[121]21# QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
22
[96]23# Versioning
24BUILD_VERSION_MAJOR = 0
25BUILD_VERSION_MINOR = 1
[103]26BUILD_RELEASE = 3
[96]27
[98]28# These are only defined on releases
[103]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#}
[96]36
[103]37#REVISION = 100
38REVISION = $$system(svnversion)
[117]39REVISION = $$replace(REVISION,":","")
[103]40REVISION = $$replace(REVISION,"M","")
[117]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}
[96]47
48DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
49        BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
50        BUILD_RELEASE=$$BUILD_RELEASE \
51        BUILD_NUMBER=$$REVISION
52
[71]53# A hack to determine whether we have static or dynamic Qt build
[121]54macx {
55        PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl
56} else:symbian {
57        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
58} else:unix {
[96]59        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
[97]60} else {
61        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
[96]62}
[71]63include($$join(PRL, "/"))
64contains(QMAKE_PRL_CONFIG, static) {
[109]65# We "embed" JPEG and TIFF support on static build
[71]66        DEFINES += STATIC_BUILD
[109]67#       QTPLUGIN += qjpeg qtiff
[71]68}
69
[100]70CONFIG(release, debug|release) {
[36]71        OBJECTS_DIR = release
72        DESTDIR = release
[99]73        D =
[36]74} else {
75        OBJECTS_DIR = debug
76        DESTDIR = debug
[96]77        DEFINES += DEBUG
[104]78#       CONFIG += console
[99]79        D = d
[36]80}
[99]81TARGET = tspsg$${D}
[36]82
[20]83# Saving all intermediate files to tmp directory.
84MOC_DIR = ./tmp
85RCC_DIR = ./tmp
86UI_DIR = ./tmp
87
[117]88# Include 3rd party libraries
[118]89!wincewm*:!symbian {
90        include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
91}
[117]92
[96]93# Include file(s)
[17]94include(tspsg.pri)
95
[96]96# Installation and deployment
[109]97include(install.pri)
Note: See TracBrowser for help on using the repository browser.