Fix build with -no-gui on macOS

Some directories that depend on QtGui were being included without the
appropriate check for qtHaveModule(gui).

Change-Id: I7c348c74464d44cbd35a027f188f8a23bb2021d9
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
bb10
Alex Richardson 2018-09-13 16:42:06 +01:00 committed by Tor Arne Vestbø
parent cc7444eb65
commit 47bb74fd15
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ SUBDIRS = lib \
tst.depends += almostplugin
SUBDIRS += almostplugin
}
macos:qtConfig(private_tests) {
macos:qtConfig(private_tests):qtHaveModule(gui) {
tst.depends += machtest
SUBDIRS += machtest
}

View File

@ -56,7 +56,7 @@ winrt|!qtHaveModule(gui)|!qtConfig(accessibility): SUBDIRS -= qaccessibility
!qtConfig(process): SUBDIRS -= qprocess_and_guieventloop
!mac: SUBDIRS -= \
!macos|!qtHaveModule(gui): SUBDIRS -= \
macgui \
macnativeevents \
macplist \