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:
parent
74c8aa7608
commit
f1aa4c076f
7
src/3rdparty/freetype/freetype.pro
vendored
7
src/3rdparty/freetype/freetype.pro
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user