summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2019-03-07 16:08:25 +0100
committerTony Sarajärvi <tony.sarajarvi@qt.io>2019-03-08 07:31:10 +0000
commitca42f92ab22c26fbcd6b1408ef57ed5199313456 (patch)
tree704770e7886ffa55591bd771435b6ffcd25366e7
parent0711336d26804898393a99640e1442df7fd3828c (diff)
Fix the build with -no-gui
Change-Id: Ice1d1f8bed5805584e3dee5f5839efe7ab8d52c2 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
-rw-r--r--examples/speech/hello_speak/hello_speak.pro3
-rw-r--r--src/doc/doc.pro2
-rw-r--r--src/plugins/tts/speechdispatcher/speechdispatcher.pro2
-rw-r--r--src/plugins/tts/tts.pro2
-rw-r--r--tests/auto/texttospeech/texttospeech.pro2
5 files changed, 6 insertions, 5 deletions
diff --git a/examples/speech/hello_speak/hello_speak.pro b/examples/speech/hello_speak/hello_speak.pro
index e770adf..575e041 100644
--- a/examples/speech/hello_speak/hello_speak.pro
+++ b/examples/speech/hello_speak/hello_speak.pro
@@ -1,7 +1,8 @@
TEMPLATE = app
QT += widgets texttospeech
-requires(qtConfig(combobox))
+requires(qtHaveModule(gui))
+qtHaveModule(gui): requires(qtConfig(combobox))
SOURCES = main.cpp \
mainwindow.cpp
diff --git a/src/doc/doc.pro b/src/doc/doc.pro
index b6168b6..9557fc8 100644
--- a/src/doc/doc.pro
+++ b/src/doc/doc.pro
@@ -1,7 +1,7 @@
TEMPLATE = aux
CONFIG += force_qt
-QT += core-private
+QT = core-private
QMAKE_DOCS = $$PWD/qtspeech.qdocconf
diff --git a/src/plugins/tts/speechdispatcher/speechdispatcher.pro b/src/plugins/tts/speechdispatcher/speechdispatcher.pro
index b8a984e..a6795e5 100644
--- a/src/plugins/tts/speechdispatcher/speechdispatcher.pro
+++ b/src/plugins/tts/speechdispatcher/speechdispatcher.pro
@@ -4,7 +4,7 @@ PLUGIN_CLASS_NAME = QTextToSpeechPluginSpeechd
load(qt_plugin)
-QT += core texttospeech
+QT = core texttospeech
CONFIG += link_pkgconfig
packagesExist(speech-dispatcher): PKGCONFIG = speech-dispatcher
diff --git a/src/plugins/tts/tts.pro b/src/plugins/tts/tts.pro
index e97c3cd..7307e40 100644
--- a/src/plugins/tts/tts.pro
+++ b/src/plugins/tts/tts.pro
@@ -16,5 +16,5 @@ uikit: SUBDIRS += ios
android: SUBDIRS += android
config_flite | config_flite_alsa {
- SUBDIRS += flite
+ qtHaveModule(multimedia): SUBDIRS += flite
}
diff --git a/tests/auto/texttospeech/texttospeech.pro b/tests/auto/texttospeech/texttospeech.pro
index fdbe826..4ca4419 100644
--- a/tests/auto/texttospeech/texttospeech.pro
+++ b/tests/auto/texttospeech/texttospeech.pro
@@ -1,6 +1,6 @@
CONFIG += testcase
TARGET = tst_qtexttospeech
-QT += testlib core texttospeech
+QT = testlib core texttospeech
SOURCES += tst_qtexttospeech.cpp
unix {