Graphics Programs Reference
In-Depth Information
Each target and project has multiple build configurations . A build configuration is a set of
build settings. When you create a project, there are two build configurations: debug and
release. The build settings for the debug configuration make it easier to debug your ap-
plication, while the release settings turn on optimizations to speed up execution.
Let's take a look at the build settings and configurations for TouchTracker . Select the pro-
ject from the project navigator and the TouchTracker project in the editor area. Then, se-
lect Info from the tabs on top of the editor area ( Figure 21.26 ).
Figure 21.26 Build configurations list
The Configurations section shows you the available build configurations in the project
and targets. You can add and remove build configurations with the buttons at the bottom
of this section.
When performing a scheme action, the scheme will use one of these configurations when
building its targets. You can specify the build configuration that the scheme uses in the
scheme editor in the option for Build Configuration in the Info pane.
Enough talk - time to do something useful. Let's change the value of the target build set-
ting Preprocessor Macros . Preprocessor macros allow you to compile code conditionally.
They are either defined or not defined at the start of a build. If you wrap a block of code in
a preprocessor directive, it will only be compiled if that macro has been defined. The Pre-
processor Macros setting lists preprocessor macros that are defined when a certain build
configuration is used by a scheme to build a target.
Select the TouchTracker target, and in its Build Settings pane, search for the Preprocessor
Macros build setting. Double-click on the value column for the Debug configuration un-
der Preprocessor Macros . In the table that appears, add a new item: VIEW_DEBUG , as
shown in Figure 21.27 .
Figure 21.27 Changing a build setting
 
 
Search WWH ::




Custom Search