Makefile.am 3.52 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
	gimpcursorview.c			\
	gimpcursorview.h			\
24 25
	gimpdisplay.c				\
	gimpdisplay.h				\
26 27
	gimpdisplayoptions.c			\
	gimpdisplayoptions.h			\
28 29 30 31 32 33
	gimpdisplay-foreach.c			\
	gimpdisplay-foreach.h			\
	gimpdisplay-handlers.c			\
	gimpdisplay-handlers.h			\
	gimpdisplayshell.c			\
	gimpdisplayshell.h			\
34 35
	gimpdisplayshell-appearance.c		\
	gimpdisplayshell-appearance.h		\
36 37
	gimpdisplayshell-autoscroll.c		\
	gimpdisplayshell-autoscroll.h		\
38 39
	gimpdisplayshell-callbacks.c		\
	gimpdisplayshell-callbacks.h		\
40 41
	gimpdisplayshell-close.c		\
	gimpdisplayshell-close.h		\
42 43
	gimpdisplayshell-coords.c		\
	gimpdisplayshell-coords.h		\
44 45
	gimpdisplayshell-cursor.c		\
	gimpdisplayshell-cursor.h		\
46 47
	gimpdisplayshell-dnd.c			\
	gimpdisplayshell-dnd.h			\
48 49
	gimpdisplayshell-draw.c			\
	gimpdisplayshell-draw.h			\
50 51
	gimpdisplayshell-handlers.c		\
	gimpdisplayshell-handlers.h		\
52 53 54 55
	gimpdisplayshell-filter.c		\
	gimpdisplayshell-filter.h		\
	gimpdisplayshell-filter-dialog.c	\
	gimpdisplayshell-filter-dialog.h	\
56 57
	gimpdisplayshell-layer-select.c		\
	gimpdisplayshell-layer-select.h		\
58 59
	gimpdisplayshell-icon.c			\
	gimpdisplayshell-icon.h			\
60 61
	gimpdisplayshell-preview.c		\
	gimpdisplayshell-preview.h		\
62 63
	gimpdisplayshell-progress.c		\
	gimpdisplayshell-progress.h		\
64 65 66 67
	gimpdisplayshell-render.c		\
	gimpdisplayshell-render.h		\
	gimpdisplayshell-scale.c		\
	gimpdisplayshell-scale.h		\
68 69
	gimpdisplayshell-scale-dialog.c		\
	gimpdisplayshell-scale-dialog.h		\
70 71 72 73
	gimpdisplayshell-scroll.c		\
	gimpdisplayshell-scroll.h		\
	gimpdisplayshell-selection.c		\
	gimpdisplayshell-selection.h		\
74 75 76 77
	gimpdisplayshell-title.c		\
	gimpdisplayshell-title.h		\
	gimpdisplayshell-transform.c		\
	gimpdisplayshell-transform.h		\
78 79
	gimpimagewindow.c			\
	gimpimagewindow.h			\
80 81
	gimpnavigationeditor.c			\
	gimpnavigationeditor.h			\
82 83
	gimpscalecombobox.c			\
	gimpscalecombobox.h			\
84
	gimpstatusbar.c				\
85
	gimpstatusbar.h
86

87
libappdisplay_a_built_sources = display-enums.c
88

89 90 91 92
libappdisplay_a_SOURCES = \
	$(libappdisplay_a_built_sources)	\
	$(libappdisplay_a_sources)

93 94
EXTRA_DIST = makefile.msc

95 96 97
#
# rules to generate built sources
#
98
# setup autogeneration dependencies
99 100 101
gen_sources = xgen-dec
CLEANFILES = $(gen_sources)

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