author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 10:37:55 +0300 | |
changeset 33 | 3e2da88830cd |
parent 30 | 5dc02b23752f |
child 37 | 758a864f9613 |
permissions | -rw-r--r-- |
0 | 1 |
##################################################################### |
2 |
# Main projectfile |
|
3 |
##################################################################### |
|
4 |
||
5 |
CONFIG += ordered |
|
6 |
TEMPLATE = subdirs |
|
7 |
||
8 |
cross_compile: CONFIG += nostrip |
|
9 |
||
10 |
isEmpty(QT_BUILD_PARTS) { #defaults |
|
11 |
symbian { |
|
22
79de32ba3296
Revision: 201017
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
12 |
QT_BUILD_PARTS = libs tools examples demos |
0 | 13 |
} else { |
14 |
QT_BUILD_PARTS = libs tools examples demos docs translations |
|
15 |
} |
|
16 |
} else { #make sure the order makes sense |
|
17 |
contains(QT_BUILD_PARTS, translations) { |
|
18 |
QT_BUILD_PARTS -= translations |
|
19 |
QT_BUILD_PARTS = translations $$QT_BUILD_PARTS |
|
20 |
} |
|
21 |
contains(QT_BUILD_PARTS, tools) { |
|
22 |
QT_BUILD_PARTS -= tools |
|
23 |
QT_BUILD_PARTS = tools $$QT_BUILD_PARTS |
|
24 |
} |
|
25 |
contains(QT_BUILD_PARTS, libs) { |
|
26 |
QT_BUILD_PARTS -= libs |
|
27 |
QT_BUILD_PARTS = libs $$QT_BUILD_PARTS |
|
28 |
} |
|
29 |
contains(QT_BUILD_PARTS, qmake) { |
|
30 |
QT_BUILD_PARTS -= qmake |
|
31 |
QT_BUILD_PARTS = qmake $$QT_BUILD_PARTS |
|
32 |
} |
|
33 |
} |
|
34 |
||
35 |
#process the projects |
|
36 |
for(PROJECT, $$list($$lower($$unique(QT_BUILD_PARTS)))) { |
|
37 |
isEqual(PROJECT, tools) { |
|
38 |
SUBDIRS += tools |
|
39 |
} else:isEqual(PROJECT, examples) { |
|
40 |
SUBDIRS += examples |
|
41 |
} else:isEqual(PROJECT, demos) { |
|
42 |
SUBDIRS += demos |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
25
diff
changeset
|
43 |
} else:isEqual(PROJECT, tests) { |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
25
diff
changeset
|
44 |
SUBDIRS += tests |
0 | 45 |
} else:isEqual(PROJECT, libs) { |
46 |
include(src/src.pro) |
|
47 |
} else:isEqual(PROJECT, docs) { |
|
48 |
contains(QT_BUILD_PARTS, tools):include(doc/doc.pri) |
|
49 |
} else:isEqual(PROJECT, translations) { |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
50 |
contains(QT_BUILD_PARTS, tools) { |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
51 |
include(translations/translations.pri) # ts targets |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
52 |
} else { |
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
25
diff
changeset
|
53 |
!wince*:SUBDIRS += tools/linguist/lrelease |
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
54 |
} |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
55 |
SUBDIRS += translations # qm build step |
0 | 56 |
} else:isEqual(PROJECT, qmake) { |
57 |
# SUBDIRS += qmake |
|
58 |
} else { |
|
59 |
message(Unknown PROJECT: $$PROJECT) |
|
60 |
} |
|
61 |
} |
|
62 |
||
63 |
!symbian: confclean.depends += clean |
|
64 |
confclean.commands = |
|
65 |
unix:!symbian { |
|
66 |
confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \ |
|
67 |
(cd config.tests/unix/endian && $(MAKE) distclean); \ |
|
68 |
(cd config.tests/unix/ipv6 && $(MAKE) distclean); \ |
|
69 |
(cd config.tests/unix/largefile && $(MAKE) distclean); \ |
|
70 |
(cd config.tests/unix/ptrsize && $(MAKE) distclean); \ |
|
71 |
(cd config.tests/x11/notype && $(MAKE) distclean); \ |
|
72 |
(cd config.tests/unix/getaddrinfo && $(MAKE) distclean); \ |
|
73 |
(cd config.tests/unix/cups && $(MAKE) distclean); \ |
|
74 |
(cd config.tests/unix/psql && $(MAKE) distclean); \ |
|
75 |
(cd config.tests/unix/mysql && $(MAKE) distclean); \ |
|
76 |
(cd config.tests/unix/mysql_r && $(MAKE) distclean); \ |
|
77 |
(cd config.tests/unix/nis && $(MAKE) distclean); \ |
|
78 |
(cd config.tests/unix/nix && $(MAKE) distclean); \ |
|
79 |
(cd config.tests/unix/iodbc && $(MAKE) distclean); \ |
|
80 |
(cd config.tests/unix/odbc && $(MAKE) distclean); \ |
|
81 |
(cd config.tests/unix/oci && $(MAKE) distclean); \ |
|
82 |
(cd config.tests/unix/tds && $(MAKE) distclean); \ |
|
83 |
(cd config.tests/unix/db2 && $(MAKE) distclean); \ |
|
84 |
(cd config.tests/unix/ibase && $(MAKE) distclean); \ |
|
85 |
(cd config.tests/unix/ipv6ifname && $(MAKE) distclean); \ |
|
86 |
(cd config.tests/unix/zlib && $(MAKE) distclean); \ |
|
87 |
(cd config.tests/unix/libmng && $(MAKE) distclean); \ |
|
88 |
(cd config.tests/unix/sqlite2 && $(MAKE) distclean); \ |
|
89 |
(cd config.tests/unix/libjpeg && $(MAKE) distclean); \ |
|
90 |
(cd config.tests/unix/libpng && $(MAKE) distclean); \ |
|
91 |
(cd config.tests/x11/xcursor && $(MAKE) distclean); \ |
|
92 |
(cd config.tests/x11/xrender && $(MAKE) distclean); \ |
|
93 |
(cd config.tests/x11/xrandr && $(MAKE) distclean); \ |
|
94 |
(cd config.tests/x11/xkb && $(MAKE) distclean); \ |
|
95 |
(cd config.tests/x11/xinput && $(MAKE) distclean); \ |
|
96 |
(cd config.tests/x11/fontconfig && $(MAKE) distclean); \ |
|
97 |
(cd config.tests/x11/xinerama && $(MAKE) distclean); \ |
|
98 |
(cd config.tests/x11/sm && $(MAKE) distclean); \ |
|
99 |
(cd config.tests/x11/xshape && $(MAKE) distclean); \ |
|
100 |
(cd config.tests/x11/opengl && $(MAKE) distclean); \ |
|
101 |
$(DEL_FILE) config.tests/.qmake.cache; \ |
|
102 |
$(DEL_FILE) src/core/global/qconfig.h; \ |
|
103 |
$(DEL_FILE) src/core/global/qconfig.cpp; \ |
|
104 |
$(DEL_FILE) mkspecs/qconfig.pri; \ |
|
105 |
$(DEL_FILE) .qmake.cache; \ |
|
106 |
(cd qmake && $(MAKE) distclean); |
|
107 |
} |
|
108 |
win32 { |
|
33
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
109 |
confclean.commands += -$(DEL_FILE) src\\core\\global\\qconfig.h $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
110 |
-$(DEL_FILE) src\\core\\global\\qconfig.cpp $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
111 |
-$(DEL_FILE) mkspecs\\qconfig.pri $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
112 |
-$(DEL_FILE) .qmake.cache $$escape_expand(\\n\\t) \ |
0 | 113 |
(cd qmake && $(MAKE) distclean) |
114 |
} |
|
115 |
symbian { |
|
116 |
confclean.depends += distclean |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
25
diff
changeset
|
117 |
contains(QMAKE_HOST.os, "Windows") { |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
25
diff
changeset
|
118 |
confclean.commands += \ |
33
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
119 |
(cd src\\tools\\moc && $(MAKE) distclean) $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
120 |
(cd src\\tools\\rcc && $(MAKE) distclean) $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
121 |
(cd src\\tools\\uic && $(MAKE) distclean) $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
122 |
-$(DEL_FILE) src\\corelib\\global\\qconfig.h $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
123 |
-$(DEL_FILE) src\\corelib\\global\\qconfig.cpp $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
124 |
-$(DEL_FILE) mkspecs\\qconfig.pri $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
125 |
-$(DEL_FILE) .qmake.cache $$escape_expand(\\n\\t) \ |
0 | 126 |
(cd qmake && $(MAKE) distclean) |
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
25
diff
changeset
|
127 |
} else { |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
25
diff
changeset
|
128 |
confclean.commands += \ |
33
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
129 |
(cd src/tools/moc && $(MAKE) distclean) $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
130 |
(cd src/tools/rcc && $(MAKE) distclean) $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
131 |
(cd src/tools/uic && $(MAKE) distclean) $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
132 |
-$(DEL_FILE) src/corelib/global/qconfig.h $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
133 |
-$(DEL_FILE) src/corelib/global/qconfig.cpp $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
134 |
-$(DEL_FILE) mkspecs/qconfig.pri $$escape_expand(\\n\\t) \ |
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
30
diff
changeset
|
135 |
-$(DEL_FILE) .qmake.cache $$escape_expand(\\n\\t) \ |
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
25
diff
changeset
|
136 |
(cd qmake && $(MAKE) distclean) |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
25
diff
changeset
|
137 |
} |
0 | 138 |
} |
139 |
QMAKE_EXTRA_TARGETS += confclean |
|
140 |
qmakeclean.commands += (cd qmake && $(MAKE) clean) |
|
141 |
QMAKE_EXTRA_TARGETS += qmakeclean |
|
142 |
CLEAN_DEPS += qmakeclean |
|
143 |
||
144 |
CONFIG -= qt |
|
145 |
||
146 |
### installations #### |
|
147 |
||
148 |
#translations |
|
149 |
translations.path=$$[QT_INSTALL_TRANSLATIONS] |
|
150 |
translations.files = $$QT_SOURCE_TREE/translations/*.qm |
|
151 |
INSTALLS += translations |
|
152 |
||
153 |
#qmake |
|
154 |
qmake.path=$$[QT_INSTALL_BINS] |
|
155 |
win32 { |
|
156 |
qmake.files=$$QT_BUILD_TREE/bin/qmake.exe |
|
157 |
} else { |
|
158 |
qmake.files=$$QT_BUILD_TREE/bin/qmake |
|
159 |
} |
|
160 |
INSTALLS += qmake |
|
161 |
||
162 |
#mkspecs |
|
163 |
mkspecs.path=$$[QT_INSTALL_DATA]/mkspecs |
|
164 |
mkspecs.files=$$QT_BUILD_TREE/mkspecs/qconfig.pri $$QT_SOURCE_TREE/mkspecs/* |
|
165 |
unix { |
|
166 |
DEFAULT_QMAKESPEC = $$QMAKESPEC |
|
167 |
DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g |
|
168 |
mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default |
|
169 |
} |
|
25
e24348a560a6
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
170 |
win32:!equals(QT_BUILD_TREE, $$QT_SOURCE_TREE) { |
e24348a560a6
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
171 |
# When shadow building on Windows, the default mkspec only exists in the build tree. |
e24348a560a6
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
172 |
mkspecs.files += $$QT_BUILD_TREE/mkspecs/default |
e24348a560a6
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
22
diff
changeset
|
173 |
} |
0 | 174 |
INSTALLS += mkspecs |
175 |
||
176 |
false:macx { #mac install location |
|
177 |
macdocs.files = $$htmldocs.files |
|
178 |
macdocs.path = /Developer/Documentation/Qt |
|
179 |
INSTALLS += macdocs |
|
180 |
} |
|
181 |