core/com.nokia.carbide.cpp.doc.user/html/concepts/build_configurations.htm
author timkelly
Fri, 27 Mar 2009 10:47:09 -0500
changeset 17 71c0485f97c2
parent 2 d760517a8095
child 939 47d3ca29d054
child 1207 e265bbe56eb0
permissions -rw-r--r--
new image for CDK
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
cawthron
parents:
diff changeset
     2
<html>
cawthron
parents:
diff changeset
     3
<head>
cawthron
parents:
diff changeset
     4
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Style-Type" content="text/css" />
cawthron
parents:
diff changeset
     6
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
cawthron
parents:
diff changeset
     7
<title>Active Build Configuration</title>
cawthron
parents:
diff changeset
     8
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
cawthron
parents:
diff changeset
     9
</head>
cawthron
parents:
diff changeset
    10
<body bgcolor="#FFFFFF">
cawthron
parents:
diff changeset
    11
<h2>Active  Build Configuration</h2>
cawthron
parents:
diff changeset
    12
<p>Use the <b>Active  Configuration</b> option in the <a href="../reference/build_properties/pane_build_config.htm">Carbide Build Configurations</a> panel to specify the build target. Since a project can contain one or more build targets, the active  configuration defines  which build configuration to use when the project is run or debugged. A launch configuration consists of the following:</p>
cawthron
parents:
diff changeset
    13
<ul>
cawthron
parents:
diff changeset
    14
  <li>a project</li>
cawthron
parents:
diff changeset
    15
  <li>a <a href="../projects/launch/launch_configs_overview.htm">build  configuration</a> -  a project level configuration that includes an  SDK and any related files required to compile and build the project </li>
cawthron
parents:
diff changeset
    16
</ul>
cawthron
parents:
diff changeset
    17
<p>Build configurations are defined when the project is created. A project can have any number of build configurations and more  can be <a href="../tasks/projects/prj_new_build_config.htm">added</a> as necessary. Each build configuration can have its own combination of tool settings to precisely control how it is defined and built. Build configurations are maintained in the project Properties window in the Carbide Build Configurations panel. To open the panel, select a project in the <a href="../reference/view_sym_proj_nav.htm">Symbian Project Navigator</a> or <a href="../reference/view_cpp_projects.htm">Project Explorer</a> view and select <b>Project &gt; Properties</b> or right-click and select Properties.</p>
cawthron
parents:
diff changeset
    18
<p align="center"><img src="images/build_configs.png" width="778" height="595"></p>
cawthron
parents:
diff changeset
    19
<p>You can select a build configuration in the <b>Active Configuration</b> dropdown list or use the <b>Project &gt; Active  Configuration</b> menu option  to <a href="../tasks/projects/prj_set_build_tgt.htm">set</a> which build configuration to launch when running or debugging a program. The currently selected project can be launched by clicking the <b>Run</b> (<img src="../images/icons/btn_run.png" width="16" height="16" align="absmiddle" />) or <b>Debug</b> (<img src="../images/icons/btn_debug.png" width="17" height="16" align="absmiddle" />) control on the tool bar to launch the project with the currently active build configuration. When no project is selected the last project debugged will be launched.</p>
cawthron
parents:
diff changeset
    20
<p>If no <a href="../projects/launch/launch_configs_overview.htm">launch configuration</a> is present in the project, one is created on initial launch. Subsequent launches of the project will use either the last launch configuration or if more than one launch configuration exists, it uses the most correct one.</p>
cawthron
parents:
diff changeset
    21
<p class="note"><b>NOTE</b> The Carbide <b>Run</b> and <b>Debug</b> buttons are shaded in blue to indicate their behavior differs from the standard Eclipse behavior.</p>
cawthron
parents:
diff changeset
    22
<h5>Table 1 Carbide Build Configuration items </h5>
cawthron
parents:
diff changeset
    23
<table width="100%"  border="0" cellpadding="2" cellspacing="0">
cawthron
parents:
diff changeset
    24
  <tr>
cawthron
parents:
diff changeset
    25
    <th width="20%" scope="col">Item</th>
cawthron
parents:
diff changeset
    26
    <th width="71%" scope="col">Explanation</th>
cawthron
parents:
diff changeset
    27
  </tr>
cawthron
parents:
diff changeset
    28
  <tr>
cawthron
parents:
diff changeset
    29
    <td width="20%"><b>Active Configuration </b></td>
cawthron
parents:
diff changeset
    30
    <td>The <b>Active Configuration</b> drop down list allows you to <a href="../tasks/projects/prj_set_build_tgt.htm">select</a> a configuration that is currently available for the selected project. The entries in the related sub-panes will change according to the selected configuration. The Configuration name consists of a target name and an SDK identifier in brackets.</td>
cawthron
parents:
diff changeset
    31
  </tr>
cawthron
parents:
diff changeset
    32
  <tr>
cawthron
parents:
diff changeset
    33
    <td width="20%"><b>Manage...</b></td>
cawthron
parents:
diff changeset
    34
    <td>Click the <b>Manage</b>... button to <a href="../tasks/projects/prj_new_build_config.htm">add</a> a new SDK/Configuration or remove an existing configuration.</td>
cawthron
parents:
diff changeset
    35
  </tr>
cawthron
parents:
diff changeset
    36
</table>
cawthron
parents:
diff changeset
    37
<h5>Build Configuration Naming</h5>
cawthron
parents:
diff changeset
    38
<p>When the Carbide.c++ IDE creates an build  configuration it uses a standard naming convention to make it easy to identify. For example, <span class="code">HelloCarbide S60 3.0 Emulator Debug</span> is a typical configuration name.  The default name follows the form of:</p>
cawthron
parents:
diff changeset
    39
<ul>
cawthron
parents:
diff changeset
    40
  <li><span class="code">&lt;Phone|Emulator&gt; </span>The build target (Emulator, Phone, etc.)</li>
cawthron
parents:
diff changeset
    41
  <li><span class="code">&lt;Debug|Release&gt; </span>Debug (final file contains debug symbols) or Release version</li>
cawthron
parents:
diff changeset
    42
  <li><span class="code">&lt;platform&gt; </span>Platform on which you are building</li>
cawthron
parents:
diff changeset
    43
  <li><span class="code">&lt;sdk ID from devices.xml&gt; </span>The SDK and version used by the build configurations(s60, UIq, etc)</li>
cawthron
parents:
diff changeset
    44
</ul>
cawthron
parents:
diff changeset
    45
<p>You can use the  <a href="../reference/wnd_debug_configuration.htm">Debug</a> window to edit the default build configuration names.</p>
cawthron
parents:
diff changeset
    46
<h5>Other references </h5>
cawthron
parents:
diff changeset
    47
<ul>
cawthron
parents:
diff changeset
    48
  <li><a href="../reference/build_properties/pane_build_config.htm">Carbide Build Configurations</a> </li>
cawthron
parents:
diff changeset
    49
  <li><a href="../tasks/projects/prj_set_build_tgt.htm">Setting an Active Configuration</a></li>
cawthron
parents:
diff changeset
    50
  <li><a href="../tasks/projects/prj_debug_config.htm">Creating Launch Configurations</a> </li>
cawthron
parents:
diff changeset
    51
  <li><a href="../tasks/projects/prj_new_build_config.htm">Adding/Removing Build Configurations</a></li>
cawthron
parents:
diff changeset
    52
</ul>
cawthron
parents:
diff changeset
    53
<div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
cawthron
parents:
diff changeset
    54
cawthron
parents:
diff changeset
    55
</body>
cawthron
parents:
diff changeset
    56
</html>