1
TEMPLATE    = subdirs
2
3
!contains(QT_CONFIG, no-gui) {
4
SUBDIRS     = \
5
            demos_shared \
6
            demos_deform \
7
            demos_gradients \
8
            demos_pathstroke \
9
            demos_affine \
10
            demos_composition \
11
            demos_books \
12
            demos_interview \
13
            demos_mainwindow \
14
            demos_spreadsheet \
15
            demos_textedit \
16
            demos_chip \
17
            demos_embeddeddialogs \
18
            demos_undo \
19
            demos_sub-attaq
20
21
symbian: SUBDIRS = \
22
            demos_shared \
23
            demos_deform \
24
            demos_pathstroke
25
            
26
wince*:  SUBDIRS = \
27
            demos_shared \
28
            demos_deform \
29
            demos_gradients \
30
            demos_pathstroke \
31
            demos_affine \
32
            demos_composition \
33
            demos_books \
34
            demos_interview \
35
            demos_mainwindow \
36
            demos_spreadsheet \
37
            demos_textedit \
38
            # demos_chip \
39
            demos_embeddeddialogs \
40
            demos_undo \
41
            demos_sub-attaq
42
            
43
contains(QT_CONFIG, opengl):!contains(QT_CONFIG, opengles1):!contains(QT_CONFIG, opengles2):{
44
SUBDIRS += demos_boxes
45
}
46
47
mac* && !qpa: SUBDIRS += demos_macmainwindow
48
wince*|symbian|embedded|x11: SUBDIRS += demos_embedded
49
50
!contains(QT_EDITION, Console):!cross_compile:!embedded:!wince*:SUBDIRS += demos_arthurplugin
51
52
!cross_compile:{
53
contains(QT_BUILD_PARTS, tools):{
54
!wince*:SUBDIRS += demos_sqlbrowser demos_qtdemo
55
wince*:SUBDIRS += demos_sqlbrowser
56
}
57
}
58
contains(QT_CONFIG, phonon):!static:SUBDIRS += demos_mediaplayer
59
contains(QT_CONFIG, webkit):contains(QT_CONFIG, svg):!symbian:SUBDIRS += demos_browser
60
contains(QT_CONFIG, declarative):SUBDIRS += demos_declarative
61
contains(QT_CONFIG, multimedia):!static:SUBDIRS += demos_spectrum
62
63
# install
64
sources.files = README *.pro
65
sources.path = $$[QT_INSTALL_DEMOS]
66
INSTALLS += sources
67
68
symbian: include($$QT_SOURCE_TREE/demos/symbianpkgrules.pri)
69
70
demos_chip.subdir = chip
71
demos_embeddeddialogs.subdir = embeddeddialogs
72
demos_embedded.subdir = embedded
73
# Because of fluidlauncher
74
demos_embedded.depends = demos_deform demos_pathstroke
75
demos_shared.subdir = shared
76
demos_deform.subdir = deform
77
demos_gradients.subdir = gradients
78
demos_pathstroke.subdir = pathstroke
79
demos_affine.subdir = affine
80
demos_composition.subdir = composition
81
demos_books.subdir = books
82
demos_interview.subdir = interview
83
demos_macmainwindow.subdir = macmainwindow
84
demos_mainwindow.subdir = mainwindow
85
demos_spreadsheet.subdir = spreadsheet
86
demos_textedit.subdir = textedit
87
demos_arthurplugin.subdir = arthurplugin
88
demos_sqlbrowser.subdir = sqlbrowser
89
demos_undo.subdir = undo
90
demos_qtdemo.subdir = qtdemo
91
demos_mediaplayer.subdir = qmediaplayer
92
demos_declarative.subdir = declarative
93
94
demos_browser.subdir = browser
95
96
demos_boxes.subdir = boxes
97
demos_sub-attaq.subdir = sub-attaq
98
demos_spectrum.subdir = spectrum
99
100
#CONFIG += ordered
101
!ordered {
102
     demos_affine.depends = demos_shared
103
     demos_deform.depends = demos_shared
104
     demos_gradients.depends = demos_shared
105
     demos_composition.depends = demos_shared
106
     demos_arthurplugin.depends = demos_shared
107
     demos_pathstroke.depends = demos_shared
108
}
109
}