cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: new project file and README for Visual Studio 2005

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 4 Dec 2009 22:40:35 +0100 (CET)

On Fri, 4 Dec 2009, Klaus Darilion wrote:

> OK. Found it myself: msvcproj.foot
>
> But how is libcurl.vcproj generated out from the header, footer, and
> probably something more?

The current approach is a bit limited (for MSVS users) since the
libcurl.vcproj file is made by running 'make libcurl.vcproj' in the lib dir,
on a system that works with configure! (And it is made automatically for
release tarballs). We should consider doing it another way that could work for
actual windows users too.

The actual logic isn't that hard to follow, you can see it in lib/Makefile.am
at the bottom of the file where it is the last makefile target. It basically
works like this:

  1. put the header in the file
  2. loop over all C files and add them to the file with the correct XML around
  3. loop over all H files and add them to the file with the correct XML around
  4. append the footer to the output

done

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-04