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

Last change on this file since 136 was 136, checked in by laleppa, 14 years ago

Moved to using 32x32 icons on handheld platforms and SVG on desktop ones.
This makes handheld version smaller in size.
128x128 PNG icons are still used if CONFIG+=nosvg parameter is given to qmake.

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