meson: Export symbols for a DLL when not building statically

`default_library` might be 'both', in which case we will fail to link
when building with MSVC.
This commit is contained in:
Nirbheek Chauhan 2020-06-09 20:06:50 +05:30 committed by Ebrahim Byagowi
parent 5c8900efe4
commit b88f1096ad
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ version = '0.' + '0'.join(meson.project_version().split('.')) + '.0'
extra_hb_cpp_args = []
if cpp.get_id() == 'msvc'
if get_option('default_library') == 'shared'
if get_option('default_library') != 'static'
extra_hb_cpp_args += '-DHB_DLL_EXPORT'
endif
hb_so_version = ''