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

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC
Дата
Msg-id 20060505173313.GA26987@svana.org
обсуждение исходный текст
Ответ на Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC  ("Magnus Hagander" <mha@sollentuna.net>)
Список 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@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Chuck McDevitt"
Дата:
Сообщение: Re: [pgsql-hackers-win32] Build with Visual Studio &
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: [pgsql-hackers-win32] Build with Visual Studio & MSVC