Disable BoomBlock qml compilation benchmark when building without OpenGL

The BoomBlock benchmark imports the Particles module which requires
OpenGL, so it will be skipped for -no-opengl builds.

Change-Id: I1754461f0920e85a51c5b1d5b3f5c8b2c5d26e18
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Andy Nichols 2016-06-06 12:17:34 +02:00
parent 787918e7f2
commit 4f501e364e
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ void tst_compilation::boomblock()
QQmlComponent c(&engine);
c.setData(data, QUrl());
}
#ifdef QT_NO_OPENGL
QSKIP("boomblock imports Particles which requires OpenGL Support");
#endif
QBENCHMARK {
QQmlComponent c(&engine);
c.setData(data, QUrl());