Clean up the moc "no-keywords" test
We can use the QT_LIB_FOO #defines instead of our own WITH_FOO ones to determine if a library is available. Also, it doesn't currently make sense to refer to libraries which are not part of qtbase here. We might add that in the future, but QtScript (being deprecated) is probably not the first one we should add. Change-Id: I7f2397ca5499ba6003088478161182e960e815fb Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
955cf40b18
commit
90ec3aba06
@ -36,11 +36,11 @@ if(*-g++*|*-icc*|*-clang*|*-llvm):!win32-*: HEADERS += os9-newlines.h win-newlin
|
||||
if(*-g++*|*-clang*): HEADERS += dollars.h
|
||||
SOURCES += tst_moc.cpp
|
||||
|
||||
QT = core sql network testlib
|
||||
qtHaveModule(dbus) {
|
||||
DEFINES += WITH_DBUS
|
||||
QT += dbus
|
||||
}
|
||||
QT = core testlib
|
||||
qtHaveModule(dbus): QT += dbus
|
||||
qtHaveModule(concurrent): QT += concurrent
|
||||
qtHaveModule(network): QT += network
|
||||
qtHaveModule(sql): QT += sql
|
||||
|
||||
# tst_Moc::specifyMetaTagsFromCmdline()
|
||||
# Ensure that plugin_metadata.h are moc-ed with some extra -M arguments:
|
||||
|
@ -37,16 +37,19 @@
|
||||
#define slots Baz
|
||||
#define emit Yoyodyne
|
||||
|
||||
#include <QtCore/QtCore>
|
||||
|
||||
#ifdef QT_CONCURRENT_LIB
|
||||
#include <QtConcurrent/QtConcurrent>
|
||||
#include <QtCore>
|
||||
#include <QtNetwork/QtNetwork>
|
||||
#include <QtSql/QtSql>
|
||||
//#include <QtSvg>
|
||||
#if defined(WITH_DBUS)
|
||||
#include <QtDBus>
|
||||
#endif
|
||||
#ifdef QT_SCRIPT_LIB
|
||||
#include <QtScript>
|
||||
#ifdef QT_NETWORK_LIB
|
||||
#include <QtNetwork/QtNetwork>
|
||||
#endif
|
||||
#ifdef QT_SQL_LIB
|
||||
#include <QtSql/QtSql>
|
||||
#endif
|
||||
#ifdef QT_DBUS_LIB
|
||||
#include <QtDBus/QtDBus>
|
||||
#endif
|
||||
|
||||
#undef signals
|
||||
|
Loading…
Reference in New Issue
Block a user