ccompiler.py for an IDE

I'm putting together a mwerksccompiler.py module for distutils, for the MetroWerks CodeWarrior compiler on the macintosh. However, I'm running into a bit of a problem: the distutils architecture seems based on calling the compiler and linker and such all by itself, not through an IDE or Makefile or something. Even for MSVC it doesn't generate a project file but calls all the executables by hand. This isn't an option for CodeWarrior (or, at least, it would mean an extraordinary amount of work), as the compilers and such are merely plugins for the IDE, and everything is driven from the projectfile. The solution I'm now thinking of is to let compile() simply stash away the sourcefiles and include dirs and such and do all the work in link(): generate the project file and build it. Is this a feasible idea? -- Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++ Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++ www.oratrix.nl/~jack | ++++ see http://www.xs4all.nl/~tank/ ++++

On Tue, 14 Nov 2000, Jack Jansen wrote:
This isn't an option for CodeWarrior (or, at least, it would mean an extraordinary amount of work), as the compilers and such are merely plugins for the IDE, and everything is driven from the projectfile.
Couldn't you generate a lot of "small project files" each of which would compile a single c into a single o, and then one project file for the link stage? Or is that the extaordinary amount of work? (On the face of it, it shouldn't be very different then generating a command line, but then again, I haven't seen a Mac for a few millions of years). Another option would seem to be to use the Apple version of COM (sorry, I forgot how they call it) to talk with a persistent IDE. Wouldn't that work? Or would that be too hard?
The solution I'm now thinking of is to let compile() simply stash away the sourcefiles and include dirs and such and do all the work in link(): generate the project file and build it.
Is this a feasible idea?
It's probably all right if nothing better comes along, but the problem is that errors would come up in the wrong place if there are any. -- Moshe Zadka <moshez@math.huji.ac.il> -- 95855124 http://advogato.org/person/moshez
participants (2)
-
Jack Jansen
-
Moshe Zadka