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

noinst_LIBRARIES = libappdisplay.a

5
libappdisplay_a_sources = \
6
	display-enums.h				\
7
	display-types.h				\
8 9
	gimpcanvas.c				\
	gimpcanvas.h				\
10 11
	gimpdisplay.c				\
	gimpdisplay.h				\
12 13
	gimpdisplayoptions.c			\
	gimpdisplayoptions.h			\
14 15 16 17 18 19
	gimpdisplay-foreach.c			\
	gimpdisplay-foreach.h			\
	gimpdisplay-handlers.c			\
	gimpdisplay-handlers.h			\
	gimpdisplayshell.c			\
	gimpdisplayshell.h			\
20 21
	gimpdisplayshell-appearance.c		\
	gimpdisplayshell-appearance.h		\
22 23
	gimpdisplayshell-autoscroll.c		\
	gimpdisplayshell-autoscroll.h		\
24 25
	gimpdisplayshell-callbacks.c		\
	gimpdisplayshell-callbacks.h		\
26 27
	gimpdisplayshell-close.c		\
	gimpdisplayshell-close.h		\
28 29
	gimpdisplayshell-coords.c		\
	gimpdisplayshell-coords.h		\
30 31
	gimpdisplayshell-cursor.c		\
	gimpdisplayshell-cursor.h		\
32 33
	gimpdisplayshell-dnd.c			\
	gimpdisplayshell-dnd.h			\
34 35
	gimpdisplayshell-draw.c			\
	gimpdisplayshell-draw.h			\
36 37
	gimpdisplayshell-handlers.c		\
	gimpdisplayshell-handlers.h		\
38 39 40 41
	gimpdisplayshell-filter.c		\
	gimpdisplayshell-filter.h		\
	gimpdisplayshell-filter-dialog.c	\
	gimpdisplayshell-filter-dialog.h	\
42 43
	gimpdisplayshell-layer-select.c		\
	gimpdisplayshell-layer-select.h		\
44 45
	gimpdisplayshell-preview.c		\
	gimpdisplayshell-preview.h		\
46 47
	gimpdisplayshell-progress.c		\
	gimpdisplayshell-progress.h		\
48 49 50 51 52 53 54 55
	gimpdisplayshell-render.c		\
	gimpdisplayshell-render.h		\
	gimpdisplayshell-scale.c		\
	gimpdisplayshell-scale.h		\
	gimpdisplayshell-scroll.c		\
	gimpdisplayshell-scroll.h		\
	gimpdisplayshell-selection.c		\
	gimpdisplayshell-selection.h		\
56 57 58 59
	gimpdisplayshell-title.c		\
	gimpdisplayshell-title.h		\
	gimpdisplayshell-transform.c		\
	gimpdisplayshell-transform.h		\
60 61
	gimpnavigationeditor.c			\
	gimpnavigationeditor.h			\
62 63
	gimpscalecombobox.c			\
	gimpscalecombobox.h			\
64
	gimpstatusbar.c				\
65
	gimpstatusbar.h
66

67
libappdisplay_a_built_sources = display-enums.c
68

69 70 71 72
libappdisplay_a_SOURCES = \
	$(libappdisplay_a_built_sources)	\
	$(libappdisplay_a_sources)

73
AM_CPPFLAGS = \
74
	-DG_LOG_DOMAIN=\"Gimp-Display\"
75 76

INCLUDES = \
77
	-I$(top_builddir)	\
78
	-I$(top_srcdir)		\
79
	-I$(top_builddir)/app	\
80 81 82 83
	-I$(top_srcdir)/app	\
	$(GTK_CFLAGS)		\
	-I$(includedir)

84 85
EXTRA_DIST = makefile.msc

86 87 88
#
# rules to generate built sources
#
89
# setup autogeneration dependencies
90 91 92
gen_sources = xgen-dec
CLEANFILES = $(gen_sources)

93
display-enums.c: $(srcdir)/display-enums.h $(GIMP_MKENUMS)
94
	$(GIMP_MKENUMS) \
95
		--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"display-enums.h\"\n#include\"gimp-intl.h\"" \
96
		--fprod "\n/* enumerations from \"@filename@\" */" \
97
		--vhead "GType\n@enum_name@_get_type (void)\n{\n  static const G@Type@Value values[] =\n  {" \
98 99 100 101 102
		--vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
		--vtail "    { 0, NULL, NULL }\n  };\n" \
		--dhead "  static const Gimp@Type@Desc descs[] =\n  {" \
		--dprod "    { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
		--dtail "    { 0, NULL, NULL }\n  };\n\n  static GType type = 0;\n\n  if (! type)\n    {\n      type = g_@type@_register_static (\"@EnumName@\", values);\n      gimp_@type@_set_value_descriptions (type, descs);\n    }\n\n  return type;\n}\n" \
103 104 105
		$(srcdir)/display-enums.h > xgen-dec \
	&& cp xgen-dec $(@F) \
	&& rm -f xgen-dec