summaryrefslogtreecommitdiff
path: root/qmake-features
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@pelagicore.com>2019-07-05 18:27:49 +0200
committerRobert Griebl <robert.griebl@pelagicore.com>2019-07-08 15:28:22 +0200
commitde9c8f04db09a309055894d5e0db8f5970189547 (patch)
treeb8de08950de56a7f401ca032deba51d8e05d826f /qmake-features
parent7187630dacf5f4eb386dfbb9838cc30eea244889 (diff)
downloadqtapplicationmanager-de9c8f04db09a309055894d5e0db8f5970189547.tar.gz
Fix headless compilation
Change-Id: I4eb3fae767066dcfb64f3f6fc126680768a10ecc Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'qmake-features')
-rw-r--r--qmake-features/am-config.prf2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmake-features/am-config.prf b/qmake-features/am-config.prf
index 3ddfe8b2..113013e7 100644
--- a/qmake-features/am-config.prf
+++ b/qmake-features/am-config.prf
@@ -5,6 +5,8 @@ CONFIG *= no_private_qt_headers_warning hide_symbols
CONFIG -= app_bundle qml_debug
CONFIG += exceptions
+!qtHaveModule(gui):CONFIG *= headless
+
DEFINES += QT_MESSAGELOGCONTEXT
win32-msvc*:QMAKE_CXXFLAGS += /FS /wd4290 /DNOMINMAX /D_CRT_SECURE_NO_WARNINGS