[gimp] macos: support python plugins in meson
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] macos: support python plugins in meson
- Date: Mon, 24 Jan 2022 13:30:49 +0000 (UTC)
commit ce90cc28a17beceb596a8c67f455d67c3f3eb1e5
Author: Lukas Oberhuber <lukaso gmail com>
Date: Mon Jan 24 02:08:11 2022 +0000
macos: support python plugins in meson
This change makes sure that plugins can load when gimp is built with
meson. This is because .typelibs and .gir files do not have full library
paths when build using meson (this is different from autotools).
app/main.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/app/main.c b/app/main.c
index 934e0a1fc2..1fe8636ec1 100644
--- a/app/main.c
+++ b/app/main.c
@@ -406,6 +406,12 @@ gimp_macos_setenv (const char * progname)
tmp = g_strdup_printf ("%s/share/libwmf/fonts", res_dir);
g_setenv ("WMF_FONTDIR", tmp, TRUE);
g_free (tmp);
+ if (g_getenv ("DYLD_LIBRARY_PATH"))
+ tmp = g_strdup_printf ("%s/lib:%s", res_dir, g_getenv ("DYLD_LIBRARY_PATH"));
+ else
+ tmp = g_strdup_printf ("%s/lib", res_dir);
+ g_setenv ("DYLD_LIBRARY_PATH", tmp, TRUE);
+ g_free (tmp);
if (g_getenv ("XDG_DATA_DIRS"))
tmp = g_strdup_printf ("%s/share:%s", res_dir, g_getenv ("XDG_DATA_DIRS"));
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]