diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2022-05-22 11:38:57 +0200 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2022-05-22 11:38:57 +0200 |
commit | fe4ee7e7857ad73b3e4503ad626f7d8aa070b3cd (patch) | |
tree | 60056ac629ec8e14edbb8210127f08e6235fcfed | |
parent | 46a57e1c301a9b77d37b85a13fe40e84f37d265b (diff) | |
download | folks-fe4ee7e7857ad73b3e4503ad626f7d8aa070b3cd.tar.gz |
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
-rw-r--r-- | backends/dummy/lib/meson.build | 1 | ||||
-rw-r--r-- | backends/eds/lib/meson.build | 1 | ||||
-rw-r--r-- | backends/telepathy/lib/meson.build | 1 | ||||
-rw-r--r-- | folks/meson.build | 1 |
4 files changed, 4 insertions, 0 deletions
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', |