[2] | 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
|
---|
[561] | 11 | symbian {
|
---|
| 12 | QT_BUILD_PARTS = libs tools examples demos
|
---|
| 13 | } else {
|
---|
| 14 | QT_BUILD_PARTS = libs tools examples demos docs translations
|
---|
| 15 | }
|
---|
[2] | 16 | } else { #make sure the order makes sense
|
---|
[561] | 17 | contains(QT_BUILD_PARTS, translations) {
|
---|
| 18 | QT_BUILD_PARTS -= translations
|
---|
| 19 | QT_BUILD_PARTS = translations $$QT_BUILD_PARTS
|
---|
| 20 | }
|
---|
[413] | 21 | contains(QT_BUILD_PARTS, tools) {
|
---|
| 22 | QT_BUILD_PARTS -= tools
|
---|
| 23 | QT_BUILD_PARTS = tools $$QT_BUILD_PARTS
|
---|
| 24 | }
|
---|
[2] | 25 | contains(QT_BUILD_PARTS, libs) {
|
---|
| 26 | QT_BUILD_PARTS -= libs
|
---|
| 27 | QT_BUILD_PARTS = libs $$QT_BUILD_PARTS
|
---|
| 28 | }
|
---|
[513] | 29 | contains(QT_BUILD_PARTS, qmake) {
|
---|
[2] | 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) {
|
---|
[561] | 48 | contains(QT_BUILD_PARTS, tools) {
|
---|
| 49 | include(translations/translations.pri) # ts targets
|
---|
| 50 | } else {
|
---|
[846] | 51 | !wince*:SUBDIRS += tools/linguist/lrelease
|
---|
[561] | 52 | }
|
---|
| 53 | SUBDIRS += translations # qm build step
|
---|
[2] | 54 | } else:isEqual(PROJECT, qmake) {
|
---|
[513] | 55 | SUBDIRS += qmake
|
---|
[2] | 56 | } else {
|
---|
| 57 | message(Unknown PROJECT: $$PROJECT)
|
---|
| |
---|