mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 05:22:40 +02:00
Merge branch 'alxsa-lcms2-fast-float' into 'master'
Issue #9536: Enable LCMS2 Fast Float plug-in Closes #9536 See merge request GNOME/gimp!2391
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <lcms2.h>
|
||||
#ifdef HAVE_LCMS_FAST_FLOAT_PLUGIN
|
||||
#include <lcms2_fast_float.h>
|
||||
#endif
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <gegl.h>
|
||||
@@ -128,6 +131,10 @@ gimp_color_transform_class_init (GimpColorTransformClass *klass)
|
||||
G_TYPE_NONE, 1,
|
||||
G_TYPE_DOUBLE);
|
||||
|
||||
#ifdef HAVE_LCMS_FAST_FLOAT_PLUGIN
|
||||
cmsPlugin (cmsFastFloatExtensions ());
|
||||
#endif
|
||||
|
||||
cmsSetLogErrorHandler (lcms_error_handler);
|
||||
}
|
||||
|
||||
|
@@ -476,6 +476,10 @@ json_glib_minver = '1.2.6'
|
||||
json_glib = dependency('json-glib-1.0', version: '>='+json_glib_minver)
|
||||
lcms_minver = '2.8'
|
||||
lcms = dependency('lcms2', version: '>='+lcms_minver)
|
||||
if cc.has_header('lcms2_fast_float.h')
|
||||
conf.set('HAVE_LCMS_FAST_FLOAT_PLUGIN', 1)
|
||||
endif
|
||||
|
||||
libmypaint_minver = '1.5.0'
|
||||
libmypaint = dependency('libmypaint', version: '>='+libmypaint_minver)
|
||||
mypaint_brushes = dependency('mypaint-brushes-2.0')
|
||||
|
Reference in New Issue
Block a user