2011-04-27 10:05:43 +00:00
|
|
|
TEMPLATE = subdirs
|
|
|
|
|
|
|
|
# this order is important
|
|
|
|
unset(SRC_SUBDIRS)
|
|
|
|
win32:SRC_SUBDIRS += src_winmain
|
2011-10-28 18:44:27 +00:00
|
|
|
!wince*:include(tools/tools.pro)
|
2011-05-24 09:01:33 +00:00
|
|
|
SRC_SUBDIRS += src_corelib
|
2012-03-15 14:05:59 +00:00
|
|
|
SRC_SUBDIRS += src_network src_sql src_gui src_xml src_testlib src_platformsupport src_widgets
|
2012-02-07 09:07:48 +00:00
|
|
|
!wince*:SRC_SUBDIRS += src_printsupport
|
2011-04-27 10:05:43 +00:00
|
|
|
nacl: SRC_SUBDIRS -= src_network src_testlib
|
2011-10-28 18:44:27 +00:00
|
|
|
contains(QT_CONFIG, dbus):SRC_SUBDIRS += src_dbus
|
2012-02-03 13:17:26 +00:00
|
|
|
contains(QT_CONFIG, concurrent):SRC_SUBDIRS += src_concurrent
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2011-05-24 07:27:50 +00:00
|
|
|
contains(QT_CONFIG, no-gui): SRC_SUBDIRS -= src_gui
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2): SRC_SUBDIRS += src_opengl
|
|
|
|
SRC_SUBDIRS += src_plugins
|
|
|
|
|
2012-03-02 20:32:02 +00:00
|
|
|
src_winmain.subdir = $$PWD/winmain
|
2011-04-27 10:05:43 +00:00
|
|
|
src_winmain.target = sub-winmain
|
2012-03-02 20:32:02 +00:00
|
|
|
src_corelib.subdir = $$PWD/corelib
|
2011-04-27 10:05:43 +00:00
|
|
|
src_corelib.target = sub-corelib
|
2012-03-02 20:32:02 +00:00
|
|
|
src_xml.subdir = $$PWD/xml
|
2011-04-27 10:05:43 +00:00
|
|
|
src_xml.target = sub-xml
|
2012-03-02 20:32:02 +00:00
|
|
|
src_dbus.subdir = $$PWD/dbus
|
2011-04-27 10:05:43 +00:00
|
|
|
src_dbus.target = sub-dbus
|
2012-03-02 20:32:02 +00:00
|
|
|
src_gui.subdir = $$PWD/gui
|
2011-04-27 10:05:43 +00:00
|
|
|
src_gui.target = sub-gui
|
2012-03-02 20:32:02 +00:00
|
|
|
src_sql.subdir = $$PWD/sql
|
2011-04-27 10:05:43 +00:00
|
|
|
src_sql.target = sub-sql
|
2012-03-02 20:32:02 +00:00
|
|
|
src_network.subdir = $$PWD/network
|
2011-04-27 10:05:43 +00:00
|
|
|
src_network.target = sub-network
|
2012-03-02 20:32:02 +00:00
|
|
|
src_opengl.subdir = $$PWD/opengl
|
2011-04-27 10:05:43 +00:00
|
|
|
src_opengl.target = sub-opengl
|
2012-03-02 20:32:02 +00:00
|
|
|
src_plugins.subdir = $$PWD/plugins
|
2011-04-27 10:05:43 +00:00
|
|
|
src_plugins.target = sub-plugins
|
2012-03-02 20:32:02 +00:00
|
|
|
src_widgets.subdir = $$PWD/widgets
|
2011-05-23 14:47:16 +00:00
|
|
|
src_widgets.target = sub-widgets
|
2012-02-07 09:07:48 +00:00
|
|
|
!wince*: {
|
2012-03-02 20:32:02 +00:00
|
|
|
src_printsupport.subdir = $$PWD/printsupport
|
2012-02-07 09:07:48 +00:00
|
|
|
src_printsupport.target = sub-printsupport
|
|
|
|
}
|
2012-03-02 20:32:02 +00:00
|
|
|
src_testlib.subdir = $$PWD/testlib
|
2011-04-27 10:05:43 +00:00
|
|
|
src_testlib.target = sub-testlib
|
2012-03-02 20:32:02 +00:00
|
|
|
src_platformsupport.subdir = $$PWD/platformsupport
|
2011-06-09 13:56:55 +00:00
|
|
|
src_platformsupport.target = sub-platformsupport
|
2012-03-02 20:32:02 +00:00
|
|
|
src_concurrent.subdir = $$PWD/concurrent
|
2012-02-03 13:17:26 +00:00
|
|
|
src_concurrent.target = sub-concurrent
|
2011-06-09 13:56:55 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#CONFIG += ordered
|
2011-10-28 18:44:27 +00:00
|
|
|
!wince*:!ordered {
|
2011-04-27 10:05:43 +00:00
|
|
|
src_corelib.depends = src_tools_moc src_tools_rcc
|
2011-05-06 22:02:01 +00:00
|
|
|
src_gui.depends = src_corelib
|
2011-08-19 08:39:45 +00:00
|
|
|
src_printsupport.depends = src_corelib src_gui src_widgets
|
2011-10-28 08:48:37 +00:00
|
|
|
src_platformsupport.depends = src_corelib src_gui src_network
|
2012-06-06 13:01:59 +00:00
|
|
|
src_widgets.depends = src_corelib src_gui src_tools_uic
|
2011-04-27 10:05:43 +00:00
|
|
|
src_xml.depends = src_corelib
|
2012-02-03 13:17:26 +00:00
|
|
|
src_concurrent.depends = src_corelib
|
2012-01-18 20:28:31 +00:00
|
|
|
src_dbus.depends = src_corelib
|
2011-04-27 10:05:43 +00:00
|
|
|
src_network.depends = src_corelib
|
2011-05-08 08:36:27 +00:00
|
|
|
src_opengl.depends = src_gui src_widgets
|
2011-04-27 10:05:43 +00:00
|
|
|
src_sql.depends = src_corelib
|
2011-05-23 14:47:16 +00:00
|
|
|
src_testlib.depends = src_corelib src_gui src_widgets
|
2012-03-06 22:12:18 +00:00
|
|
|
src_plugins.depends = src_gui src_sql src_xml src_platformsupport
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
|
2012-04-16 10:01:26 +00:00
|
|
|
contains(QT_CONFIG, no-widgets): SRC_SUBDIRS -= src_opengl src_widgets src_printsupport
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
# This creates a sub-src rule
|
|
|
|
sub_src_target.CONFIG = recursive
|
|
|
|
sub_src_target.recurse = $$TOOLS_SUBDIRS $$SRC_SUBDIRS
|
|
|
|
sub_src_target.target = sub-src
|
|
|
|
sub_src_target.recurse_target =
|
|
|
|
QMAKE_EXTRA_TARGETS += sub_src_target
|
|
|
|
|
|
|
|
SUBDIRS += $$SRC_SUBDIRS
|