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

Fixes #1298.
master
Marian Klymov 3 months ago committed by Alexei Podtelezhnikov
parent 78ff353509
commit b4ca23bed1
  1. 3
      meson.build

@ -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

Loading…
Cancel
Save