ref: 768022b98e45d343b540f83816fb65f549eac041
parent: 0d5f1dd37c056b4460a460d16fd1fbb06740e891
author: Ignacio Casal Quinteiro <qignacio@amazon.com>
date: Wed Dec 23 06:30:19 EST 2020
meson.build (ft2_defines): Fix builds on Windows.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2020-12-23 Ignacio Casal Quinteiro <qignacio@amazon.com>
+
+ meson.build (ft2_defines): Fix builds on Windows.
+
2020-12-18 Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
[autofit] Fix double division in stem darkening.
--- a/meson.build
+++ b/meson.build
@@ -302,6 +302,10 @@
# 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