meson.build (ft2_defines): Fix builds on Windows.

This commit is contained in:
Ignacio Casal Quinteiro
2020-12-23 11:30:19 +01:00
committed by Werner Lemberg
parent 0d5f1dd37c
commit 768022b98e
2 changed files with 8 additions and 0 deletions

View File

@@ -302,6 +302,10 @@ ft2_sources += ftoption_h
# Studio does).
ft2_defines += ['-DFT2_BUILD_LIBRARY=1']
if host_machine.system() == 'windows'
ft2_defines += ['-DDLL_EXPORT=1']
endif
# Ensure that the `ftoption.h` file generated above will be used to build
# FreeType. Unfortunately, and very surprisingly, configure_file() does not