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 | 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
|
---|
28 | for(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 |
|
---|
48 | confclean.depends += clean
|
---|
49 | confclean.commands =
|
---|
50 | unix {
|
---|
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); \
|
---|
|
---|