source: branches/4.5.1/projects.pro@ 921

Last change on this file since 921 was 513, checked in by Dmitry A. Kuminov, 15 years ago

qmake: Revert to a static build that doesn't depend on Qt DLLs to simplify the build process (other tools like moc.exe are static too so it makes even less sense to put the dependency on one of them).

File size: 5.0 KB
Line 
1#####################################################################
2# Main projectfile
3#####################################################################
4
5CONFIG += ordered
6TEMPLATE = subdirs
7
8cross_compile: CONFIG += nostrip
9
10isEmpty(QT_BUILD_PARTS) { #defaults
11 QT_BUILD_PARTS = libs tools examples demos docs translations
12} else { #make sure the order makes sense
13 contains(QT_BUILD_PARTS, tools) {
14 QT_BUILD_PARTS -= tools
15 QT_BUILD_PARTS = tools $$QT_BUILD_PARTS
16 }
17 contains(QT_BUILD_PARTS, libs) {
18 QT_BUILD_PARTS -= libs
19 QT_BUILD_PARTS = libs $$QT_BUILD_PARTS
20 }
21 contains(QT_BUILD_PARTS, qmake) {
22 QT_BUILD_PARTS -= qmake
23 QT_BUILD_PARTS = qmake $$QT_BUILD_PARTS
24 }
25}
26
27#process the projects
28for(PROJECT, $$list($$lower($$unique(QT_BUILD_PARTS)))) {
29 isEqual(PROJECT, tools) {
30 SUBDIRS += tools
31 } else:isEqual(PROJECT, examples) {
32 SUBDIRS += examples
33 } else:isEqual(PROJECT, demos) {
34 SUBDIRS += demos
35 } else:isEqual(PROJECT, libs) {
36 include(src/src.pro)
37 } else:isEqual(PROJECT, docs) {
38 contains(QT_BUILD_PARTS, tools):include(doc/doc.pri)
39 } else:isEqual(PROJECT, translations) {
40 contains(QT_BUILD_PARTS, tools):include(translations/translations.pri)
41 } else:isEqual(PROJECT, qmake) {
42 SUBDIRS += qmake
43 } else {
44 message(Unknown PROJECT: $$PROJECT)
45 }
46}
47
48confclean.depends += clean
49confclean.commands =
50unix {
51 confclean.commands += (cd config.tests/unix/stl && $(MAKE) distclean); \
52 (cd config.tests/unix/endian && $(MAKE) distclean); \
53 (cd config.tests/unix/ipv6 && $(MAKE) distclean); \
54 (cd config.tests/unix/largefile && $(MAKE) distclean); \
55 (cd config.tests/unix/ptrsize && $(MAKE) distclean); \
56 (cd config.tests/x11/notype && $(MAKE) distclean); \