Configure: Disable widgets module too if gui module is disabled

Use the same logic as in the Unix configure script, and disable
"widgets" if "gui" is disabled.

Change-Id: Ica338ad10b965eea297dddaaedeea61a3ae3ebe9
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Kai Koehne 2014-02-10 10:01:58 +01:00 committed by The Qt Project
parent a2bfd11493
commit c1bea0b532

View File

@ -2536,12 +2536,14 @@ void Configure::generateOutputVars()
else
qtConfig += "shared";
if (dictionary[ "GUI" ] == "no") {
qtConfig += "no-gui";
dictionary [ "WIDGETS" ] = "no";
}
if (dictionary[ "WIDGETS" ] == "no")
qtConfig += "no-widgets";
if (dictionary[ "GUI" ] == "no")
qtConfig += "no-gui";
// Compression --------------------------------------------------
if (dictionary[ "ZLIB" ] == "qt")
qtConfig += "zlib";