3 src_tools.subdir = $$PWD/tools
4 src_tools.target = sub-tools
6 src_winmain.subdir = $$PWD/winmain
7 src_winmain.target = sub-winmain
8 src_winmain.depends = sub-corelib # just for the module .pri file
10 src_corelib.subdir = $$PWD/corelib
11 src_corelib.target = sub-corelib
12 src_corelib.depends = src_tools
14 src_xml.subdir = $$PWD/xml
15 src_xml.target = sub-xml
16 src_xml.depends = src_corelib
18 src_dbus.subdir = $$PWD/dbus
19 src_dbus.target = sub-dbus
20 src_dbus.depends = src_corelib
22 src_concurrent.subdir = $$PWD/concurrent
23 src_concurrent.target = sub-concurrent
24 src_concurrent.depends = src_corelib
26 src_sql.subdir = $$PWD/sql
27 src_sql.target = sub-sql
28 src_sql.depends = src_corelib
30 src_network.subdir = $$PWD/network
31 src_network.target = sub-network
32 src_network.depends = src_corelib
34 src_testlib.subdir = $$PWD/testlib
35 src_testlib.target = sub-testlib
36 src_testlib.depends = src_corelib # src_gui & src_widgets are not build-depends
38 src_gui.subdir = $$PWD/gui
39 src_gui.target = sub-gui
40 src_gui.depends = src_corelib
42 src_platformsupport.subdir = $$PWD/platformsupport
43 src_platformsupport.target = sub-platformsupport
44 src_platformsupport.depends = src_corelib src_gui src_network
46 src_widgets.subdir = $$PWD/widgets
47 src_widgets.target = sub-widgets
48 src_widgets.depends = src_corelib src_gui
50 src_opengl.subdir = $$PWD/opengl
51 src_opengl.target = sub-opengl
52 src_opengl.depends = src_gui src_widgets
54 src_printsupport.subdir = $$PWD/printsupport
55 src_printsupport.target = sub-printsupport
56 src_printsupport.depends = src_corelib src_gui src_widgets
58 src_plugins.subdir = $$PWD/plugins
59 src_plugins.target = sub-plugins
60 src_plugins.depends = src_sql src_xml src_network src_platformsupport
62 # this order is important
63 SUBDIRS += src_tools src_corelib
64 win32:SUBDIRS += src_winmain
65 SUBDIRS += src_network src_sql src_xml src_testlib
66 contains(QT_CONFIG, dbus) {
68 src_plugins.depends += src_dbus
70 contains(QT_CONFIG, concurrent):SUBDIRS += src_concurrent
71 !contains(QT_CONFIG, no-gui) {
72 SUBDIRS += src_gui src_platformsupport
73 src_plugins.depends += src_gui src_platformsupport
74 !contains(QT_CONFIG, no-widgets) {
75 SUBDIRS += src_widgets
76 src_plugins.depends += src_widgets
77 contains(QT_CONFIG, opengl(es1|es2)?) {
79 src_plugins.depends += src_opengl
82 SUBDIRS += src_printsupport
83 src_plugins.depends += src_printsupport
87 SUBDIRS += src_plugins
89 nacl: SUBDIRS -= src_network src_testlib