source: tspsg/tspsg.pro @ 2a5e50e0a9

appveyorimgbotreadme
Last change on this file since 2a5e50e0a9 was 2a5e50e0a9, checked in by Oleksii Serdiuk, 11 years ago

[BB10] Use native file pickers.

Also, use "/accounts/1000/shared" folder as default in open/save dialogs.

Cherry-picks from:
c039ebbe827ae1ba92ae89b2e9caef549a96547c
2512bd5a48d086ea03092bc4bdb368c58fc82854

  • Property mode set to 100644
File size: 2.5 KB
Line 
1######################################################################
2#
3#  TSPSG: TSP Solver and Generator
4#  Copyright (C) 2007-2013 Oleksii Serdiuk <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
19greaterThan(QT_MAJOR_VERSION, 4) {
20    QT += printsupport concurrent
21}
22
23wincewm*|symbian|maemo*|simulator|blackberry {
24    CONFIG += handheld
25}
26blackberry {
27#    DEFINES += QT_NO_SHORTCUT
28    DEFINES += QT_NO_PRINTDIALOG
29    DEFINES += QT_NO_PRINTPREVIEWDIALOG
30
31    QT += xml declarative
32    LIBS += -lbb -lbbcascadespickers
33}
34
35TEMPLATE = app
36
37# QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
38
39# Version information
40QMAKE_TARGET_COMPANY = Oleksii Serdiuk
41QMAKE_TARGET_PRODUCT = TSP Solver and Generator
42QMAKE_TARGET_DESCRIPTION = TSPSG: TSP Solver and Generator
43QMAKE_TARGET_COPYRIGHT = Copyright © 2007-2013 Oleksii Serdiuk <contacts[at]oleksii[dot]name>
44
45# Version detection
46include(version.pri)
47
48DEFINES += BUILD_VERSION_MAJOR=$$BUILD_VERSION_MAJOR \
49    BUILD_VERSION_MINOR=$$BUILD_VERSION_MINOR \
50    BUILD_RELEASE=$$BUILD_RELEASE \
51    BUILD_NUMBER=$$BUILD_NUMBER
52
53blackberry {
54    TARGET = tspsg
55} else {
56    !debug_and_release|build_pass {
57        CONFIG(debug, debug|release) {
58            OBJECTS_DIR = debug
59            DEFINES += DEBUG
60#            CONFIG += console
61            D = d
62        } else {
63            OBJECTS_DIR = release
64            D =
65        }
66    }
67}
68
69# Saving all intermediate files to tmp directory.
70MOC_DIR = tmp
71RCC_DIR = tmp
72UI_DIR = tmp
73
74# We need to generate translations before building.
75# Either way, resource files won't compile.
76translations.name = Translations
77translations.input = TRANSLATIONS
78translations.output = $$_PRO_FILE_PWD_/l10n/${QMAKE_FILE_BASE}.qm
79freebsd-* {
80    translations.commands = $$[QT_INSTALL_BINS]/lrelease-qt$${QT_MAJOR_VERSION} ${QMAKE_FILE_IN}
81} else {
82    translations.commands = $$[QT_INSTALL_BINS]/lrelease ${QMAKE_FILE_IN}
83}
84translations.CONFIG = no_link
85QMAKE_EXTRA_COMPILERS += translations
86PRE_TARGETDEPS += compiler_translations_make_all
87
88# Include 3rd party libraries
89!handheld {
90    include(src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.pri)
91}
92
93win32:LIBS += -lole32
94
95# Source
96include(tspsg.pri)
97
98# Help
99include(help/help.pri)
100
101# Code Documentation
102include(doc/doc.pri)
103
104# Installation and deployment rules
105include(install.pri)
Note: See TracBrowser for help on using the repository browser.