blob: 77a55d450128df8f2400d589e63ed7abff888eba [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Adding and Editing Build Variables</title>
<link rel="stylesheet" type="text/css" href="../help.css">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"></script>
</head>
<body>
<div role="main"><h1>Adding and Editing Build Variables</h1>
<p>Use the <strong>Define a New Build Variable</strong> dialog box to add local build variables or the <strong>Edit Existing Build Variable</strong>
dialog box to edit a previously defined variable. Both are accessible from the <img src="../images/command_link.png" alt="" > <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_Vars)")'>Build Variables</a> preference panel.</p>
<h2>Define a New Build Variable</h2>
<p><ol>
<li>Click <strong>Window > Preferences > C/C++ > Build > Build Variables</strong></li>
<li>Click <strong>Add...</strong> in the <strong>Build Variables</strong> preference panel to open the <strong>Define a New Build Variables</strong> dialog box</li>
<li>Enter the variable name</li>
<li>Choose a variable type</li>
<li>Enter the variables value</li>
<li>Click <strong>OK</strong></li>
</ol></p>
<p><img src="../images/cdt_dlg_define_build_var.png" ALT="Define a New Build Variable dialog box" ></p>
<table width="600px" cellpadding="5" cellspacing="0" border="1" fgcolor="DDD" >
<caption><strong>Define a New Build Variable/Edit Existing Build Variable Dialog Box Options</strong></caption>
<colgroup>
<col width="30%" valign="top" >
<col width="70%" valign="top" >
</colgroup>
<thead>
<tr>
<th id="option"><strong>Option</strong></th>
<th id="description"><strong>Description</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td headers="option"><strong>Variable name</strong></td>
<td headers="description">Enter the variable name.</td>
</tr>
<tr>
<td headers="option"><strong>Type</strong></td>
<td headers="description">Choose the variable type from the available list.</td>
</tr>
<tr>
<td headers="option"><strong>Value</strong></td>
<td headers="description">Enter or edit the value of the variable.</td>
</tr>
</tbody>
</table>
<h2>Edit Existing Build Variable</h2>
<p><ol>
<li>Click <strong>Window > Preferences > C/C++ > Build > Build Variables</strong></li>
<li>Select the local build variable to edit in the <strong>Build Variables</strong> preference panel</li>
<li>Click <strong>Edit...</strong> to open the <strong>Edit Existing Build Variable</strong> dialog box</li>
<li>Change the variable type (optional)</li>
<li>Edit the variables value (optional)</li>
<li>Click <strong>OK</strong></li>
</ol></p>
<p><img src="../images/cdt_dlg_edit_build_var.png" ALT="Define a New Build Variable dialog box" ></p>
<p><img src="../images/ngref.gif" ALT="Related reference" width="143" height="21"><br>
<a href="../reference/cdt_u_pref_build_vars.htm">Build Variables preferences</a></p>
<hr>
<img src="../images/nokiaCopyright.png" ALT="Nokia Copyright Statement" >
</div></body>
</html>