configure.exe: Fix detection of DirectWrite for MinGW.
Check on the correct library name. Change-Id: I10980a8ba3e3e96d368319af0d86d6fb339c03ff Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
This commit is contained in:
parent
1de6fd49d1
commit
05fa4ac7df
@ -2291,7 +2291,9 @@ bool Configure::checkAvailability(const QString &part)
|
||||
} else if (part == "WMF_BACKEND") {
|
||||
available = findFile("mfapi.h") && findFile("mf.lib");
|
||||
} else if (part == "DIRECTWRITE") {
|
||||
available = findFile("dwrite.h") && findFile("d2d1.h") && findFile("dwrite.lib");
|
||||
const char *dwriteLibrary = Environment::detectCompiler() != CC_MINGW
|
||||
? "dwrite.lib" : "libdwrite.a";
|
||||
available = findFile("dwrite.h") && findFile("d2d1.h") && findFile(QLatin1String(dwriteLibrary));
|
||||
} else if (part == "DIRECT2D") {
|
||||
available = tryCompileProject("qpa/direct2d");
|
||||
} else if (part == "ICONV") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user