Source users: source tree layout will be changing

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
winston
Pirate
Pirate
Posts: 731
Joined: Mon Sep 27, 2004 10:21 pm
Location: Port St. Mary, Isle of Man
Contact:

Source users: source tree layout will be changing

Post by winston »

I'm currently working on making a grand unified source tree for Oolite, from which any supported platform can be built (Cocoa, using the XCode projects, or SDL/GNUstep using the Makefile).

This means in the near future (i.e. when the branch merge happens, I'm working on this in a branch rather than trunk) the source tree layout will change quite significantly. Currently, it's a big flat directory with a subdir for Resources. It will change such that no source code will be in the root of the trunk, instead core functionality (which is built on all platforms) will be in the Core subdirectory, SDL-only stuff will be in the SDL directory, and Cocoa only stuff will be in Cocoa and so on.

The practical upshot of this is that it will tidy up the trunk hugely and things like the 'Documentation' directory won't be lost amongst a huge pile of source files.

The Linux build is already building out of this structure (that was the easy bit) in the cocoa-merge branch. Getting the Cocoa stuff is going to take a little more work as I'll need to do some merging and #ifdefing. I'm hoping this will all be complete within the week.
User avatar
Rxke
Retired Assassin
Retired Assassin
Posts: 1760
Joined: Thu Aug 12, 2004 4:54 pm
Location: Belgium

Re: Source users: source tree layout will be changing

Post by Rxke »

winston wrote:
grand unified source tree for Oolite.
I suggest you baptise it G.U.S.T.O. :D
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Source users: source tree layout will be changing

Post by JensAyton »

winston wrote:
It will change such that no source code will be in the root of the trunk, instead core functionality (which is built on all platforms) will be in the Core subdirectory, SDL-only stuff will be in the SDL directory, and Cocoa only stuff will be in Cocoa and so on.
Yay! :-)
User avatar
winston
Pirate
Pirate
Posts: 731
Joined: Mon Sep 27, 2004 10:21 pm
Location: Port St. Mary, Isle of Man
Contact:

Post by winston »

Well, the Grand Unified Source Tree for Oolite successfully built both OS X (Cocoa, not SDL) and Linux v1.62 builds from the same source tree last night. There are still some niggles with the XCode project, but it's mostly done.

I'm not going to get to work on it for the next few days as I have visitors, but it's pretty close to being ready ... so it won't be long now!
tjwhaynes
Average
Average
Posts: 9
Joined: Wed Sep 28, 2005 12:29 am

Current SVN doesn't compile...

Post by tjwhaynes »

Something seems to have been messed up between 1.62 and the current SVN (which reports 252). I don't seem to have Cocoa/Cocoa.h on my system - should I have? Is that something OS X specific? OOCocoa/OOCocoa.h I can see.

toby@nexus:~/progs/svn/oolite/trunk$ make
Making all for app oolite...
Compiling file ShipEntity.m ...
In file included from ShipEntity.m:49:
Octree.h:39:24: error: Cocoa/Cocoa.h: No such file or directory

Thanks,
Toby Haynes
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Yeah, it should be #import "OOCocoa.h" rather than #import <Cocoa/Cocoa.h>.
User avatar
aegidian
Master and Commander
Master and Commander
Posts: 1161
Joined: Thu May 20, 2004 10:46 pm
Location: London UK
Contact:

Post by aegidian »

Ahruman wrote:
Yeah, it should be #import "OOCocoa.h" rather than #import <Cocoa/Cocoa.h>.
AH. goes to correct.
"The planet Rear is scourged by well-intentioned OXZs."

Oolite models and gear? click here!
Post Reply