From 6b8f695ac8acb0f6e39bce76f873398974cd661b Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Tue, 10 Sep 2019 09:50:46 +0100 Subject: meson: build loaders as modules instead of shared libraries Also: ensure that the extension of the loader plugins is set to so on macOS --- loaders/lua5.1/meson.build | 5 +++-- loaders/python/meson.build | 5 +++-- loaders/python3/meson.build | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'loaders') diff --git a/loaders/lua5.1/meson.build b/loaders/lua5.1/meson.build index 9dfe010..cc44ec8 100644 --- a/loaders/lua5.1/meson.build +++ b/loaders/lua5.1/meson.build @@ -27,7 +27,7 @@ lua51_loader_c_args = [ '-DLGI_MICRO_VERSION=@0@'.format(lua51_lgi_version_micro), ] -lua51_loader_sha = shared_library( +lua51_loader_sha = shared_module( lua51_loader_name, lua51_loader_c + lua51_loader_res, include_directories: rootdir, @@ -37,5 +37,6 @@ lua51_loader_sha = shared_library( install_dir: join_paths( pkglibdir, 'loaders', - ) + ), + name_suffix: module_suffix ) diff --git a/loaders/python/meson.build b/loaders/python/meson.build index 1629496..215f3ef 100644 --- a/loaders/python/meson.build +++ b/loaders/python/meson.build @@ -31,7 +31,7 @@ python2_loader_c_args = [ '-DPYGOBJECT_MICRO_VERSION=@0@'.format(pygobject_version_micro), ] -python2_loader_sha = shared_library( +python2_loader_sha = shared_module( python2_loader_name, python2_loader_c + python2_loader_res, include_directories: rootdir, @@ -41,5 +41,6 @@ python2_loader_sha = shared_library( install_dir: join_paths( pkglibdir, 'loaders', - ) + ), + name_suffix: module_suffix ) diff --git a/loaders/python3/meson.build b/loaders/python3/meson.build index 5b350a0..a97c81e 100644 --- a/loaders/python3/meson.build +++ b/loaders/python3/meson.build @@ -31,7 +31,7 @@ python3_loader_c_args = [ '-DPYGOBJECT_MICRO_VERSION=@0@'.format(pygobject_version_micro), ] -python3_loader_sha = shared_library( +python3_loader_sha = shared_module( python3_loader_name, python3_loader_c + python3_loader_res, include_directories: rootdir, @@ -41,5 +41,6 @@ python3_loader_sha = shared_library( install_dir: join_paths( pkglibdir, 'loaders', - ) + ), + name_suffix: module_suffix ) -- cgit v1.2.1