1 | ###################################################################### |
---|
2 | # |
---|
3 | # TSPSG: TSP Solver and Generator |
---|
4 | # Copyright (C) 2007-2010 Lёppa <contacts[at]oleksii[dot]name> |
---|
5 | # |
---|
6 | # $Id$ |
---|
7 | # $URL$ |
---|
8 | # |
---|
9 | # This file is part of TSPSG. |
---|
10 | # |
---|
11 | ###################################################################### |
---|
12 | |
---|
13 | QT += svg |
---|
14 | |
---|
15 | TEMPLATE = app |
---|
16 | TARGET = tspsg |
---|
17 | DEPENDPATH += . |
---|
18 | INCLUDEPATH += . |
---|
19 | VERSOIN = 0.1.2 |
---|
20 | |
---|
21 | # A hack to determine whether we have static or dynamic Qt build |
---|
22 | PRL = $$[QT_INSTALL_LIBS] QtCore.prl |
---|
23 | include($$join(PRL, "/")) |
---|
24 | contains(QMAKE_PRL_CONFIG, static) { |
---|
25 | # We "embed" SVG and JPEG support on static build |
---|
26 | QTPLUGIN += qjpeg qsvg |
---|
27 | DEFINES += STATIC_BUILD |
---|
28 | } |
---|
29 | |
---|
30 | CONFIG(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. |
---|
39 | MOC_DIR = ./tmp |
---|
40 | RCC_DIR = ./tmp |
---|
41 | UI_DIR = ./tmp |
---|
42 | |
---|
43 | #Include file(s) |
---|
44 | include(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 |
---|
52 | unix:!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" |
---|
69 | win32 { |
---|
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. |
---|
85 | wince { |
---|
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 |
---|
97 | symbian { |
---|
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 | } |
---|