From: Emden Gansner Date: Tue, 10 Jan 2012 19:59:45 +0000 (-0500) Subject: Add static build changes to include webp if available X-Git-Tag: LAST_LIBGRAPH~32^2~408^2~4^2~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc9a433f278558256eb4920b2a8edfdefa20121e;p=graphviz Add static build changes to include webp if available --- diff --git a/cmd/dot/Makefile.am b/cmd/dot/Makefile.am index aef1561f8..85eacf497 100644 --- a/cmd/dot/Makefile.am +++ b/cmd/dot/Makefile.am @@ -116,6 +116,10 @@ endif endif if WITH_PANGOCAIRO +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 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) endif diff --git a/cmd/dot/dot_builtins.c b/cmd/dot/dot_builtins.c index 1ae1d800a..2a8373243 100644 --- a/cmd/dot/dot_builtins.c +++ b/cmd/dot/dot_builtins.c @@ -28,6 +28,9 @@ extern gvplugin_library_t gvplugin_gd_LTX_library; #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; @@ -37,6 +40,9 @@ lt_symlist_t lt_preloaded_symbols[] = { { "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) },