Pango fails to compile on Windows if Harfbuzz is a subproject
Here's the error in the GTK CI: https://gitlab.gnome.org/GNOME/gtk/-/jobs/2335272#L1052
subprojects\pango\meson.build:282:9: ERROR: Dependencies must be external dependencies
This error was introduced by !635 (merged)
As far as I can see, this is caused by cpp.has_header_symbol()
needing to (pre)compile the header and it can only do that once it has a finished built, but subprojects aren't built yet.
So it seems like the proper thing to do here is to make Harfbuzz export DirectWrite and GDI support as a proper dependency with hb-directwrite.pc
and hb-gdi.pc
pkgconfig files instead of trying to use compiler magic.
Edited by Benjamin Otte