if WITH_PANGOCAIRO
dot_static_LDADD += $(top_builddir)/plugin/pango/.libs/libgvplugin_pango_C.a $(PANGOCAIRO_LIBS)
dot_builtins_LDADD += $(top_builddir)/plugin/pango/libgvplugin_pango.la $(PANGOCAIRO_LIBS)
+if WITH_WEBP
+dot_static_LDADD += $(top_builddir)/plugin/webp/.libs/libgvplugin_webp_C.a $(WEBP_LIBS)
+dot_builtins_LDADD += $(top_builddir)/plugin/webp/libgvplugin_webp.la $(WEBP_LIBS)
+endif
endif
EXTRA_DIST = Makefile.old dot.1 dot.1.pdf osage.1 osage.1.pdf patchwork.1 patchwork.1.pdf dot.vcproj
#endif
#ifdef HAVE_PANGOCAIRO
extern gvplugin_library_t gvplugin_pango_LTX_library;
+#ifdef HAVE_WEBP
+extern gvplugin_library_t gvplugin_webp_LTX_library;
+#endif
#endif
extern gvplugin_library_t gvplugin_core_LTX_library;
{ "gvplugin_neato_layout_LTX_library", (void*)(&gvplugin_neato_layout_LTX_library) },
#ifdef HAVE_PANGOCAIRO
{ "gvplugin_pango_LTX_library", (void*)(&gvplugin_pango_LTX_library) },
+#ifdef HAVE_WEBP
+ { "gvplugin_webp_LTX_library", (void*)(&gvplugin_webp_LTX_library) },
+#endif
#endif
#ifdef HAVE_LIBGD
{ "gvplugin_gd_LTX_library", (void*)(&gvplugin_gd_LTX_library) },
gvplugin_installed_t gvdevice_webp_types[] = {
#ifdef HAVE_WEBP
- {FORMAT_WEBP, "webp:cairo", -1, &webp_engine, &device_features_webp},
+ {FORMAT_WEBP, "webp:cairo", 1, &webp_engine, &device_features_webp},
#endif
{0, NULL, 0, NULL, NULL}
};
return NULL;
}
-#if 1
+#if 0
fprintf(stderr, "Info: WebP file %s can be decoded (dimensions: %d x %d)%s.\n",
in_file, output_buffer->width, output_buffer->height,
bitstream->has_alpha ? " (with alpha)" : "");
#endif
-#if 0
+#if 1
- // FIXME - this statement dies....
+ // FIXME - this statement dies.... but works in dot_static!!!
surface = cairo_image_surface_create_for_data (
output_buffer->u.RGBA.rgba,