File: cdt_t_add_build_var.htm

package info (click to toggle)
eclipse-cdt 8.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 150,024 kB
  • ctags: 159,512
  • sloc: java: 1,087,138; xml: 54,281; ansic: 5,236; cpp: 5,123; makefile: 1,338; sh: 189; asm: 42; f90: 22
file content (81 lines) | stat: -rw-r--r-- 3,411 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!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>