2001-08-17 07:27:31 -07:00
## Process this file with automake to produce Makefile.in
2002-06-07 16:00:46 -07:00
AM_CPPFLAGS = \
2013-06-05 11:48:37 -07:00
-DG_LOG_DOMAIN=\"Gimp-Plug-In\" \
-I$(top_builddir) \
-I$(top_srcdir) \
-I$(top_builddir)/app \
-I$(top_srcdir)/app \
$(CAIRO_CFLAGS) \
$(GEGL_CFLAGS) \
$(GDK_PIXBUF_CFLAGS) \
2002-06-07 16:00:46 -07:00
-I$(includedir)
2001-12-18 16:13:16 -08:00
noinst_LIBRARIES = libappplug-in.a
2002-06-07 16:00:46 -07:00
libappplug_in_a_SOURCES = \
2006-04-28 15:26:51 -07:00
plug-in-enums.c \
plug-in-enums.h \
plug-in-types.h \
\
gimpenvirontable.c \
gimpenvirontable.h \
gimpinterpreterdb.c \
gimpinterpreterdb.h \
gimpplugindebug.c \
gimpplugindebug.h \
2006-05-03 11:05:06 -07:00
gimpplugin.c \
gimpplugin.h \
2006-10-25 02:41:05 -07:00
gimpplugin-cleanup.c \
gimpplugin-cleanup.h \
2006-05-03 11:05:06 -07:00
gimpplugin-context.c \
gimpplugin-context.h \
gimpplugin-message.c \
gimpplugin-message.h \
gimpplugin-progress.c \
gimpplugin-progress.h \
2007-02-18 17:16:05 -08:00
gimpplugindef.c \
gimpplugindef.h \
2007-08-11 12:36:08 -07:00
gimppluginerror.c \
gimppluginerror.h \
2006-04-28 15:26:51 -07:00
gimppluginmanager.c \
gimppluginmanager.h \
2006-05-02 11:27:31 -07:00
gimppluginmanager-call.c \
gimppluginmanager-call.h \
2006-04-28 15:26:51 -07:00
gimppluginmanager-data.c \
gimppluginmanager-data.h \
gimppluginmanager-file.c \
gimppluginmanager-file.h \
2016-01-03 11:05:27 -08:00
gimppluginmanager-file-procedure.c \
gimppluginmanager-file-procedure.h \
2006-04-28 15:26:51 -07:00
gimppluginmanager-help-domain.c \
gimppluginmanager-help-domain.h \
gimppluginmanager-locale-domain.c \
gimppluginmanager-locale-domain.h \
gimppluginmanager-menu-branch.c \
gimppluginmanager-menu-branch.h \
gimppluginmanager-query.c \
gimppluginmanager-query.h \
2007-04-18 08:06:05 -07:00
gimppluginmanager-restore.c \
gimppluginmanager-restore.h \
2006-08-05 14:21:01 -07:00
gimppluginprocedure.c \
gimppluginprocedure.h \
2006-05-03 11:05:06 -07:00
gimppluginprocframe.c \
gimppluginprocframe.h \
2006-04-28 15:26:51 -07:00
gimppluginshm.c \
gimppluginshm.h \
2006-08-05 14:21:01 -07:00
gimptemporaryprocedure.c \
gimptemporaryprocedure.h \
2006-04-28 15:26:51 -07:00
\
2007-09-18 07:39:52 -07:00
plug-in-menu-path.c \
plug-in-menu-path.h \
2006-04-28 15:26:51 -07:00
plug-in-params.c \
plug-in-params.h \
plug-in-rc.c \
2015-08-23 01:51:31 -07:00
plug-in-rc.h
2003-12-12 17:35:19 -08:00
2006-03-27 05:49:19 -08:00
#
# rules to generate built sources
#
# setup autogeneration dependencies
2017-05-22 14:19:17 -07:00
gen_sources = xgen-pec
2006-03-27 05:49:19 -08:00
CLEANFILES = $(EXTRA_PROGRAMS) $(gen_sources)
2017-05-22 14:19:17 -07:00
xgen-pec: $(srcdir)/plug-in-enums.h $(GIMP_MKENUMS) Makefile.am
2017-05-22 17:12:50 -07:00
$(AM_V_GEN) $(GIMP_MKENUMS) \
2013-10-14 16:58:39 -07:00
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"plug-in-enums.h\"\n#include \"gimp-intl.h\"" \
2017-05-22 17:12:50 -07:00
--fprod "\n/* enumerations from \"@basename@\" */" \
2006-03-27 05:49:19 -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_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)/plug-in-enums.c: xgen-pec
$(AM_V_GEN) if ! cmp -s $< $@; then \
cp $< $@; \
else \
touch $@ 2> /dev/null \
|| true; \
fi