* meson.build: Define DLL_EXPORT for shared library only.

Fixes #1298.
This commit is contained in:
Marian Klymov 2024-10-12 10:57:59 +00:00 committed by Alexei Podtelezhnikov
parent 78ff353509
commit b4ca23bed1

View File

@ -383,7 +383,8 @@ ftoption_h = custom_target('ftoption.h',
ft2_sources += ftoption_h
ft2_defines += ['-DFT_CONFIG_OPTIONS_H=<ftoption.h>']
if host_machine.system() == 'windows'
if host_machine.system() == 'windows' and \
get_option('default_library') == 'shared'
ft2_defines += ['-DDLL_EXPORT=1']
endif