Makefile.am 3.29 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-icon.c			\
	gimpdisplayshell-icon.h			\
46 47
	gimpdisplayshell-preview.c		\
	gimpdisplayshell-preview.h		\
48 49
	gimpdisplayshell-progress.c		\
	gimpdisplayshell-progress.h		\
50 51 52 53 54 55 56 57
	gimpdisplayshell-render.c		\
	gimpdisplayshell-render.h		\
	gimpdisplayshell-scale.c		\
	gimpdisplayshell-scale.h		\
	gimpdisplayshell-scroll.c		\
	gimpdisplayshell-scroll.h		\
	gimpdisplayshell-selection.c		\
	gimpdisplayshell-selection.h		\
58 59 60 61
	gimpdisplayshell-title.c		\
	gimpdisplayshell-title.h		\
	gimpdisplayshell-transform.c		\
	gimpdisplayshell-transform.h		\
62 63
	gimpnavigationeditor.c			\
	gimpnavigationeditor.h			\
64 65
	gimpscalecombobox.c			\
	gimpscalecombobox.h			\
66
	gimpstatusbar.c				\
67
	gimpstatusbar.h
68

69
libappdisplay_a_built_sources = display-enums.c
70

71 72 73 74
libappdisplay_a_SOURCES = \
	$(libappdisplay_a_built_sources)	\
	$(libappdisplay_a_sources)

75
AM_CPPFLAGS = \
76
	-DG_LOG_DOMAIN=\"Gimp-Display\"
77 78

INCLUDES = \
79
	-I$(top_builddir)	\
80
	-I$(top_srcdir)		\
81
	-I$(top_builddir)/app	\
82 83
	-I$(top_srcdir)/app	\
	$(GTK_CFLAGS)		\
84
	$(GEGL_CFLAGS)		\
85 86
	-I$(includedir)

87 88
EXTRA_DIST = makefile.msc

89 90 91
#
# rules to generate built sources
#
92
# setup autogeneration dependencies
93 94 95
gen_sources = xgen-dec
CLEANFILES = $(gen_sources)

96
display-enums.c: $(srcdir)/display-enums.h $(GIMP_MKENUMS)
97
	$(GIMP_MKENUMS) \
98
		--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"display-enums.h\"\n#include\"gimp-intl.h\"" \
99
		--fprod "\n/* enumerations from \"@filename@\" */" \
100
		--vhead "GType\n@enum_name@_get_type (void)\n{\n  static const G@Type@Value values[] =\n  {" \
101 102 103 104 105
		--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" \
106 107 108
		$(srcdir)/display-enums.h > xgen-dec \
	&& cp xgen-dec $(@F) \
	&& rm -f xgen-dec