<HTML dir=ltr><HEAD><TITLE>[Fontconfig] CMakeLists.txt for fontconfig library (enables native compilation on windows)</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19258"></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText17699>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Hi,</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>That's interesting. On my side I had similar requirements and I've built an MSVC 2008 project file for fontconfig 2.10.1 with the dirent emulation as well. The project dynamically generates the fclang.h and other header files from the templates as well the .def file with the DLL exports, much like what is done with the configure based build.</FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>If anyone is interested I can post the patch to the mailing list.</FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Best,</FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Diego</FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> fontconfig-bounces+diego.santacruz=spinetix.com@lists.freedesktop.org on behalf of Pavel Koshevoy<BR><B>Sent:</B> Fri 05-Oct-12 18:15<BR><B>To:</B> fontconfig@lists.freedesktop.org<BR><B>Subject:</B> [Fontconfig] CMakeLists.txt for fontconfig library (enables native compilation on windows)<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi,<BR><BR>I've needed to debug a strange crash in fontconfig-2.10.1 library in my<BR>video player on winxp.   The mingw build of fontconfig was not working<BR>right, so I ended up making a cmake project for fontconfig (just the<BR>library, not any of the executables).  I've used this to generate a<BR>MSVS2005 solution and build fontconfig natively.  I've also added a very<BR>thin portability layer to compensate for lack of dirent.h (and a couple<BR>other minor things) on windows.  If anyone is interested I can<BR>contribute a patch (I'll have to clean it up a little first).<BR><BR>     Pavel.<BR><BR>_______________________________________________<BR>Fontconfig mailing list<BR>Fontconfig@lists.freedesktop.org<BR><A href="http://lists.freedesktop.org/mailman/listinfo/fontconfig">http://lists.freedesktop.org/mailman/listinfo/fontconfig</A><BR></FONT></P></DIV></BODY></HTML>