Fix build with -no-libpng on Windows

Check for availability of libpng in our bundled libfreetype.

Fixes: QTBUG-71395
Change-Id: I99664b8583011f517b18e1038e327c6cb6799af7
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Joerg Bornemann 2019-01-10 07:57:21 +01:00 committed by Jani Heikkinen
parent 74c8aa7608
commit f1aa4c076f

View File

@ -69,8 +69,11 @@ DEFINES += FT2_BUILD_LIBRARY
DEFINES += FT_CONFIG_OPTION_SYSTEM_ZLIB
include(../zlib_dependency.pri)
DEFINES += FT_CONFIG_OPTION_USE_PNG
include($$OUT_PWD/../../gui/qtgui-config.pri)
QMAKE_USE_PRIVATE += libpng
QT_FOR_CONFIG += gui-private
qtConfig(png) {
DEFINES += FT_CONFIG_OPTION_USE_PNG
QMAKE_USE_PRIVATE += libpng
}
DEFINES += TT_CONFIG_OPTION_SUBPIXEL_HINTING