|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Updated visual studio 2005 project filesHi,
these allow to build fribidi 0.19.1 with VS2005 (and I expect further versions) at least in their Express (free as in beer) version as a shared lib (ie .dll + .lib, equivalent to a .so and a .a) for windows. The archive should extract to a visual/ folder. On the topic of shared lib, fribidi-common.h tries to handle dynamic libraries in the windows environment. Unfortunately, this is insufficient: - it forces dynamic lib and not static lib - it is normally only valid for building the code, not linking A proper solution (like curl, the closest example I had at hand) would be the attached patch. I haven't tried to modify the autotools files to account for this possibility and the new macro defs FRIBIDI_STATICLIB and BUILDING_FRIBIDI. Bye, Christophe [winstatic.diff] --- lib/fribidi-common.h.old 2007-04-05 16:13:24 +0000 +++ lib/fribidi-common.h 2008-12-17 19:38:37 +0000 @@ -53,8 +53,12 @@ /* FRIBIDI_ENTRY is a macro used to declare library entry points. */ #ifndef FRIBIDI_ENTRY -# if (defined(WIN32)) || (defined(_WIN32_WCE)) +# if (defined(WIN32)) || (defined(_WIN32_WCE)) && !defined(FRIBIDI_STATICLIB) +# ifdef BUILDING_FRIBIDI +# define FRIBIDI_ENTRY __declspec(dllexport) +# else # define FRIBIDI_ENTRY __declspec(dllimport) +# endif # else /* !WIN32 */ # define FRIBIDI_ENTRY /* empty */ # endif /* !WIN32 */ _______________________________________________ fribidi mailing list fribidi@... http://lists.freedesktop.org/mailman/listinfo/fribidi |
|
|
Re: Updated visual studio 2005 project filesHi Christophe,
Please file a bug, so this doesn't get lost in my inbox. Thanks behdad Christophe Gisquet wrote: > Hi, > > these allow to build fribidi 0.19.1 with VS2005 (and I expect further > versions) at least in their Express (free as in beer) version as a > shared lib (ie .dll + .lib, equivalent to a .so and a .a) for windows. > The archive should extract to a visual/ folder. > > On the topic of shared lib, fribidi-common.h tries to handle dynamic > libraries in the windows environment. Unfortunately, this is > insufficient: > - it forces dynamic lib and not static lib > - it is normally only valid for building the code, not linking > > A proper solution (like curl, the closest example I had at hand) would > be the attached patch. I haven't tried to modify the autotools files > to account for this possibility and the new macro defs > FRIBIDI_STATICLIB and BUILDING_FRIBIDI. > > Bye, > Christophe > > > ------------------------------------------------------------------------ > > _______________________________________________ > fribidi mailing list > fribidi@... > http://lists.freedesktop.org/mailman/listinfo/fribidi fribidi mailing list fribidi@... http://lists.freedesktop.org/mailman/listinfo/fribidi |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |