[folks/folks/typelib-fixes] meson: Add --shared-libary when generating typelib
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks/folks/typelib-fixes] meson: Add --shared-libary when generating typelib
- Date: Sun, 22 May 2022 09:49:09 +0000 (UTC)
commit fe4ee7e7857ad73b3e4503ad626f7d8aa070b3cd
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun May 22 11:38:57 2022 +0200
meson: Add --shared-libary when generating typelib
This makes sure the typelibs actually know about the library. Before
this commit, it hence impossible to use any typelib-based binding (like
GJS or Pygobject) with libfolks.
Thanks @kulkegncs for providing the fix!
Fixes: https://gitlab.gnome.org/GNOME/folks/-/issues/132
backends/dummy/lib/meson.build | 1 +
backends/eds/lib/meson.build | 1 +
backends/telepathy/lib/meson.build | 1 +
folks/meson.build | 1 +
4 files changed, 4 insertions(+)
---
diff --git a/backends/dummy/lib/meson.build b/backends/dummy/lib/meson.build
index bf3ea211..32448f35 100644
--- a/backends/dummy/lib/meson.build
+++ b/backends/dummy/lib/meson.build
@@ -58,6 +58,7 @@ custom_target(dummy_backendlib_gir_name + '.typelib',
command: [ g_ir_compiler,
'--includedir', libfolks_gir_include_dir,
'--output', '@OUTPUT@',
+ '--shared-library', 'lib' + dummy_backendlib.name(),
meson.current_build_dir() / (dummy_backendlib_gir_name + '.gir')
],
output: dummy_backendlib_gir_name + '.typelib',
diff --git a/backends/eds/lib/meson.build b/backends/eds/lib/meson.build
index c8d0c423..3e3db84c 100644
--- a/backends/eds/lib/meson.build
+++ b/backends/eds/lib/meson.build
@@ -75,6 +75,7 @@ custom_target(eds_backendlib_gir_name + '.typelib',
command: [ g_ir_compiler,
'--includedir', libfolks_gir_include_dir,
'--output', '@OUTPUT@',
+ '--shared-library', 'lib' + eds_backendlib.name(),
meson.current_build_dir() / (eds_backendlib_gir_name + '.gir')
],
output: eds_backendlib_gir_name + '.typelib',
diff --git a/backends/telepathy/lib/meson.build b/backends/telepathy/lib/meson.build
index 45044fe5..f4943db6 100644
--- a/backends/telepathy/lib/meson.build
+++ b/backends/telepathy/lib/meson.build
@@ -151,6 +151,7 @@ custom_target(telepathy_backendlib_gir_name + '.typelib',
command: [ g_ir_compiler,
'--includedir', libfolks_gir_include_dir,
'--output', '@OUTPUT@',
+ '--shared-library', 'lib' + telepathy_backendlib.name(),
meson.current_build_dir() / (telepathy_backendlib_gir_name + '.gir')
],
output: telepathy_backendlib_gir_name + '.typelib',
diff --git a/folks/meson.build b/folks/meson.build
index d97672bb..c87446bd 100644
--- a/folks/meson.build
+++ b/folks/meson.build
@@ -115,6 +115,7 @@ install_data('folks.deps',
custom_target(libfolks_gir_name + '.typelib',
command: [ g_ir_compiler,
'--output', '@OUTPUT@',
+ '--shared-library', 'lib' + libfolks_lib.name(),
meson.current_build_dir() / (libfolks_gir_name + '.gir')
],
output: libfolks_gir_name + '.typelib',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]