From: arif Date: Wed, 21 Jan 2009 22:19:18 +0000 (+0000) Subject: Visual studio dll build PART 2 X-Git-Tag: LAST_LIBGRAPH~32^2~2653 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd8a6fe56771a668d91183b96c327ca17bbd0e59;p=graphviz Visual studio dll build PART 2 --- diff --git a/plugin/gd/gvplugin_gd.c b/plugin/gd/gvplugin_gd.c index ae2c97c48..bf637ca08 100644 --- a/plugin/gd/gvplugin_gd.c +++ b/plugin/gd/gvplugin_gd.c @@ -36,11 +36,29 @@ static gvplugin_api_t apis[] = { }; + + +#define WIN32_DLL 1 +#define GVPLUGIN_GD_EXPORTS 1 +/*visual studio*/ + +#ifdef WIN32_DLL +#ifndef GVPLUGIN_GD_EXPORTS +__declspec(dllimport) gvplugin_library_t gvplugin_gd_LTX_library = { "gd", apis }; +#else +__declspec(dllexport) gvplugin_library_t gvplugin_gd_LTX_library = { "gd", apis }; +#endif +#endif +/*end visual studio*/ + + +#ifndef WIN32_DLL #ifdef GVDLL __declspec(dllexport) gvplugin_library_t gvplugin_gd_LTX_library = { "gd", apis }; #else gvplugin_library_t gvplugin_gd_LTX_library = { "gd", apis }; #endif +#endif diff --git a/plugin/neato_layout/gvplugin_neato_layout.c b/plugin/neato_layout/gvplugin_neato_layout.c index 3f62de709..39cd39a36 100644 --- a/plugin/neato_layout/gvplugin_neato_layout.c +++ b/plugin/neato_layout/gvplugin_neato_layout.c @@ -23,8 +23,24 @@ static gvplugin_api_t apis[] = { {(api_t)0, 0}, }; + +/*visual studio*/ +#ifdef WIN32_DLL +#ifndef GVPLUGIN_NEATO_LAYOUT_EXPORTS +__declspec(dllimport) gvplugin_library_t gvplugin_neato_layout_LTX_library = { "neato_layout", apis }; +#else +__declspec(dllexport) gvplugin_library_t gvplugin_neato_layout_LTX_library = { "neato_layout", apis }; +#endif +#endif +/*end visual studio*/ + + +#ifndef WIN32_DLL #ifdef GVDLL __declspec(dllexport) gvplugin_library_t gvplugin_neato_layout_LTX_library = { "neato_layout", apis }; #else gvplugin_library_t gvplugin_neato_layout_LTX_library = { "neato_layout", apis }; #endif +#endif + + diff --git a/plugin/pango/gvplugin_pango.c b/plugin/pango/gvplugin_pango.c index 0e05d5c8e..c18c04301 100644 --- a/plugin/pango/gvplugin_pango.c +++ b/plugin/pango/gvplugin_pango.c @@ -29,10 +29,29 @@ static gvplugin_api_t apis[] = { {(api_t)0, 0}, }; + + + +/*visual studio*/ +#ifdef WIN32_DLL +#ifndef GVPLUGIN_PANGO_EXPORTS +__declspec(dllimport) gvplugin_library_t gvplugin_pango_LTX_library = { "cairo", apis }; +#else +__declspec(dllexport) gvplugin_library_t gvplugin_pango_LTX_library = { "cairo", apis }; +#endif +#endif +/*end visual studio*/ + + +#ifndef WIN32_DLL #ifdef GVDLL __declspec(dllexport) gvplugin_library_t gvplugin_pango_LTX_library = { "cairo", apis }; #else gvplugin_library_t gvplugin_pango_LTX_library = { "cairo", apis }; #endif +#endif + + +