2012-05-11 03:22:44 +08:00
## Process this file with automake to produce Makefile.in
2017-01-10 04:57:15 +08:00
SUBDIRS = \
layer-modes \
layer-modes-legacy \
tests
2012-05-11 03:22:44 +08:00
AM_CPPFLAGS = \
2013-06-06 02:48:37 +08: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-11 03:22:44 +08:00
-I$( includedir)
2013-06-27 02:45:28 +08:00
noinst_LIBRARIES = \
libappoperations.a
2012-05-11 03:22:44 +08:00
2017-01-17 08:19:06 +08:00
libappoperations_a_sources = \
2012-05-11 21:57:31 +08:00
operations-types.h \
2017-01-17 06:07:50 +08:00
operations-enums.h \
2012-05-11 03:22:44 +08:00
gimp-operations.c \
gimp-operations.h \
\
2017-02-06 03:17:31 +08:00
gimp-operation-config.c \
gimp-operation-config.h \
2012-05-11 03:22:44 +08: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 \
\
2014-06-13 08:57:26 +08:00
gimpoperationblend.c \
gimpoperationblend.h \
2012-05-11 03:22:44 +08:00
gimpoperationborder.c \
gimpoperationborder.h \
gimpoperationcagecoefcalc.c \
gimpoperationcagecoefcalc.h \
gimpoperationcagetransform.c \
gimpoperationcagetransform.h \
2016-05-17 00:08:48 +08:00
gimpoperationcomposecrop.c \
gimpoperationcomposecrop.h \
2012-05-11 03:22:44 +08:00
gimpoperationequalize.c \
gimpoperationequalize.h \
2016-01-25 01:08:43 +08:00
gimpoperationflood.c \
gimpoperationflood.h \
2012-05-11 03:22:44 +08:00
gimpoperationgrow.c \
gimpoperationgrow.h \
gimpoperationhistogramsink.c \
gimpoperationhistogramsink.h \
gimpoperationmaskcomponents.c \
gimpoperationmaskcomponents.h \
2016-05-23 20:00:35 +08:00
gimpoperationprofiletransform.c \
gimpoperationprofiletransform.h \
2014-11-07 07:39:22 +08:00
gimpoperationscalarmultiply.c \
gimpoperationscalarmultiply.h \
2012-05-11 03:22:44 +08:00
gimpoperationsemiflatten.c \
gimpoperationsemiflatten.h \
gimpoperationsetalpha.c \
gimpoperationsetalpha.h \
gimpoperationshapeburst.c \
gimpoperationshapeburst.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 21:58:43 +08:00
gimpoperationthreshold.h
2017-01-17 08: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-23 05:19:17 +08:00
gen_sources = xgen-oec
2017-01-17 08:19:06 +08:00
CLEANFILES = $( gen_sources)
2017-05-23 05:19:17 +08:00
xgen-oec : $( srcdir ) /operations -enums .h $( GIMP_MKENUMS ) Makefile .am
2017-05-23 08:12:50 +08:00
$( AM_V_GEN) $( GIMP_MKENUMS) \
2017-01-17 08: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-23 08:12:50 +08:00
--fprod "\n/* enumerations from \"@basename@\" */" \
2017-01-17 08: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-30 05: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-17 08: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-23 08:12:50 +08:00
$< > $@
2017-05-23 05:19:17 +08:00
2017-06-02 22:53:44 +08: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-23 05:19:17 +08:00
$(srcdir)/operations-enums.c : xgen -oec
$( AM_V_GEN) if ! cmp -s $< $@ ; then \
cp $< $@ ; \
else \
touch $@ 2> /dev/null \
|| true; \
fi