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

Last change on this file since 93 was 93, checked in by laleppa, 15 years ago

+ Preliminary Symbian support.

  • Property svn:keywords set to Id URL
File size: 3.1 KB
Line 
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 93 2010-02-23 22:17:48Z laleppa $
7#  $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/tspsg.pro $
8#
9#  This file is part of TSPSG.
10#
11######################################################################
12
13QT += svg
14
15TEMPLATE = app
16TARGET = tspsg
17DEPENDPATH += .
18INCLUDEPATH += .
19VERSOIN = 0.1.2
20
21# A hack to determine whether we have static or dynamic Qt build
22PRL = $$[QT_INSTALL_LIBS] QtCore.prl
23include($$join(PRL, "/"))
24contains(QMAKE_PRL_CONFIG, static) {
25# We "embed" SVG and JPEG support on static build
26        QTPLUGIN += qjpeg qsvg
27        DEFINES += STATIC_BUILD
28}
29
30CONFIG(release, debug|release) {
31        OBJECTS_DIR = release
32        DESTDIR = release
33} else {
34        OBJECTS_DIR = debug
35        DESTDIR = debug
36}
37
38# Saving all intermediate files to tmp directory.
39MOC_DIR = ./tmp
40RCC_DIR = ./tmp
41UI_DIR = ./tmp
42
43#Include file(s)
44include(tspsg.pri)
45
46# For *nix:
47#   - executable goes to $(INSTALL_ROOT)/bin
48#   - COPYING and README go to $(INSTALL_ROOT)/share/tspsg
49#   - translations go to $(INSTALL_ROOT)/share/tspsg/i18n
50#   - docs (none, yet) go to $(INSTALL_ROOT)/share/doc/tspsg
51# Usually, $(INSTALL_ROOT) is /usr or /usr/local
52unix:!symbian {
53        target.path = /bin
54        share.path = /share/tspsg
55        share.files = COPYING README
56        i18n.path = /share/tspsg/i18n
57        i18n.files = i18n/languages.ini i18n/*.qm
58        docs.path = /share/doc/tspsg
59#       docs.files = docs/*
60        apps.path = /share/applications/
61        apps.files = resources/tspsg.desktop
62        icon.path = /share/pixmaps
63        icon.files = resources/tspsg.png
64        INSTALLS += target i18n docs share icon apps
65}
66
67# For win32: everything goes to $(INSTALL_ROOT)\tspsg and subfolders.
68# Usually, $(INSTALL_ROOT) is "C:\Program Files"
69win32 {
70        target.path = "\tspsg"
71        share.path = "\tspsg"
72        share.files = COPYING README
73        i18n.path = "\tspsg\i18n"
74        i18n.files = i18n\languages.ini i18n\*.qm
75        docs.path = "\tspsg\help"
76#       docs.files = docs\*
77        INSTALLS += target i18n docs share
78
79        RC_FILE = resources/tspsg.rc
80}
81
82# TODO: MacOSX
83
84# For wince: we are deploying to \Storage Card\Program Files\tspsg.
85wince {
86        deploy.path = "\Storage Card\Program Files\tspsg"
87        share.sources = COPYING README
88        share.path = "\Storage Card\Program Files\tspsg"
89        i18n.sources = i18n\languages.ini i18n\*.qm
90        i18n.path = "\Storage Card\Program Files\tspsg\i18n"
91#       docs.sources = docs\*
92#       docs.path = "\Storage Card\Program Files\tspsg\help"
93        DEPLOYMENT += deploy share i18n # docs
94}
95
96# Symbian
97symbian {
98        share.pkg_prerules = \
99                "\"README\" - \"\", FILETEXT, TEXTCONTINUE" \
100                "\"COPYING\" - \"\", FILETEXT, TEXTEXIT"
101        share.sources = COPYING README
102        i18n.sources = i18n/languages.ini i18n/*.qm
103        i18n.path = i18n
104#       docs.sources = docs/*
105#       docs.path = help
106        DEPLOYMENT += share i18n # docs
107
108        ICON = resources/tspsg.svg
109
110        appinfo = \
111                "$$LITERAL_HASH{\"TSPSG\"},(0xEb9dce0e),0,1,2"
112        vendorinfo = \
113                "%{\"l-homes.org\"}" \
114                ":\"l-homes.org\""
115        default_deployment.pkg_prerules = appinfo vendorinfo
116        DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"TSPSG Installer\"},(0xA000D7CE),1,0,0"
117}
Note: See TracBrowser for help on using the repository browser.