mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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).
This commit is contained in:
parent
10fe910728
commit
ce90cc28a1
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue