From 179c500bcd93a391901d1282e8eaa6668349e679 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Thu, 20 Jun 2019 14:12:02 +0200 Subject: Fix build with -no-gui MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTQAINFRA-2576 Change-Id: I34b3c66f53ef03d83906b8df7236b0f50e34fe71 Reviewed-by: Maurice Kalinowski Reviewed-by: Simon Hausmann Reviewed-by: Jörg Bornemann --- examples/opcua/opcua.pro | 2 +- src/opcua/opcua.pro | 1 + src/plugins/opcua/open62541/open62541.pro | 1 + src/plugins/opcua/uacpp/uacpp.pro | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/opcua/opcua.pro b/examples/opcua/opcua.pro index 75f5761..eb396c5 100644 --- a/examples/opcua/opcua.pro +++ b/examples/opcua/opcua.pro @@ -1,5 +1,5 @@ TEMPLATE = subdirs -SUBDIRS += \ +qtHaveModule(widgets): SUBDIRS += \ opcuaviewer \ QT_FOR_CONFIG += opcua-private diff --git a/src/opcua/opcua.pro b/src/opcua/opcua.pro index fba759b..2f77a5e 100644 --- a/src/opcua/opcua.pro +++ b/src/opcua/opcua.pro @@ -1,5 +1,6 @@ TARGET = QtOpcUa QT += core-private +QT -= gui include(core/core.pri) include(client/client.pri) diff --git a/src/plugins/opcua/open62541/open62541.pro b/src/plugins/opcua/open62541/open62541.pro index 90a56f6..5f77419 100644 --- a/src/plugins/opcua/open62541/open62541.pro +++ b/src/plugins/opcua/open62541/open62541.pro @@ -1,5 +1,6 @@ TARGET = open62541_backend QT += core core-private opcua opcua-private network +QT -= gui qtConfig(open62541):!qtConfig(system-open62541) { include($$PWD/../../../3rdparty/open62541.pri) diff --git a/src/plugins/opcua/uacpp/uacpp.pro b/src/plugins/opcua/uacpp/uacpp.pro index 9f341c3..ce36432 100644 --- a/src/plugins/opcua/uacpp/uacpp.pro +++ b/src/plugins/opcua/uacpp/uacpp.pro @@ -1,5 +1,6 @@ TARGET = uacpp_backend QT += core core-private opcua opcua-private network +QT -= gui QMAKE_USE += uacpp win32: DEFINES += _UA_STACK_USE_DLL -- cgit v1.2.3