source: tspsg/tspsg.pro @ b26801b000

appveyorimgbotreadme
Last change on this file since b26801b000 was b26801b000, checked in by Oleksii Serdiuk, 12 years ago

Added a rule to run lrelease before running build.

qt_*.qm translations are no longer included into the resources.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1######################################################################
2#
3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2011 Lёppa <contacts[at]oleksii[dot]name>
5#
6#  $Id: $Format:%h %ai %an$ $
7#  $URL: http://tspsg.info/ $
8#
9#  This file is part of TSPSG.
10#
11######################################################################
12
13!nosvg {
14    QT += svg
15} else {
16    DEFINES += NOSVG
17}
18
19wincewm*|symbian|maemo*|simulator {
20    CONFIG += handheld
21}
22
23TEMPLATE = app
24
25# QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
26
27# Version information
28QMAKE_TARGET_COMPANY = Oleksii "Lёppa" Serdiuk
29QMAKE_TARGET_PRODUCT = TSP Solver and Generator
30QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator
31QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2011 Oleksii "Lёppa" Serdiuk <contacts[at]oleksii[dot]name>
32
33# Version detection
34include(version.pri)
35
36DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
37    BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
38    BUILD_RELEASE=$$BUILD_RELEASE \
39    BUILD_NUMBER=$$BUILD_NUMBER
40
41CONFIG(release, debug|release) {
42    OBJECTS_DIR = release
43    D =
44} else {
45    OBJECTS_DIR = debug
46    DEFINES += DEBUG
47#       CONFIG += console
48    D = d
49}
50DESTDIR = bin
51TARGET = tspsg$${D}
52
53# Saving all intermediate files to tmp directory.
54MOC_DIR = tmp
55RCC_DIR = tmp
56UI_DIR = tmp
57
58# We need to generate translations before building.
59# Either way, resource files won't compile.
60translations.name = Translations
61translations.input = TRANSLATIONS
62translations.output = $$_PRO_FILE_PWD_/l10n/${QMAKE_FILE_BASE}.qm
63translations.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN}
64translations.CONFIG = no_link
65QMAKE_EXTRA_COMPILERS += translations
66PRE_TARGETDEPS += compiler_translations_make_all
67
68# Include 3rd party libraries
69!handheld {
70    include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
71}
72
73win32:LIBS += -lole32
74
75# Include file(s)
76include(tspsg.pri)
77
78# Installation and deployment rules
79include(install.pri)
Note: See TracBrowser for help on using the repository browser.