2009-02-17 09:56:35 -05:00
|
|
|
NULL =
|
|
|
|
V = @
|
|
|
|
Q = $(V:1=)
|
|
|
|
QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
|
2007-03-22 14:21:59 -04:00
|
|
|
|
2008-06-30 11:58:25 -04:00
|
|
|
SUBDIRS = cogl pango $(backendextra) $(clutterbackend)
|
2008-04-23 09:58:58 -04:00
|
|
|
|
|
|
|
if LOCAL_JSON_GLIB
|
|
|
|
SUBDIRS += json
|
|
|
|
clutter_json_include = -I$(top_srcdir)/clutter/json
|
|
|
|
clutter_json_dep = json/libclutter-json.la
|
|
|
|
clutter_json_libadd = $(top_builddir)/clutter/json/libclutter-json.la
|
|
|
|
endif
|
2007-03-22 14:21:59 -04:00
|
|
|
|
2008-04-28 12:57:44 -04:00
|
|
|
DIST_SUBDIRS = pango glx eglx eglnative cogl sdl json osx x11 win32 fruity
|
2007-03-22 14:21:59 -04:00
|
|
|
|
|
|
|
target = $(clutterbackend)
|
2006-10-03 17:59:30 -04:00
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
MARSHALFILES = clutter-marshal.c clutter-marshal.h
|
|
|
|
ENUMFILES = clutter-enum-types.c clutter-enum-types.h
|
2006-11-20 07:02:24 -05:00
|
|
|
STAMPFILES = stamp-clutter-marshal.h stamp-clutter-enum-types.h
|
2006-05-29 04:59:36 -04:00
|
|
|
|
2007-03-22 14:21:59 -04:00
|
|
|
INCLUDES = \
|
2008-01-25 14:48:26 -05:00
|
|
|
-I$(top_srcdir) \
|
2009-02-28 14:13:18 -05:00
|
|
|
-I$(top_srcdir)/clutter/cogl \
|
2008-01-25 14:48:26 -05:00
|
|
|
-I$(top_srcdir)/clutter/pango \
|
2008-04-25 09:37:36 -04:00
|
|
|
-I$(top_srcdir)/clutter \
|
2008-04-23 09:58:58 -04:00
|
|
|
$(clutter_json_include) \
|
2008-04-25 09:37:36 -04:00
|
|
|
-I$(top_builddir)/clutter \
|
2008-01-25 14:48:26 -05:00
|
|
|
-DCLUTTER_PREFIX=\""$(prefix)"\" \
|
|
|
|
-DCLUTTER_LIBDIR=\""$(libdir)"\" \
|
|
|
|
-DCLUTTER_DATADIR=\""$(datadir)"\" \
|
2008-04-23 09:58:58 -04:00
|
|
|
-DCLUTTER_COMPILATION=1 \
|
2008-01-25 14:48:26 -05:00
|
|
|
-DG_DISABLE_DEPRECATED \
|
|
|
|
-DG_LOG_DOMAIN=\"Clutter\" \
|
|
|
|
$(CLUTTER_CFLAGS) \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(NULL)
|
|
|
|
|
2009-02-21 08:44:14 -05:00
|
|
|
AM_CFLAGS = $(GCC_FLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
2009-02-20 09:39:51 -05:00
|
|
|
|
2007-03-22 14:21:59 -04:00
|
|
|
LDADD = \
|
2007-12-31 09:52:17 -05:00
|
|
|
$(CLUTTER_LT_LDFLAGS) \
|
2007-03-22 14:21:59 -04:00
|
|
|
-export-dynamic \
|
2008-04-09 10:18:42 -04:00
|
|
|
-export-symbols-regex "^(clutter|cogl|json|pango).*" \
|
2007-03-22 14:21:59 -04:00
|
|
|
-rpath $(libdir) \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-05-29 04:59:36 -04:00
|
|
|
BUILT_SOURCES = $(MARSHALFILES) $(ENUMFILES)
|
|
|
|
|
2007-06-09 09:20:22 -04:00
|
|
|
# please, keep this sorted alphabetically
|
2006-11-15 18:37:53 -05:00
|
|
|
source_h = \
|
|
|
|
$(srcdir)/clutter-actor.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-alpha.h \
|
2009-01-08 07:56:46 -05:00
|
|
|
$(srcdir)/clutter-animatable.h \
|
2008-11-17 Emmanuele Bassi <ebassi@linux.intel.com>
Bug 1014 - Clutter Animation API Improvements
* clutter/Makefile.am:
* clutter/clutter.h: Update the build
* clutter/clutter-types.h: Add AnimationMode, an enumeration
for easing functions.
* clutter/clutter-alpha.[ch]: Add the :mode property to
control the function bound to an Alpha instance using an
enumeration value. Also add six new alpha functions:
- ease-in, ease-out, ease-in-out
- sine-in, sine-out, sine-in-out
* clutter/clutter-deprecated.h: Deprecate the #defines for
the alpha functions. They will be replaced by entries in the
ClutterAnimationMode.
* clutter/clutter-interval.[ch]: Add ClutterInterval, an
object for defining, validating and computing an interval
between two values.
* clutter/clutter-animation.[ch]: Add ClutterAnimation, an
object responsible for animation the properties of a single
actor along an interval of values. ClutterAnimation memory
management is automatic. A simple wrapper method for
ClutterActor is provided:
clutter_actor_animate()
which will create, or update, an animation for the passed
actor.
* clutter/clutter-debug.h:
* clutter/clutter-main.c: Add a new 'animation' debug note.
* clutter/clutter-script.c: Clean up the alpha functions
whitelist, and add the new functions.
* doc/reference/clutter/Makefile.am:
* doc/reference/clutter/clutter-sections.txt: Update the
API reference.
* doc/reference/clutter/clutter-animation.xml: Renamed to
doc/reference/clutter/clutter-animation-tutorial.xml to
avoid clashes with the ClutterAnimation section.
* doc/reference/clutter/clutter-docs.sgml: Renamed to
doc/reference/clutter/clutter-docs.xml, as it was an XML
file and not a SGML file.
* tests/Makefile.am:
* tests/interactive/Makefile.am:
* tests/interactive/test-animation.c:
* tests/interactive/test-easing.c: Add two tests for the
new simple animation API and the easing functions.
* tests/interactive/test-actors.c:
* tests/interactive/test-behave.c:
* tests/interactive/test-depth.c:
* tests/interactive/test-effects.c:
* tests/interactive/test-layout.c:
* tests/interactive/test-multistage.c:
* tests/interactive/test-paint-wrapper.c:
* tests/interactive/test-rotate.c:
* tests/interactive/test-scale.c:
* tests/interactive/test-texture-quality.c:
* tests/interactive/test-threads.c:
* tests/interactive/test-viewport.c: Update interactive tests
to the deprecations and new alpha API.
2008-11-18 04:50:03 -05:00
|
|
|
$(srcdir)/clutter-animation.h \
|
2007-07-04 05:34:24 -04:00
|
|
|
$(srcdir)/clutter-backend.h \
|
2006-11-15 18:37:53 -05:00
|
|
|
$(srcdir)/clutter-behaviour.h \
|
2007-07-09 17:38:43 -04:00
|
|
|
$(srcdir)/clutter-behaviour-depth.h \
|
2007-04-30 04:39:20 -04:00
|
|
|
$(srcdir)/clutter-behaviour-ellipse.h \
|
2006-11-15 18:37:53 -05:00
|
|
|
$(srcdir)/clutter-behaviour-opacity.h \
|
|
|
|
$(srcdir)/clutter-behaviour-path.h \
|
2007-04-16 06:25:30 -04:00
|
|
|
$(srcdir)/clutter-behaviour-rotate.h \
|
2006-11-15 18:37:53 -05:00
|
|
|
$(srcdir)/clutter-behaviour-scale.h \
|
2008-12-08 08:57:10 -05:00
|
|
|
$(srcdir)/clutter-binding-pool.h \
|
2008-12-11 10:24:07 -05:00
|
|
|
$(srcdir)/clutter-cairo-texture.h \
|
2008-05-28 09:48:11 -04:00
|
|
|
$(srcdir)/clutter-child-meta.h \
|
2009-01-26 05:32:53 -05:00
|
|
|
$(srcdir)/clutter-clone.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-color.h \
|
2007-06-07 10:41:35 -04:00
|
|
|
$(srcdir)/clutter-container.h \
|
2007-11-13 09:06:19 -05:00
|
|
|
$(srcdir)/clutter-deprecated.h \
|
2007-06-07 10:41:35 -04:00
|
|
|
$(srcdir)/clutter-event.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-feature.h \
|
|
|
|
$(srcdir)/clutter-fixed.h \
|
2008-05-09 12:27:06 -04:00
|
|
|
$(srcdir)/clutter-frame-source.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-group.h \
|
2008-11-17 Emmanuele Bassi <ebassi@linux.intel.com>
Bug 1014 - Clutter Animation API Improvements
* clutter/Makefile.am:
* clutter/clutter.h: Update the build
* clutter/clutter-types.h: Add AnimationMode, an enumeration
for easing functions.
* clutter/clutter-alpha.[ch]: Add the :mode property to
control the function bound to an Alpha instance using an
enumeration value. Also add six new alpha functions:
- ease-in, ease-out, ease-in-out
- sine-in, sine-out, sine-in-out
* clutter/clutter-deprecated.h: Deprecate the #defines for
the alpha functions. They will be replaced by entries in the
ClutterAnimationMode.
* clutter/clutter-interval.[ch]: Add ClutterInterval, an
object for defining, validating and computing an interval
between two values.
* clutter/clutter-animation.[ch]: Add ClutterAnimation, an
object responsible for animation the properties of a single
actor along an interval of values. ClutterAnimation memory
management is automatic. A simple wrapper method for
ClutterActor is provided:
clutter_actor_animate()
which will create, or update, an animation for the passed
actor.
* clutter/clutter-debug.h:
* clutter/clutter-main.c: Add a new 'animation' debug note.
* clutter/clutter-script.c: Clean up the alpha functions
whitelist, and add the new functions.
* doc/reference/clutter/Makefile.am:
* doc/reference/clutter/clutter-sections.txt: Update the
API reference.
* doc/reference/clutter/clutter-animation.xml: Renamed to
doc/reference/clutter/clutter-animation-tutorial.xml to
avoid clashes with the ClutterAnimation section.
* doc/reference/clutter/clutter-docs.sgml: Renamed to
doc/reference/clutter/clutter-docs.xml, as it was an XML
file and not a SGML file.
* tests/Makefile.am:
* tests/interactive/Makefile.am:
* tests/interactive/test-animation.c:
* tests/interactive/test-easing.c: Add two tests for the
new simple animation API and the easing functions.
* tests/interactive/test-actors.c:
* tests/interactive/test-behave.c:
* tests/interactive/test-depth.c:
* tests/interactive/test-effects.c:
* tests/interactive/test-layout.c:
* tests/interactive/test-multistage.c:
* tests/interactive/test-paint-wrapper.c:
* tests/interactive/test-rotate.c:
* tests/interactive/test-scale.c:
* tests/interactive/test-texture-quality.c:
* tests/interactive/test-threads.c:
* tests/interactive/test-viewport.c: Update interactive tests
to the deprecations and new alpha API.
2008-11-18 04:50:03 -05:00
|
|
|
$(srcdir)/clutter-interval.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-keysyms.h \
|
2008-01-09 09:40:31 -05:00
|
|
|
$(srcdir)/clutter-list-model.h \
|
2007-06-07 10:41:35 -04:00
|
|
|
$(srcdir)/clutter-main.h \
|
2006-11-15 18:37:53 -05:00
|
|
|
$(srcdir)/clutter-media.h \
|
2007-11-15 05:02:25 -05:00
|
|
|
$(srcdir)/clutter-model.h \
|
2008-12-05 08:13:37 -05:00
|
|
|
$(srcdir)/clutter-path.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-rectangle.h \
|
2007-10-25 10:34:54 -04:00
|
|
|
$(srcdir)/clutter-score.h \
|
2007-10-08 11:03:22 -04:00
|
|
|
$(srcdir)/clutter-script.h \
|
2007-10-25 10:34:54 -04:00
|
|
|
$(srcdir)/clutter-scriptable.h \
|
2007-12-05 16:15:19 -05:00
|
|
|
$(srcdir)/clutter-shader.h \
|
2008-11-18 10:08:40 -05:00
|
|
|
$(srcdir)/clutter-shader-types.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-stage.h \
|
2008-03-28 18:50:55 -04:00
|
|
|
$(srcdir)/clutter-stage-manager.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-texture.h \
|
2008-12-11 06:12:48 -05:00
|
|
|
$(srcdir)/clutter-text.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-timeline.h \
|
2007-06-09 09:19:52 -04:00
|
|
|
$(srcdir)/clutter-timeout-pool.h \
|
2007-07-26 09:13:23 -04:00
|
|
|
$(srcdir)/clutter-types.h \
|
2007-05-22 05:31:40 -04:00
|
|
|
$(srcdir)/clutter-units.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(srcdir)/clutter-util.h \
|
2008-04-25 09:37:36 -04:00
|
|
|
$(top_builddir)/clutter/clutter-version.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(NULL)
|
2007-01-23 15:29:11 -05:00
|
|
|
|
2006-11-20 07:02:24 -05:00
|
|
|
clutter-marshal.h: stamp-clutter-marshal.h
|
|
|
|
@true
|
|
|
|
stamp-clutter-marshal.h: clutter-marshal.list
|
2009-02-17 09:56:35 -05:00
|
|
|
$(QUIET_GEN)$(GLIB_GENMARSHAL) \
|
2006-11-20 07:02:24 -05:00
|
|
|
--prefix=clutter_marshal \
|
|
|
|
--header \
|
|
|
|
$(srcdir)/clutter-marshal.list > xgen-cmh \
|
|
|
|
&& (cmp -s xgen-cmh clutter-marshal.h || cp xgen-cmh clutter-marshal.h ) \
|
|
|
|
&& rm -f xgen-cmh \
|
|
|
|
&& echo timestamp > $(@F)
|
2006-05-29 04:59:36 -04:00
|
|
|
|
2006-11-20 07:02:24 -05:00
|
|
|
clutter-marshal.c: clutter-marshal.h Makefile
|
2009-02-17 09:56:35 -05:00
|
|
|
$(QUIET_GEN)( echo "#include \"clutter-marshal.h\"" ; \
|
2006-11-20 07:02:24 -05:00
|
|
|
$(GLIB_GENMARSHAL) \
|
|
|
|
--prefix=clutter_marshal \
|
|
|
|
--body \
|
|
|
|
$(srcdir)/clutter-marshal.list --body ) >> xgen-cmc \
|
|
|
|
&& cp xgen-cmc clutter-marshal.c \
|
|
|
|
&& rm -f xgen-cmc
|
2006-05-29 04:59:36 -04:00
|
|
|
|
|
|
|
clutter-enum-types.h: stamp-clutter-enum-types.h
|
|
|
|
@true
|
|
|
|
stamp-clutter-enum-types.h: $(source_h) Makefile
|
2009-02-17 09:56:35 -05:00
|
|
|
$(QUIET_GEN)( $(GLIB_MKENUMS) \
|
2007-08-20 16:16:15 -04:00
|
|
|
--template $(srcdir)/clutter-enum-types.h.in \
|
|
|
|
$(source_h) ) >> xgen-ceth && \
|
2009-02-19 09:57:43 -05:00
|
|
|
(cmp -s xgen-ceth clutter-enum-types.h || cp xgen-ceth clutter-enum-types.h) && \
|
2007-08-20 16:16:15 -04:00
|
|
|
rm -f xgen-ceth && \
|
|
|
|
echo timestamp > $(@F)
|
2006-05-29 04:59:36 -04:00
|
|
|
|
|
|
|
clutter-enum-types.c: clutter-enum-types.h
|
2009-02-17 09:56:35 -05:00
|
|
|
$(QUIET_GEN)( $(GLIB_MKENUMS) \
|
2007-08-20 16:16:15 -04:00
|
|
|
--template $(srcdir)/clutter-enum-types.c.in \
|
|
|
|
$(source_h) ) >> xgen-cetc && \
|
|
|
|
cp xgen-cetc clutter-enum-types.c && \
|
|
|
|
rm -f xgen-cetc
|
2006-05-29 04:59:36 -04:00
|
|
|
|
2007-03-22 14:21:59 -04:00
|
|
|
CLEANFILES = $(STAMPFILES)
|
|
|
|
|
2007-06-09 09:20:22 -04:00
|
|
|
# please, keep this sorted alphabetically
|
2007-03-22 14:21:59 -04:00
|
|
|
source_c = \
|
2009-02-28 14:13:18 -05:00
|
|
|
$(srcdir)/clutter-actor.c \
|
|
|
|
$(srcdir)/clutter-alpha.c \
|
|
|
|
$(srcdir)/clutter-animatable.c \
|
|
|
|
$(srcdir)/clutter-animation.c \
|
|
|
|
$(srcdir)/clutter-backend.c \
|
|
|
|
$(srcdir)/clutter-behaviour.c \
|
|
|
|
$(srcdir)/clutter-behaviour-depth.c \
|
|
|
|
$(srcdir)/clutter-behaviour-ellipse.c \
|
|
|
|
$(srcdir)/clutter-behaviour-opacity.c \
|
|
|
|
$(srcdir)/clutter-behaviour-path.c \
|
|
|
|
$(srcdir)/clutter-behaviour-rotate.c \
|
|
|
|
$(srcdir)/clutter-behaviour-scale.c \
|
|
|
|
$(srcdir)/clutter-bezier.c \
|
|
|
|
$(srcdir)/clutter-binding-pool.c \
|
|
|
|
$(srcdir)/clutter-cairo-texture.c \
|
|
|
|
$(srcdir)/clutter-child-meta.c \
|
|
|
|
$(srcdir)/clutter-clone.c \
|
|
|
|
$(srcdir)/clutter-color.c \
|
|
|
|
$(srcdir)/clutter-container.c \
|
|
|
|
$(srcdir)/clutter-enum-types.c \
|
|
|
|
$(srcdir)/clutter-event.c \
|
|
|
|
$(srcdir)/clutter-feature.c \
|
|
|
|
$(srcdir)/clutter-fixed.c \
|
|
|
|
$(srcdir)/clutter-frame-source.c \
|
|
|
|
$(srcdir)/clutter-group.c \
|
|
|
|
$(srcdir)/clutter-id-pool.c \
|
|
|
|
$(srcdir)/clutter-interval.c \
|
|
|
|
$(srcdir)/clutter-list-model.c \
|
|
|
|
$(srcdir)/clutter-main.c \
|
|
|
|
$(srcdir)/clutter-marshal.c \
|
|
|
|
$(srcdir)/clutter-media.c \
|
|
|
|
$(srcdir)/clutter-model.c \
|
|
|
|
$(srcdir)/clutter-path.c \
|
|
|
|
$(srcdir)/clutter-rectangle.c \
|
|
|
|
$(srcdir)/clutter-score.c \
|
|
|
|
$(srcdir)/clutter-script.c \
|
|
|
|
$(srcdir)/clutter-script-parser.c \
|
|
|
|
$(srcdir)/clutter-scriptable.c \
|
|
|
|
$(srcdir)/clutter-shader.c \
|
|
|
|
$(srcdir)/clutter-shader-types.c \
|
|
|
|
$(srcdir)/clutter-stage.c \
|
|
|
|
$(srcdir)/clutter-stage-manager.c \
|
|
|
|
$(srcdir)/clutter-stage-window.c \
|
|
|
|
$(srcdir)/clutter-texture.c \
|
|
|
|
$(srcdir)/clutter-text.c \
|
|
|
|
$(srcdir)/clutter-timeline.c \
|
|
|
|
$(srcdir)/clutter-timeout-pool.c \
|
|
|
|
$(srcdir)/clutter-units.c \
|
|
|
|
$(srcdir)/clutter-util.c \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
source_h_priv = \
|
2009-02-28 14:13:18 -05:00
|
|
|
$(srcdir)/clutter-bezier.h \
|
|
|
|
$(srcdir)/clutter-debug.h \
|
|
|
|
$(srcdir)/clutter-keysyms-table.h \
|
|
|
|
$(srcdir)/clutter-model-private.h \
|
|
|
|
$(srcdir)/clutter-private.h \
|
|
|
|
$(srcdir)/clutter-id-pool.h \
|
|
|
|
$(srcdir)/clutter-script-private.h \
|
|
|
|
$(srcdir)/clutter-stage-window.h \
|
2007-03-22 14:21:59 -04:00
|
|
|
$(NULL)
|
|
|
|
|
2007-10-08 11:03:22 -04:00
|
|
|
libclutter_@CLUTTER_FLAVOUR@_@CLUTTER_API_VERSION@_la_LIBADD = \
|
|
|
|
$(CLUTTER_LIBS) \
|
2008-10-30 13:11:29 -04:00
|
|
|
$(top_builddir)/clutter/pango/libcoglpango.la \
|
2008-04-23 09:58:58 -04:00
|
|
|
$(top_builddir)/clutter/$(CLUTTER_FLAVOUR)/libclutter-$(CLUTTER_FLAVOUR).la \
|
|
|
|
$(top_builddir)/clutter/cogl/$(CLUTTER_COGL)/libclutter-cogl.la \
|
|
|
|
$(clutter_json_libadd) \
|
2007-12-19 11:16:10 -05:00
|
|
|
$(backendextralib)
|
2007-03-22 14:21:59 -04:00
|
|
|
|
2008-02-20 11:00:33 -05:00
|
|
|
libclutter_@CLUTTER_FLAVOUR@_@CLUTTER_API_VERSION@_la_DEPENDENCIES = \
|
2009-02-28 14:13:18 -05:00
|
|
|
$(top_builddir)/clutter/pango/libcoglpango.la \
|
|
|
|
$(top_builddir)/clutter/$(CLUTTER_FLAVOUR)/libclutter-$(CLUTTER_FLAVOUR).la \
|
|
|
|
$(top_builddir)/clutter/cogl/$(CLUTTER_COGL)/libclutter-cogl.la \
|
2008-04-23 09:58:58 -04:00
|
|
|
$(clutter_json_dep) \
|
2008-02-20 11:00:33 -05:00
|
|
|
$(backendextralib)
|
|
|
|
|
2008-01-25 14:48:26 -05:00
|
|
|
libclutter_@CLUTTER_FLAVOUR@_@CLUTTER_API_VERSION@_la_SOURCES = \
|
|
|
|
$(source_c) \
|
|
|
|
$(source_h) \
|
|
|
|
$(source_h_priv)
|
2007-03-26 19:18:39 -04:00
|
|
|
|
2007-05-22 05:31:40 -04:00
|
|
|
libclutter_@CLUTTER_FLAVOUR@_@CLUTTER_API_VERSION@_la_LDFLAGS = $(LDADD)
|
2007-03-22 14:21:59 -04:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = $(clutterbackendlib)
|
|
|
|
|
2007-05-22 05:31:40 -04:00
|
|
|
EXTRA_LTLIBRARIES = libclutter-@CLUTTER_FLAVOUR@-@CLUTTER_API_VERSION@.la
|
2007-03-22 14:21:59 -04:00
|
|
|
|
2008-01-25 14:48:26 -05:00
|
|
|
clutterdir = $(includedir)/clutter-$(CLUTTER_API_VERSION)/clutter
|
2007-03-22 14:21:59 -04:00
|
|
|
clutter_HEADERS = \
|
|
|
|
$(source_h) \
|
2009-02-28 14:13:18 -05:00
|
|
|
$(top_srcdir)/clutter/clutter-json.h \
|
|
|
|
$(top_srcdir)/clutter/clutter-enum-types.h \
|
|
|
|
$(top_srcdir)/clutter/clutter-version.h \
|
|
|
|
$(top_srcdir)/clutter/clutter.h
|
2007-03-22 14:21:59 -04:00
|
|
|
|
2009-02-20 09:39:51 -05:00
|
|
|
if HAVE_INTROSPECTION
|
|
|
|
BUILT_GIRSOURCES =
|
|
|
|
|
|
|
|
if LOCAL_JSON_GLIB
|
|
|
|
json_gir_include_path=--add-include-path=json
|
|
|
|
endif
|
|
|
|
|
|
|
|
# We can't reference the list of COGL header files, since they are in a
|
|
|
|
# subdir Makefile.am, so just extract them from cogl.h instead. The doc comments
|
|
|
|
# for COGL are in the headers, so we don't need the source files.
|
|
|
|
Clutter-@CLUTTER_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libclutter-@CLUTTER_FLAVOUR@-@CLUTTER_API_VERSION@.la
|
2009-02-28 14:13:18 -05:00
|
|
|
headers=`sed -n "s/#include <cogl\/\([^>]*\)>/\1/p" < $(top_srcdir)/clutter/cogl/cogl.h` ; \
|
|
|
|
cogl_headers="" ; \
|
|
|
|
for header in $$headers; do \
|
|
|
|
cogl_headers="$$cogl_headers $(top_srcdir)/clutter/cogl/$$header " ; \
|
|
|
|
done ; \
|
2009-02-20 09:39:51 -05:00
|
|
|
$(INTROSPECTION_SCANNER) -v --namespace Clutter --nsversion=@CLUTTER_API_VERSION@ \
|
|
|
|
$(INCLUDES) \
|
|
|
|
$(json_gir_include_path) \
|
|
|
|
--include=GL-1.0 \
|
|
|
|
--include=GObject-2.0 \
|
|
|
|
--include=Pango-1.0 \
|
|
|
|
--include=PangoCairo-1.0 \
|
|
|
|
--include=ClutterJson-@CLUTTER_API_VERSION@ \
|
|
|
|
--library=clutter-@CLUTTER_FLAVOUR@-@CLUTTER_API_VERSION@ \
|
|
|
|
--libtool="$(top_builddir)/doltlibtool" \
|
|
|
|
--pkg gobject-2.0 \
|
|
|
|
--pkg pango \
|
|
|
|
--pkg pangocairo \
|
|
|
|
--output $@ \
|
|
|
|
$(clutter_HEADERS) \
|
|
|
|
$$cogl_headers \
|
2009-02-28 14:13:18 -05:00
|
|
|
$(top_builddir)/clutter/cogl/cogl-defines-$(CLUTTER_COGL).h \
|
2009-02-20 09:39:51 -05:00
|
|
|
$(source_c)
|
|
|
|
|
|
|
|
BUILT_GIRSOURCES += Clutter-@CLUTTER_API_VERSION@.gir
|
|
|
|
|
|
|
|
if LOCAL_JSON_GLIB
|
|
|
|
# We build ClutterJson.gir in the json/ subdir, but it needs to reference the shared library
|
|
|
|
# that it's built into, so we delay compiling the gir into typelib until after we've built
|
|
|
|
# the shared library. To create the final ClutterJson.gir that we compiler and install, we
|
|
|
|
# transfer the shared-library="" line from Clutter.gir to ClutterJson.gir
|
|
|
|
ClutterJson-@CLUTTER_API_VERSION@.gir: Clutter-@CLUTTER_API_VERSION@.gir json/ClutterJson-@CLUTTER_API_VERSION@.gir
|
|
|
|
shlib=`sed -n 's/.*shared-library="\([^"]*\)".*/\1/p' < Clutter-@CLUTTER_API_VERSION@.gir` ; \
|
|
|
|
sed "s/shared-library=\"clutter-json\"/shared-library=\"$$shlib\"/"< json/ClutterJson-@CLUTTER_API_VERSION@.gir > $@
|
|
|
|
|
|
|
|
BUILT_GIRSOURCES += ClutterJson-@CLUTTER_API_VERSION@.gir
|
|
|
|
endif
|
|
|
|
|
|
|
|
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to install
|
|
|
|
# thing - we need to install inside our prefix.
|
|
|
|
girdir = $(datadir)/gir-1.0
|
|
|
|
gir_DATA = $(BUILT_GIRSOURCES)
|
|
|
|
|
|
|
|
typelibsdir = $(libdir)/girepository-1.0/
|
|
|
|
typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
|
|
|
|
|
|
|
|
%.typelib: %.gir $(INTROSPECTION_COMPILER)
|
2009-02-26 07:46:36 -05:00
|
|
|
$(QUIET_GEN)$(DEBUG) $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=. $(INTROSPECTION_COMPILER_OPTS) $< -o $(builddir)/$(@F)
|
2009-02-20 09:39:51 -05:00
|
|
|
|
|
|
|
CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
|
|
|
|
endif
|
|
|
|
|
2007-03-22 14:21:59 -04:00
|
|
|
DISTCLEANFILES = \
|
|
|
|
$(ENUMFILES) \
|
|
|
|
$(MARSHALFILES) \
|
|
|
|
clutter-version.h \
|
|
|
|
$(NULL)
|
2006-05-29 04:59:36 -04:00
|
|
|
|
2007-08-20 16:16:15 -04:00
|
|
|
EXTRA_DIST = \
|
|
|
|
clutter-marshal.list \
|
|
|
|
clutter-version.h.in \
|
|
|
|
clutter-enum-types.h.in \
|
2008-01-25 14:48:26 -05:00
|
|
|
clutter-enum-types.c.in \
|
|
|
|
$(NULL)
|