Don't build empty qaccessibility test on WinCE.

Rather than building the test with all the logic #ifdef'd out, just
avoid building the test at all.

Change-Id: I394f48b2dacb40325d03de719096da36fcb7312a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2011-10-11 17:36:37 +10:00 committed by Qt by Nokia
parent e33713f03a
commit 9e31f88d7a
2 changed files with 2 additions and 10 deletions

View File

@ -6,6 +6,7 @@ SUBDIRS=\
other \
# baselineexample \ Just an example demonstrating qbaselinetest usage
lancelot \
qaccessibility \
qcombobox \
qfocusevent \
qlayout \
@ -22,7 +23,7 @@ SUBDIRS=\
windowsmobile \
qmetaobjectbuilder
contains(QT_CONFIG, accessibility):SUBDIRS += qaccessibility
wince*|!contains(QT_CONFIG, accessibility):SUBDIRS -= qaccessibility
mac:!qpa {
SUBDIRS += macgui \

View File

@ -41,7 +41,6 @@
#include <QtTest/QtTest>
#ifndef Q_OS_WINCE
#include "../../shared/util.h"
#include <QtGui>
#include <QtWidgets>
@ -3410,13 +3409,5 @@ void tst_QAccessibility::accelerators()
QTestAccessibility::clearEvents();
}
QTEST_MAIN(tst_QAccessibility)
#else // Q_OS_WINCE
QTEST_NOOP_MAIN
#endif // Q_OS_WINCE
#include "tst_qaccessibility.moc"