Meson: Build failure on msvc
I get this error when building with MSVC, it's probably caused by !7 (closed), but I'm pretty sure it was working when I first wrote that MR.
FAILED: subprojects/freetype2/ftconfig.h
"C:\Python38\python.exe" "../subprojects/freetype2/builds/meson/process_ftoption_h.py" "../subprojects/freetype2/include/freetype/config/ftconfig.h" "--output=subprojects/freetype2/ftconfig.h" "--enable=HAVE_FCNTL_H"
Traceback (most recent call last):
File "../subprojects/freetype2/builds/meson/process_ftoption_h.py", line 115, in <module>
sys.exit(main())
File "../subprojects/freetype2/builds/meson/process_ftoption_h.py", line 99, in main
assert cmdline_options.issubset(
AssertionError: Could not find options in input file: HAVE_FCNTL_H
The problem is on Windows it uses include/freetype/config/ftconfig.h
instead of builds/unix/ftconfig.h.in
and fcntl.h
header exists. Maybe it should be using unix header as well?