3 noinst_PROGRAMS = compute-strings
5 compute_strings_SOURCES = swfdec_as_strings.c
6 compute_strings_CFLAGS = -DCOMPUTE_SWFDEC_AS_STRINGS_H
11 CODECS += swfdec_codec_ffmpeg.c
14 CODECS += swfdec_codec_gst.c
17 CODECS += swfdec_codec_mad.c
20 lib_LTLIBRARIES = libswfdec-@SWFDEC_MAJORMINOR@.la
22 libswfdec_@SWFDEC_MAJORMINOR@_la_SOURCES = \
27 swfdec_as_debugger.c \
29 swfdec_as_function.c \
30 swfdec_as_interpret.c \
32 swfdec_as_native_function.c \
35 swfdec_as_script_function.c \
42 swfdec_asbroadcaster.c \
44 swfdec_audio_event.c \
46 swfdec_audio_stream.c \
50 swfdec_button_movie.c \
54 swfdec_codec_adpcm.c \
55 swfdec_codec_audio.c \
57 swfdec_codec_screen.c \
58 swfdec_codec_video.c \
59 swfdec_codec_vp6_alpha.c \
66 swfdec_edittext_movie.c \
69 swfdec_file_loader.c \
72 swfdec_flv_decoder.c \
75 swfdec_graphic_movie.c \
76 swfdec_html_parser.c \
80 swfdec_load_object.c \
81 swfdec_load_object_as.c \
83 swfdec_loadertarget.c \
84 swfdec_loadvars_as.c \
86 swfdec_morph_movie.c \
90 swfdec_movie_as_drawing.c \
91 swfdec_movie_asprops.c \
92 swfdec_net_connection.c \
94 swfdec_net_stream_as.c \
101 swfdec_ringbuffer.c \
104 swfdec_shape_parser.c \
106 swfdec_sound_object.c \
109 swfdec_sprite_movie.c \
110 swfdec_sprite_movie_as.c \
112 swfdec_style_sheet.c \
113 swfdec_swf_decoder.c \
114 swfdec_swf_instance.c \
119 swfdec_text_format.c \
123 swfdec_video_movie.c \
124 swfdec_video_movie_as.c \
128 libswfdec_@SWFDEC_MAJORMINOR@_la_CFLAGS = \
129 $(GLOBAL_CFLAGS) $(CAIRO_CFLAGS) $(GLIB_CFLAGS) $(PANGO_CFLAGS) \
130 -I$(top_srcdir) -I$(srcdir)/jpeg/ $(LIBOIL_CFLAGS) \
131 $(GST_CFLAGS) $(FFMPEG_CFLAGS) $(MAD_CFLAGS) \
132 -DG_LOG_DOMAIN=\"Swfdec\"
133 libswfdec_@SWFDEC_MAJORMINOR@_la_LDFLAGS = \
134 $(SYMBOLIC_LDFLAGS) \
135 -version-info $(SWFDEC_LIBVERSION) \
136 -export-symbols-regex '^(swfdec_.*)' \
137 $(CAIRO_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) $(LIBOIL_LIBS) -lz \
138 $(MAD_LIBS) $(FFMPEG_LIBS) $(GST_LIBS)
143 swfdec_as_context.h \
144 swfdec_as_debugger.h \
146 swfdec_as_function.h \
147 swfdec_as_native_function.h \
152 swfdec_file_loader.h \
161 libswfdec_@SWFDEC_MAJORMINOR@_la_LIBADD = jpeg/libjpeg.la
162 libswfdec_@SWFDEC_MAJORMINOR@includedir = $(includedir)/swfdec-@SWFDEC_MAJORMINOR@/libswfdec
163 libswfdec_@SWFDEC_MAJORMINOR@include_HEADERS = $(public_headers) swfdec_enums.h
166 swfdec_as_boolean.h \
167 swfdec_as_frame_internal.h \
168 swfdec_as_initialize.h \
169 swfdec_as_internal.h \
171 swfdec_as_interpret.h \
173 swfdec_as_script_function.h \
176 swfdec_as_strings.h \
180 swfdec_audio_internal.h \
181 swfdec_audio_event.h \
183 swfdec_audio_stream.h \
186 swfdec_button_movie.h \
190 swfdec_codec_audio.h \
191 swfdec_codec_video.h \
197 swfdec_edittext_movie.h \
200 swfdec_flv_decoder.h \
203 swfdec_graphic_movie.h \
205 swfdec_initialize.h \
208 swfdec_load_object.h \
209 swfdec_loader_internal.h \
210 swfdec_loadertarget.h \
212 swfdec_morph_movie.h \
213 swfdec_morphshape.h \
215 swfdec_net_connection.h \
216 swfdec_net_stream.h \
219 swfdec_player_internal.h \
221 swfdec_ringbuffer.h \
222 swfdec_script_internal.h \
224 swfdec_shape_parser.h \
226 swfdec_sound_object.h \
228 swfdec_sprite_movie.h \
229 swfdec_style_sheet.h \
230 swfdec_swf_decoder.h \
231 swfdec_swf_instance.h \
235 swfdec_text_format.h \
239 swfdec_video_movie.h \
245 swfdec_as_initialize.as \
246 swfdec_initialize.as \
251 swfdec_as_strings.h \
260 swfdec_asnative.h: $(libswfdec_@SWFDEC_MAJORMINOR@_la_SOURCES)
262 && echo "#include \"swfdec_as_types.h\"" \
263 && echo "#define SWFDEC_AS_NATIVE(x,y,func) void func (SwfdecAsContext *cx, \\" \
264 && echo " SwfdecAsObject *object, guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret);" \
265 && echo "#define SWFDEC_AS_CONSTRUCTOR(x,y,func,type) SWFDEC_AS_NATIVE(x,y,func) GType type (void);" \
266 && grep -he "^SWFDEC_AS_CONSTRUCTOR" $(libswfdec_@SWFDEC_MAJORMINOR@_la_SOURCES) \
267 && grep -he "^SWFDEC_AS_NATIVE" $(libswfdec_@SWFDEC_MAJORMINOR@_la_SOURCES) \
268 && echo "#undef SWFDEC_AS_CONSTRUCTOR" \
269 && echo "#undef SWFDEC_AS_NATIVE" \
270 && echo "#define SWFDEC_AS_NATIVE(x,y,func) SWFDEC_AS_CONSTRUCTOR(x,y,func,NULL)" \
271 && echo "#define SWFDEC_AS_CONSTRUCTOR(x,y,func,type) { x, y, func, G_STRINGIFY (func), type }," \
272 && echo "static const struct { guint x, y; SwfdecAsNative func; const char *name; GType (* get_type) (void); } native_funcs[] = {" \
273 && grep -he "^SWFDEC_AS_CONSTRUCTOR" $(libswfdec_@SWFDEC_MAJORMINOR@_la_SOURCES) \
274 && grep -he "^SWFDEC_AS_NATIVE" $(libswfdec_@SWFDEC_MAJORMINOR@_la_SOURCES) \
275 && echo " { 0, 0, NULL }" \
277 && echo "#undef SWFDEC_AS_CONSTRUCTOR" \
278 && echo "#undef SWFDEC_AS_NATIVE" \
280 && (cmp -s xgen-san swfdec_asnative.h || cp xgen-san swfdec_asnative.h) \
283 swfdec_marshal.h: swfdec_marshal.list Makefile
284 $(GLIB_GENMARSHAL) --prefix=swfdec_marshal $(srcdir)/swfdec_marshal.list --header >> xgen-smh \
285 && (cmp -s xgen-smh swfdec_marshal.h || cp xgen-smh swfdec_marshal.h) \
288 swfdec_marshal.c: swfdec_marshal.list swfdec_marshal.h Makefile
289 (echo "#include \"swfdec_marshal.h\""; \
290 $(GLIB_GENMARSHAL) --prefix=swfdec_marshal $(srcdir)/swfdec_marshal.list --body;) >> xgen-smc \
291 && cp xgen-smc swfdec_marshal.c \
294 swfdec_enums.h: $(public_headers) Makefile
295 ( cd $(srcdir) && $(GLIB_MKENUMS) \
296 --fhead "#ifndef __SWFDEC_ENUMS_H__\n#define __SWFDEC_ENUMS_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
297 --fprod "/* enumerations from \"@filename@\" */\n" \
298 --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define SWFDEC_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
299 --ftail "G_END_DECLS\n\n#endif /* __SWFDEC_ENUMS_H__ */" \
300 $(public_headers) ) >> xgen-seh \
301 && (cmp -s xgen-seh swfdec_enums.h || cp xgen-seh swfdec_enums.h ) \
304 swfdec_enums.c: $(public_headers) Makefile
305 ( cd $(srcdir) && $(GLIB_MKENUMS) \
306 --fhead "#include \"swfdec.h\"\n" \
307 --fprod "\n/* enumerations from \"@filename@\" */" \
308 --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[] = {" \
309 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
310 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n }\n return etype;\n}\n" \
311 $(public_headers) ) > xgen-sec \
312 && cp xgen-sec swfdec_enums.c \
315 swfdec_as_strings.h: swfdec_as_strings.c compute-strings
316 ./compute-strings >> xgen-sas \
317 && cp xgen-sas swfdec_as_strings.h \