summary refs log tree commit diff stats
path: root/plugins/lua/meson.build
diff options
context:
space:
mode:
authorRainer Müller <raimue@codingfarm.de>2018-03-31 00:53:56 +0200
committerTingPing <tingping@tingping.se>2018-03-31 01:29:05 +0000
commit5ca767f7f881f480de90882233ed833846bd8a3d (patch)
tree28663f5950cb79a699c5b1f1a357f9be89f9f8c0 /plugins/lua/meson.build
parent111441302c4eb0c719088526c5b8c4be3df6a0dc (diff)
Fix plugins on macOS
The switch to the meson build system broke plugins on macOS. GNU libtool
builds shared libraries with ".dylib" and shared modules (plugins) with
the extension ".so", but meson is using ".dylib" for both.

Although overriding the name_suffix for shared_module() in meson is
possible, this would be messy for other platforms as there is no way to
query the default. Therefore it seems like we have to go with ".dylib"
for now on macOS.

However, G_MODULE_SUFFIX is defined to ".so", because glib follows what
GNU libtool does. Therefore define a separate preprocessor macro that
has the correct extension.

See: https://github.com/mesonbuild/meson/issues/1160
Diffstat (limited to 'plugins/lua/meson.build')
0 files changed, 0 insertions, 0 deletions