[gitg] plugins: ensure so suffix is used on macOS
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] plugins: ensure so suffix is used on macOS
- Date: Thu, 25 Oct 2018 19:45:57 +0000 (UTC)
commit fa86aefab3f23fbe66d6ebd597cb13374e21a0cf
Author: Tom Schoonjans <Tom Schoonjans diamond ac uk>
Date: Thu Oct 25 13:10:04 2018 +0100
plugins: ensure so suffix is used on macOS
meson.build | 7 +++++++
plugins/diff/meson.build | 1 +
plugins/files/meson.build | 1 +
3 files changed, 9 insertions(+)
---
diff --git a/meson.build b/meson.build
index e98a6249..671454eb 100644
--- a/meson.build
+++ b/meson.build
@@ -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')
diff --git a/plugins/diff/meson.build b/plugins/diff/meson.build
index a94e34e1..ecb22614 100644
--- a/plugins/diff/meson.build
+++ b/plugins/diff/meson.build
@@ -18,4 +18,5 @@ libdiff = shared_module(
c_args: plugin_cflags,
install: true,
install_dir: plugin_dir,
+ name_suffix: module_suffix,
)
diff --git a/plugins/files/meson.build b/plugins/files/meson.build
index b79c9e4f..ea53b449 100644
--- a/plugins/files/meson.build
+++ b/plugins/files/meson.build
@@ -25,4 +25,5 @@ libfiles = shared_module(
c_args: plugin_cflags,
install: true,
install_dir: plugin_dir,
+ name_suffix: module_suffix,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]