[Swfdec] libswfdec/Makefile.am

Benjamin Otte company at kemper.freedesktop.org
Mon Dec 3 07:46:42 PST 2007


 libswfdec/Makefile.am |   20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

New commits:
commit 66095ac2692402646afcc0732c13dc4b3996433d
Author: Benjamin Otte <otte at gnome.org>
Date:   Mon Dec 3 16:46:24 2007 +0100

    fix non-srcdir builds from autogen'd sources

diff --git a/libswfdec/Makefile.am b/libswfdec/Makefile.am
index aad0e05..d5cf0da 100644
--- a/libswfdec/Makefile.am
+++ b/libswfdec/Makefile.am
@@ -14,7 +14,8 @@ endif
 
 lib_LTLIBRARIES = libswfdec- at SWFDEC_MAJORMINOR@.la
 
-libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES = \
+# these are files that must be in SRCDIR
+libswfdec_source_files = \
 	swfdec_accessibility.c \
 	swfdec_as_array.c \
 	swfdec_as_boolean.c \
@@ -76,7 +77,6 @@ libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES = \
 	swfdec_text_renderer.c \
 	swfdec_text_snapshot.c \
 	swfdec_transform.c \
-	swfdec_enums.c \
 	swfdec_event.c \
 	swfdec_external_interface.c \
 	swfdec_file_loader.c \
@@ -102,7 +102,6 @@ libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES = \
 	swfdec_loadertarget.c \
 	swfdec_loadvars_as.c \
 	swfdec_local_connection.c \
-	swfdec_marshal.c \
 	swfdec_microphone.c \
 	swfdec_morph_movie.c \
 	swfdec_morphshape.c \
@@ -157,6 +156,11 @@ libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES = \
 	swfdec_xml.c \
 	swfdec_xml_socket.c
 
+libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES = \
+  	$(libswfdec_source_files) \
+	swfdec_enums.c \
+	swfdec_marshal.c
+
 libswfdec_ at SWFDEC_MAJORMINOR@_la_CFLAGS = \
 	$(GLOBAL_CFLAGS) $(CAIRO_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) \
 	-I$(top_srcdir) -I$(srcdir)/jpeg/ $(LIBOIL_CFLAGS) \
@@ -297,21 +301,21 @@ BUILT_SOURCES = \
 CLEANFILES = \
 	$(BUILT_SOURCES)
 
-swfdec_asnative.h: $(libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES)
+swfdec_asnative.h: $(libswfdec_source_files)
 	(cd $(srcdir) \
 	  && echo "#include \"swfdec_as_types.h\"" \
 	  && echo "#define SWFDEC_AS_NATIVE(x,y,func) void func (SwfdecAsContext *cx, \\" \
 	  && echo "    SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret);" \
 	  && echo "#define SWFDEC_AS_CONSTRUCTOR(x,y,func,type) SWFDEC_AS_NATIVE(x,y,func) GType type (void);" \
-	  && grep -he "^SWFDEC_AS_CONSTRUCTOR" $(libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES) \
-	  && grep -he "^SWFDEC_AS_NATIVE" $(libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES) \
+	  && grep -he "^SWFDEC_AS_CONSTRUCTOR" $(libswfdec_source_files) \
+	  && grep -he "^SWFDEC_AS_NATIVE" $(libswfdec_source_files) \
 	  && echo "#undef SWFDEC_AS_CONSTRUCTOR" \
 	  && echo "#undef SWFDEC_AS_NATIVE" \
 	  && echo "#define SWFDEC_AS_NATIVE(x,y,func) SWFDEC_AS_CONSTRUCTOR(x,y,func,NULL)" \
 	  && echo "#define SWFDEC_AS_CONSTRUCTOR(x,y,func,type) { x, y, func, G_STRINGIFY (func), type }," \
 	  && echo "static const struct { guint x, y; SwfdecAsNative func; const char *name; GType (* get_type) (void); } native_funcs[] = {" \
-	  && grep -he "^SWFDEC_AS_CONSTRUCTOR" $(libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES) \
-	  && grep -he "^SWFDEC_AS_NATIVE" $(libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES) \
+	  && grep -he "^SWFDEC_AS_CONSTRUCTOR" $(libswfdec_source_files) \
+	  && grep -he "^SWFDEC_AS_NATIVE" $(libswfdec_source_files) \
 	  && echo "  { 0, 0, NULL }" \
 	  && echo "};" \
 	  && echo "#undef SWFDEC_AS_CONSTRUCTOR" \


More information about the Swfdec mailing list