2005-01-24 14:54:27 -08:00
## Process this file with automake to produce Makefile.in
2005-01-26 17:17:09 -08:00
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
2005-01-24 14:54:27 -08:00
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
if OS_WIN32
gimpconfig_def = gimpconfig.def
2014-09-14 09:28:26 -07:00
libgimpconfig_export_symbols = -export-symbols $(srcdir)/gimpconfig.def
2005-01-24 14:54:27 -08:00
install-libtool-import-lib:
$(INSTALL) .libs/libgimpconfig-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
2014-09-14 09:28:26 -07:00
$(INSTALL) $(srcdir)/gimpconfig.def $(DESTDIR)$(libdir)
2005-01-24 14:54:27 -08:00
uninstall-libtool-import-lib:
-rm $(DESTDIR)$(libdir)/libgimpconfig-$(GIMP_API_VERSION).dll.a
-rm $(DESTDIR)$(libdir)/gimpconfig.def
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif
if MS_LIB_AVAILABLE
noinst_DATA = gimpconfig-$(GIMP_API_VERSION).lib
install-ms-lib:
$(INSTALL) gimpconfig-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
uninstall-ms-lib:
-rm $(DESTDIR)$(libdir)/gimpconfig-$(GIMP_API_VERSION).lib
gimpconfig-@GIMP_API_VERSION@.lib: gimpconfig.def
lib -name:libgimpconfig-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpconfig.def -out:$@
else
install-ms-lib:
uninstall-ms-lib:
endif
libgimpconfigincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpconfig
AM_CPPFLAGS = \
2011-04-28 05:30:41 -07:00
-DG_LOG_DOMAIN=\"LibGimpConfig\" \
2013-06-05 11:48:37 -07:00
-DGIMP_CONFIG_COMPILATION \
-I$(top_srcdir) \
2014-07-02 14:53:57 -07:00
$(GIO_UNIX_CFLAGS) \
$(GIO_WINDOWS_CFLAGS) \
2013-06-05 11:48:37 -07:00
$(GEGL_CFLAGS) \
$(CAIRO_CFLAGS) \
$(GDK_PIXBUF_CFLAGS) \
2005-01-24 14:54:27 -08:00
-I$(includedir)
EXTRA_DIST = \
gimpconfig.def
2012-05-04 06:37:43 -07:00
lib_LTLIBRARIES = libgimpconfig-@GIMP_API_VERSION@.la
2005-01-24 14:54:27 -08:00
2005-01-25 11:11:26 -08:00
libgimpconfig_sources = \
gimpconfig.h \
2016-06-06 12:05:16 -07:00
gimpconfigenums.h \
2005-01-25 12:30:20 -08:00
gimpconfigtypes.h \
2016-06-06 12:05:16 -07:00
\
2005-01-25 11:11:26 -08:00
gimpconfig-iface.c \
gimpconfig-iface.h \
gimpconfig-deserialize.c \
gimpconfig-deserialize.h \
gimpconfig-error.c \
gimpconfig-error.h \
gimpconfig-params.h \
gimpconfig-path.c \
gimpconfig-path.h \
gimpconfig-serialize.c \
gimpconfig-serialize.h \
2005-02-06 14:15:54 -08:00
gimpconfig-utils.c \
gimpconfig-utils.h \
2005-01-25 11:11:26 -08:00
gimpconfigwriter.c \
gimpconfigwriter.h \
gimpscanner.c \
gimpscanner.h \
2005-02-06 14:15:54 -08:00
gimpcolorconfig.c \
2016-06-06 12:05:16 -07:00
gimpcolorconfig.h
2005-01-25 11:11:26 -08:00
2005-02-06 14:15:54 -08:00
libgimpconfig_built_sources = \
2016-06-06 12:05:16 -07:00
gimpconfigenums.c
2005-01-24 14:54:27 -08:00
2012-05-04 06:37:43 -07:00
libgimpconfig_@GIMP_API_VERSION@_la_SOURCES = \
$(libgimpconfig_sources) \
$(libgimpconfig_built_sources)
2005-01-24 14:54:27 -08:00
libgimpconfiginclude_HEADERS = \
2005-01-25 11:11:26 -08:00
gimpconfig.h \
2016-06-06 12:05:16 -07:00
gimpconfigenums.h \
2005-01-25 12:30:20 -08:00
gimpconfigtypes.h \
2005-01-25 11:11:26 -08:00
gimpconfig-iface.h \
gimpconfig-deserialize.h \
gimpconfig-error.h \
gimpconfig-params.h \
gimpconfig-path.h \
gimpconfig-serialize.h \
2005-02-06 14:15:54 -08:00
gimpconfig-utils.h \
2005-01-25 11:11:26 -08:00
gimpconfigwriter.h \
2005-02-07 08:19:08 -08:00
gimpscanner.h \
2016-06-06 12:05:16 -07:00
gimpcolorconfig.h
2005-01-24 14:54:27 -08:00
2012-05-04 06:37:43 -07:00
libgimpconfig_@GIMP_API_VERSION@_la_LDFLAGS = \
2005-01-24 14:54:27 -08:00
-version-info $(LT_VERSION_INFO) \
$(no_undefined) \
$(libgimpconfig_export_symbols)
2014-03-15 14:18:45 -07:00
EXTRA_libgimpconfig_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpconfig_def)
2005-01-24 14:54:27 -08:00
2012-05-04 06:37:43 -07:00
libgimpconfig_@GIMP_API_VERSION@_la_LIBADD = \
2014-07-02 14:53:57 -07:00
$(libgimpbase) \
$(libgimpcolor) \
$(libgimpmath) \
$(GIO_UNIX_LIBS) \
$(GIO_WINDOWS_LIBS) \
$(GEGL_LIBS) \
$(CAIRO_LIBS) \
2012-05-02 18:36:22 -07:00
$(GDK_PIXBUF_LIBS)
2005-01-24 14:54:27 -08:00
install-data-local: install-ms-lib install-libtool-import-lib
uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
#
# rules to generate built sources
#
2005-02-06 14:15:54 -08:00
gen_sources = xgen-cec
2005-01-24 14:54:27 -08:00
CLEANFILES = $(gen_sources)
2017-05-22 14:19:17 -07:00
xgen-cec: $(srcdir)/gimpconfigenums.h $(GIMP_MKENUMS) Makefile.am
2017-05-22 17:12:50 -07:00
$(AM_V_GEN) $(GIMP_MKENUMS) \
2016-06-06 12:05:16 -07:00
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"gimpconfigenums.h\"\n#include \"libgimp/libgimp-intl.h\"" \
2017-05-22 17:12:50 -07:00
--fprod "\n/* enumerations from \"@basename@\" */" \
2005-02-06 14:15:54 -08:00
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n" \
--dhead " static const Gimp@Type@Desc descs[] =\n {" \
2017-11-29 13:27:59 -08:00
--dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ },@if ('@valueabbrev@' ne 'NULL')@\n /* Translators: this is an abbreviated version of @valueudesc@.\n Keep it short. */\n { @VALUENAME@, @valueabbrev@, NULL },@endif@" \
2008-11-06 00:28:28 -08:00
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
2017-05-22 17:12:50 -07:00
$< > $@
2017-05-22 14:19:17 -07:00
2017-06-02 07:53:44 -07:00
# copy the generated enum file back to the source directory only if it's
# changed; otherwise, only update its timestamp, so that the recipe isn't
# executed again on the next build, however, allow this to (harmlessly) fail,
# to support building from a read-only source tree.
2017-05-22 14:19:17 -07:00
$(srcdir)/gimpconfigenums.c: xgen-cec
$(AM_V_GEN) if ! cmp -s $< $@; then \
cp $< $@; \
else \
touch $@ 2> /dev/null \
|| true; \
fi