Makefile.am 3.68 KB
Newer Older
1 2
## Process this file with automake to produce Makefile.in

3 4 5 6 7 8 9 10 11 12 13 14
AM_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"Gimp-Display\"

INCLUDES = \
	-I$(top_builddir)	\
	-I$(top_srcdir)		\
	-I$(top_builddir)/app	\
	-I$(top_srcdir)/app	\
	$(GEGL_CFLAGS)		\
	$(GTK_CFLAGS)		\
	-I$(includedir)

15 16
noinst_LIBRARIES = libappdisplay.a

17
libappdisplay_a_sources = \
18
	display-enums.h				\
19
	display-types.h				\
20 21
	gimpcanvas.c				\
	gimpcanvas.h				\
22 23 24 25
	gimpcanvasitem.c			\
	gimpcanvasitem.h			\
	gimpcanvasrectangle.c			\
	gimpcanvasrectangle.h			\
26 27
	gimpcursorview.c			\
	gimpcursorview.h			\
28 29 30 31 32 33 34 35
	gimpdisplay.c				\
	gimpdisplay.h				\
	gimpdisplay-foreach.c			\
	gimpdisplay-foreach.h			\
	gimpdisplay-handlers.c			\
	gimpdisplay-handlers.h			\
	gimpdisplayshell.c			\
	gimpdisplayshell.h			\
36 37
	gimpdisplayshell-appearance.c		\
	gimpdisplayshell-appearance.h		\
38 39
	gimpdisplayshell-autoscroll.c		\
	gimpdisplayshell-autoscroll.h		\
40 41
	gimpdisplayshell-callbacks.c		\
	gimpdisplayshell-callbacks.h		\
42 43
	gimpdisplayshell-close.c		\
	gimpdisplayshell-close.h		\
44 45
	gimpdisplayshell-coords.c		\
	gimpdisplayshell-coords.h		\
46 47
	gimpdisplayshell-cursor.c		\
	gimpdisplayshell-cursor.h		\
48 49
	gimpdisplayshell-dnd.c			\
	gimpdisplayshell-dnd.h			\
50 51
	gimpdisplayshell-draw.c			\
	gimpdisplayshell-draw.h			\
52 53
	gimpdisplayshell-expose.c		\
	gimpdisplayshell-expose.h		\
54 55
	gimpdisplayshell-handlers.c		\
	gimpdisplayshell-handlers.h		\
56 57 58 59
	gimpdisplayshell-filter.c		\
	gimpdisplayshell-filter.h		\
	gimpdisplayshell-filter-dialog.c	\
	gimpdisplayshell-filter-dialog.h	\
60 61
	gimpdisplayshell-layer-select.c		\
	gimpdisplayshell-layer-select.h		\
62 63
	gimpdisplayshell-icon.c			\
	gimpdisplayshell-icon.h			\
64 65
	gimpdisplayshell-preview.c		\
	gimpdisplayshell-preview.h		\
66 67
	gimpdisplayshell-progress.c		\
	gimpdisplayshell-progress.h		\
68 69 70 71
	gimpdisplayshell-render.c		\
	gimpdisplayshell-render.h		\
	gimpdisplayshell-scale.c		\
	gimpdisplayshell-scale.h		\
72 73
	gimpdisplayshell-scale-dialog.c		\
	gimpdisplayshell-scale-dialog.h		\
74 75 76 77
	gimpdisplayshell-scroll.c		\
	gimpdisplayshell-scroll.h		\
	gimpdisplayshell-selection.c		\
	gimpdisplayshell-selection.h		\
78 79
	gimpdisplayshell-style.c		\
	gimpdisplayshell-style.h		\
80 81 82 83
	gimpdisplayshell-title.c		\
	gimpdisplayshell-title.h		\
	gimpdisplayshell-transform.c		\
	gimpdisplayshell-transform.h		\
84 85
	gimpimagewindow.c			\
	gimpimagewindow.h			\
86 87
	gimpnavigationeditor.c			\
	gimpnavigationeditor.h			\
88 89
	gimpscalecombobox.c			\
	gimpscalecombobox.h			\
90
	gimpstatusbar.c				\
91
	gimpstatusbar.h
92

93
libappdisplay_a_built_sources = display-enums.c
94

95 96 97 98
libappdisplay_a_SOURCES = \
	$(libappdisplay_a_built_sources)	\
	$(libappdisplay_a_sources)

99 100
EXTRA_DIST = makefile.msc

101 102 103
#
# rules to generate built sources
#
104
# setup autogeneration dependencies
105 106 107
gen_sources = xgen-dec
CLEANFILES = $(gen_sources)

108
display-enums.c: $(srcdir)/display-enums.h $(GIMP_MKENUMS)
109
	$(GIMP_MKENUMS) \
110
		--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"display-enums.h\"\n#include\"gimp-intl.h\"" \
111
		--fprod "\n/* enumerations from \"@filename@\" */" \
112
		--vhead "GType\n@enum_name@_get_type (void)\n{\n  static const G@Type@Value values[] =\n  {" \
113 114 115 116
		--vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
		--vtail "    { 0, NULL, NULL }\n  };\n" \
		--dhead "  static const Gimp@Type@Desc descs[] =\n  {" \
		--dprod "    { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
117
		--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" \
118 119 120
		$(srcdir)/display-enums.h > xgen-dec \
	&& cp xgen-dec $(@F) \
	&& rm -f xgen-dec