diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2019-07-05 18:27:49 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2019-08-01 12:39:06 +0200 |
commit | a31642125c01e8bf4bfd48e14b40952506da46bb (patch) | |
tree | e73291324b9e16deed912990a80dca6e06d6415d /qmake-features | |
parent | 9f07efec1cf09c629e7fc04417e6a5ccca2687bc (diff) | |
download | qtapplicationmanager-a31642125c01e8bf4bfd48e14b40952506da46bb.tar.gz |
Fix headless compilation
(backported from 5.13)
Change-Id: I4eb3fae767066dcfb64f3f6fc126680768a10ecc
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'qmake-features')
-rw-r--r-- | qmake-features/am-config.prf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qmake-features/am-config.prf b/qmake-features/am-config.prf index 3ddfe8b2..d115eb63 100644 --- a/qmake-features/am-config.prf +++ b/qmake-features/am-config.prf @@ -5,6 +5,10 @@ CONFIG *= no_private_qt_headers_warning hide_symbols CONFIG -= app_bundle qml_debug CONFIG += exceptions +!qtHaveModule(gui)|!qtHaveModule(quick)|!qtConfig(opengl) { + CONFIG *= headless +} + DEFINES += QT_MESSAGELOGCONTEXT win32-msvc*:QMAKE_CXXFLAGS += /FS /wd4290 /DNOMINMAX /D_CRT_SECURE_NO_WARNINGS |