2002-02-15 03:31:16 +08:00
## Process this file with automake to produce Makefile.in
2003-02-05 16:29:12 +08:00
AM_CPPFLAGS = \
2014-04-06 21:48:53 +08:00
-DG_LOG_DOMAIN= \" Gimp-Paint\" \
-I$( top_builddir) \
-I$( top_srcdir) \
-I$( top_builddir) /app \
-I$( top_srcdir) /app \
$( CAIRO_CFLAGS) \
$( GEGL_CFLAGS) \
$( GDK_PIXBUF_CFLAGS) \
2015-12-29 00:22:25 +08:00
$( LIBMYPAINT_CFLAGS) \
2003-02-05 16:29:12 +08:00
-I$( includedir)
2014-07-13 00:47:29 +08:00
noinst_LIBRARIES = libapppaint.a
2002-02-15 03:31:16 +08:00
2003-02-05 16:29:12 +08:00
libapppaint_a_sources = \
2006-09-08 01:10:22 +08:00
paint-enums.h \
paint-types.h \
gimp-paint.c \
gimp-paint.h \
gimpairbrush.c \
gimpairbrush.h \
gimpairbrushoptions.c \
gimpairbrushoptions.h \
gimpbrushcore.c \
gimpbrushcore.h \
2018-04-06 02:05:10 +08:00
gimpbrushcore-loops.cc \
gimpbrushcore-loops.h \
2006-09-08 01:10:22 +08:00
gimpbrushcore-kernels.h \
gimpclone.c \
gimpclone.h \
gimpcloneoptions.c \
gimpcloneoptions.h \
gimpconvolve.c \
gimpconvolve.h \
gimpconvolveoptions.c \
gimpconvolveoptions.h \
gimpdodgeburn.c \
gimpdodgeburn.h \
gimpdodgeburnoptions.c \
gimpdodgeburnoptions.h \
gimperaser.c \
gimperaser.h \
gimperaseroptions.c \
gimperaseroptions.h \
gimpheal.c \
gimpheal.h \
gimpink.c \
gimpink.h \
gimpink-blob.c \
gimpink-blob.h \
gimpinkoptions.c \
gimpinkoptions.h \
2007-02-04 02:48:00 +08:00
gimpinkundo.c \
gimpinkundo.h \
2015-12-20 08:03:56 +08:00
gimpmybrushcore.c \
gimpmybrushcore.h \
2014-04-06 21:48:53 +08:00
gimpmybrushoptions.c \
gimpmybrushoptions.h \
2015-12-11 23:39:28 +08:00
gimpmybrushsurface.c \
gimpmybrushsurface.h \
2006-09-08 01:10:22 +08:00
gimppaintcore.c \
gimppaintcore.h \
2018-04-05 04:59:24 +08:00
gimppaintcore-loops.cc \
2013-05-21 19:03:28 +08:00
gimppaintcore-loops.h \
2006-09-08 01:10:22 +08:00
gimppaintcore-stroke.c \
gimppaintcore-stroke.h \
2007-02-04 02:48:00 +08:00
gimppaintcoreundo.c \
gimppaintcoreundo.h \
2006-09-08 01:10:22 +08:00
gimppaintoptions.c \
gimppaintoptions.h \
gimppencil.c \
gimppencil.h \
gimppenciloptions.c \
gimppenciloptions.h \
gimppaintbrush.c \
gimppaintbrush.h \
gimpperspectiveclone.c \
gimpperspectiveclone.h \
gimpperspectivecloneoptions.c \
gimpperspectivecloneoptions.h \
gimpsmudge.c \
gimpsmudge.h \
gimpsmudgeoptions.c \
gimpsmudgeoptions.h \
gimpsourcecore.c \
gimpsourcecore.h \
gimpsourceoptions.c \
2006-09-03 06:39:26 +08:00
gimpsourceoptions.h
2002-02-15 03:31:16 +08:00
2003-02-05 16:29:12 +08:00
libapppaint_a_built_sources = paint-enums.c
2002-02-15 03:31:16 +08:00
2003-02-05 16:29:12 +08:00
libapppaint_a_SOURCES = $( libapppaint_a_built_sources) $( libapppaint_a_sources)
2002-03-20 03:17:31 +08:00
#
# rules to generate built sources
#
2003-02-03 21:39:55 +08:00
# setup autogeneration dependencies
2002-03-20 03:17:31 +08:00
gen_sources = xgen-pec
CLEANFILES = $( gen_sources)
2017-05-23 05:19:17 +08:00
xgen-pec : $( srcdir ) /paint -enums .h $( GIMP_MKENUMS ) Makefile .am
2017-05-23 08:12:50 +08:00
$( AM_V_GEN) $( GIMP_MKENUMS) \
2013-10-15 07:58:39 +08:00
--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"paint-enums.h\"\n#include \"gimp-intl.h\"" \
2017-05-23 08:12:50 +08:00
--fprod "\n/* enumerations from \"@basename@\" */" \
2004-07-28 19:50:20 +08:00
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
2004-10-26 01:55:25 +08:00
--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@" \
2008-11-06 16: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-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)/paint-enums.c : xgen -pec
$( AM_V_GEN) if ! cmp -s $< $@ ; then \
cp $< $@ ; \
else \
touch $@ 2> /dev/null \
|| true; \
fi