qt5base-lts/tests/manual/diaglib/diaglib.pri
Friedemann Kleint 034ff4deaf Add diaglib under manual tests.
Add a set of helper functions and classes providing functionality
for dumping widget/window hierarchies and logging events. They
can be used by including a .pri file for diagnosing bugs and
comparing Qt 5 to Qt 4.

Change-Id: I0206f8e57b02540cd80a3e9446c894023d442ddc
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
2014-11-13 12:14:51 +01:00

44 lines
761 B
Plaintext

INCLUDEPATH += $$PWD
SOURCES += \
$$PWD/eventfilter.cpp \
$$PWD/qwindowdump.cpp \
HEADERS += \
$$PWD/eventfilter.h \
$$PWD/qwindowdump.h \
$$PWD/nativewindowdump.h
win32 {
SOURCES += $$PWD/nativewindowdump_win.cpp
LIBS *= -luser32
} else {
SOURCES += $$PWD/nativewindowdump.cpp
}
greaterThan(QT_MAJOR_VERSION, 4) {
QT += gui-private core-private
contains(QT, widgets) {
HEADERS += \
$$PWD/$$PWD/qwidgetdump.h
SOURCES += \
$$PWD/qwidgetdump.cpp
}
} else {
HEADERS += \
$$PWD/$$PWD/qwidgetdump.h
SOURCES += \
$$PWD/qwidgetdump.cpp
}
contains(QT, opengl) {
HEADERS += \
$$PWD/glinfo.h
SOURCES += \
$$PWD/glinfo.cpp
}
DEFINES += QT_DIAG_LIB