OSDN Git Service

fixed to giflib, libpng setting
authorYoshihiro Yamazaki <yoya@awm.jp>
Wed, 10 Aug 2011 09:05:46 +0000 (18:05 +0900)
committerYoshihiro Yamazaki <yoya@awm.jp>
Wed, 10 Aug 2011 09:05:46 +0000 (18:05 +0900)
src/config.w32

index d94ad4f..00caec1 100755 (executable)
@@ -3,32 +3,38 @@
 
 ARG_ENABLE("swfed", "SWFEditor support", "yes,shared");
 
-if (PHP_OPENGL == "yes") {
-       CHECK_LIB("libpng_a.lib;libpng.lib", "swfed", PHP_SWFED)
+if (PHP_SWFED == "yes") {
+       CHECK_LIB("libpng_a.lib;libpng.lib", "swfed", PHP_SWFED);
+       CHECK_LIB("libgif.dll.a;giflib.lib", "swfed", PHP_SWFED);
 
-       EXTENSION("swfed", "swfed, php_swfed.c \
-       swf_object.c swf_header.c swf_tag.c bitstream.c swf_debug.c \
-       swf_jpeg.c jpeg_segment.c bitmap_util.c swf_png.c swf_gif.c \
-       swf_rgb.c swf_rgba.c swf_argb.c swf_xrgb.c \
-       swf_rect.c swf_matrix.c swf_action.c \
-       swf_shape_with_style.c swf_styles.c swf_fill_style_array.c \
-       swf_fill_style.c swf_fill_style_solid.c swf_fill_style_gradient.c \
-       swf_fill_style_bitmap.c swf_morph_shape_with_style.c \
-       swf_line_style_array.c swf_line_style.c swf_styles_count.c \
-       swf_shape_record.c swf_shape_record_end.c swf_shape_record_setup.c \
-       swf_shape_record_edge.c swf_gradient.c  swf_gradient_record.c \
-       swf_tag_jpeg.c swf_tag_edit.c swf_tag_action.c swf_tag_lossless.c \
-       swf_tag_sound.c swf_tag_sprite.c swf_tag_shape.c y_keyvalue.c \
-       swf_tag_place.c swf_cxform.c swf_cxformwithalpha.c trans_table.c", true /* enable shared */);
+       EXTENSION("swfed", "php_swfed.c", null, "-Iext/swfed/libswfed", "php_swfed.dll");
+
+       ADD_SOURCES("ext/swfed", "php_swfed.c \
+               swf_object.c swf_header.c swf_tag.c bitstream.c swf_debug.c \
+               swf_jpeg.c jpeg_segment.c bitmap_util.c swf_png.c swf_gif.c \
+               swf_rgb.c swf_rgba.c swf_argb.c swf_xrgb.c \
+               swf_rect.c swf_matrix.c swf_action.c \
+               swf_shape_with_style.c swf_styles.c swf_fill_style_array.c \
+               swf_fill_style.c swf_fill_style_solid.c swf_fill_style_gradient.c \
+               swf_fill_style_bitmap.c swf_morph_shape_with_style.c \
+               swf_line_style_array.c swf_line_style.c swf_styles_count.c \
+               swf_shape_record.c swf_shape_record_end.c swf_shape_record_setup.c \
+               swf_shape_record_edge.c swf_gradient.c  swf_gradient_record.c \
+               swf_tag_jpeg.c swf_tag_edit.c swf_tag_action.c swf_tag_lossless.c \
+               swf_tag_sound.c swf_tag_sprite.c swf_tag_shape.c y_keyvalue.c \
+               swf_tag_place.c swf_cxform.c swf_cxformwithalpha.c trans_table.c", "swfed");
        AC_DEFINE("HAVE_PHP_SWFED", 1, "SWFEditor support");
 
        ADD_FLAG("CFLAGS_SWFED", " \
 /D HAVE_GIFLIB \
 /D HAVE_LIBPNG \
+/D HAVE_GIF \
+/D HAVE_PNG \
 /D MSWIN32 \
                ");
        PHP_INSTALL_HEADERS("ext/swfed/", "php_swfed.h");
        if (!PHP_SWFED_SHARED) {
                ADD_DEF_FILE("ext\\zlib\\php_zlib.def");
+//             ADD_DEF_FILE("ext\\swfed\\giflib.def");
        }
 }