1 INCLUDES = -DG_LOG_DOMAIN=\"hildon-@API_VERSION_MAJOR@\" \
2 -DLOCALEDIR=\"$(localedir)\"
4 MAINTAINERCLEANFILES = \
11 EXTRA_DIST = hildon-marshalers.list
13 lib_LTLIBRARIES = libhildon-@API_VERSION_MAJOR@.la
15 libhildon_@API_VERSION_MAJOR@_la_LDFLAGS = $(HILDON_WIDGETS_LT_LDFLAGS)
17 libhildon_@API_VERSION_MAJOR@_la_LIBADD = \
23 libhildon_@API_VERSION_MAJOR@_la_CFLAGS = \
28 libhildon_@API_VERSION_MAJOR@_la_SOURCES = \
35 hildon-volumebar-range.c \
38 hildon-calendar-popup.c \
39 hildon-date-editor.c \
40 hildon-time-editor.c \
41 hildon-time-picker.c \
42 hildon-date-selector.c \
43 hildon-time-selector.c \
44 hildon-touch-selector.c \
45 hildon-picker-dialog.c \
46 hildon-picker-button.c \
47 hildon-date-button.c \
48 hildon-time-button.c \
50 hildon-weekday-picker.c \
51 hildon-number-editor.c \
52 hildon-range-editor.c \
53 hildon-get-password-dialog.c \
54 hildon-set-password-dialog.c \
55 hildon-sort-dialog.c \
56 hildon-font-selection-dialog.c \
57 hildon-login-dialog.c \
58 hildon-wizard-dialog.c \
59 hildon-color-chooser.c \
60 hildon-color-button.c \
61 hildon-color-chooser-dialog.c \
63 hildon-find-toolbar.c \
67 hildon-stackable-window.c \
69 hildon-code-dialog.c \
73 hildon-pannable-area.c \
74 hildon-bread-crumb-trail.c \
75 hildon-bread-crumb.c \
76 hildon-bread-crumb-widget.c \
79 hildon-toggle-button.c \
82 libhildon_@API_VERSION_MAJOR@_built_public_headers = \
86 libhildon_@API_VERSION_MAJOR@_includedir = \
87 $(includedir)/$(PACKAGE)-$(API_VERSION_MAJOR)/$(PACKAGE)
89 libhildon_@API_VERSION_MAJOR@_public_headers = \
91 hildon-calendar-popup.h \
93 hildon-code-dialog.h \
94 hildon-color-button.h \
95 hildon-color-chooser-dialog.h \
96 hildon-color-chooser.h \
98 hildon-date-editor.h \
100 hildon-find-toolbar.h \
102 hildon-font-selection-dialog.h \
103 hildon-get-password-dialog.h \
104 hildon-hvolumebar.h \
105 hildon-login-dialog.h \
107 hildon-number-editor.h \
109 hildon-range-editor.h \
111 hildon-set-password-dialog.h \
112 hildon-sort-dialog.h \
114 hildon-time-editor.h \
115 hildon-time-picker.h \
116 hildon-date-selector.h \
117 hildon-time-selector.h \
118 hildon-touch-selector.h \
119 hildon-picker-dialog.h \
120 hildon-picker-button.h \
121 hildon-date-button.h \
122 hildon-time-button.h \
123 hildon-volumebar-range.h \
125 hildon-vvolumebar.h \
126 hildon-weekday-picker.h \
129 hildon-stackable-window.h \
130 hildon-wizard-dialog.h \
132 hildon-pannable-area.h \
133 hildon-bread-crumb-trail.h \
134 hildon-bread-crumb.h \
138 hildon-toggle-button.h \
141 libhildon_@API_VERSION_MAJOR@_include_HEADERS = \
142 $(libhildon_@API_VERSION_MAJOR@_public_headers) \
143 $(libhildon_@API_VERSION_MAJOR@_built_public_headers)
145 noinst_HEADERS = hildon-banner-private.h \
146 hildon-calendar-popup-private.h \
148 hildon-caption-private.h \
149 hildon-code-dialog-private.h \
150 hildon-color-button-private.h \
151 hildon-color-chooser-dialog-private.h \
152 hildon-color-chooser-private.h \
153 hildon-controlbar-private.h \
154 hildon-date-editor-private.h \
155 hildon-find-toolbar-private.h \
156 hildon-font-selection-dialog-private.h \
157 hildon-get-password-dialog-private.h \
158 hildon-login-dialog-private.h \
159 hildon-note-private.h \
160 hildon-number-editor-private.h \
161 hildon-program-private.h \
162 hildon-range-editor-private.h \
163 hildon-seekbar-private.h \
164 hildon-set-password-dialog-private.h \
165 hildon-sort-dialog-private.h \
166 hildon-time-editor-private.h \
167 hildon-time-picker-private.h \
168 hildon-volumebar-private.h \
169 hildon-weekday-picker-private.h \
170 hildon-window-private.h \
171 hildon-stackable-window-private.h \
172 hildon-wizard-dialog-private.h \
173 hildon-calendar-private.h \
174 hildon-app-menu-private.h \
175 hildon-bread-crumb-widget.h
177 # Don't build the library until we have built the header that it needs:
178 $(OBJECTS) $(libhildon_$(API_VERSION_MAJOR)_la_OBJECTS): hildon-enum-types.h hildon-marshalers.c hildon-marshalers.h
180 hildon-enum-types.h: @REBUILD@ $(libhildon_$(API_VERSION_MAJOR)_public_headers) Makefile
181 (cd $(srcdir) && glib-mkenums \
182 --fhead "#ifndef __HILDON_ENUM_TYPES_H__\n" \
183 --fhead "#define __HILDON_ENUM_TYPES_H__\n" \
185 --fhead "#include <glib-object.h>\n" \
187 --fhead "G_BEGIN_DECLS\n" \
189 --fprod "/* Enumerations from \"@filename@\" */\n" \
190 --vhead "GType @enum_name@_get_type (void);\n#define HILDON_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
191 --ftail "\nG_END_DECLS\n\n#endif /* __HILDON_ENUM_TYPES_H__ */" \
192 $(libhildon_$(API_VERSION_MAJOR)_public_headers)) > $@
194 hildon-enum-types.c: @REBUILD@ $(libhildon_$(API_VERSION_MAJOR)_public_headers) Makefile
195 (cd $(srcdir) && glib-mkenums \
196 --fhead "#include \"hildon.h\"\n" \
197 --fhead "#include <glib-object.h>" \
198 --fprod "\n/* enumerations from \"@filename@\" */" \
199 --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[] = {" \
200 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
201 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
202 $(libhildon_$(API_VERSION_MAJOR)_public_headers)) > $@
204 hildon-marshalers.h: hildon-marshalers.list
205 glib-genmarshal --prefix _hildon_marshal --header hildon-marshalers.list >hildon-marshalers.h
207 hildon-marshalers.c: hildon-marshalers.list hildon-marshalers.h
208 echo '#include "hildon-marshalers.h"' >hildon-marshalers.c
209 glib-genmarshal --prefix _hildon_marshal --body hildon-marshalers.list >>hildon-marshalers.c