19 messages in com.perforce.jamming[jamming] Automatic inclusion of sour...
FromSent OnAttachments
Peter Björklund13 Sep 2003 15:40 
Peter Björklund14 Sep 2003 02:11 
Alen Ladavac14 Sep 2003 04:30 
Peter Björklund14 Sep 2003 05:57 
Matt Armstrong14 Sep 2003 07:51 
Alen Ladavac14 Sep 2003 09:00 
Alen Ladavac14 Sep 2003 09:40 
Alen Ladavac14 Sep 2003 11:00 
Matt Armstrong14 Sep 2003 13:35 
Alen Ladavac14 Sep 2003 14:02 
Matt Armstrong15 Sep 2003 09:41 
Wallace, Richard17 Sep 2003 17:13 
Paul Forgey18 Sep 2003 11:17 
Wallace, Richard19 Sep 2003 13:43 
Paul Forgey19 Sep 2003 14:53 
Wallace, Richard19 Sep 2003 15:13 
Paul Forgey19 Sep 2003 15:30 
Wallace, Richard19 Sep 2003 16:01 
Ingo Weinhold20 Sep 2003 02:56 
Subject:[jamming] Automatic inclusion of source files
From:Alen Ladavac (al@croteam.com)
Date:09/14/2003 09:00:23 AM
List:com.perforce.jamming

That is what I would like to have as well. The designers of those libraries thought it was better to do it like this: SomeLibrary/Input/Win32/... SomeLibrary/Input/MacOs/... SomeLibrary/Graphics/Win32/... SomeLibrary/Graphics/MacOs/... .....

The best solution might be to ask them to change their directory structure. I certainly would try to do that, cause it would make things a lot easier :)

You could modify ListDir so that it enters special dirs (Win32, MacOs, ...) only
if a particular var is set. That would work as well, even though the directory structure is not as
tidy.

PS. We are in the same business, I work for Dice (creators of Battlefield 1942, Midtown Madness 3, Rallisport Challenge etc) and I think Sam is serious fun :o)

Thanks. I hear that BF1942 is a great game as well, I wish I could say that from
personal experience, but I don't get to play a lot games lately. Isn't that ironic? :)

Anyway, I wish you luck with Jam, and let me know if you find out some useful
tricks in it.

Alen

----- Original Message ----- From: "Peter Björklund" <pi@hotmail.com> To: <jamm@perforce.com> Cc: "Alen Ladavac" <al@croteam.com> Sent: Sunday, September 14, 2003 12:58 PM Subject: Re: [jamming] Automatic inclusion of source files

Hi again!

I don't understand how could include dependencies between .cpp files be determined automatically? You don't #include .cpp files, do you?

No, but in most cases each .h corresponds to a .cpp file in the same directory. There are of course exceptions to this rule, sometimes the definition is located elsewhere, sometimes there isn't a definition at all (pure virtual interface) and sometimes it is a different source type (.inc, .asm etc). However, it is easier to set up a dependency for those files that doesn't follow this rule, than the other way around.

We put all platform-specific parts of each library in subdirectory of a Sys subdir. Like SomeLibrary/Sys/Win32, SomeLibrary/Sys/XBox, SomeLibrary/Sys/SDL, etc.

That is what I would like to have as well. The designers of those libraries thought it was better to do it like this: SomeLibrary/Input/Win32/... SomeLibrary/Input/MacOs/... SomeLibrary/Graphics/Win32/... SomeLibrary/Graphics/MacOs/... .....

The best solution might be to ask them to change their directory structure. I certainly would try to do that, cause it would make things a lot easier :)

Thanks again Alen!

PS. We are in the same business, I work for Dice (creators of Battlefield 1942, Midtown Madness 3, Rallisport Challenge etc) and I think Sam is serious fun :o)