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:
parent
5c8900efe4
commit
b88f1096ad
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in New Issue