Updated visual studio 2005 project files

View: New views
3 Messages — Rating Filter:   Alert me  

Updated visual studio 2005 project files

by Christophe Gisquet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


[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

fribidi-0.19.1.zip (4K) Download Attachment

Re: Updated visual studio 2005 project files

by Behdad Esfahbod-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi 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

Parent Message unknown Re: Updated visual studio 2005 project files

by Behdad Esfahbod-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Christophe Gisquet wrote:
> 2008/12/17 Behdad Esfahbod <behdad@...>:
>> Please file a bug, so this doesn't get lost in my inbox.
>
> I now see I should have split my mail into 2, but for which part do
> you want a bug report ?

Whichever needs a fix in fribidi when I get to work on another release :).

Thanks,

behdad

> Christophe
>
_______________________________________________
fribidi mailing list
fribidi@...
http://lists.freedesktop.org/mailman/listinfo/fribidi