plugins: ensure so suffix is used on macOS

This commit is contained in:
Tom Schoonjans 2018-10-25 13:10:04 +01:00 committed by Alberto Fanjul
parent e017371686
commit fa86aefab3
3 changed files with 9 additions and 0 deletions

View file

@ -177,6 +177,13 @@ config_h.set_quoted('PLATFORM_NAME', platform_name)
g_ir_compiler = find_program('g-ir-compiler')
module_suffix = []
# Keep the autotools convention for shared module suffix because GModule
# depends on it: https://gitlab.gnome.org/GNOME/glib/issues/520
if ['darwin', 'ios'].contains(host_machine.system())
module_suffix = 'so'
endif
subdir('po')
subdir('contrib/xml')
subdir('contrib/ide')

View file

@ -18,4 +18,5 @@ libdiff = shared_module(
c_args: plugin_cflags,
install: true,
install_dir: plugin_dir,
name_suffix: module_suffix,
)

View file

@ -25,4 +25,5 @@ libfiles = shared_module(
c_args: plugin_cflags,
install: true,
install_dir: plugin_dir,
name_suffix: module_suffix,
)