CodeWarrior supports the use of source trees, a kind of root path commonly used in projects that will be worked on by developers in different locations and on different machines. Source trees can be used to define common access paths and target outputs. Global source trees (defined in the CodeWarrior preferences) apply to all projects, while project source trees (defined in the Target Settings for a project) apply only to files in that project.
Xcode supports only a global source tree, defined in the Source Trees pane of the Preferences window (though it does also support search paths for headers, libraries, and frameworks, on a project basis).
When you import a CodeWarrior project (see “Importing a Project”), Xcode determines the location of the CodeWarrior root folder (commonly referred to as {Compiler} in CodeWarrior’s access paths). It then adds an entry to the Source Trees list in the Preferences window, with the Setting Name “CodeWarrior,” Display Name “CodeWarrior Folder,” and the specified path. If a Source Tree entry for CodeWarrior already exists, it is overwritten.
Depending on where CodeWarrior is located, a typical path will look something like /Applications/Metrowerks_CodeWarrior_8.0/Metrowerks CodeWarrior. This CodeWarrior-relative source tree is very useful for building projects that use PowerPlant.
Note: If your project uses source trees, make sure that everyone working on the project has those source trees defined. (The source trees can point at different places, of course, but the names should be the same.)
Last updated: 2006-10-26