From 42c39d0545ee98feccf6d8059aee082c47a8e730 Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Mon, 22 Dec 2014 17:15:49 +0100 Subject: Add testsupport QML API and error page signals The testsupport API is used for test those features that are not planned to be accessible via the public API. For example, signals of the chromium's error page should not be visible for the develepor but it is important to test whether the error page is loaded properly. Change-Id: Ie5b3265a207d05649cabd624a001a6ffe2e45971 Reviewed-by: Andras Becsi --- tools/qmake/mkspecs/features/functions.prf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/qmake/mkspecs/features') diff --git a/tools/qmake/mkspecs/features/functions.prf b/tools/qmake/mkspecs/features/functions.prf index 2e2261cb9..a34bd23c6 100644 --- a/tools/qmake/mkspecs/features/functions.prf +++ b/tools/qmake/mkspecs/features/functions.prf @@ -37,6 +37,12 @@ defineTest(isGCCVersionSupported) { return(false) } +defineTest(isQMLTestSupportApiEnabled) { + contains(QT_BUILD_PARTS, tests): return(true) + contains(WEBENGINE_CONFIG, testsupport): return(true) + return(false) +} + # Map to the correct target type for gyp defineReplace(toGypTargetType) { equals(TEMPLATE, "app"):return("executable") -- cgit v1.2.3