###################################################################### # # TSPSG: TSP Solver and Generator # Copyright (C) 2007-2011 Lёppa # # $Id: tspsg.pro 152 2011-02-18 19:14:47Z laleppa $ # $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/tspsg.pro $ # # This file is part of TSPSG. # ###################################################################### !nosvg { QT += svg } else { DEFINES += NOSVG } wincewm*|symbian|maemo*|simulator { CONFIG += handheld } TEMPLATE = app # QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk # Version information QMAKE_TARGET_COMPANY = Oleksii "Lёppa" Serdiuk QMAKE_TARGET_PRODUCT = TSP Solver and Generator QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator QMAKE_TARGET_COPYRIGHT = Copyright © 200-20110 Oleksii "Lёppa" Serdiuk # Versioning BUILD_VERSION_MAJOR = 0 BUILD_VERSION_MINOR = 1 BUILD_RELEASE = 4 # These are only defined on releases #DEFINES += TSPSG_RELEASE_BUILD #DEFINES += BUILD_STATUS_TYPE=beta #DEFINES += BUILD_STATUS_NUMBER=1 #REVISION = 145 isEmpty(REVISION) { REVISION = $$system(svnversion) } isEmpty(REVISION)|isEqual(REVISION,exported) { REVISION = 0 } else { REVISION = $$replace(REVISION,":","") REVISION = $$replace(REVISION,"M","") } SHORT_VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR) win32-msvc*|wincewm* { VERSION = $$SHORT_VERSION } else { VERSION = $$sprintf("%1.%2",$$SHORT_VERSION,$$BUILD_RELEASE) } DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \ BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \ BUILD_RELEASE=$$BUILD_RELEASE \ BUILD_NUMBER=$$REVISION # A hack to determine whether we have static or dynamic Qt build macx { PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl } else:symbian|maemo* { # Nothing here } else:unix { PRL = $$[QT_INSTALL_LIBS] libQtCore.prl } else { PRL = $$[QT_INSTALL_LIBS] QtCore.prl } !isEmpty(PRL) { include($$join(PRL, "/")) contains(QMAKE_PRL_CONFIG, static) { # We "embed" SVG icon support on static build DEFINES += STATIC_BUILD # !nosvg:QTPLUGIN += qsvgicon } } CONFIG(release, debug|release) { OBJECTS_DIR = release D = } else { OBJECTS_DIR = debug DEFINES += DEBUG # CONFIG += console D = d } DESTDIR = bin TARGET = tspsg$${D} # Saving all intermediate files to tmp directory. MOC_DIR = tmp RCC_DIR = tmp UI_DIR = tmp # Include 3rd party libraries !handheld { include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri) } win32:LIBS += -lole32 # Include file(s) include(tspsg.pri) # Installation and deployment rules include(install.pri)