Re: [Alephmodular-devel] Sketches on directory layouts...
Status: Pre-Alpha
Brought to you by:
brefin
From: Michael A. <mdm...@ya...> - 2003-02-05 05:39:01
|
I like this. Putting all the platform specific files in seperate subdirectories, would make it easyer to maintain the project files. "Hmm... I want to build on windows, so lets try adding common/*.cpp and win32/*.cpp. Wow! It works! Lets try common/*.cpp and osx/*.cpp for my carbon build. That works too!" Right now in A1 tracking down files that are added can be a pain even when the additions are well documented. I'm not so concerned if some of the common/*.[h|cpp] files have platform #ifdef's in them, just that figuring out which files need to be linked into a build for a platform is easy. That is if x.o (from x.cpp) only gets linked into the app when on platform Y then x.cpp should be in Y/x.cpp (or some varient of that form). If x.o gets linked for all platforms then x.cpp goes into common/x.cpp. I don't know about files that are linked on more than one platform, but not all. Anyway, just some thoughts from the perspective of someone (potentially) trying to compile the program. Michael D. Adams mdm...@ya... --- Br'fin <br...@ma...> wrote: > I've been poking at the files and trying to figure > out how to integrate > new code. So one of the things is that Apple has > these functions, > MoreFileX.h/.c. Which has useful code for handling > files on Macintosh. > And I'm thinking along these lines: > > > source_code_dir/ > Support/ > AStream.h > Astream.cpp > CError.h > Macintosh/ > MoreFilesX.h > MoreFilesX.c > > Hsm, and if a situation warranted a subdir, then I > might as well also > put CFiles_Macintosh.h/.cpp into such a subdirectory > as well.. > > -Jeremy Parsons > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Alephmodular-devel mailing list > Ale...@li... > https://lists.sourceforge.net/lists/listinfo/alephmodular-devel __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |