Commit 2bc06bfe authored by Alex Samorukov's avatar Alex Samorukov Committed by Øyvind "pippin" Kolås

Fix meson build on Darwin platform and replace library extension

parent 835484b4
Pipeline #127462 passed with stages
in 7 minutes and 20 seconds
......@@ -80,6 +80,8 @@ install_headers(gegl_headers,
subdir: api_name
)
gegl_ldflags = os_osx ? ['-framework', 'OpenCL'] : []
gegl_lib = library(api_name,
gegl_sources,
include_directories: [ rootInclude, geglInclude, ],
......@@ -91,6 +93,7 @@ gegl_lib = library(api_name,
gmodule,
],
c_args: [ gegl_cflags, ],
link_args: [ gegl_ldflags, ],
install: true,
version: so_version,
)
......
......@@ -310,8 +310,11 @@ valid_module_name (const gchar *filename)
return FALSE;
}
}
#ifdef __APPLE__ /* G_MODULE_SUFFIX is defined to .so instead of .dylib */
if (! gegl_datafiles_check_extension (basename, ".dylib" ))
#else
if (! gegl_datafiles_check_extension (basename, "." G_MODULE_SUFFIX))
#endif
{
g_free (basename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment