Link against widgets only when available
Change-Id: Id7c474fe48bfa99d765267c0e3be1cbf80597548 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
parent
841e6ae8ac
commit
6462526df9
|
@ -55,6 +55,10 @@
|
|||
#include <QtQuick/qquickitem.h>
|
||||
#include <QtQuick/qquickview.h>
|
||||
|
||||
#ifdef QT_WIDGETS_LIB
|
||||
#include <QtWidgets/QFileDialog>
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef QML_RUNTIME_TESTING
|
||||
class RenderStatistics
|
||||
|
|
|
@ -3,7 +3,7 @@ TARGET = qmlscene
|
|||
DESTDIR= $$QT.declarative.bins
|
||||
|
||||
QT += declarative quick
|
||||
contains(QT_CONFIG, widgets): QT += widgets
|
||||
!isEmpty(QT.widgets.name): QT += widgets
|
||||
|
||||
target.path = $$[QT_INSTALL_BINS]
|
||||
INSTALLS += target
|
||||
|
|
Loading…
Reference in New Issue