Commit 6b8f695a authored by Tom Schoonjans's avatar Tom Schoonjans Committed by Christian Hergert

meson: build loaders as modules instead of shared libraries

Also: ensure that the extension of the loader plugins is set to so on
macOS
parent d1248f55
Pipeline #126651 passed with stages
in 5 minutes and 45 seconds
......@@ -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
)
......@@ -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
)
......@@ -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
)
......@@ -133,9 +133,11 @@ add_project_arguments([
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_@0@_@1@'.format(glib_major_version, glib_minor_version),
], language: 'c')
module_suffix = []
if build_machine.system() == 'darwin'
config_h.set('OS_OSX', 1)
add_languages('objc')
module_suffix = 'so'
endif
# Detect and set symbol visibility
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment