summaryrefslogtreecommitdiffstats
path: root/libgimpcolor/Makefile.am
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:23:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:23:22 +0000
commite42129241681dde7adae7d20697e7b421682fbb4 (patch)
treeaf1fe815a5e639e68e59fabd8395ec69458b3e5e /libgimpcolor/Makefile.am
parentInitial commit. (diff)
downloadgimp-upstream/2.10.22.tar.xz
gimp-upstream/2.10.22.zip
Adding upstream version 2.10.22.upstream/2.10.22upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libgimpcolor/Makefile.am')
-rw-r--r--libgimpcolor/Makefile.am148
1 files changed, 148 insertions, 0 deletions
diff --git a/libgimpcolor/Makefile.am b/libgimpcolor/Makefile.am
new file mode 100644
index 0000000..767f3b9
--- /dev/null
+++ b/libgimpcolor/Makefile.am
@@ -0,0 +1,148 @@
+## 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