From 0389278105da8b364cac6e4a6f75c3148e00d24b Mon Sep 17 00:00:00 2001 From: Marius Storm-Olsen Date: Fri, 25 Mar 2011 13:32:54 -0500 Subject: Only run JSC benchmarks if access to the source code When modularized, the benchmark test case might not have access to the JavaScriptCore source code. So, make sure the test case still compiles in this case. --- tests/benchmarks/corelib/tools/qregexp/qregexp.pro | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tests/benchmarks/corelib/tools/qregexp/qregexp.pro') diff --git a/tests/benchmarks/corelib/tools/qregexp/qregexp.pro b/tests/benchmarks/corelib/tools/qregexp/qregexp.pro index ffdad12cef..5e53824a96 100644 --- a/tests/benchmarks/corelib/tools/qregexp/qregexp.pro +++ b/tests/benchmarks/corelib/tools/qregexp/qregexp.pro @@ -5,14 +5,17 @@ DEPENDPATH += . INCLUDEPATH += . RESOURCES+=qregexp.qrc QT -= gui -QT += script CONFIG += release # Input SOURCES += main.cpp -include( $${QT_SOURCE_TREE}/src/3rdparty/webkit/JavaScriptCore/JavaScriptCore.pri ) +!isEmpty(QT.webkit.sources):exists($${QT.webkit.sources}/../JavaScriptCore/JavaScriptCore.pri) { + include( $${QT.webkit.sources}/../JavaScriptCore/JavaScriptCore.pri ) + DEFINES += HAVE_JSC + QT += script +} exists( /usr/include/boost/regex.hpp ){ DEFINES+=HAVE_BOOST -- cgit v1.2.3