From f704aba7fc73b75f7bc3a1be962b28859d83e3aa Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 23 Nov 2016 10:14:48 +0100 Subject: [PATCH] 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 Reviewed-by: Oswald Buddenhagen --- configure.json | 5 +++++ src/src.pro | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.json b/configure.json index 052aeac30c3..c505c6ab917 100644 --- a/configure.json +++ b/configure.json @@ -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" ] }, { diff --git a/src/src.pro b/src/src.pro index fa408d47877..5b353fde09c 100644 --- a/src/src.pro +++ b/src/src.pro @@ -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