Grant Jacobs wrote:
Copied from Apple's ProjectBuilder forum.
Perhaps Adriaan or someone else could help this guy out. I'd be curious in the answer myself.
It is possible to use gpc with ProjectBuilder, but I am still working on it. However, if you or someone else wants to take over, I can concentrate on the CodeWarrior gpc compiler plug-in, that is also on my todo list.
This is what I found so far:
* ProjectBuilder uses a modified version of jam for building. This implies adding rules for .pas files in the scripts found in /Developer/MakeFiles and /Developer/ProjectBuilder Extras and edit some of the stuff found in /System/Library/PrivateFrameworks/PBXCore.framework/Versions/A/ Resources.
* The simpler way is to forget about Apple modified jam and use GNU Makefiles instead. Try this.
1. Create a new Project (menu File) 2. Add a new target (menu Project) and choose the option "Legacy Makefile" (what a word) 3. Choose the Targets tab in the PB main window and edit General Settings and Custom Build Command, adding a GNU Makefile. 4. A starting point for the Makefile is the one included with the GPC Pinterfaces installer for the SillyBalls example, but I have improved it since (it is still evolving).
Once we have added template files for GPC, this will be even simpler.
* A major problem is that source level debugging doesn't work. A have to look into this further, but the cause may be that the GDB files for GPC are incomplete and/or incorrect.
* Apple has let me know that "the integration possibilities with Project Builder will be improving over the next few releases".
Please feel free to pass this information on to the ProjectBuilder mailing list.
Regards,
Adriaan van Os