mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
c0ebe2a8a3
2003-10-27 Sven Neumann <sven@gimp.org> * app/text/Makefile.am * app/text/gimptextlayer-xcf.[ch]: new files that load and save text layers to/from XCF. * app/xcf/xcf-load.c * app/xcf/xcf-save.c * app/text/gimptextlayer.c: removed that code here and use the new functions instead. * app/text/gimptext-parasite.[ch] (gimp_text_from_parasite): added a GError parameter. * app/text/gimptextlayer.[ch]: store the name of the parasite that the text layer was created from (if read from XCF). Remove the parasite when the text layer is edited. If a text layer wasn't touched, the original parasite is written back to the XCF file. * app/text/gimptextlayout.c (gimp_text_layout_new): handle a NULL text string. * app/tools/gimptextoptions.c: implement GimpToolOptions::reset and save the text across a reset.
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
AM_CPPFLAGS = \
|
|
-DG_LOG_DOMAIN=\"Gimp-Text\" \
|
|
@GIMP_THREAD_FLAGS@ \
|
|
@GIMP_MP_FLAGS@
|
|
|
|
INCLUDES = \
|
|
-I$(top_srcdir) \
|
|
-I$(top_srcdir)/app \
|
|
$(GTK_CFLAGS) \
|
|
$(PANGOFT2_CFLAGS) \
|
|
-I$(includedir)
|
|
|
|
noinst_LIBRARIES = libapptext.a
|
|
|
|
libapptext_a_sources = \
|
|
text-types.h \
|
|
text-enums.h \
|
|
gimp-fonts.c \
|
|
gimp-fonts.h \
|
|
gimpfont.c \
|
|
gimpfont.h \
|
|
gimpfontlist.c \
|
|
gimpfontlist.h \
|
|
gimptext.c \
|
|
gimptext.h \
|
|
gimptext-bitmap.c \
|
|
gimptext-bitmap.h \
|
|
gimptext-compat.c \
|
|
gimptext-compat.h \
|
|
gimptext-parasite.c \
|
|
gimptext-parasite.h \
|
|
gimptext-private.h \
|
|
gimptext-vectors.c \
|
|
gimptext-vectors.h \
|
|
gimptext-xlfd.c \
|
|
gimptext-xlfd.h \
|
|
gimptextlayer.c \
|
|
gimptextlayer.h \
|
|
gimptextlayer-transform.c \
|
|
gimptextlayer-transform.h \
|
|
gimptextlayer-xcf.c \
|
|
gimptextlayer-xcf.h \
|
|
gimptextlayout.c \
|
|
gimptextlayout.h \
|
|
gimptextlayout-render.c \
|
|
gimptextlayout-render.h
|
|
|
|
libapptext_a_built_sources = text-enums.c
|
|
|
|
libapptext_a_SOURCES = $(libapptext_a_built_sources) $(libapptext_a_sources)
|
|
|
|
#
|
|
# rules to generate built sources
|
|
#
|
|
# setup autogeneration dependencies
|
|
gen_sources = xgen-tec
|
|
CLEANFILES = $(gen_sources)
|
|
|
|
$(srcdir)/text-enums.c: $(srcdir)/text-enums.h $(GIMP_MKENUMS)
|
|
$(GIMP_MKENUMS) \
|
|
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"text-enums.h\"\n#include \"gimp-intl.h\"" \
|
|
--fprod "\n/* enumerations from \"@filename@\" */" \
|
|
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
|
|
--vprod " { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
|
|
--vtail " { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n static GType enum_type = 0;\n\n if (!enum_type)\n enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n return enum_type;\n}\n" \
|
|
$(srcdir)/text-enums.h > xgen-tec \
|
|
&& cp xgen-tec $(@F) \
|
|
&& rm -f xgen-tec
|