Skip to content

Commit

Permalink
CYGWIN: meson: support correct file extension for plugins.
Browse files Browse the repository at this point in the history
CYGWIN uses shared libraries with ".dll" extension like Windows.
This patch fixes meson.build for setting PLUGIN_SUFFIX to the correct value for this platform.
  • Loading branch information
carlo-bramini authored and radioactiveman committed Aug 29, 2023
1 parent 4a61c81 commit e995c3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ endif

have_darwin = host_machine.system() == 'darwin'
have_windows = host_machine.system() == 'windows'
have_cygwin = host_machine.system() == 'cygwin'


cc = meson.get_compiler('c')
Expand Down Expand Up @@ -98,7 +99,7 @@ endif


# XXX - investigate to see if we can do better
if have_windows
if have_windows or have_cygwin
conf.set_quoted('PLUGIN_SUFFIX', '.dll')
elif have_darwin
conf.set_quoted('PLUGIN_SUFFIX', '.dylib')
Expand Down

0 comments on commit e995c3c

Please sign in to comment.