idf-extra-components
idf-extra-components copied to clipboard
FreeType: improve library dependency handling, add example
- Updated Zlib library to be compatible with CMake
FindPackagemodule. Now, third party libraries which callfind_package(ZLIB)will findespressif/zlibcomponent automatically, provided that it has been added as a dependency into the project.- We should do the same in other common components, as well.
- Updated
freetypecomponent to have a dependency onzlib - Configured
freetypeto not look for Brotli, Harfbuzz, BZ2, libpng libraries. Enabled searching for zlib, which should now find the espressif/zlib component. - Added a simple example to
freetypecomponent to validate its operation.
@fhrbata May I ask you to take a look at this MR, especially the part in e90d4a7bd6780487a737b8dbabd7937074d03756? If you think this is a good idea, I'll add find_package support for other common-enough libraries, like libpng.
@espressif2022 PTAL as well
cc @espzav
@espressif2022 @suda-morris Could you please help review?
Thanks for the review @espzav!