aboutsummaryrefslogtreecommitdiff
path: root/hildon/Makefile.am
blob: 1f8b8d692d267d88c4c1689dc361ca9c22037a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
INCLUDES 	= -DG_LOG_DOMAIN=\"hildon-@API_VERSION_MAJOR@\" \
		  -DLOCALEDIR=\"$(localedir)\"

CLEANFILES = \
		hildon-enum-types.c 				\
		hildon-enum-types.h				\
		hildon-marshalers.h 				\
		hildon-marshalers.c

EXTRA_DIST = hildon-marshalers.list

lib_LTLIBRARIES = libhildon-@API_VERSION_MAJOR@.la

libhildon_@API_VERSION_MAJOR@_la_LDFLAGS = $(HILDON_WIDGETS_LT_LDFLAGS)

libhildon_@API_VERSION_MAJOR@_la_LIBADD = \
		$(GTK_LIBS) 			\
	  	$(GCONF_LIBS) 			\
	  	$(CANBERRA_LIBS)		\
	  	@HILDON_LT_LDFLAGS@

libhildon_@API_VERSION_MAJOR@_la_CFLAGS	= \
		$(GTK_CFLAGS) 			\
		$(GCONF_CFLAGS) 		\
		$(CANBERRA_CFLAGS)

libhildon_@API_VERSION_MAJOR@_la_SOURCES = \
		hildon-private.c			\
		hildon-note.c 				\
		hildon-sound.c 				\
		hildon-date-selector.c			\
		hildon-time-selector.c			\
		hildon-touch-selector.c			\
		hildon-touch-selector-entry.c		\
		hildon-picker-dialog.c			\
		hildon-picker-button.c			\
		hildon-date-button.c			\
		hildon-time-button.c			\
		hildon-helper.c				\
		hildon-wizard-dialog.c 			\
		hildon-defines.c 			\
		hildon-find-toolbar.c 			\
		hildon-edit-toolbar.c			\
		hildon-banner.c 			\
		hildon-caption.c 			\
		hildon-window.c 			\
		hildon-stackable-window.c 		\
		hildon-window-stack.c 			\
		hildon-animation-actor.c 		\
		hildon-remote-texture.c			\
		hildon-program.c 			\
		hildon-enum-types.c 			\
		hildon-marshalers.c			\
		hildon-pannable-area.c			\
		hildon-entry.c				\
		hildon-text-view.c			\
		hildon-app-menu.c 			\
		hildon-button.c 			\
		hildon-check-button.c 			\
		hildon-gtk.c				\
		hildon-main.c				\
		hildon-live-search.c

libhildon_@API_VERSION_MAJOR@_built_public_headers  = \
		hildon-enum-types.h			\
		hildon-marshalers.h

libhildon_@API_VERSION_MAJOR@_includedir = \
		$(includedir)/$(PACKAGE)-$(API_VERSION_MAJOR)/$(PACKAGE)

libhildon_@API_VERSION_MAJOR@_public_headers = \
		hildon-caption.h 			\
		hildon-defines.h 			\
		hildon-find-toolbar.h 			\
		hildon-edit-toolbar.h			\
		hildon-helper.h				\
		hildon-note.h 				\
		hildon-program.h 			\
		hildon-sound.h 				\
		hildon-date-selector.h			\
		hildon-time-selector.h			\
		hildon-touch-selector.h			\
		hildon-touch-selector-column.h		\
		hildon-touch-selector-entry.h		\
		hildon-picker-dialog.h			\
		hildon-picker-button.h			\
		hildon-date-button.h			\
		hildon-time-button.h			\
		hildon.h 				\
		hildon-window.h 			\
		hildon-stackable-window.h 		\
		hildon-window-stack.h	 		\
		hildon-animation-actor.h 		\
		hildon-remote-texture.h			\
		hildon-wizard-dialog.h			\
		hildon-pannable-area.h			\
		hildon-entry.h				\
		hildon-text-view.h			\
		hildon-app-menu.h			\
		hildon-button.h				\
		hildon-check-button.h			\
		hildon-gtk.h				\
		hildon-version.h			\
		hildon-main.h				\
		hildon-live-search.h			\
		hildon-stock.h

libhildon_@API_VERSION_MAJOR@_include_HEADERS = \
		$(libhildon_@API_VERSION_MAJOR@_public_headers)		\
		$(libhildon_@API_VERSION_MAJOR@_built_public_headers)

noinst_HEADERS = hildon-private.h			\
		hildon-caption-private.h 		\
		hildon-picker-button-private.h 		\
		hildon-edit-toolbar-private.h 		\
		hildon-find-toolbar-private.h 		\
		hildon-note-private.h 			\
		hildon-program-private.h 		\
		hildon-window-private.h 		\
		hildon-stackable-window-private.h 	\
		hildon-window-stack-private.h	 	\
		hildon-animation-actor-private.h 	\
		hildon-remote-texture-private.h		\
		hildon-wizard-dialog-private.h		\
		hildon-app-menu-private.h		\
		hildon-touch-selector-private.h

# Don't build the library until we have built the header that it needs:
$(OBJECTS) $(libhildon_$(API_VERSION_MAJOR)_la_OBJECTS): hildon-enum-types.h hildon-marshalers.c hildon-marshalers.h

hildon-enum-types.h: @REBUILD@ $(libhildon_$(API_VERSION_MAJOR)_public_headers) Makefile
	$(AM_V_GEN) (cd $(srcdir) && glib-mkenums 	\
	--fhead "#ifndef __HILDON_ENUM_TYPES_H__\n" 		\
	--fhead "#define __HILDON_ENUM_TYPES_H__\n" 		\
	--fhead "\n" 						\
	--fhead "#include <glib-object.h>\n"			\
	--fhead "\n"						\
	--fhead "G_BEGIN_DECLS\n" 				\
	--fhead "\n"						\
	--fprod "/* Enumerations from \"@filename@\" */\n" 	\
	--vhead "GType @enum_name@_get_type (void);\n#define HILDON_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
	--ftail "\nG_END_DECLS\n\n#endif /* __HILDON_ENUM_TYPES_H__ */" \
	$(libhildon_$(API_VERSION_MAJOR)_public_headers)) > $@

hildon-enum-types.c: @REBUILD@ $(libhildon_$(API_VERSION_MAJOR)_public_headers) Makefile
	$(AM_V_GEN) (cd $(srcdir) && glib-mkenums 				\
	--fhead "#include \"hildon.h\"\n" 			\
	--fhead "#include <glib-object.h>" 			\
	--fprod "\n/* enumerations from \"@filename@\" */" 	\
	--vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {" 	\
	--vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
	--vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
	$(libhildon_$(API_VERSION_MAJOR)_public_headers)) > $@

hildon-marshalers.h: hildon-marshalers.list
	$(AM_V_GEN) glib-genmarshal --prefix _hildon_marshal --header hildon-marshalers.list >hildon-marshalers.h

hildon-marshalers.c: hildon-marshalers.list hildon-marshalers.h
	$(AM_V_GEN) echo '#include "hildon-marshalers.h"' >hildon-marshalers.c
	$(AM_V_at) glib-genmarshal --prefix _hildon_marshal --body hildon-marshalers.list >>hildon-marshalers.c