gimp/libgimpcolor/Makefile.am
Michael Natterer cc92887908 libgimpcolor: add new object GimpColorTransform
which encapsulates a cmsHTRANSFORM and does all the pixel format
conversion magic. It has API to create transforms and proofing
transforms, and to convert pixels arrays and GeglBuffers.

Before, each place which has a transform had to keep around the
transform and its input and output Babl formats, and had to implement
lots of stuff itself. Now all that lives in GimpColorTransform,
removing lots of logic from many places, and pretty much removing lcms
from the public API entirely.

This removes including <lcms2.h>, LCMS_LIBS and LCMS_CFLAGS from
almost all directories and potentially allows to replace lcms by
something else.
2016-05-26 22:15:54 +02:00

149 lines
3.2 KiB
Makefile

## Process this file with automake to produce Makefile.in
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
if PLATFORM_WIN32
else
libm = -lm
endif
if OS_WIN32
gimpcolor_def = gimpcolor.def
libgimpcolor_export_symbols = -export-symbols $(srcdir)/gimpcolor.def
install-libtool-import-lib:
$(INSTALL) .libs/libgimpcolor-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
$(INSTALL) $(srcdir)/gimpcolor.def $(DESTDIR)$(libdir)
uninstall-libtool-import-lib:
-rm $(DESTDIR)$(libdir)/libgimpcolor-$(GIMP_API_VERSION).dll.a
-rm $(DESTDIR)$(libdir)/gimpcolor.def
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif
if MS_LIB_AVAILABLE
noinst_DATA = gimpcolor-$(GIMP_API_VERSION).lib
install-ms-lib:
$(INSTALL) gimpcolor-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
uninstall-ms-lib:
-rm $(DESTDIR)$(libdir)/gimpcolor-$(GIMP_API_VERSION).lib
gimpcolor-@GIMP_API_VERSION@.lib: gimpcolor.def
lib -name:libgimpcolor-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpcolor.def -out:$@
else
install-ms-lib:
uninstall-ms-lib:
endif
libgimpcolorincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpcolor
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"LibGimpColor\" \
-DGIMP_COLOR_COMPILATION \
-I$(top_srcdir) \
$(GEGL_CFLAGS) \
$(CAIRO_CFLAGS) \
$(GDK_PIXBUF_CFLAGS) \
$(LCMS_CFLAGS) \
-I$(includedir)
EXTRA_DIST = \
gimpcolor.def
lib_LTLIBRARIES = libgimpcolor-@GIMP_API_VERSION@.la
libgimpcolor_@GIMP_API_VERSION@_la_SOURCES = \
gimpcolor.h \
gimpcolortypes.h \
gimpadaptivesupersample.c \
gimpadaptivesupersample.h \
gimpbilinear.c \
gimpbilinear.h \
gimpcairo.c \
gimpcairo.h \
gimpcmyk.c \
gimpcmyk.h \
gimpcolormanaged.c \
gimpcolormanaged.h \
gimpcolorprofile.c \
gimpcolorprofile.h \
gimpcolorspace.c \
gimpcolorspace.h \
gimpcolortransform.c \
gimpcolortransform.h \
gimphsl.c \
gimphsl.h \
gimphsv.c \
gimphsv.h \
gimppixbuf.c \
gimppixbuf.h \
gimprgb.c \
gimprgb.h \
gimprgb-parse.c
libgimpcolorinclude_HEADERS = \
gimpcolor.h \
gimpcolortypes.h \
gimpadaptivesupersample.h \
gimpbilinear.h \
gimpcairo.h \
gimpcmyk.h \
gimpcolormanaged.h \
gimpcolorprofile.h \
gimpcolorspace.h \
gimpcolortransform.h \
gimphsl.h \
gimphsv.h \
gimppixbuf.h \
gimprgb.h
libgimpcolor_@GIMP_API_VERSION@_la_LDFLAGS = \
-version-info $(LT_VERSION_INFO) \
$(no_undefined) \
$(libgimpcolor_export_symbols)
EXTRA_libgimpcolor_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpcolor_def)
libgimpcolor_@GIMP_API_VERSION@_la_LIBADD = \
$(libgimpbase) \
$(GEGL_LIBS) \
$(CAIRO_LIBS) \
$(GDK_PIXBUF_LIBS) \
$(LCMS_LIBS) \
$(libm)
#
# test programs, not to be built by default and never installed
#
TESTS = test-color-parser$(EXEEXT)
EXTRA_PROGRAMS = test-color-parser
test_color_parser_DEPENDENCIES = \
$(libgimpbase) \
$(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
test_color_parser_LDADD = \
$(CAIRO_LIBS) \
$(GLIB_LIBS) \
$(test_color_parser_DEPENDENCIES)
CLEANFILES = $(EXTRA_PROGRAMS)
install-data-local: install-ms-lib install-libtool-import-lib
uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib