[Fontconfig] CMakeLists.txt for fontconfig library (enables native compilation on windows)

Pavel Koshevoy pkoshevoy at gmail.com
Fri Oct 5 19:40:10 PDT 2012


Turns out the only reason my cmake project worked was because I had 
previously run ./configure and it generated those .h files for me.  I 
need to figure out a way to generate them via cmake instead.  I would 
appreciate if you would share your vs2008 project.

Thank you,
     Pavel.


On 10/5/12 1:36 PM, Pavel Koshevoy wrote:
> I'd like to see this so I can perhaps incorporate some of that dynamic 
> code generation into the cmake project.  Right now I simply use a 
> custom config.h stored in a (new) msvcport subfolder of fontconfig, 
> and I don't generate fclang.h or .def files (my fontconfig library is 
> static, but I could add a shared library target as well).
>
> Thank you,
>     Pavel.
>
> On 10/5/2012 1:13 PM, Diego Santa Cruz wrote:
>> [Fontconfig] CMakeLists.txt for fontconfig library (enables native 
>> compilation on windows)
>> Hi,
>> 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.
>> If anyone is interested I can post the patch to the mailing list.
>> Best,
>> Diego
>>
>> ------------------------------------------------------------------------
>> *From:* 
>> fontconfig-bounces+diego.santacruz=spinetix.com at lists.freedesktop.org 
>> on behalf of Pavel Koshevoy
>> *Sent:* Fri 05-Oct-12 18:15
>> *To:* fontconfig at lists.freedesktop.org
>> *Subject:* [Fontconfig] CMakeLists.txt for fontconfig library 
>> (enables native compilation on windows)
>>
>> Hi,
>>
>> I've needed to debug a strange crash in fontconfig-2.10.1 library in my
>> video player on winxp.   The mingw build of fontconfig was not working
>> right, so I ended up making a cmake project for fontconfig (just the
>> library, not any of the executables).  I've used this to generate a
>> MSVS2005 solution and build fontconfig natively.  I've also added a very
>> thin portability layer to compensate for lack of dirent.h (and a couple
>> other minor things) on windows.  If anyone is interested I can
>> contribute a patch (I'll have to clean it up a little first).
>>
>>      Pavel.
>>
>> _______________________________________________
>> Fontconfig mailing list
>> Fontconfig at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig/attachments/20121005/5bc56e96/attachment.html>


More information about the Fontconfig mailing list