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 {
|
---|
12 | QT_BUILD_PARTS = libs tools examples demos
|
---|
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
|
---|
43 | } else:isEqual(PROJECT, libs) {
|
---|
44 | include(src/src.pro)
|
---|
45 | } else:isEqual(PROJECT, docs) {
|
---|
46 | contains(QT_BUILD_PARTS, tools):include(doc/doc.pri)
|
---|
47 | } else:isEqual(PROJECT, translations) {
|
---|
48 | contains(QT_BUILD_PARTS, tools) {
|
---|
49 | include(translations/translations.pri) # ts targets
|
---|
50 | } else {
|
---|
51 | !wince*:SUBDIRS += tools/linguist/lrelease
|
---|
52 | }
|
---|
|
---|