Choosing
How to Process a Target's Files
A target's files are separated into build phases, which
determine what happens to the files when the target builds its product.
To view these phases, click the Targets tab, select the target,
and click the Files & Build Phases tab.
These are the phases that every target contains:
- Headers: Files to copy to the product's header
folders.
- Bundle Resources: Files to copy into the product's resource folder.
These are usually Nib files, sounds, and pictures. Note that if
a file needs to be compiled by Rez, it belongs in the ResourceManager
Resources category.
- Sources: Files to compile, such as C++, Objective-C, or Java files.
- Frameworks & Libraries: Files of already compiled code
to link the product against.
- ResourceManager Resources: Files whose resources are accessed
through Carbon's Resource Manager routines. In Mac OS 8 and 9,
these resources are stored in the file's resource fork. These
files are usually Rez (.r) files and resource (.rsrc) files.
When you add a file to a target, Project Builder assigns
it to a build phase automatically according to its suffix. To change
a file's build phase:
- Drag the file from one phase to another.
When the target builds its product, it processes them
in the order they're listed on the Files panel. To change that
order:
- Drag the file to a new position in the build
phase.