Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Christopher Kings-Lynne <chris(dot)kings-lynne(at)calorieking(dot)com>, Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, uniware(at)zedware(dot)org, Chuck McDevitt <cmcdevitt(at)greenplum(dot)com>
Subject: Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC
Date: 2006-05-05 17:33:13
Message-ID: 20060505173313.GA26987@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, May 05, 2006 at 09:50:38AM +0200, Magnus Hagander wrote:
> You mean they have a tool that parses GNU Makefiles and generate VC
> project files? Sure, that might be interesting. I've seen I think two
> others, and tried, but they fell over badly because the pg build system
> was too complicated. But I beleive I'm still allowed to loko at GPL
> stuff and get ideas as long as I don't copy the code :-)

[Note: I have no idea how much people have done on this already. It's
just that all this talk of automatic generation makes me curious.
Myself, I have no idea how VC makefile work.]

Is it so hard to automatically generate the necessary info? On a clean
source tree, "make -n" will dump all the commands required to complete
the build. You could probably extract all the info you required from
there, although the directory changing would kill you.

So my thought is, create a number of tracing scripts, eg cc-trace which
examine their arguments to see what needs to be done, recording the
current directory and such. Then execute:

make CC="cc-trace" LD="ld-trace" etc...

And you should be able to build up a tree of what depends on what. This
doesn't take care of the other stuff the makefile does though (like the
generation of pg_config_paths.h, can VC makefile do things like that?)

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2006-05-05 17:46:42 Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC
Previous Message Chuck McDevitt 2006-05-05 17:00:39 Re: [pgsql-hackers-win32] Build with Visual Studio &