1 | ###################################################################### |
---|
2 | # |
---|
3 | # TSPSG: TSP Solver and Generator |
---|
4 | # Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> |
---|
5 | # |
---|
6 | # $Id$ |
---|
7 | # $URL$ |
---|
8 | # |
---|
9 | # This file is part of TSPSG. |
---|
10 | # |
---|
11 | ###################################################################### |
---|
12 | |
---|
13 | TEMPLATE = app |
---|
14 | TARGET = tspsg |
---|
15 | DEPENDPATH += . |
---|
16 | INCLUDEPATH += . |
---|
17 | |
---|
18 | CONFIG(release, debug|release) { |
---|
19 | OBJECTS_DIR = release |
---|
20 | DESTDIR = release |
---|
21 | } else { |
---|
22 | OBJECTS_DIR = debug |
---|
23 | DESTDIR = debug |
---|
24 | } |
---|
25 | |
---|
26 | # Saving all intermediate files to tmp directory. |
---|
27 | MOC_DIR = ./tmp |
---|
28 | RCC_DIR = ./tmp |
---|
29 | UI_DIR = ./tmp |
---|
30 | |
---|
31 | #Include file(s) |
---|
32 | include(tspsg.pri) |
---|
33 | |
---|
34 | # For *nix: |
---|
35 | # - executable goes to $(INSTALL_ROOT)/bin |
---|
36 | # - COPYING and README go to $(INSTALL_ROOT)/share/tspsg |
---|
37 | # - translations go to $(INSTALL_ROOT)/share/tspsg/i18n |
---|
38 | # - docs (none, yet) go to $(INSTALL_ROOT)/share/doc/tspsg |
---|
39 | # Usually, $(INSTALL_ROOT) is /usr or /usr/local |
---|
40 | unix { |
---|
41 | target.path = /bin |
---|
42 | share.path = /share/tspsg |
---|
43 | share.files = COPYING README |
---|
44 | i18n.path = /share/tspsg/i18n |
---|
45 | i18n.files = i18n/languages.ini i18n/*.qm |
---|
46 | docs.path = /share/doc/tspsg |
---|
47 | # docs.files = docs/* |
---|
48 | apps.path = /share/applications/ |
---|
49 | apps.files = resources/tspsg.desktop |
---|
50 | icon.path = /share/pixmaps |
---|
51 | icon.files = resources/tspsg.png |
---|
52 | INSTALLS += target i18n docs share icon apps |
---|
53 | } |
---|
54 | |
---|
55 | # For win32: everything goes to $(INSTALL_ROOT)\tspsg and subfolders. |
---|
56 | # Usually, $(INSTALL_ROOT) is "C:\Program Files" |
---|
57 | win32 { |
---|
58 | target.path = "\tspsg" |
---|
59 | share.path = "\tspsg" |
---|
60 | share.files = COPYING README |
---|
61 | i18n.path = "\tspsg\i18n" |
---|
62 | i18n.files = i18n\languages.ini i18n\*.qm |
---|
63 | docs.path = "\tspsg\help" |
---|
64 | # docs.files = docs\* |
---|
65 | INSTALLS += target i18n docs share |
---|
66 | } |
---|
67 | |
---|
68 | # TODO: MacOSX |
---|
69 | |
---|
70 | # For wince: we are deploying to \Storage Card\Program Files\tspsg. |
---|
71 | wince { |
---|
72 | deploy.path = "\Storage Card\Program Files\tspsg" |
---|
73 | share.sources = COPYING README |
---|
74 | share.path = "\Storage Card\Program Files\tspsg" |
---|
75 | i18n.sources = i18n\languages.ini i18n\*.qm |
---|
76 | i18n.path = "\Storage Card\Program Files\tspsg\i18n" |
---|
77 | # docs.sources = docs\* |
---|
78 | # docs.path = "\Storage Card\Program Files\tspsg\help" |
---|
79 | DEPLOYMENT += deploy share i18n # docs |
---|
80 | } |
---|
81 | |
---|
82 | #Windows resource file |
---|
83 | win32:RC_FILE = resources/tspsg.rc |
---|