2012-05-10 12:22:44 -07:00
## Process this file with automake to produce Makefile.in
2017-01-09 12:57:15 -08:00
SUBDIRS = \
layer-modes \
layer-modes-legacy \
tests
2012-05-10 12:22:44 -07:00
AM_CPPFLAGS = \
2013-06-05 11:48:37 -07:00
-DG_LOG_DOMAIN=\"Gimp-Operations\" \
-I$(top_builddir) \
-I$(top_srcdir) \
-I$(top_builddir)/app \
-I$(top_srcdir)/app \
$(CAIRO_CFLAGS) \
$(GEGL_CFLAGS) \
$(GDK_PIXBUF_CFLAGS) \
2012-05-10 12:22:44 -07:00
-I$(includedir)
2013-06-26 11:45:28 -07:00
noinst_LIBRARIES = \
libappoperations.a
2012-05-10 12:22:44 -07:00
2017-01-16 16:19:06 -08:00
libappoperations_a_sources = \
2012-05-11 06:57:31 -07:00
operations-types.h \
2017-01-16 14:07:50 -08:00
operations-enums.h \
2012-05-10 12:22:44 -07:00
gimp-operations.c \
gimp-operations.h \
\
2017-02-05 11:17:31 -08:00
gimp-operation-config.c \
gimp-operation-config.h \
2012-05-10 12:22:44 -07:00
gimpbrightnesscontrastconfig.c \
gimpbrightnesscontrastconfig.h \
gimpcageconfig.c \
gimpcageconfig.h \
gimpcolorbalanceconfig.c \
gimpcolorbalanceconfig.h \
gimpcurvesconfig.c \
gimpcurvesconfig.h \
gimphuesaturationconfig.c \
gimphuesaturationconfig.h \
gimplevelsconfig.c \
gimplevelsconfig.h \
\
gimpoperationborder.c \
gimpoperationborder.h \
2017-12-04 12:13:48 -08:00
gimpoperationbuffersourcevalidate.c \
gimpoperationbuffersourcevalidate.h \
2012-05-10 12:22:44 -07:00
gimpoperationcagecoefcalc.c \
gimpoperationcagecoefcalc.h \
gimpoperationcagetransform.c \
gimpoperationcagetransform.h \
2016-05-16 09:08:48 -07:00
gimpoperationcomposecrop.c \
gimpoperationcomposecrop.h \
2012-05-10 12:22:44 -07:00
gimpoperationequalize.c \
gimpoperationequalize.h \
2016-01-24 09:08:43 -08:00
gimpoperationflood.c \
gimpoperationflood.h \
2018-04-13 14:36:16 -07:00
gimpoperationgradient.c \
gimpoperationgradient.h \
2012-05-10 12:22:44 -07:00
gimpoperationgrow.c \
gimpoperationgrow.h \
gimpoperationhistogramsink.c \
gimpoperationhistogramsink.h \
2019-02-16 01:30:39 -08:00
gimpoperationmaskcomponents.cc \
2012-05-10 12:22:44 -07:00
gimpoperationmaskcomponents.h \
2016-05-23 05:00:35 -07:00
gimpoperationprofiletransform.c \
gimpoperationprofiletransform.h \
2014-11-06 15:39:22 -08:00
gimpoperationscalarmultiply.c \
gimpoperationscalarmultiply.h \
2012-05-10 12:22:44 -07:00
gimpoperationsemiflatten.c \
gimpoperationsemiflatten.h \
gimpoperationsetalpha.c \
gimpoperationsetalpha.h \
gimpoperationshrink.c \
gimpoperationshrink.h \
gimpoperationthresholdalpha.c \
gimpoperationthresholdalpha.h \
\
gimpoperationpointfilter.c \
gimpoperationpointfilter.h \
gimpoperationbrightnesscontrast.c \
gimpoperationbrightnesscontrast.h \
gimpoperationcolorbalance.c \
gimpoperationcolorbalance.h \
gimpoperationcolorize.c \
gimpoperationcolorize.h \
gimpoperationcurves.c \
gimpoperationcurves.h \
gimpoperationdesaturate.c \
gimpoperationdesaturate.h \
gimpoperationhuesaturation.c \
gimpoperationhuesaturation.h \
gimpoperationlevels.c \
gimpoperationlevels.h \
gimpoperationposterize.c \
gimpoperationposterize.h \
gimpoperationthreshold.c \
2017-01-11 05:58:43 -08:00
gimpoperationthreshold.h
2017-01-16 16:19:06 -08:00
libappoperations_a_built_sources = operations-enums.c
libappoperations_a_SOURCES = \
$(libappoperations_a_built_sources) \
$(libappoperations_a_sources)
#
# rules to generate built sources
#
# setup autogeneration dependencies
2017-05-22 14:19:17 -07:00
gen_sources = xgen-oec
2017-01-16 16:19:06 -08:00
CLEANFILES = $(gen_sources)
2017-05-22 14:19:17 -07:00
xgen-oec: $(srcdir)/operations-enums.h $(GIMP_MKENUMS) Makefile.am
2017-05-22 17:12:50 -07:00
$(AM_V_GEN) $(GIMP_MKENUMS) \
2017-01-16 16:19:06 -08:00
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"operations-enums.h\"\n#include \"gimp-intl.h\"" \
2017-05-22 17:12:50 -07:00
--fprod "\n/* enumerations from \"@basename@\" */" \
2017-01-16 16:19:06 -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@" \
2017-01-16 16:19:06 -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)/operations-enums.c: xgen-oec
$(AM_V_GEN) if ! cmp -s $< $@; then \
cp $< $@; \
else \
touch $@ 2> /dev/null \
|| true; \
fi