1 include $(top_srcdir)/build/autotools/Makefile.am.silent
6 # we recurse only into Cogl
19 -I$(top_srcdir)/clutter \
20 -I$(top_srcdir)/clutter/cogl \
21 -I$(top_srcdir)/clutter/cogl/pango \
22 -I$(top_srcdir)/clutter/$(CLUTTER_WINSYS) \
23 -I$(top_srcdir)/clutter/$(CLUTTER_WINSYS_BASE) \
24 -I$(top_srcdir)/clutter/cally \
25 -I$(top_srcdir)/clutter/evdev \
27 -I$(top_builddir)/clutter \
28 -I$(top_builddir)/clutter/cogl \
32 -DCLUTTER_PREFIX=\""$(prefix)"\" \
33 -DCLUTTER_LIBDIR=\""$(libdir)"\" \
34 -DCLUTTER_DATADIR=\""$(datadir)"\" \
35 -DCLUTTER_LOCALEDIR=\""$(localedir)"\" \
36 -DCLUTTER_COMPILATION=1 \
37 -DCLUTTER_DISABLE_DEPRECATED \
38 -DCOGL_DISABLE_DEPRECATED \
39 -DCOGL_ENABLE_EXPERIMENTAL_API \
40 -DG_DISABLE_DEPRECATED \
41 -DG_DISABLE_SINGLE_INCLUDES \
42 -DG_LOG_DOMAIN=\"Clutter\" \
43 $(CLUTTER_DEBUG_CFLAGS) \
44 $(CLUTTER_PROFILE_CFLAGS) \
47 AM_CFLAGS = $(CLUTTER_CFLAGS) $(MAINTAINER_CFLAGS) $(GCOV_CFLAGS)
49 # these are the gir files we generate by hand
52 # these are the gir files we generate using g-ir-scanner
55 # the base include path for headers
56 clutter_base_includedir = $(includedir)/clutter-$(CLUTTER_API_VERSION)
57 clutter_includedir = $(clutter_base_includedir)/clutter
62 # common sources - please, keep these sorted alphabetically
64 $(srcdir)/clutter-action.h \
65 $(srcdir)/clutter-actor-meta.h \
66 $(srcdir)/clutter-actor.h \
67 $(srcdir)/clutter-align-constraint.h \
68 $(srcdir)/clutter-alpha.h \
69 $(srcdir)/clutter-animatable.h \
70 $(srcdir)/clutter-animation.h \
71 $(srcdir)/clutter-animator.h \
72 $(srcdir)/clutter-backend.h \
73 $(srcdir)/clutter-behaviour.h \
74 $(srcdir)/clutter-behaviour-depth.h \
75 $(srcdir)/clutter-behaviour-ellipse.h \
76 $(srcdir)/clutter-behaviour-opacity.h \
77 $(srcdir)/clutter-behaviour-path.h \
78 $(srcdir)/clutter-behaviour-rotate.h \
79 $(srcdir)/clutter-behaviour-scale.h \
80 $(srcdir)/clutter-bind-constraint.h \
81 $(srcdir)/clutter-binding-pool.h \
82 $(srcdir)/clutter-bin-layout.h \
83 $(srcdir)/clutter-blur-effect.h \
84 $(srcdir)/clutter-box.h \
85 $(srcdir)/clutter-box-layout.h \
86 $(srcdir)/clutter-cairo-texture.h \
87 $(srcdir)/clutter-child-meta.h \
88 $(srcdir)/clutter-click-action.h \
89 $(srcdir)/clutter-clone.h \
90 $(srcdir)/clutter-color-static.h \
91 $(srcdir)/clutter-color.h \
92 $(srcdir)/clutter-colorize-effect.h \
93 $(srcdir)/clutter-constraint.h \
94 $(srcdir)/clutter-container.h \
95 $(srcdir)/clutter-deform-effect.h \
96 $(srcdir)/clutter-deprecated.h \
97 $(srcdir)/clutter-desaturate-effect.h \
98 $(srcdir)/clutter-device-manager.h \
99 $(srcdir)/clutter-drag-action.h \
100 $(srcdir)/clutter-effect.h \
101 $(srcdir)/clutter-event.h \
102 $(srcdir)/clutter-feature.h \
103 $(srcdir)/clutter-fixed.h \
104 $(srcdir)/clutter-fixed-layout.h \
105 $(srcdir)/clutter-flow-layout.h \
106 $(srcdir)/clutter-frame-source.h \
107 $(srcdir)/clutter-group.h \
108 $(srcdir)/clutter-input-device.h \
109 $(srcdir)/clutter-interval.h \
110 $(srcdir)/clutter-keysyms.h \
111 $(srcdir)/clutter-keysyms-compat.h \
112 $(srcdir)/clutter-layout-manager.h \
113 $(srcdir)/clutter-layout-meta.h \
114 $(srcdir)/clutter-list-model.h \
115 $(srcdir)/clutter-main.h \
116 $(srcdir)/clutter-media.h \
117 $(srcdir)/clutter-model.h \
118 $(srcdir)/clutter-offscreen-effect.h \
119 $(srcdir)/clutter-page-turn-effect.h \
120 $(srcdir)/clutter-path-constraint.h \
121 $(srcdir)/clutter-path.h \
122 $(srcdir)/clutter-rectangle.h \
123 $(srcdir)/clutter-score.h \
124 $(srcdir)/clutter-script.h \
125 $(srcdir)/clutter-scriptable.h \
126 $(srcdir)/clutter-settings.h \
127 $(srcdir)/clutter-shader.h \
128 $(srcdir)/clutter-shader-effect.h \
129 $(srcdir)/clutter-shader-types.h \
130 $(srcdir)/clutter-snap-constraint.h \
131 $(srcdir)/clutter-stage.h \
132 $(srcdir)/clutter-stage-manager.h \
133 $(srcdir)/clutter-stage-window.h \
134 $(srcdir)/clutter-state.h \
135 $(srcdir)/clutter-table-layout.h \
136 $(srcdir)/clutter-texture.h \
137 $(srcdir)/clutter-text.h \
138 $(srcdir)/clutter-timeline.h \
139 $(srcdir)/clutter-timeout-pool.h \
140 $(srcdir)/clutter-types.h \
141 $(srcdir)/clutter-units.h \
142 $(srcdir)/clutter-util.h \
146 $(srcdir)/clutter-action.c \
147 $(srcdir)/clutter-actor-box.c \
148 $(srcdir)/clutter-actor-meta.c \
149 $(srcdir)/clutter-actor.c \
150 $(srcdir)/clutter-align-constraint.c \
151 $(srcdir)/clutter-alpha.c \
152 $(srcdir)/clutter-animatable.c \
153 $(srcdir)/clutter-animation.c \
154 $(srcdir)/clutter-animator.c \
155 $(srcdir)/clutter-backend.c \
156 $(srcdir)/clutter-behaviour.c \
157 $(srcdir)/clutter-behaviour-depth.c \
158 $(srcdir)/clutter-behaviour-ellipse.c \
159 $(srcdir)/clutter-behaviour-opacity.c \
160 $(srcdir)/clutter-behaviour-path.c \
161 $(srcdir)/clutter-behaviour-rotate.c \
162 $(srcdir)/clutter-behaviour-scale.c \
163 $(srcdir)/clutter-bezier.c \
164 $(srcdir)/clutter-bind-constraint.c \
165 $(srcdir)/clutter-binding-pool.c \
166 $(srcdir)/clutter-bin-layout.c \
167 $(srcdir)/clutter-blur-effect.c \
168 $(srcdir)/clutter-box.c \
169 $(srcdir)/clutter-box-layout.c \
170 $(srcdir)/clutter-cairo-texture.c \
171 $(srcdir)/clutter-child-meta.c \
172 $(srcdir)/clutter-click-action.c \
173 $(srcdir)/clutter-clone.c \
174 $(srcdir)/clutter-color.c \
175 $(srcdir)/clutter-colorize-effect.c \
176 $(srcdir)/clutter-constraint.c \
177 $(srcdir)/clutter-container.c \
178 $(srcdir)/clutter-deform-effect.c \
179 $(srcdir)/clutter-desaturate-effect.c \
180 $(srcdir)/clutter-device-manager.c \
181 $(srcdir)/clutter-drag-action.c \
182 $(srcdir)/clutter-effect.c \
183 $(srcdir)/clutter-event.c \
184 $(srcdir)/clutter-feature.c \
185 $(srcdir)/clutter-fixed.c \
186 $(srcdir)/clutter-fixed-layout.c \
187 $(srcdir)/clutter-flow-layout.c \
188 $(srcdir)/clutter-frame-source.c \
189 $(srcdir)/clutter-group.c \
190 $(srcdir)/clutter-input-device.c \
191 $(srcdir)/clutter-interval.c \
192 $(srcdir)/clutter-layout-manager.c \
193 $(srcdir)/clutter-layout-meta.c \
194 $(srcdir)/clutter-list-model.c \
195 $(srcdir)/clutter-main.c \
196 $(srcdir)/clutter-master-clock.c \
197 $(srcdir)/clutter-media.c \
198 $(srcdir)/clutter-model.c \
199 $(srcdir)/clutter-offscreen-effect.c \
200 $(srcdir)/clutter-page-turn-effect.c \
201 $(srcdir)/clutter-path-constraint.c \
202 $(srcdir)/clutter-path.c \
203 $(srcdir)/clutter-rectangle.c \
204 $(srcdir)/clutter-score.c \
205 $(srcdir)/clutter-script.c \
206 $(srcdir)/clutter-script-parser.c \
207 $(srcdir)/clutter-scriptable.c \
208 $(srcdir)/clutter-settings.c \
209 $(srcdir)/clutter-shader.c \
210 $(srcdir)/clutter-shader-effect.c \
211 $(srcdir)/clutter-shader-types.c \
212 $(srcdir)/clutter-snap-constraint.c \
213 $(srcdir)/clutter-stage.c \
214 $(srcdir)/clutter-stage-manager.c \
215 $(srcdir)/clutter-stage-window.c \
216 $(srcdir)/clutter-state.c \
217 $(srcdir)/clutter-table-layout.c \
218 $(srcdir)/clutter-texture.c \
219 $(srcdir)/clutter-text.c \
220 $(srcdir)/clutter-timeline.c \
221 $(srcdir)/clutter-timeout-pool.c \
222 $(srcdir)/clutter-units.c \
223 $(srcdir)/clutter-util.c \
224 $(srcdir)/clutter-paint-volume.c \
227 # private headers; these should not be distributed or introspected
229 $(srcdir)/clutter-actor-meta-private.h \
230 $(srcdir)/clutter-actor-private.h \
231 $(srcdir)/clutter-backend-private.h \
232 $(srcdir)/clutter-bezier.h \
233 $(srcdir)/clutter-debug.h \
234 $(srcdir)/clutter-device-manager-private.h \
235 $(srcdir)/clutter-id-pool.h \
236 $(srcdir)/clutter-keysyms-table.h \
237 $(srcdir)/clutter-master-clock.h \
238 $(srcdir)/clutter-model-private.h \
239 $(srcdir)/clutter-paint-volume-private.h \
240 $(srcdir)/clutter-private.h \
241 $(srcdir)/clutter-profile.h \
242 $(srcdir)/clutter-script-private.h \
243 $(srcdir)/clutter-stage-manager-private.h \
244 $(srcdir)/clutter-stage-private.h \
245 $(srcdir)/clutter-timeout-interval.h \
248 # private source code; these should not be introspected
250 $(srcdir)/clutter-id-pool.c \
251 $(srcdir)/clutter-profile.c \
252 $(srcdir)/clutter-timeout-interval.c \
257 clutter-enum-types.c \
263 clutter-enum-types.h \
268 DISTCLEANFILES += clutter-version.h
269 EXTRA_DIST += clutter-version.h.in
271 # key symbol update script
272 EXTRA_DIST += clutter-keysyms-update.pl
274 pc_files += clutter-$(CLUTTER_API_VERSION).pc
276 # backends source listings
278 # backend_source_c := source code
279 # backend_source_h := installed public headers
280 # backend_source_c_priv := source that should not be scanned by g-i
281 # backend_source_h_priv := private headers
282 # backend_source_built := built sources
286 backend_source_c_priv =
287 backend_source_h_priv =
288 backend_source_built =
292 $(srcdir)/x11/clutter-backend-x11.c \
293 $(srcdir)/x11/clutter-device-manager-x11.c \
294 $(srcdir)/x11/clutter-event-x11.c \
295 $(srcdir)/x11/clutter-input-device-x11.c \
296 $(srcdir)/x11/clutter-keymap-x11.c \
297 $(srcdir)/x11/clutter-stage-x11.c \
298 $(srcdir)/x11/clutter-x11-texture-pixmap.c \
302 $(srcdir)/x11/clutter-x11.h \
303 $(srcdir)/x11/clutter-x11-texture-pixmap.h \
306 x11_source_h_priv = \
307 $(srcdir)/x11/clutter-backend-x11.h \
308 $(srcdir)/x11/clutter-device-manager-x11.h \
309 $(srcdir)/x11/clutter-input-device-x11.h \
310 $(srcdir)/x11/clutter-keymap-x11.h \
311 $(srcdir)/x11/clutter-settings-x11.h \
312 $(srcdir)/x11/clutter-stage-x11.h \
315 x11_source_c_priv = \
316 $(srcdir)/x11/xsettings/xsettings-client.c \
317 $(srcdir)/x11/xsettings/xsettings-client.h \
318 $(srcdir)/x11/xsettings/xsettings-common.c \
319 $(srcdir)/x11/xsettings/xsettings-common.h \
323 backend_source_h += $(x11_source_h)
324 backend_source_c += $(x11_source_c)
325 backend_source_h_priv += $(x11_source_h_priv)
326 backend_source_c_priv += $(x11_source_c_priv)
328 # the list of files we want to introspect on X11
329 x11_introspection = $(x11_source_c) $(x11_source_h)
331 # pkg-config file for the X11 meta-backend
332 clutter-x11-$(CLUTTER_API_VERSION).pc: clutter-$(CLUTTER_API_VERSION).pc
333 $(QUIET_GEN)cp -f $< $(@F)
335 pc_files += clutter-x11-$(CLUTTER_API_VERSION).pc
337 clutterx11_includedir = $(clutter_includedir)/x11
338 clutterx11_include_HEADERS = $(x11_source_h)
343 $(srcdir)/glx/clutter-backend-glx.c \
344 $(srcdir)/glx/clutter-event-glx.c \
345 $(srcdir)/glx/clutter-glx-texture-pixmap.c \
346 $(srcdir)/glx/clutter-stage-glx.c \
350 $(srcdir)/glx/clutter-glx-texture-pixmap.h \
351 $(srcdir)/glx/clutter-glx.h \
354 glx_source_h_priv = \
355 $(srcdir)/glx/clutter-backend-glx.h \
356 $(srcdir)/glx/clutter-event-glx.h \
357 $(srcdir)/glx/clutter-stage-glx.h \
361 backend_source_h += $(glx_source_h)
362 backend_source_c += $(glx_source_c)
363 backend_source_h_priv += $(glx_source_h_priv)
365 # XXX - this is another hack; we installed glx headers under includedir/glx
366 # instead of using the same directory.
367 clutterglx_includedir = $(clutter_includedir)/glx
368 clutterglx_include_HEADERS = $(glx_source_h)
371 # Windows backend rules
373 $(srcdir)/win32/clutter-backend-win32.c \
374 $(srcdir)/win32/clutter-device-manager-win32.c \
375 $(srcdir)/win32/clutter-event-win32.c \
376 $(srcdir)/win32/clutter-stage-win32.c \
380 $(srcdir)/win32/clutter-win32.h \
383 win32_source_h_priv = \
384 $(srcdir)/win32/clutter-backend-win32.h \
385 $(srcdir)/win32/clutter-device-manager-win32.h \
386 $(srcdir)/win32/clutter-stage-win32.h \
390 # Ideally this resources stuff would go in win32/ but libtool doesn't
391 # seem to pass on the -Wl argument when linking a convenience library
392 # so we need to do it here as part of linking the dll. libtool also
393 # won't let you link against the .o directly because it wants you to
394 # link against libtool objects for dynamic libraries.
396 $(WINDRES) -I$(srcdir)/win32 $< $@
398 win32/resources.o : $(srcdir)/win32/invisible-cursor.cur
400 win32_resources = win32/resources.o
401 win32_resources_ldflag = -Wl,win32/resources.o
403 backend_source_h += $(win32_source_h)
404 backend_source_c += $(win32_source_c)
405 backend_source_h_priv += $(win32_source_h_priv)
407 clutterwin_includedir = $(clutter_includedir)/win32
408 clutterwin_include_HEADERS = $(win32_source_h)
409 endif # SUPPORT_WIN32
412 $(srcdir)/win32/invisible-cursor.cur \
413 $(srcdir)/win32/resources.rc \
418 $(srcdir)/egl/clutter-egl-headers.h \
419 $(srcdir)/egl/clutter-egl.h \
423 $(srcdir)/egl/clutter-backend-egl.c \
424 $(srcdir)/egl/clutter-stage-egl.c \
427 egl_source_h_priv = \
428 $(srcdir)/egl/clutter-backend-egl.h \
429 $(srcdir)/egl/clutter-stage-egl.h \
434 egl_tslib_c = $(srcdir)/egl/clutter-event-tslib.c
437 $(srcdir)/evdev/clutter-xkb-utils.c \
438 $(srcdir)/evdev/clutter-device-manager-evdev.c \
439 $(srcdir)/evdev/clutter-input-device-evdev.c \
442 $(srcdir)/evdev/clutter-xkb-utils.h \
443 $(srcdir)/evdev/clutter-device-manager-evdev.h \
444 $(srcdir)/evdev/clutter-input-device-evdev.h \
447 egl_cex_c_priv = $(srcdir)/egl/clutter-backend-cex100.c
448 egl_cex_h_priv = $(srcdir)/egl/clutter-backend-cex100.h
449 egl_cex_h = $(srcdir)/egl/clutter-cex100.h
454 egl_source_c_priv += $(egl_tslib_c)
455 endif # SUPPORT_TSLIB
458 egl_source_c_priv += $(evdev_c_priv)
459 egl_source_h_priv += $(evdev_h_priv)
460 endif # SUPPORT_EVDEV
463 egl_source_c_priv += $(egl_cex_c_priv)
464 egl_source_h_priv += $(egl_cex_h_priv)
465 egl_source_h += $(egl_cex_h)
466 endif # SUPPORT_CEX100
468 backend_source_h += $(egl_source_h)
469 backend_source_c += $(egl_source_c)
470 backend_source_h_priv += $(egl_source_h_priv)
471 backend_source_c_priv += $(egl_source_c_priv)
473 clutteregl_includedir = $(clutter_includedir)/egl
474 clutteregl_include_HEADERS = $(egl_source_h)
479 $(srcdir)/osx/clutter-backend-osx.c \
480 $(srcdir)/osx/clutter-stage-osx.c \
483 osx_source_h = $(srcdir)/osx/clutter-osx.h
485 osx_source_h_priv = \
486 $(srcdir)/osx/clutter-backend-osx.h \
487 $(srcdir)/osx/clutter-stage-osx.h \
490 osx_source_c_priv = $(srcdir)/osx/clutter-event-osx.c
493 # we need to tell the compiler that part of our code base is
495 AM_CFLAGS += -xobjective-c
497 backend_source_h += $(osx_source_h)
498 backend_source_c += $(osx_source_c)
499 backend_source_h_priv += $(osx_source_h_priv)
500 backend_source_c_priv += $(osx_source_c_priv)
502 clutterosx_includedir = $(clutter_includedir)/osx
503 clutterosx_include_HEADERS = $(osx_source_h)
506 # Fruity backend rules
508 $(srcdir)/fruity/clutter-backend-fruity.c \
509 $(srcdir)/fruity/clutter-stage-fruity.c \
510 $(srcdir)/fruity/clutter-fruity.c \
514 $(srcdir)/fruity/clutter-backend-fruity.h \
515 $(srcdir)/fruity/clutter-stage-fruity.h \
516 $(srcdir)/fruity/clutter-fruity.h \
520 AM_CFLAGS += -xobjective-c
522 backend_source_c_priv += $(fruity_source_c)
523 backend_source_h_priv += $(fruity_source_h)
525 clutterfruity_includedir = $(clutter_includedir)/fruity
526 clutterfruity_include_HEADERS = $(srcdir)/fruity/clutter-fruity.h
527 endif # SUPPORT_FRUITY
529 # Wayland backend rules
531 backend_source_h += \
532 $(srcdir)/wayland/clutter-wayland.h
534 backend_source_h_priv += \
535 $(srcdir)/evdev/clutter-xkb-utils.h \
536 $(srcdir)/wayland/clutter-backend-wayland.h \
537 $(srcdir)/wayland/clutter-stage-wayland.h
539 backend_source_c += \
540 $(srcdir)/evdev/clutter-xkb-utils.c \
541 $(srcdir)/wayland/clutter-backend-wayland.c \
542 $(srcdir)/wayland/clutter-stage-wayland.c \
543 $(srcdir)/wayland/clutter-event-wayland.c \
544 $(srcdir)/wayland/clutter-input-device-wayland.c
546 clutterwayland_includedir = $(clutter_includedir)/wayland
547 clutterwayland_include_HEADERS = $(wayland_source_h)
548 endif # SUPPORT_WAYLAND
552 $(srcdir)/cally/cally-actor.h \
553 $(srcdir)/cally/cally-clone.h \
554 $(srcdir)/cally/cally-factory.h \
555 $(srcdir)/cally/cally-group.h \
556 $(srcdir)/cally/cally.h \
557 $(srcdir)/cally/cally-main.h \
558 $(srcdir)/cally/cally-rectangle.h \
559 $(srcdir)/cally/cally-root.h \
560 $(srcdir)/cally/cally-stage.h \
561 $(srcdir)/cally/cally-text.h \
562 $(srcdir)/cally/cally-texture.h \
563 $(srcdir)/cally/cally-util.h \
567 $(srcdir)/cally/cally-actor.c \
568 $(srcdir)/cally/cally.c \
569 $(srcdir)/cally/cally-clone.c \
570 $(srcdir)/cally/cally-group.c \
571 $(srcdir)/cally/cally-rectangle.c \
572 $(srcdir)/cally/cally-root.c \
573 $(srcdir)/cally/cally-stage.c \
574 $(srcdir)/cally/cally-text.c \
575 $(srcdir)/cally/cally-texture.c \
576 $(srcdir)/cally/cally-util.c \
579 cally_sources_private = \
580 $(srcdir)/cally/cally-actor-private.h \
583 cally_includedir = $(clutter_base_includedir)/cally
584 cally_include_HEADERS = $(cally_sources_h)
586 pc_files += cally/cally-$(CLUTTER_API_VERSION).pc
587 EXTRA_DIST += cally/cally.pc.in
589 # general build rules:
590 # you should not need to modify anything below this point
592 # glib-genmarshal rules
593 glib_marshal_list = clutter-marshal.list
594 glib_marshal_prefix = _clutter_marshal
595 include $(top_srcdir)/build/autotools/Makefile.am.marshal
598 glib_enum_h = clutter-enum-types.h
599 glib_enum_c = clutter-enum-types.c
600 glib_enum_headers = $(source_h) $(backend_source_h)
601 include $(top_srcdir)/build/autotools/Makefile.am.enums
603 # backend-specific pkg-config file
604 clutter-$(CLUTTER_WINSYS)-$(CLUTTER_API_VERSION).pc: clutter-$(CLUTTER_API_VERSION).pc
605 $(QUIET_GEN)cp -f $< $(@F)
607 pc_files += clutter-$(CLUTTER_WINSYS)-$(CLUTTER_API_VERSION).pc
609 pkgconfigdir = $(libdir)/pkgconfig
610 pkgconfig_DATA = $(pc_files)
611 DISTCLEANFILES += $(pc_files)
613 clutter_include_HEADERS = $(source_h) $(top_srcdir)/clutter/clutter.h
614 nodist_clutter_include_HEADERS = \
615 $(top_builddir)/clutter/clutter-version.h \
618 lib_LTLIBRARIES += libclutter-@CLUTTER_SONAME_INFIX@-@CLUTTER_API_VERSION@.la
620 libclutter_@CLUTTER_SONAME_INFIX@_@CLUTTER_API_VERSION@_la_LIBADD = \
622 $(CLUTTER_PROFILE_LIBS) \
623 $(top_builddir)/clutter/cogl/cogl/libclutter-cogl.la \
624 $(top_builddir)/clutter/cogl/pango/libcoglpango.la
626 libclutter_@CLUTTER_SONAME_INFIX@_@CLUTTER_API_VERSION@_la_DEPENDENCIES = \
627 $(top_builddir)/clutter/cogl/cogl/libclutter-cogl.la \
628 $(top_builddir)/clutter/cogl/pango/libcoglpango.la \
631 libclutter_@CLUTTER_SONAME_INFIX@_@CLUTTER_API_VERSION@_la_SOURCES = \
632 $(backend_source_c) \
633 $(backend_source_h) \
634 $(backend_source_c_priv) \
635 $(backend_source_h_priv) \
642 $(cally_sources_private) \
645 nodist_libclutter_@CLUTTER_SONAME_INFIX@_@CLUTTER_API_VERSION@_la_SOURCES = \
646 $(backend_source_built) \
650 libclutter_@CLUTTER_SONAME_INFIX@_@CLUTTER_API_VERSION@_la_LDFLAGS = \
651 $(CLUTTER_LINK_FLAGS) \
652 $(CLUTTER_LT_LDFLAGS) \
655 -export-symbols-regex "^(clutter|cogl|cally).*" \
657 $(win32_resources_ldflag) \
660 # gobject-introspection rules
661 -include $(INTROSPECTION_MAKEFILE)
663 if HAVE_INTROSPECTION
664 INTROSPECTION_GIRS += Clutter-@CLUTTER_API_VERSION@.gir
666 Clutter-@CLUTTER_API_VERSION@.gir: libclutter-@CLUTTER_SONAME_INFIX@-@CLUTTER_API_VERSION@.la Makefile
668 Clutter_@CLUTTER_API_VERSION_AM@_gir_NAMESPACE = Clutter
669 Clutter_@CLUTTER_API_VERSION_AM@_gir_VERSION = @CLUTTER_API_VERSION@
670 Clutter_@CLUTTER_API_VERSION_AM@_gir_LIBS = libclutter-@CLUTTER_SONAME_INFIX@-@CLUTTER_API_VERSION@.la
671 Clutter_@CLUTTER_API_VERSION_AM@_gir_FILES = $(clutter_include_HEADERS) $(nodist_clutter_include_HEADERS) $(source_c) $(built_source_c)
672 Clutter_@CLUTTER_API_VERSION_AM@_gir_CFLAGS = $(INCLUDES) $(CLUTTER_CFLAGS) $(AM_CPPFLAGS) -UCLUTTER_DISABLE_DEPRECATED
673 Clutter_@CLUTTER_API_VERSION_AM@_gir_INCLUDES = GL-1.0 GObject-2.0 Atk-1.0 Pango-1.0 PangoCairo-1.0 Json-1.0
674 Clutter_@CLUTTER_API_VERSION_AM@_gir_SCANNERFLAGS = \
675 --c-include='clutter/clutter.h' \
676 --pkg-export=clutter-@CLUTTER_API_VERSION@ \
677 --include-uninstalled=$(top_builddir)/clutter/cogl/cogl/Cogl-@CLUTTER_API_VERSION@.gir
679 # Cogl.gir is used included into Clutter.gir, so it needs to be built
680 # before the typelib is generated
681 Clutter-@CLUTTER_API_VERSION@.typelib: Cogl-@CLUTTER_API_VERSION@.gir
683 # We build Cogl.gir in the cogl/ subdir, but it needs to reference the shared
684 # library that it's built into, so we delay compiling the gir into typelib
685 # until after we've built the shared library. To create the final Cogl.gir
686 # that we compile and install, we transfer the shared-library="" line from
687 # Clutter.gir to Cogl.gir
688 Cogl-@CLUTTER_API_VERSION@.gir: Makefile Clutter-@CLUTTER_API_VERSION@.gir cogl/cogl/Cogl-@CLUTTER_API_VERSION@.gir
690 shlib=`sed -n 's/.*shared-library="\([^"]*\)".*/\1/p' < Clutter-@CLUTTER_API_VERSION@.gir` ; \
691 sed "s/shared-library=\"[^\"]*\"/shared-library=\"$$shlib\"/"< cogl/cogl/Cogl-@CLUTTER_API_VERSION@.gir > $@
693 BUILT_GIRSOURCES += Cogl-@CLUTTER_API_VERSION@.gir
695 Cally-@CLUTTER_API_VERSION@.gir: Makefile Clutter-@CLUTTER_API_VERSION@.gir Cogl-@CLUTTER_API_VERSION@.gir
697 Cally_@CLUTTER_API_VERSION_AM@_gir_NAMESPACE = Cally
698 Cally_@CLUTTER_API_VERSION_AM@_gir_VERSION = @CLUTTER_API_VERSION@
699 Cally_@CLUTTER_API_VERSION_AM@_gir_LIBS = libclutter-@CLUTTER_SONAME_INFIX@-@CLUTTER_API_VERSION@.la
700 Cally_@CLUTTER_API_VERSION_AM@_gir_FILES = $(cally_sources_h) $(cally_sources_c)
701 Cally_@CLUTTER_API_VERSION_AM@_gir_CFLAGS = $(INCLUDES) $(CLUTTER_CFLAGS) $(AM_CPPFLAGS) -UCLUTTER_DISABLE_DEPRECATED
702 Cally_@CLUTTER_API_VERSION_AM@_gir_SCANNERFLAGS = \
703 --identifier-prefix=Cally \
704 --symbol-prefix=cally \
705 --c-include='cally/cally.h' \
706 --pkg-export=cally-@CLUTTER_API_VERSION@ \
707 --include-uninstalled=$(top_builddir)/clutter/Cogl-@CLUTTER_API_VERSION@.gir \
708 --include-uninstalled=$(top_builddir)/clutter/Clutter-@CLUTTER_API_VERSION@.gir
710 INTROSPECTION_GIRS += Cally-@CLUTTER_API_VERSION@.gir
713 ClutterX11-@CLUTTER_API_VERSION@.gir: Makefile Clutter-@CLUTTER_API_VERSION@.gir Cogl-@CLUTTER_API_VERSION@.gir
715 ClutterX11_@CLUTTER_API_VERSION_AM@_gir_SCANNERFLAGS = \
716 --identifier-prefix=ClutterX11 \
717 --symbol-prefix=clutter_x11 \
718 --c-include='clutter/x11/clutter-x11.h' \
719 --pkg-export=clutter-x11-@CLUTTER_API_VERSION@ \
720 --include-uninstalled=$(top_builddir)/clutter/Cogl-@CLUTTER_API_VERSION@.gir \
721 --include-uninstalled=$(top_builddir)/clutter/Clutter-@CLUTTER_API_VERSION@.gir
722 ClutterX11_@CLUTTER_API_VERSION_AM@_gir_INCLUDES = xlib-2.0
723 ClutterX11_@CLUTTER_API_VERSION_AM@_gir_LIBS = libclutter-@CLUTTER_SONAME_INFIX@-@CLUTTER_API_VERSION@.la
724 ClutterX11_@CLUTTER_API_VERSION_AM@_gir_FILES = $(x11_introspection)
725 ClutterX11_@CLUTTER_API_VERSION_AM@_gir_CFLAGS = $(INCLUDES) $(CLUTTER_CFLAGS) $(AM_CPPFLAGS) -UCLUTTER_DISABLE_DEPRECATED
727 INTROSPECTION_GIRS += ClutterX11-@CLUTTER_API_VERSION@.gir
730 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
731 # install anything - we need to install inside our prefix.
732 girdir = $(datadir)/gir-1.0
733 gir_DATA = $(BUILT_GIRSOURCES) $(INTROSPECTION_GIRS)
735 typelibsdir = $(libdir)/girepository-1.0/
736 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib) $(INTROSPECTION_GIRS:.gir=.typelib)
738 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
739 endif # HAVE_INTROSPECTION
742 gcov_sources = $(source_c) $(backend_source_c)
743 include $(top_srcdir)/build/autotools/Makefile.am.gcov