Add a feature for Qt Testlib

... so that we can turn it off if we don't want to build it.

Change-Id: Ib27386da4754d843d4e4cbb05f9542852efefb88
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Ulf Hermann 2016-11-23 10:14:48 +01:00
parent 3b609fc76f
commit f704aba7fc
2 changed files with 7 additions and 1 deletions

View File

@ -938,6 +938,10 @@
"label": "Qt Sql",
"output": [ "privateFeature" ]
},
"testlib": {
"label": "Qt Testlib",
"output": [ "privateFeature" ]
},
"widgets": {
"label": "Qt Widgets",
"condition": "features.gui",
@ -1133,6 +1137,7 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5
"gui",
"network",
"sql",
"testlib",
"widgets"
]
}, {

View File

@ -144,7 +144,7 @@ qtConfig(regularexpression):pcre {
SUBDIRS += src_corelib src_tools_qlalr
TOOLS = src_tools_moc src_tools_rcc src_tools_qlalr
win32:SUBDIRS += src_winmain
SUBDIRS += src_xml src_testlib
SUBDIRS += src_xml
qtConfig(network) {
SUBDIRS += src_network
src_plugins.depends += src_network
@ -153,6 +153,7 @@ qtConfig(sql) {
SUBDIRS += src_sql
src_plugins.depends += src_sql
}
qtConfig(testlib): SUBDIRS += src_testlib
qtConfig(dbus) {
force_dbus_bootstrap|qtConfig(private_tests): \
SUBDIRS += src_tools_bootstrap_dbus