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

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

+ Added more fonts to font-family css property on export.

  • Graph was slightly cut on export.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id URL
File size: 2.2 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 138 2010-09-24 14:27:46Z 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","")
[136]41win32-msvc*|wincewm* {
[122]42        VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR)
43} else {
44        VERSION = $$sprintf("%1.%2.%3.%4",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR,$$BUILD_RELEASE,$$REVISION)
45}
46
47DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
48        BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
49        BUILD_RELEASE=$$BUILD_RELEASE \
50        BUILD_NUMBER=$$REVISION
51
52# A hack to determine whether we have static or dynamic Qt build
53macx {
54        PRL = $$[QT_INSTALL_LIBS] QtCore.framework QtCore.prl
55} else:symbian {
56        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
57} else:unix {
58        PRL = $$[QT_INSTALL_LIBS] libQtCore.prl
59} else {
60        PRL = $$[QT_INSTALL_LIBS] QtCore.prl
61}
62include($$join(PRL, "/"))
63contains(QMAKE_PRL_CONFIG, static) {
[136]64        # We "embed" SVG icon, JPEG and TIFF support on static build
[122]65        DEFINES += STATIC_BUILD
66#       QTPLUGIN += qjpeg qtiff
[136]67#       !nosvg:QTPLUGIN += qsvgicon
[122]68}
69
70CONFIG(release, debug|release) {
71        OBJECTS_DIR = release
72        D =
73} else {
74        OBJECTS_DIR = debug
75        DEFINES += DEBUG
76#       CONFIG += console
77        D = d
78}
[138]79DESTDIR = bin
[122]80TARGET = tspsg$${D}
81
82# Saving all intermediate files to tmp directory.
[138]83MOC_DIR = tmp
84RCC_DIR = tmp
85UI_DIR = tmp
[122]86
87# Include 3rd party libraries
88!wincewm*:!symbian {
89        include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
90}
91
[124]92win32:LIBS += -lole32
93
[122]94# Include file(s)
95include(tspsg.pri)
96
97# Installation and deployment
98include(install.pri)
Note: See TracBrowser for help on using the repository browser.