}
-contains(QT_CONFIG, opengl) {
+qtHaveModule(opengl) {
DEFINES += QT_OPENGL_SUPPORT
QT += opengl
}
TEMPLATE = subdirs
-!isEmpty(QT.widgets.name): SUBDIRS += help designer linguist uitools assistant
+qtHaveModule(widgets): SUBDIRS += help designer linguist uitools assistant
LANGUAGE = C++
TARGET = assistant
DESTDIR = $$QT.help.bins
-!isEmpty(QT.webkitwidgets.name) {
+qtHaveModule(webkitwidgets) {
QT += webkitwidgets
} else {
DEFINES += QT_NO_WEBKIT
}
!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
QT += widgets network help sql help
-!isEmpty(QT.printsupport.name): QT += printsupport
+qtHaveModule(printsupport): QT += printsupport
PROJECTNAME = Assistant
include(../../shared/fontpanel/fontpanel.pri)
openpageswidget.cpp \
openpagesmanager.cpp \
openpagesswitcher.cpp
-contains(QT_CONFIG, webkitwidgets) {
+qtHaveModule(webkitwidgets) {
SOURCES += helpviewer_qwv.cpp
} else {
SOURCES += helpviewer_qtb.cpp
DESTDIR = $$QT.designer.bins
QT += core-private widgets xml network designer-private designercomponents
-!isEmpty(QT.printsupport.name): QT += printsupport
+qtHaveModule(printsupport): QT += printsupport
!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
INCLUDEPATH += \
CONFIG += ordered
REQUIRES = !CONFIG(static,shared|static)
-# contains(QT_CONFIG, opengl): SUBDIRS += tools/view3d
-contains(QT_CONFIG, webkitwidgets): SUBDIRS += qwebview
+# qtHaveModule(opengl): SUBDIRS += tools/view3d
+qtHaveModule(webkitwidgets): SUBDIRS += qwebview
# win32: contains(QT_CONFIG, activeqt): SUBDIRS += activeqt
lrelease \
lupdate \
lconvert
-!no-png:!isEmpty(QT.widgets.name): SUBDIRS += linguist
+!no-png:qtHaveModule(widgets): SUBDIRS += linguist
win32:CMAKE_BIN_SUFFIX = ".exe"
DESTDIR = $$QT.designer.bins
QT += core-private widgets xml uitools-private
-!isEmpty(QT.printsupport.name): QT += printsupport
+qtHaveModule(printsupport): QT += printsupport
DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII
!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
QT = core-private
-!isEmpty(QT.qmldevtools.name) {
+qtHaveModule(qmldevtools) {
QT += qmldevtools-private
} else {
DEFINES += QT_NO_QML
java.cpp \
ui.cpp
-!isEmpty(QT.qmldevtools.name): SOURCES += qdeclarative.cpp
+qtHaveModule(qmldevtools): SOURCES += qdeclarative.cpp
HEADERS += \
lupdate.h \
TEMPLATE = subdirs
SUBDIRS = qdbus
-!isEmpty(QT.widgets.name): SUBDIRS += qdbusviewer
+qtHaveModule(widgets): SUBDIRS += qdbusviewer
TEMPLATE = subdirs
CONFIG += ordered
-!isEmpty(QT.widgets.name) {
+qtHaveModule(widgets) {
no-png {
message("Some graphics-related tools are unavailable without PNG support")
} else {
embedded:SUBDIRS += kmap2qmap
-contains(QT_CONFIG, dbus):SUBDIRS += qdbus
+qtHaveModule(dbus): SUBDIRS += qdbus
# We don't need these command line utilities on embedded platforms.
embedded: SUBDIRS += makeqpf
cross_compile:SUBDIRS -= host.pro
# These tests need the QtHelp module
-isEmpty(QT.help.name): SUBDIRS -= \
+!qtHaveModule(help): SUBDIRS -= \
qhelpcontentmodel \
qhelpenginecore \
qhelpgenerator \